• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

cynos

Second Lieutenant
5 Badges
Jun 22, 2004
110
0
  • Crusader Kings II
  • Europa Universalis III
  • Hearts of Iron III
  • Victoria 2
  • 500k Club
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 -

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.)
 

kelumden

Second Lieutenant
11 Badges
Jan 4, 2004
104
0
  • Arsenal of Democracy
  • Darkest Hour
  • Europa Universalis III Complete
  • For The Glory
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Rome Gold
  • Sword of the Stars
  • Victoria 2
  • 500k Club
  • Pride of Nations
Mecenat

cynos said:
Oh and a little bit of a side thing, I've found this in Russian (I think) saved game, right before the combats-

Code:
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.)

A while ago, I compiled and translated in French many information regarding the way data defining a scenario is compiled. From what I found, I infered the following:

mecenat is an instruction that describe colonist send to occupy a province, as you tell. The parameters are:

tag : the country that send the colonists
source : the province where the colonists are located at the start of the scenario (or at the moment the game is saved)
destination : the province where the trip will end
success : indicates if the attempt will or not succeed (you can change this at will !)
traders : indicates if merchants accompany the colonists in which case a trading post will be build.
date : date of arrival of the colonists
By the way there is no need for the country to know the province. It is perfectly possible (I tested it) to send colonists to an unknown province. They will reach it but the province will stay unknown !

With this instruction, it is perfectly possible for a country to have colonists departing before the start of the scenario.
 

kelumden

Second Lieutenant
11 Badges
Jan 4, 2004
104
0
  • Arsenal of Democracy
  • Darkest Hour
  • Europa Universalis III Complete
  • For The Glory
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Rome Gold
  • Sword of the Stars
  • Victoria 2
  • 500k Club
  • Pride of Nations
  • 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.)

Lists can be split accross multiple lines. Just check the instruction selectable in the scenario definition file (*.eug). Other examples are the four lists of provinces in teh description of a country (known world, territory, controlled area and core provinces).