Hi all,
I know I've seen something on this before, but I can't find it by search, so any links to pre-existing threads welcome.
Basically, I just wanted to know how finicky the EUII parser is.
i.e. for something like this -
(For the purposes of this post, I'll refer to x = { a = 5 b = 4 } stuff as hashes, and x = { a b c d } as lists)
I've noticed that EUII spits the dummy if those spaces are missing. I get the feeling that it uses space to delimit tokens, including CRLF (going by the space at the end of each line.)
That's fine, I can live with that.
However, I've also noticed that changing this -
to this
doesn't break anything. So, my understanding of the formatting so far is -
Is there any other gotchas or caveats waiting for me?
Oh and a little bit of a side thing, I've found this in Russian (I think) saved game, right before the combats-
Anyone know what a mecenat is? 728 looks to be Taranaki in New Zealand, so I'm guessing an outbound colonist (I assume for a tp, traders would be yes.)
I know I've seen something on this before, but I can't find it by search, so any links to pre-existing threads welcome.
Basically, I just wanted to know how finicky the EUII parser is.
i.e. for something like this -
Code:
#Please note, space has been replaced with a period for clarity.
province.=.{.id.=.749.whiteman.=.yes.construction.=.{.
id.=.{.type.=.4712.id.=.6623.}.
action.=.15.
province.=.749.
flags.=.16.
startdate.=.{.year.=.1419.month.=.january.day.=.13.}.
enddate.=.{.year.=.1420.month.=.january.day.=.13.}.
success.=.no.
x.=.11114.
y.=.3457.
tag.=.SUD.
}.}.
(For the purposes of this post, I'll refer to x = { a = 5 b = 4 } stuff as hashes, and x = { a b c d } as lists)
I've noticed that EUII spits the dummy if those spaces are missing. I get the feeling that it uses space to delimit tokens, including CRLF (going by the space at the end of each line.)
That's fine, I can live with that.
However, I've also noticed that changing this -
Code:
province = { id = 749 whiteman = yes construction = {
#bits
} }
to this
Code:
province = {
id = 749
whiteman = yes
construction = {
#bits
}
}
doesn't break anything. So, my understanding of the formatting so far is -
- All tokens are separated by a space
- End lines with CRLF (\r\n) (I don't know if \n would be OK, will have to try.)
- Hashes can be broken across multiple lines (assuming above two rules are adhered to)
- Lists can't (Actually, I'm not so sure on this.)
Is there any other gotchas or caveats waiting for me?
Oh and a little bit of a side thing, I've found this in Russian (I think) saved game, right before the combats-
mecenat = {
tag = HOL
source = 1316
destination = 728
success = yes
traders = no
date = { year = 1676 month = february day = 13 }
}
Anyone know what a mecenat is? 728 looks to be Taranaki in New Zealand, so I'm guessing an outbound colonist (I assume for a tp, traders would be yes.)