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:
    110
    Likes Received:
    154
    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,315
    Likes Received:
    2,089
  4. Nicb1

    Nicb1 Post Master General

    Messages:
    1,010
    Likes Received:
    1,286
    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,853
    Likes Received:
    6,045
    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:
    103
    Likes Received:
    240
    acesoyster likes this.
  7. Quitch

    Quitch Post Master General

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

    acesoyster Active Member

    Messages:
    110
    Likes Received:
    154
    Or you can just not write invalid JSON ;)

Share This Page