My era not selectable :\
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.
My era not selectable :\
Hi, I've only got 1 unit so far but I wanted to make it an era to try it out.
Can anyone tell me what I'm missing?
.
.
.
_main.cfg
factions/ants.cfg
units/ants.cfg
units/ants/brute.cfg
Can anyone tell me what I'm missing?
.
.
.
_main.cfg
Spoiler:
Spoiler:
Spoiler:
Spoiler:
Re: My era not selectable :\
That doesn't look obviously wrong to you? Copy an existing add-on era's _main.cfg and work from there.gesmehod wrote:_main.cfgSpoiler:
Re: My era not selectable :\
Lol I made this at 5 in the morning, I'm surprised it's not worse. XDzookeeper wrote:That doesn't look obviously wrong to you? Copy an existing add-on era's _main.cfg and work from there.gesmehod wrote:_main.cfgSpoiler:
Re: My era not selectable :\
Ok I figured I'd try a campaign instead to start with.
And it gives me the error:
"Unexpected characters at line start, value '_' at ~add-ons/Ants/_main.cfg:38"
I feel like I'm getting close.
Spoiler:
"Unexpected characters at line start, value '_' at ~add-ons/Ants/_main.cfg:38"
I feel like I'm getting close.
Re: My era not selectable :\
You can't start a line as you want. Every line must start with a valid key.
must be
Code: Select all
description=
_ "Ants
" + _ "..."
Code: Select all
description= _ "Ants" + _ "..."
Re: My era not selectable :\
no. it can span multiple lines. looks like it has to start in the first line though. this should work:mich wrote:You can't start a line as you want. Every line must start with a valid key.
Code: Select all
description=_ "Ants
" + _ "..."
Re: My era not selectable :\
Yes, I know that. It was just to make things easier to explain. And yes, the result is a little different, but at least for the moment the important thing is to make the campaign to work.
Re: My era not selectable :\
Whoa, turns out the problem was pretty weird. There were spaces in the code I couldn't see, but pasting it in the post revealed them. My "race" file had several phantom spacebars as well.mich wrote:You can't start a line as you want. Every line must start with a valid key.must beCode: Select all
description= _ "Ants " + _ "..."
Code: Select all
description= _ "Ants" + _ "..."
Re: My era not selectable :\
This is a problem I've encountered using Windows Notepad. The same would probably happen with any similarly simple text editor. I've fixed the problem by switching to Notepad++, which shows all the new lines that don't show up on Notepad. Makes some of my WML unbearably hard to read now...