Add-on Help.

The place to post your WML questions and answers.

Moderator: Forum Moderators

Forum rules
  • Please use [code] BBCode tags in your posts for embedding WML snippets.
  • To keep your code readable so that others can easily help you, make sure to indent it following our conventions.
FG_Prince2000
Posts: 35
Joined: November 9th, 2016, 11:04 am

Add-on Help.

Post by FG_Prince2000 »

I can not get my faction addon to show up in the multiplayer window! I have read and done the section on making new factions in the Create area. What could the problem be?

Oh, and how do you remove a previous topic that you started but are not discussing anymore?
Last edited by FG_Prince2000 on November 21st, 2016, 11:53 am, edited 1 time in total.
User avatar
zookeeper
WML Wizard
Posts: 9742
Joined: September 11th, 2004, 10:40 pm
Location: Finland

Re: I can't get my add-on to work!

Post by zookeeper »

FG_Prince2000 wrote:I can not get my faction addon to show up in the multiplayer window! I have read and done the section on making new factions in the Create area. What could the problem be?
There's an endless amount of possibilities. Post the whole add-on as an attachment and someone can look at it and say what's wrong.
FG_Prince2000 wrote:Oh, and how do you remove a previous topic that you started but are not discussing anymore?
There's no need. We don't delete old threads, they'll slowly sink into oblivion simply by no one posting in them.
User avatar
The_Gnat
Posts: 2234
Joined: October 10th, 2016, 3:06 am
Contact:

Re: I can't get my add-on to work!

Post by The_Gnat »

In order to solve your problem it would be helpful if you gave more specifics because there are many reasons a add-on can not load!

If you post what type of add-on you are creating (era,map pack,campaign), and also post what you want it to do and what it is not doing then the moderators or developers can help you! :D
FG_Prince2000
Posts: 35
Joined: November 9th, 2016, 11:04 am

Re: I can't get my add-on to work!

Post by FG_Prince2000 »

movetype_neanderfoot.cfg
(1.09 KiB) Downloaded 262 times
I am trying to make a new faction. I only have three units and a movement type so far, but I thought I'd test it to make sure what I have is working before continuing. I followed the instructions on the website, and this is what I've got so far... I cant get the whole folder to get attached so here are the individual files, I have the units in the unit folder, and the neanderfoot in the movetypes folder, and the rest loose in the era folder. ... I also cant get it to attach more than one file, so I'l post each individually.
FG_Prince2000
Posts: 35
Joined: November 9th, 2016, 11:04 am

Re: I can't get my add-on to work!

Post by FG_Prince2000 »

Ha! Never mind the attachment thing, I got that to work.

I have no idea what the problem could be, other than I should have another file that makes the faction appear in multiplayer.
Attachments
_main.cfg
(170 Bytes) Downloaded 266 times
Neanderthal_Trapper.cfg
(1.39 KiB) Downloaded 250 times
Neanderthal_Stalker.cfg
(1.6 KiB) Downloaded 274 times
Neanderthal_Hunter.cfg
(1.22 KiB) Downloaded 244 times
_units.cfg
this was also in the units folder.
(31 Bytes) Downloaded 267 times
User avatar
zookeeper
WML Wizard
Posts: 9742
Joined: September 11th, 2004, 10:40 pm
Location: Finland

Re: I can't get my add-on to work!

Post by zookeeper »

Code: Select all

{~add-ons/Neanderthal_MP_Era/units}
That line only tells the game to: 1) if there is a _main.cfg file in that directory, load it 2) if there isn't, then load every .cfg file in that directory (subdirectories not included). And "loading a file" in this context always just means the same as copypasting the files's content into the current location.

Also, don't attach individual files because no one can know where you have them and location matters. Use one of these.
User avatar
The_Gnat
Posts: 2234
Joined: October 10th, 2016, 3:06 am
Contact:

Re: I can't get my add-on to work!

Post by The_Gnat »

Hi FG_prince2000,

EDIT:
if you have custom images
I usually include a binary_path location in my _main.cfg file under #ifdef MULTIPLAYER:

Code: Select all

[binary_path]
    path=data/add-ons/YOUR_ADDON_PATH/
[/binary_path]
Also when you load your units use {~add-ons/YOUR_ADDON_PATH/units/} rather then {~add-ons/YOUR_ADDON_PATH/units} without a ending /

Also like zookeeper said use a file archiver (i recommend 7zip) to upload your entire add-on.

Also to clarify are you expecting another era option to appear under default, default+khalifate,aoh,aoh+khalifate, or are your units description files not loading?
Last edited by The_Gnat on November 15th, 2016, 8:36 pm, edited 1 time in total.
User avatar
zookeeper
WML Wizard
Posts: 9742
Joined: September 11th, 2004, 10:40 pm
Location: Finland

Re: I can't get my add-on to work!

Post by zookeeper »

The_Gnat wrote:I usually include a binary_path location in my _main.cfg file under #ifdef MULTIPLAYER:

Code: Select all

[binary_path]
    path=data/add-ons/YOUR_ADDON_PATH/
[/binary_path]
But that only has relevance for custom images, sounds or music that you might have. If you have none, you don't need a [binary_path].
FG_Prince2000
Posts: 35
Joined: November 9th, 2016, 11:04 am

Re: I can't get my add-on to work!

Post by FG_Prince2000 »

zookeeper wrote:

Code: Select all

{~add-ons/Neanderthal_MP_Era/units}
That line only tells the game to: 1) if there is a _main.cfg file in that directory, load it 2) if there isn't, then load every .cfg file in that directory (subdirectories not included). And "loading a file" in this context always just means the same as copypasting the files's content into the current location.

Also, don't attach individual files because no one can know where you have them and location matters. Use one of these.
OK, what should I have in this line, or should I have it at all?

Thanks for the tip, I'l use 7zip like the Gnat suggested.
FG_Prince2000
Posts: 35
Joined: November 9th, 2016, 11:04 am

Re: I can't get my add-on to work!

Post by FG_Prince2000 »

The_Gnat wrote:Hi FG_prince2000,

EDIT:
if you have custom images
I usually include a binary_path location in my _main.cfg file under #ifdef MULTIPLAYER:

Code: Select all

[binary_path]
    path=data/add-ons/YOUR_ADDON_PATH/
[/binary_path]
Also when you load your units use {~add-ons/YOUR_ADDON_PATH/units/} rather then {~add-ons/YOUR_ADDON_PATH/units} without a ending /

Also like zookeeper said use a file archiver (i recommend 7zip) to upload your entire add-on.

Also to clarify are you expecting another era option to appear under default, default+khalifate,aoh,aoh+khalifate, or are your units description files not loading?
Should I "clarify" if I want to have another era option? if so, where in what file do I do that?

And could I just add this era to the standard list?

And what are the " unit description files". Are they files in which I have specific descriptions for each unit? If so, I don't have any. Should I, and in what folder would I put them if I should.
User avatar
zookeeper
WML Wizard
Posts: 9742
Joined: September 11th, 2004, 10:40 pm
Location: Finland

Re: I can't get my add-on to work!

Post by zookeeper »

FG_Prince2000 wrote:OK, what should I have in this line, or should I have it at all?
Depends on what's inside that directory.
FG_Prince2000
Posts: 35
Joined: November 9th, 2016, 11:04 am

Re: I can't get my add-on to work!

Post by FG_Prince2000 »

I just have unit's cfg files and the _unit.cfg file.
FG_Prince2000
Posts: 35
Joined: November 9th, 2016, 11:04 am

Re: I can't get my add-on to work!

Post by FG_Prince2000 »

Another thing, in the Neanderthal_MP_Era.cfg, what do I put in the "type=" slot?

Also, what is a nested quoted string?
User avatar
Bag
Posts: 12
Joined: November 6th, 2016, 4:02 pm
Location: United Kingdom

Re: I can't get my add-on to work!

Post by Bag »

The "nested quoted string" error, from my experience, usually means that you have forgotten to close a quotation somewhere.
User avatar
The_Gnat
Posts: 2234
Joined: October 10th, 2016, 3:06 am
Contact:

Re: I can't get my add-on to work!

Post by The_Gnat »

Hi FG_Prince2000,

You probably want to do this:

create a new era that has your units, under the default eras
For Example
Where a new era would appear
Where a new era would appear
That is the best way to add your units, if this is what you want to do i can give easy you steps! :D
Other questions
What are description files?
Sorry about confusing you, unit descriptions are automatically created using your units "cfg" files if your units are loading!
Spoiler:
This just shows you your units information. If your units are loading you will be able to see their description files.
Some units are hidden (if they are high level) to view them you press "SHIFT" + ":" and type "discover"
What is a nested quoted string?
The nested quoted string is probably like bag said a quotation mark (") that hasn't been closed. Look for any single " without a second one.
what do I put in the "type=" slot?
For this i would recommend uploading you full add-on as a archive, because its hard to tell what you are doing.
Hopefully this helps!!
Post Reply