Documentation for PA?

Discussion in 'Mod Discussions' started by someonewhoisnobody, February 9, 2014.

  1. someonewhoisnobody

    someonewhoisnobody Well-Known Member

    Messages:
    657
    Likes Received:
    361
    I have seen a lot of mods out there that use what seem to be game specific function. I have searched for a while and I have not found any post that details these functions. I was wondering if there is documentation for said functions or if people just telepathically know.
  2. SXX

    SXX Post Master General

    Messages:
    6,896
    Likes Received:
    1,812
    What functions you talking about?
  3. cptconundrum

    cptconundrum Post Master General

    Messages:
    4,186
    Likes Received:
    4,900
    I don't know how up to date it is, but try this;
    https://forums.uberent.com/threads/pa-modding-reference-guides-applications-tools.48136/

    Generally, the best reference is just the ui code itself. It actually isn't that big or confusing, so jump right in!

    You can also use the coherent debugger and type "model." without the quotes into the debugger console to see a list of all attributes and functions in the model object. I always find this incredibly useful.
  4. proeleert

    proeleert Post Master General

    Messages:
    1,681
    Likes Received:
    1,656
    Just start reading the sourcecode of the js files in the game. That's how everybody does it.
    Nothing is documented.
  5. cola_colin

    cola_colin Moderator Alumni

    Messages:
    12,074
    Likes Received:
    16,221
  6. someonewhoisnobody

    someonewhoisnobody Well-Known Member

    Messages:
    657
    Likes Received:
    361
  7. cptconundrum

    cptconundrum Post Master General

    Messages:
    4,186
    Likes Received:
    4,900
    One thing you will quickly notice in the source is the heavy use of Knockout, so you will want to familiarize yourself with that. We are also here to answer questions.
  8. someonewhoisnobody

    someonewhoisnobody Well-Known Member

    Messages:
    657
    Likes Received:
    361
    Where in the dir's is the source code?
  9. cola_colin

    cola_colin Moderator Alumni

    Messages:
    12,074
    Likes Received:
    16,221
    \PA\media\ui\alpha
    someonewhoisnobody likes this.
  10. ORFJackal

    ORFJackal Active Member

    Messages:
    287
    Likes Received:
    248
  11. LavaSnake

    LavaSnake Post Master General

    Messages:
    1,620
    Likes Received:
    691
  12. ORFJackal

    ORFJackal Active Member

    Messages:
    287
    Likes Received:
    248
  13. LavaSnake

    LavaSnake Post Master General

    Messages:
    1,620
    Likes Received:
    691
    I just thought it would be helpful for new modders if you included a few commonly used or useful functions in that object and an explanation of how the data-bind attribute works. I'm still a little confused about all the options that data-bind supports.
  14. cola_colin

    cola_colin Moderator Alumni

    Messages:
    12,074
    Likes Received:
    16,221
    Knockout has a pretty good tutorial that applies for PA as well.
    cptconundrum likes this.
  15. LavaSnake

    LavaSnake Post Master General

    Messages:
    1,620
    Likes Received:
    691
    I'll take a look at that then. Thanks!
  16. proeleert

    proeleert Post Master General

    Messages:
    1,681
    Likes Received:
    1,656
  17. LavaSnake

    LavaSnake Post Master General

    Messages:
    1,620
    Likes Received:
    691

Share This Page