Pa Titans code organisation

Discussion in 'Mod Discussions' started by limeygent, September 29, 2018.

  1. limeygent

    limeygent New Member

    Messages:
    1
    Likes Received:
    0
    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?
  2. acesoyster

    acesoyster Active Member

    Messages:
    114
    Likes Received:
    179
    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
  3. wondible

    wondible Post Master General

    Messages:
    3,278
    Likes Received:
    2,078
  4. Nicb1

    Nicb1 Post Master General

    Messages:
    1,026
    Likes Received:
    1,310
    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.
  5. Quitch

    Quitch Post Master General

    Messages:
    5,077
    Likes Received:
    5,853
    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.
    Nicb1 likes this.
  6. flubbateios

    flubbateios Active Member

    Messages:
    109
    Likes Received:
    226
    acesoyster likes this.
  7. Quitch

    Quitch Post Master General

    Messages:
    5,077
    Likes Received:
    5,853
    Don't use Notepad++ because validating your files is a pain in the butt.
  8. acesoyster

    acesoyster Active Member

    Messages:
    114
    Likes Received:
    179
    Or you can just not write invalid JSON ;)

Share This Page