Modding Video Guides

Discussion in 'Mod Discussions' started by thetrophysystem, August 24, 2014.

  1. thetrophysystem

    thetrophysystem Post Master General

    Messages:
    7,050
    Likes Received:
    2,874
    They are crappy... Either way, I decided as I mod I would describe how to do things. Starting off...

    1) How Mods Work, Mods Folder Structure.
    CrazyVulcan likes this.
  2. Mereth

    Mereth Active Member

    Messages:
    330
    Likes Received:
    164
    Nice introduction to server modding video, but it's kinda sad to see you are still using Nodepad after months of modding.
    The "id" property doesn't serve any purpose anymore, you can remove it safely from your modinfo files.
  3. squishypon3

    squishypon3 Post Master General

    Messages:
    7,971
    Likes Received:
    4,357
    He prefers it over notepad++ because it keeps it in paragraph format. We formated all the .jsons differently into the traditional format and he'd rather have it all in one block, because it's easier to catch syntax errors. (Or to fix them I might say)
  4. Mereth

    Mereth Active Member

    Messages:
    330
    Likes Received:
    164
    I can't tell how this could be easier with notepad than formatted and colored in notepad++ or any other code editor, but, well, if he say so ;)

    Firefox + JSONView plugin can help a lot for a quick & dirty json syntax error diagnostics :
    jsonerror.png
    I was hoping for a Notepad++ plugin, but none of the 3 available do that properly.
  5. squishypon3

    squishypon3 Post Master General

    Messages:
    7,971
    Likes Received:
    4,357
    I agree, but it's just his preference. :p
    stuart98 likes this.
  6. thetrophysystem

    thetrophysystem Post Master General

    Messages:
    7,050
    Likes Received:
    2,874
    Honestly, firefox looked better in your pic than notepad++

    Depending on the syntax, notepad++ does in fact not find anything or even highlight brackets usefully. Otherwise I would suggest it. notepad++ sort of works in column format, but the original game files arent and it is another 20 minutes I might show some other time to reformat them.

    Well, I included a new video using jsonview on firefox. I showed notepad++, it doesn't color anything so I showed that and ridiculed it for this particular task. I showed jsonview. It makes it incredibly easy to read. It reformats it to columns too. However, it doesn't edit, to edit you have to have notepad or ++ open at same time beside it. However, you can copy-paste from firefox to notepad and it reformats it to columns. That itself is pretty nice.
    Last edited: August 24, 2014
  7. Mereth

    Mereth Active Member

    Messages:
    330
    Likes Received:
    164
    Firefox+JSONView is good to quickly show the content of a json file, but when it come to editing, you need proper tools ;)

    By default, notepad++ doesn't have any language associated with .json files. But it is easily fixable :
    • Menu / Settings / Style Configurator
    • Choose "Javascript" in the "Language :" list
    • add "json" in the "User ext.:" textbox
    • click "Save & Close"
    • open any .json file and enjoy the new colors (you can even change them if you want in the previous panel)
    • you can have the same behavior as Notepad by activating "Word Wrap" on the toolbar if you want more than one single line
    coloredjson.png

    But, you can also revert the (pointless) minification from the Uber build chain and have this nicely formatted.
    • Menu / Plugins / Plugins Manager / Show Plugin Manager
    • Install JSTool
    • open one of your json files
    • press CTRL+ALT+M
    formattedjson.png
    You can also customize the formatting in Plugins / JSTool / Options
    You can open some JSON Tree editor by pressing CTRL+ALT+J

    And I think I understand you don't like sources versionning tool very much, but for information, having your json files in more than one single line will help the sources diff a lot.

    Sadly, this will not validate your JSON syntax, Firefox+JSONView stay a good option.

    I bet there is even better free tools than Notepad++ for Javascript/JSON editing, but it's a pretty good start.
    I hope it can help you to mod with more comfort.
    Fr33Lancer likes this.
  8. Raevn

    Raevn Moderator Alumni

    Messages:
    4,226
    Likes Received:
    4,324
    stuart98 likes this.
  9. thetrophysystem

    thetrophysystem Post Master General

    Messages:
    7,050
    Likes Received:
    2,874
    Now THIS is preference. Recently, I have been dissecting for the videos, so I have been reformatting to columns. However, the strict spacing from columns means if I play around with too many things something doesn't work. With paragraph, you literally just need a single space between each thing and the correct quotes and commas and brackets. No worrying about too many or few spaces, because the spacing is what I mess up on columns.
  10. Mereth

    Mereth Active Member

    Messages:
    330
    Likes Received:
    164
  11. CrazyVulcan

    CrazyVulcan Active Member

    Messages:
    102
    Likes Received:
    50
    Thank you so much for this video, as someone who has modding ambitions but lack the basic know how this is a really helpful lesson.

    Side note, @thetrophysystem you totally sound like Cobra Commander. That or Duff Man form the Simpsons
    Last edited: August 31, 2014

Share This Page