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!
Found my own answer in this thread, thanks to Raevn "forums.uberent.com/threads/pa-modding-reference-guides-applications-tools.48136/"
There is also this thread which covers modding and javascript at a more basic level. For changing a building name, @LavaSnake already has a mod for that! https://forums.uberent.com/threads/rel-custom-unit-names-59549.56124/
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?
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.