[Solved] Odd error.

Discussions about scenario games and user-defined scripts.
Post Reply
Esoteric Rogue
Level 6 user
Posts: 413
Joined: Sun Nov 18, 2012 8:18 am

[Solved] Odd error.

Post by Esoteric Rogue »

I've done as much trouble shooting as I can for now.

With my list of cities, I get this error:

Image

Using the cities from another thread, everything works fine (partial clip):
City=London
City=Rio De Janeiro
City=New York
City=Tokyo
City=Shanghai
City=Moscow
City=Buenos Aires
City=Berlin
City=Sydney
City=Paris

But my code does not work (full code):

Code: Select all

[HEADER]
Title=City Test 1
Description=This is a city test script.

[ENVIRONMENT]
Number of Cities=10

[CITIES]
City=New York City
City=Shanghai
City=Mumbai
City=Tokyo
City=Berlin
City=Moscow
City=Sao Paulo
City=London
City=Paris
City=Rome
I will try one at a time when I get time.

_____Edit
It was because I didn't have coordinates defined. Sorry for the touble.
carpii
Level 3 user
Posts: 63
Joined: Thu Aug 15, 2013 9:49 pm

Re: [Solved] Odd error.

Post by carpii »

Just a stab int he dark, but try renaming "City=New York City" to "City=New York"

Maybe the script parser is seeing City and assuming you are starting a new entry.
Granted that would not be a very smart parser, but worth a try...
Post Reply