My era not selectable :\

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.
Post Reply
gesmehod
Posts: 12
Joined: March 29th, 2011, 5:40 am

My era not selectable :\

Post by gesmehod »

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
Spoiler:
factions/ants.cfg
Spoiler:
units/ants.cfg
Spoiler:
units/ants/brute.cfg
Spoiler:
User avatar
zookeeper
WML Wizard
Posts: 9742
Joined: September 11th, 2004, 10:40 pm
Location: Finland

Re: My era not selectable :\

Post by zookeeper »

gesmehod wrote:_main.cfg
Spoiler:
That doesn't look obviously wrong to you? Copy an existing add-on era's _main.cfg and work from there.
gesmehod
Posts: 12
Joined: March 29th, 2011, 5:40 am

Re: My era not selectable :\

Post by gesmehod »

zookeeper wrote:
gesmehod wrote:_main.cfg
Spoiler:
That doesn't look obviously wrong to you? Copy an existing add-on era's _main.cfg and work from there.
Lol I made this at 5 in the morning, I'm surprised it's not worse. XD
gesmehod
Posts: 12
Joined: March 29th, 2011, 5:40 am

Re: My era not selectable :\

Post by gesmehod »

Ok I figured I'd try a campaign instead to start with.
Spoiler:
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. :hmm:
mich
Translator
Posts: 134
Joined: November 11th, 2008, 8:54 am
Location: Italy

Re: My era not selectable :\

Post by mich »

You can't start a line as you want. Every line must start with a valid key.

Code: Select all

description=
_ "Ants

" + _ "..."
must be

Code: Select all

description= _ "Ants" + _ "..."
Max
Posts: 1449
Joined: April 13th, 2008, 12:41 am

Re: My era not selectable :\

Post by Max »

mich wrote:You can't start a line as you want. Every line must start with a valid key.
no. it can span multiple lines. looks like it has to start in the first line though. this should work:

Code: Select all

description=_ "Ants

" + _ "..."
mich
Translator
Posts: 134
Joined: November 11th, 2008, 8:54 am
Location: Italy

Re: My era not selectable :\

Post by mich »

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.
gesmehod
Posts: 12
Joined: March 29th, 2011, 5:40 am

Re: My era not selectable :\

Post by gesmehod »

mich wrote:You can't start a line as you want. Every line must start with a valid key.

Code: Select all

description=
_ "Ants

" + _ "..."
must be

Code: Select all

description= _ "Ants" + _ "..."
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. :?
User avatar
Lolinder
Posts: 69
Joined: April 13th, 2011, 1:25 am

Re: My era not selectable :\

Post by Lolinder »

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... :lol2:
Post Reply