Community Help - Steps to getting started making a mod?

Discussion in 'Mod Discussions' started by giggle, February 2, 2014.

  1. giggle

    giggle New Member

    Messages:
    26
    Likes Received:
    3
    Ive been looking at JSON files and the .papa files but just don't understand how to get started on making a mod.

    Can any one please list the steps necessary in creating a very simple mod, ie change a building name

    I just need one example to work from!
  2. giggle

    giggle New Member

    Messages:
    26
    Likes Received:
    3
    Found my own answer in this thread, thanks to Raevn

    "forums.uberent.com/threads/pa-modding-reference-guides-applications-tools.48136/"
    cptconundrum likes this.
  3. cptconundrum

    cptconundrum Post Master General

    Messages:
    4,186
    Likes Received:
    4,900
  4. LavaSnake

    LavaSnake Post Master General

    Messages:
    1,620
    Likes Received:
    691
    and any of us are happy to help if you have questions!
  5. giggle

    giggle New Member

    Messages:
    26
    Likes Received:
    3
    Hi i have a question then :)

    I have managed to add my own basic mod to PAMM so that it loads at 'live_game'

    At the moment the mod is just supposed to load a picture.

    I have my .css file and .js file, called Nuke.css and Nuke.js respectively.

    At load up in the debugger console, for Nuke.js, i get the following error:

    'Uncaught SyntaxError: Unexpected end of input'


    Obviously as my java knowledge is beginner i have a formatting error but have no idea what to do...

    Here is my .js

    $(function() {
    $('body').append('<div id="Nuke">Sync</div>');
    });

    and .css

    #Nuke {
    position: fixed;
    left: 50px;
    top: 200px;
    background-image: url(coui://ui/alpha/live_game/img/build_bar/units/air_factory.png);
    }

    Can any one help?
  6. LavaSnake

    LavaSnake Post Master General

    Messages:
    1,620
    Likes Received:
    691
    That code works fine for me so I guess it's an issue in the packaging or modinfo.json. I repackaged it to PAMM specs and attached it to this post. Just download it and compare it to your package, but keep in mind that this version will load at start not live_game.

    Attached Files:

Share This Page