Back to Index Page generated: Aug 1, 2026, 4:49:46 AM

Expansion Anarchies Facelift

Content

Manifest

from Expansion Manager's OXP list from Expansion Manifest
Description Updates the look of Hacker Stations, Salvage Stations, Sentinel stations, Vipers and Phoenixes Updates the look of Hacker Stations, Salvage Stations, Sentinel stations, Vipers and Phoenixes
Identifier oolite.oxp.phkb.Anarchies_Facelift oolite.oxp.phkb.Anarchies_Facelift
Title Anarchies Facelift Anarchies Facelift
Category Systems Systems
Author Killer Wolf, Commander McLane, Arexack Heretic, Eric Walch, spara, Norby, phkb and Griff Killer Wolf, Commander McLane, Arexack Heretic, Eric Walch, spara, Norby, phkb and Griff
Version 1.0 1.0
Tags
Required Oolite Version
Maximum Oolite Version
Required Expansions
  • oolite.oxp.Commander_McLane.Anarchies:2.10
  • oolite.oxp.Commander_McLane.Anarchies:2.10
  • Optional Expansions
    Conflict Expansions
    Information URL http://wiki.alioth.net/index.php/Anarchies_OXP n/a
    Download URL https://wiki.alioth.net/img_auth.php/f/f4/Anarchies_Facelift.oxz n/a
    License CC BY-NC-SA 3.0 CC BY-NC-SA 3.0
    File Size n/a
    Upload date 1783427035

    Relationships Diagram

    Documentation

    Also read http://wiki.alioth.net/index.php/Anarchies%20Facelift

    readme.txt

    Anarchies facelift
    ==================
    by phkb
    
    Overview
    --------
    This OXP updates the look of the Hacker Stations, Salvage Stations, Sentinel Stations, Vipers and Phoenixes.
    
    All credit to KillerWolf for his amazing uplift of the Hacker and Salvager stations.
    
    What is updated
    ---------------
    There are new textures and models for:
    - Salvage Stations
    - Hacker outposts
    There are new textures for:
    - Sentinel Stations
    - Renegade Stations
    - Renegade Vipers
    - Phoenixes
    
    Sentinel Stations
    -----------------
    According to the original Anarchies, the Sentinel stations are a GalCop initiative, and all the ships it launches will be standard GalCop Vipers. To make the link to GalCop clearer, the texture for the Sentinel Station now has a GalCop logo on the sides. If, however, you would prefer to have a Navy logo on the sides, you can change this preference in Library Config.
    
    License
    -------
    This work is licensed under the Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-sa/3.0/
    
    Version history
    ---------------
    1.0
    - Initial release.

    Equipment

    This expansion declares no equipment.

    Ships

    Name
    Renegade Station
    Sentinel Station
    Hacker Outpost MkII
    Salvage Gang MkII
    Hacker Antennae
    Hacker Dock
    Hacker Power
    Renegade Viper
    Salvager Dock
    Salvager Platform
    Salvager Elevator
    Salvager Loader
    renegade_turret
    Sentinel Dock
    Ball Turret

    Models

    This expansion declares no models.

    Scripts

    Path
    Config/script.js
    "use strict";
    this.name = "Anarchies_Facelift";
    this.author = "phkb";
    this.copyright = "2026 phkb";
    this.description = "Ship script for anarchy bounty hunters";
    this.licence = "CC BY-NC-SA 3.0";
    
    this._sentinelType = 0; // 0 = galcop, 1 = navy
    
    this._aflConfig = {
    	Name: this.name,
    	Alias: expandMissionText("afl_config_alias"),
    	Display: expandMissionText("afl_config_display"),
    	Alive: "_aflConfig",
    	Notify: "$changeSettings",
    	SInt: {
    		S0: { Name: "_sentinelType", Def: 0, Min: 0, Max: 1, Desc: expandMissionText("afl_sentineltype") },
    		Info: expandMissionText("afl_config_sint_info")
    	}
    };
    
    //----------------------------------------------------------------------------------------
    this.$changeSettings = function() {
        var sentinels = system.shipsWithRole("afl_sentinel");
        if (sentinels.length > 0) {
            for (var i = 0; i < sentinels.length; i++) {
                this.shipSpawned(sentinels[i]);
            }
        }
    }
    
    //----------------------------------------------------------------------------------------
    this.startUpComplete = function() {
        if (missionVariables.AnarchiesFacelift_SentinelType) {
            this._sentinelType = parseInt(missionVariables.AnarchiesFacelift_SentinelType);
        }
    	if (worldScripts.Lib_Config) {
    		var lib = worldScripts.Lib_Config;
    		lib._registerSet(this._aflConfig);
        }
        if (worldScripts.WireframeShipImages) {
            var wsi = worldScripts.WireframeShipImages;
            wsi._gameShips["Hacker Outpost MkII"] = "hacker_mk2";
            wsi._gameShips["Salvage Gang MkII"] = "salvage_mk2";
        }
    }
    
    //----------------------------------------------------------------------------------------
    this.playerWillSaveGame = function() {
    	if (worldScripts.Lib_Config) {
            missionVariables.AnarchiesFacelift_SentinelType = this._sentinelType;
        }
    }
    
    //----------------------------------------------------------------------------------------
    this.shipSpawned = function(ship) {
        if (ship.hasRole("afl_sentinel")) {
            if (this._sentinelType == 1) {
                ship.setMaterials({
                    "sentinel_station1.png": {
                        diffuse_map: "aflnew_sentinel_station_diffuse2.png",
                        gloss: 0.7,
                        specular_map: "aflnew_sentinel_station_specular.png",
                        specular_color: [0.1, 0.1, 0.1],
                        emission_map: "aflnew_sentinel_station_emission.png",
                        emission_modulate_color: { green: 4000, red: 4000, blue: 0 },
                        normal_map: "aflnew_sentinel_station_normal.png"
                    },
                    "sentinel_station2.png": {
                        diffuse_map: "aflnew_sentinel_station_diffuse4.png",
                        gloss: 0.7,
                        specular_map: "aflnew_sentinel_station_specular3.png",
                        specular_color: [0.1, 0.1, 0.1],
                        emission_map: "aflnew_sentinel_station_emission3.png",
                        emission_modulate_color: { green: 4000, red: 4000, blue: 0 },
                        normal_map: "aflnew_sentinel_station_normal3.png"
                    }
                });
            } else {
                ship.setMaterials({
                    "sentinel_station1.png": {
                        diffuse_map: "aflnew_sentinel_station_diffuse1.png",
                        gloss: 0.7,
                        specular_map: "aflnew_sentinel_station_specular.png",
                        specular_color: [0.1, 0.1, 0.1],
                        emission_map: "aflnew_sentinel_station_emission.png",
                        emission_modulate_color: { green: 4000, red: 4000, blue: 0 },
                        normal_map: "aflnew_sentinel_station_normal.png"
                    },
                    "sentinel_station2.png": {
                        diffuse_map: "aflnew_sentinel_station_diffuse3.png",
                        gloss: 0.7,
                        specular_map: "aflnew_sentinel_station_specular3.png",
                        specular_color: [0.1, 0.1, 0.1],
                        emission_map: "aflnew_sentinel_station_emission3.png",
                        emission_modulate_color: { green: 4000, red: 4000, blue: 0 },
                        normal_map: "aflnew_sentinel_station_normal3.png"
                    }
                });
            }
        }
    }