[REQ]Automated Tool to Convert Mod Files to new Build

Discussion in 'Mod Discussions' started by stuart98, June 27, 2014.

  1. stuart98

    stuart98 Post Master General

    Messages:
    6,009
    Likes Received:
    3,888
    If someone could whip up a quick and dirty tool to convert mod unit.json files to match the new PTE build, that'd be great.

    What's changed?

    The "firing" event has been renamed to "fired".
    Anim trees for units (found in pa\anim\anim_trees) are no longer titled unit.json, but rather unit_anim_tree.json. This means that the paths for them in every unit.json file (Referring to the ones in pa\units) need to be changed accordingly.
  2. nofear1299

    nofear1299 Active Member

    Messages:
    294
    Likes Received:
    147
    Can't be too difficult to write a script that does that? Make a little program that reads in the files and changes based on parameters you set?

    @cola_colin is good at that stuff I believe:)
  3. stuart98

    stuart98 Post Master General

    Messages:
    6,009
    Likes Received:
    3,888
  4. wondible

    wondible Post Master General

    Messages:
    3,315
    Likes Received:
    2,089
    This isn't quite quick and dirty, since it depends on node and grunt-init. I set up the grunt-init template I always meant to do with grunt tasks. One of those tasks is patch_67998 Quick and dirty way to use it would be to make a new temporary mod, manually copy your files in, run the patch, verify things are good, and then copy them back. (as with all mechanical transformations, frequent source control checkins are advised)

    https://github.com/JustinLove/pa_smod_balance_grunt

Share This Page