Page 1 of 1

[PC] Planetary Annihilation

Posted: Sat May 07, 2016 8:51 pm
by christian

Re: Planetary Annihilation

Posted: Sat May 07, 2016 9:10 pm
by christian
Getting Started
  1. You'll need to know HTML, CSS, and JavaScript. Here are some good places to learn them: Codecademy, W3Schools, Douglas Crockford's Lectures, JavaScript: The Good Parts, CSS Secrets.
  2. PA makes extensive use of Knockout, jQuery, and lodash JavaScript libraries. Become familiar with them.
  3. Work through the superb UI Modding tutorial by cola_colin.
  4. Exercise 1: Create a server mod that changes bot factory description, and makes it only build tanks. As seen here.

Re: [PC] Planetary Annihilation

Posted: Sun Feb 21, 2021 5:18 pm
by christian
Guard your scripts like this, as seen in the Legion Expansion's UI scripts - https://github.com/Legion-Expansion/Leg ... -expansion

Code: Select all

var legionExpansionLoaded;
if (!legionExpansionLoaded) {
  legionExpansionLoaded = true;

  try {
    // do things
  } catch (e) {
    console.error(e);
    console.error(JSON.stringify(e));
  }
}