[PC] Planetary Annihilation

Post Reply
User avatar
christian
Posts: 1683
Joined: Mon Feb 09, 2015 5:21 pm
Location: Houston, TX

Re: Planetary Annihilation

Post 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.
User avatar
christian
Posts: 1683
Joined: Mon Feb 09, 2015 5:21 pm
Location: Houston, TX

Re: [PC] Planetary Annihilation

Post 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));
  }
}
Post Reply