Unknown Unit
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.
Unknown Unit
I made myself a unit and when i made it a leader for a campaign it said: Unknown Unit (unit name)
P.S.
I copyed a nother unit's file and redid most of WML within it soooo just for you to know
Thanks
P.S.
I copyed a nother unit's file and redid most of WML within it soooo just for you to know
Thanks
-
- Posts: 1549
- Joined: June 18th, 2009, 1:45 am
Re: Unknown Unit
Did you include in the campaign? Like this?
Code: Select all
[+units]
{~add-ons/data/[your_add-on_name]/units}
[/units]
Re: Unknown Unit
I'm not seeing it there...
In the unit's file or in the campaign's file
In the unit's file or in the campaign's file
-
- Posts: 1549
- Joined: June 18th, 2009, 1:45 am
Re: Unknown Unit
Wait did you edit someone else's campaign or your own? That goes in the _main.cfg file.
-
- Posts: 1549
- Joined: June 18th, 2009, 1:45 am
Re: Unknown Unit
Then create a folder called 'units' (if he doesn't already have one), place the unit in the folder, and add the code I gave you into the _main.cfg.
Re: Unknown Unit
Add the code at the end I'm guesing
-
- Posts: 1549
- Joined: June 18th, 2009, 1:45 am
Re: Unknown Unit
Sorry for the unclear wording, place it in the #DEFINE CAMPAIGN_[CAMPAIGN_NAME] definition.
Re: Unknown Unit
do I need to make an add-on to get this to work. I just made one random unit to put in.
-
- Posts: 1549
- Joined: June 18th, 2009, 1:45 am
Re: Unknown Unit
No. You can edit your friends campaign directly. You can make an add-on if you want if you don't want to touch the campaign itself.
Re: Unknown Unit
If I don't make a add on do i cut out the part about [your_add-on_name] in the code I put in.
Thank you so much for this help
Thank you so much for this help