Uber testing using the Factions OXP (updated 22/07/2011)

Discussion and information relevant to creating special missions, new ships, skins etc.

Moderators: winston, another_commander

Post Reply
m4r35n357
---- E L I T E ----
---- E L I T E ----
Posts: 296
Joined: Wed Jan 19, 2011 4:00 pm

Uber testing using the Factions OXP (updated 22/07/2011)

Post by m4r35n357 »

OK, here's an outline of how to modify the Factions OXP to set up arbitrary battles . . . these instructions are for two "sides" with one ship type per side. You need to make one change to the world script (Config/script.js) and add a new ship data file (Config/shipdata.plist). The ship script and AI should NOT be touched.

For the world script, just make this change.

Code: Select all

this.$uberTest = true;
OK, what you should now have (when you jump into a new system) is a battle between the commies and dictators near the witchspace at all systems. So now we need to change the ships . . . .

So, make a shipdata.plist like this, and copy it over the existing one (make a copy first!):

Code: Select all

{
   "factions-ship1" = {
      "like_ship" = "asp";
      "roles" = "factions-faction1";
      "scan_class" = "CLASS_NEUTRAL";
      "conditions" = ();
   };

   "factions-ship2" = {
      "like_ship" = "adder";
      "roles" = "factions-faction2";
      "scan_class" = "CLASS_NEUTRAL";
      "conditions" = ();
   };
}
with the proper ship names in the "like_ship" lines, and replace the plist in the OXP.

OK that's the basics, any questions reply to this post . . .
Post Reply