i want to get into modding the game. One issue i’m having is reading the code as it’s all in one big blob. Is there any way i can reorganise it into something more easily readable or do I need to organise the code myself and then continue from there?
You mean the jsons? There are lots of little tools out there for reformatting json to easier to read format without breaking its functionality. I think there's a python script a lot of us use
I found this one, although I think I modified my own copy to do pfx as well. https://forums.planetaryannihilation.com/threads/reformat-your-json-files.47529/#post-739314
There's a plugin for notepad++ and some other program that reads it In a nice format. Will post again or edit as soon as I have a chance to hunt them down.
Install Visual Studio Code, open the file, right-click and choose "Format Document". VSC is the best editor to use on Windows for PA as it will do both formatting and real-time validation.
If you use/like Notepad++, I recommend JSToolNPP. http://jsminnpp.sourceforge.net/ Ctrl-Alt-M to format JSONs and Javascript.