taw / paradox-tools

Utilities for formats found in various Paradox games (Europa Universalis, Crusader Kings etc.)
MIT License
43 stars 8 forks source link

Using the scripts - copy #12

Closed juzalt closed 5 years ago

juzalt commented 5 years ago

Hello! I'm wondering how to use the scripts in Ubuntu (If there's any diff as in to other OS's).

I tried running _/tribaldevelopment on a CK2 save. The way I proceeded is:

  1. I uncompressed the save file England1078_01_21.ck2 into the "analysisck2" folder. Inside was a file with the same name and another one called meta.
  2. Having installed ruby and standing on the _"analysisck2" folder, I ran ruby ./tribal_development England1078_01_21.ck2

That returned this:

Traceback (most recent call last): 3: from ./tribal_development:43:in <main>' 2: from ./tribal_development:43:innew' 1: from /home/zxltrn/Documents/code/paradox-tools/ck2/ck2_analyses.rb:232:in initialize' /home/zxltrn/Documents/code/paradox-tools/lib/paradox_mod_file.rb:50:inparse!': Parse error in England1078_01_21.ck2 - leftover tokens ["CK2txt", "version", :eq, "3.2.1.0", "date", :eq, "1078.1.21", "player", :eq, :open, "id", :eq, 140, "type", :eq, 66, :close, "player_realm", :eq, "k_england", "player_name", :eq, "King William 'the Conqueror'", "player_age", :eq, 51, "player_portrait", :eq, :open, "fem"]... (RuntimeError)

So I'm not sure if I should be running it on that file or if I'm confused in another regard.

taw commented 5 years ago

Could you send me the save file so I can take a look? (original)

juzalt commented 5 years ago

Of course, here it is https://drive.google.com/file/d/1b_BEFdKnk4S8_CgxFzG8eoJ2qohxyF/view?usp=sharing that's the original, compressed file. Please tell me if there's anything else that could help.

taw commented 5 years ago

It looks like they changed save game format slightly. I updated the parser, it should all now work.

taw commented 5 years ago

Also it's been a while since I last used CK2 save analysis script, so it's definitely possible that not all of them still work.

taw commented 5 years ago

Looks like half of the analyses are broken as 3.0 removed common/province_setup/00_province_setup.txt and that was used for a lot of metadata.

I'll fix it eventually.

(the ones that only look at save file, not at save file + game files should be fine)

juzalt commented 5 years ago

Awesome, mostly I wanted to know if I was doing it right. Thank you for your help! Maybe it would be a good idea to have that simple instruction in the README. I'm gonna make a PR adding it, but if it needs changing or something tell me. Closing this issue.

taw commented 5 years ago

Yeah, documentation is currently nearly nonexistent, PR welcome.

juzalt commented 5 years ago

I've done it but I need push permissions to create the branch.

Or here is the text if that's easier:

Instructions for Analysis Scripts:

  1. Install Ruby.
  2. Find the save file that you want to run the script on.
  3. Uncompress that save file.
  4. Run ruby /path/to/build/script /path/to/uncompressed/file

Instructions for Build Scripts:

  1. Install Ruby.
  2. Run ruby /path/to/build_script /path/to/the/game