Strange [time_area] -Problem with Underground

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

Re: Strange [time_area] -Problem with Underground

Post by zookeeper »

Umm, so what's the problem? You've commented out the [time_area] so naturally it won't do anything.

I've also heard that you ought not to use spaces between = and the key name, but I don't know if that has any ill effects or not.
Korben
Posts: 22
Joined: April 14th, 2012, 11:41 pm

Re: Strange [time_area] -Problem with Underground

Post by Korben »

commented it out so I can still work with the campaign without getting annoyed by the false underground-time ;)

the spaces had no effext as far as i can remeber from my troubleshooting, but i´ll double test that later.
Max
Posts: 1449
Joined: April 13th, 2008, 12:41 am

Re: Strange [time_area] -Problem with Underground

Post by Max »

Korben wrote:commented it out so I can still work with the campaign without getting annoyed by the false underground-time ;)
the problem is it's hard to reproduce because editing the file will fix the linebreaks.

here's how this particular code looks like:
wesnoth_cr_lf.PNG
wesnoth_cr_lf.PNG (4.19 KiB) Viewed 2122 times
so you got a combination of mac, unix and windows style linebreaks (http://en.wikipedia.org/wiki/Line_break_%28computing%29).
what editor are you using (and what's your OS)?
Korben
Posts: 22
Joined: April 14th, 2012, 11:41 pm

Re: Strange [time_area] -Problem with Underground

Post by Korben »

I´m using Mac OS X 10.6.8 and TextEdit (and the error occurs in Wesnoth 1.10.1 if that is important..)

Tidied up the time_area part, still produces the error. Here´s the file:
Attachments
2_Mines.cfg
(6.1 KiB) Downloaded 72 times
mattsc
Inactive Developer
Posts: 1217
Joined: October 13th, 2010, 6:14 pm

Re: Strange [time_area] -Problem with Underground

Post by mattsc »

Korben: same OS, same editor, BfW 1.10.2: I could reproduce your problem. The problem are indeed the linebreaks (which sometimes cause problems like this). The easiest fix: delete the breaks between lines in the [time_area] block, hit <return> and safe -- or you could delete the entire [time_area] block and type it in by hand (rather than copy-pasting it). It's only 5 lines, so it's not that much hardship. ;) I tried both, worked like a charm for me.
Korben
Posts: 22
Joined: April 14th, 2012, 11:41 pm

Re: Strange [time_area] -Problem with Underground

Post by Korben »

Yep, that helped. you guys are awesome! :D
User avatar
francophone
Posts: 393
Joined: February 20th, 2010, 2:19 pm

Re: Strange [time_area] -Problem with Underground

Post by francophone »

I volontier test this, but I can't find the corresponding card (02_Mines.map).
Korben
Posts: 22
Joined: April 14th, 2012, 11:41 pm

Re: Strange [time_area] -Problem with Underground

Post by Korben »

This campaign is by no means finished, but I´ll open a corresponding thread when it´s open for critic. (If I understood you right..)
Post Reply