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

Aratoop

Recruit
9 Badges
Oct 1, 2020
5
1
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Together for Victory
  • BATTLETECH
  • Hearts of Iron IV: Death or Dishonor
  • Shadowrun: Dragonfall
  • Shadowrun: Hong Kong
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: La Resistance
  • Crusader Kings III
Sorry if this is the wrong part of the forum for this, it's about a mod I made for myself.

I created my own python script to edit the resources and arable land of states in the state_region file without touching any of the other lines. It works, although it creates the wrong line endings. Thankfully I can easily change the line endings with Notepad++ so that the files are in UNIX UTF-8 format. However, this still causes a CTD. When I edit the same values by hand and save the file the game works just fine, does anyone know what might be causing this issue?

I have attached one of the edited files if someone wants to take a look, thanks!
 

Attachments

  • 00_west_europe_edited.txt
    57,7 KB · Views: 0