How do you guys get into UI Modding

Discussion in 'Mod Discussions' started by proeleert, November 24, 2013.

  1. proeleert

    proeleert Post Master General

    Messages:
    1,681
    Likes Received:
    1,656
    After playing with cola_colins hotbuild a bit and understanding how it works.
    How do you guys find out what all the model. things do ? Is there a reference somewhere of what does what?
    I know I can start the coherent debugger and put debugger; statements to stop the game when entering my script.
    But there is so much stuff under model. That I get lost. :)
    Some stuff I want to try :
    Find idle Scout button / Queue Move commands for Scout
  2. maxpowerz

    maxpowerz Post Master General

    Messages:
    2,208
    Likes Received:
    885
    You do it the same way we do.
    you read /edit file by file, slowly gaining knowledge about the game from the engine calls inside the .json files,
    Or you could read raevns modding references and tools thread, it has all the relevant info's you need there
  3. cola_colin

    cola_colin Moderator Alumni

    Messages:
    12,074
    Likes Received:
    16,221
    I probably spent hours and hours just reading the js code of the UI by now.
    Also it is a good idea to put up some sort of svn/git/whatever you like with the game's ui files. That way you can easily compare what changed after a patch. Helps A LOT when a patch breaks your mods.
    I think both your ideas will be pretty hard to do right now though. Maybe even impossible. As far as I understand PA still lags API for mods to i.e. iterate what units a player has and what state they are in. Giving move commands can only be done in screen coordinates, not world coordinates.
    maxpowerz likes this.
  4. stormingkiwi

    stormingkiwi Post Master General

    Messages:
    3,266
    Likes Received:
    1,355
    Damn

    You could do an auto-scout which went metal point by metal point after release.

Share This Page