Anarchies 2.8 now available

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

Moderators: another_commander, winston

UK_Eliter
---- E L I T E ----
---- E L I T E ----
Posts: 1121
Joined: Sat Sep 12, 2009 11:58 pm
Location: Essex (mainly industrial and occasionally anarchic)

Re: Anarchies 2.8 now available

Post by UK_Eliter »

Yes, that is what I meant. Sorry if I was not clear. I'll give the OXP a spin later, and report back.

UK_Eliter
---- E L I T E ----
---- E L I T E ----
Posts: 1121
Joined: Sat Sep 12, 2009 11:58 pm
Location: Essex (mainly industrial and occasionally anarchic)

Re: Anarchies 2.8 now available

Post by UK_Eliter »

The Burning Corolis OXP spawns a flashing, semi-transparent but otherwise fully functional corolis station, upon player launch.

Here's a screenshot.

Here's another.

The pictures were taken at the 'extra detail' graphics setting but in this context I noticed no difference between that setting and the 'shaders enabled' setting.

User avatar
gsagostinho
---- E L I T E ----
---- E L I T E ----
Posts: 570
Joined: Sun Jul 19, 2015 1:09 pm

Re: Anarchies 2.8 now available

Post by gsagostinho »

@UK_Eliter Hmm, maybe this old OXP is not compatible with the current game? I don't know, I haven't tested it in game but I will try it some time.

dybal
Deadly
Deadly
Posts: 204
Joined: Mon Feb 10, 2020 12:47 pm
Location: São Paulo, Brasil

Re: Anarchies 2.8 now available

Post by dybal »

I couldn't find a hacker's henchman in a TL9 Anarchy system (Retila, G1), so I run system.shipsWithRole("anarchies_henchman") - and it returned an empty array - no ships...

I then tried to spawn it with system.addShips("anarchies_henchman", 1), as the setUpSystem function of the Anarchies OXP does, and it returned null... no ship spawned.

I then looked at the shipdata.plist and tried the dataKey for that ship: system.addShips("[anarchies-hacker-henchman]",1) and it returned null too

I then tried to spawn the ship it's based on: system.addShips("[anarchies-hacker-viper]",1) and it returned null too

I went down another layer and tried system.addShips("[anarchies-renegade_viper]",1) and that worked:

Code: Select all

[[Ship "Renegade Viper" position: (14770.3, -16139.1, -8030.47) scanClass: CLASS_NEUTRAL status: STATUS_IN_FLIGHT]]
I could not get any of the ships based (like_ship) on anarchies-renegade_viper to spawn.

I then modified anarchies-hacker-viper definition's (original bellow) "like_ship" to "asp" and it spawned, as did its derivatives (anarchies-hacker-henchman, anarchies-renegade-viper).

Code: Select all

|   "anarchies-hacker-viper" = {
      "ai_type" = "anarchiesDefendStationAI.plist";
      "bounty" = 30;
      "energy_recharge_rate" = 5;
      "has_ecm" = 0.84999999999999998;
      "has_escape_pod" = 0.5;
      "has_fuel_injection" = 0.59999999999999998;
      "has_scoop" = 0.69999999999999996;
      "has_shield_booster" = 0.75;
      "laser_color" = "cyanColor";
      "like_ship" = "anarchies-renegade_viper";
      "max_energy" = 400;
      "missiles" = 2;
      "name" = "Hacker Viper";
      "roles" = "anarchies_hackerOutpost_defender";
   };
I tried this with minimal OXPs, just Anarchies and my Ship's OXP (Terrapin):

Code: Select all

00:47:25.073 [searchPaths.dumpAll]: Resource paths: 
    ~/GNUstep/Applications/Oolite-local/oolite.app/Resources
    ~/GNUstep/Library/ApplicationSupport/Oolite/ManagedAddOns
    AddOns
    ~/GNUstep/Library/ApplicationSupport/Oolite/ManagedAddOns/oolite.oxp.Commander_McLane.Anarchies.oxz
    AddOns/terrapin-1.0.mod.oxz
    AddOns/Basic-debug.oxp
00:47:26.538 [shipData.load.begin]: Loading ship data.
I confess I'm stumped...

User avatar
Milo
---- E L I T E ----
---- E L I T E ----
Posts: 353
Joined: Mon Sep 17, 2018 5:01 pm

Re: Anarchies 2.8 now available

Post by Milo »

anarchies_conditions.js doesn't allow them to spawn. I think it was an oversight (not considering like_ship references).

Replace this.allowSpawnShip with this:

Code: Select all

this.allowSpawnShip = function(shipKey) {
	switch (shipKey) {
		case "anarchies-renegade_viper":
		case "anarchies-hacker-viper":
		case "anarchies-renegade-viper":
		case "anarchies-hacker-henchman":
			if (system.info.government < 2) return true;
			break;
		case "anarchies-scavenger-phoenix":
			if (system.info.government === 0) return true;
			break;
		
	}
	return false;
}

dybal
Deadly
Deadly
Posts: 204
Joined: Mon Feb 10, 2020 12:47 pm
Location: São Paulo, Brasil

Re: Anarchies 2.8 now available

Post by dybal »

Milo wrote:
Thu Jul 02, 2020 5:07 am
anarchies_conditions.js doesn't allow them to spawn. I think it was an oversight (not considering like_ship references).

Replace this.allowSpawnShip with this:

Code: Select all

this.allowSpawnShip = function(shipKey) {
	switch (shipKey) {
		case "anarchies-renegade_viper":
		case "anarchies-hacker-viper":
		case "anarchies-renegade-viper":
		case "anarchies-hacker-henchman":
			if (system.info.government < 2) return true;
			break;
		case "anarchies-scavenger-phoenix":
			if (system.info.government === 0) return true;
			break;
		
	}
	return false;
}
Thanks, Milo!

I hadn't noticed the condition_script property in shipdata.plist, I thought anarchies_conditions.js would have only equipment conditions and didn't look there.

I wonder if phbk is mantaining this OXP too?

User avatar
phkb
Commodore
Commodore
Posts: 2645
Joined: Tue Jan 21, 2014 10:37 pm
Location: [p]laying [h]ard and [k]icking [b]utt somewhere in G7...

Re: Anarchies 2.8 now available

Post by phkb »

dybal wrote:
Thu Jul 02, 2020 3:51 pm
I wonder if phbk is mantaining this OXP too?
Well, I don't know about phbk, but phkb is! I seem to be maintaining a lot of OXP's at the moment...

I'll add it to my (ever-lengthening) list.

dybal
Deadly
Deadly
Posts: 204
Joined: Mon Feb 10, 2020 12:47 pm
Location: São Paulo, Brasil

Re: Anarchies 2.8 now available

Post by dybal »

Version 2.9.4 available on the Expansion Manager or here

Changes:
- fixed conditions script so ships derived from anarchies-renegade_viper could be spawned. (thanks to Milo for the fix)

UK_Eliter
---- E L I T E ----
---- E L I T E ----
Posts: 1121
Joined: Sat Sep 12, 2009 11:58 pm
Location: Essex (mainly industrial and occasionally anarchic)

Re: Anarchies 2.8 now available

Post by UK_Eliter »

Well, we gotta have some renegade vipers, surely! Nice: :) .

Post Reply