Closed TommasoBelluzzo closed 8 years ago
In EU4 savegames, provinces are stored like so
-1={
name="Stockholm"
# etc
}
-2={
name="Another one"
# etc
}
This was solved in ProvinceCollection.cs
public void TokenCallback(ParadoxParser parser, string token)
{
provinces.Add(parser.Parse(new Province(-int.Parse(token))));
}
Let me know if this helps.
Aaaaah that works like a charm! Many thanks man!
No problem, I haven't tested this parser with Stellaris or for HOI4, so if you come across bugs or if you have improvements you've coded, feel free to file more issues/PRs :smile:
Dear nickbabcock, I recently started tinkering a little bit your parser to fix some issues on my Stellaris savegames. It works like a charm, but I think it cannot handle this kind of parsing:
Where the number before the brakets is a unique identifier. Do you have any plan on improving this for the new synthax being used? Best regards.