Back to Index Page generated: Apr 20, 2026, 4:52:51 AM

Expansion PlanetFall2 HOopy Casinos

Content

Warnings

  1. http://wiki.alioth.net/index.php/PlanetFall2%20HOopy%20Casinos -> 404 Not Found
  2. Low hanging fuit: Information URL exists...

Manifest

from Expansion Manager's OXP list from Expansion Manifest
Description Adds planet-based HOopy Casino landing sites for PlanetFall2. Adds planet-based HOopy Casino landing sites for PlanetFall2.
Identifier oolite.oxp.Thargoid.PlanetFall2_HOopyCasino oolite.oxp.Thargoid.PlanetFall2_HOopyCasino
Title PlanetFall2 HOopy Casinos PlanetFall2 HOopy Casinos
Category Dockables Dockables
Author Thargoid Thargoid
Version 2.5 2.5
Tags
Required Oolite Version
Maximum Oolite Version
Required Expansions
  • oolite.oxp.Thargoid.Planetfall:2.29
  • oolite.oxp.Murgh.HoOpyCasino:2.1
  • oolite.oxp.Thargoid.Planetfall:2.29
  • oolite.oxp.Murgh.HoOpyCasino:2.1
  • Optional Expansions
    Conflict Expansions
    Information URL http://wiki.alioth.net/index.php/Planetfall2_OXP n/a
    Download URL https://wiki.alioth.net/img_auth.php/6/62/PlanetFall2_HoopyCasino.oxz n/a
    License CC-BY-SA-NC 3.0 CC-BY-SA-NC 3.0
    File Size n/a
    Upload date 1776075286

    Documentation

    Planetfall hoOpy casino v2.0 ReadMe & License.txt

    PlanetFall 2.0 hOopy Casino Linking OXP by Thargoid.
    
    This is an add-on OXP for PlanetFall v2.0 or newer, which introduces hOopy casinos as a possible planet-side location, including the cup and diamond game.
    
    Note that the full hOopy casino OXP also needs to be installed for the game screens to work. Also this OXP requires PlanetFall v2.0 or newer, and is not compatible with v1.0 or the 1.09 beta versions of the OXP.
    
    --------------------------------------------------------------
    
    License:
    
    This OXP is released under the Creative Commons Attribution - Non-Commercial - Share Alike 3.0 license with the following clauses:
    
    * Whilst you are free (and encouraged) to re-use any of the scripting, models or texturing in this OXP, the usage must be distinct from that within this OXP. Unique identifiers such as (but not limited to) unique shipdata.plist entity keys, mission variables, script names (this.name), equipment identity strings (EQ_), description list arrays and entity roles must not be re-used without prior agreement. Basically if it's unique or would identify or overwrite anything in the original OXP, then you may not re-use it (for obvious compatibility reasons).
    * rebundling of this OXP within another distribution is permitted as long as it is unchanged. The following derivates however are permitted and except from the above:
    	* the conversion of files between XML and openStep.
    	* the merging of files with other files of the same type from other OXPs.
    * The license information (either as this file or merged into a larger one) must be included in the OXP.
    * Even though it is not compulsory, if you are re-using any sizable or recognisable piece of this OXP, please let me know :)
    
    AI was used in the creation of the landing site images, https://www.freepik.com/pikaso/ai-image-generator
    
    --------------------------------------------------------------
    Instructions:
    
    Unzip the file, and then move the folder "PlanetFall Link - hOopy Casino 1.0.oxp" to the AddOns directory of your Oolite installation. Then start the game up and the ships should be added. 
    
    --------------------------------------------------------------
    
    Version history:
    
    04/01/2009 - Version 1.0, full release.
    30/03/2026 - Version 2.0, Updated to work with PlanetFall2.
    31/03/2026 - Version 2.1, Updated populator to match main Hoopy Casino spawning requirements.
    31/03/2026 - Version 2.2, Fixed incorrectly named shipkeys in condition script. Added special landing image for Aronar (G1).
    02/04/2026 - Version 2.3, Added code to allow planet-base casinos to be chosen as destinations for shuttles.
    07/04/2026 - Version 2.4, Fixed issue where planet-side landing sites did not offer any games to play.
    09/04/2026 - Version 2.5, added Library Config options to control where planetside locations can be spawned.
    

    Equipment

    This expansion declares no equipment. This may be related to warnings.

    Ships

    Name
    CoachWhip hOopy Casino
    CoachWhip hOopy Casino
    CoachWhip hOopy Casino
    CoachWhip hOopy Casino

    Models

    This expansion declares no models. This may be related to warnings.

    Scripts

    Path
    Config/script.js
    "use strict";
    this.name = "PlanetFall2_HoopyCasinos";
    this.author = "phkb";
    this.copyright = "Creative Commons Attribution - Non-Commercial - Share Alike 4.0 license.";
    this.description = "Script for PF2 Hoopy Casinos";
    
    this._spawn = {
        mainPlanet: true,
        extraPlanets: true,
        moons: true
    };
    
    this._hcConfig = {
        Name: this.name,
        Display: expandMissionText("pf_hoopy_config"),
        Alias: expandMissionText("pf_hoopy_title"),
        Alive: "_bmConfig",
    	Bool: {
    		B0: { Name: "_spawn.mainPlanet", Def: true, Desc: expandMissionText("pf_hoopy_main") },
    		B1: { Name: "_spawn.extraPlanets", Def: true, Desc: expandMissionText("pf_hoopy_extra") },
    		B2: { Name: "_spawn.moons", Def: true, Desc: expandMissionText("pf_hoopy_moons") },
    		Info: expandMissionText("pf_hoopy_bool_info")
    	},
    };
    
    this.startUp = function() {
    	var pf = worldScripts.PlanetFall2;
        pf._landingImages["hoopy"] = ["hoopy_casino_1.png", "hoopy_casino_2.png", "hoopy_casino_3.png", "hoopy_casino_4.png", "hoopy_casino_5.png", "hoopy_casino_6.png"];
        pf._landingImages["hoopy_moon"] = ["hoopy_casino_moon_1.png", "hoopy_casino_moon_2.png", "hoopy_casino_moon_3.png", "hoopy_casino_moon_4.png"];
        pf._landingImages["hoopy_aronar"] = ["0_73_aronar_town.png"];
    
        var pfai = worldScripts.planetFall2_priorityAI;
        pfai._landingPriority["planetFall2_mainSurface_hoopyCasino"] = 2;
        pfai._landingPriority["planetFall2_subSurface_hoopyCasino"] = 2;
        pfai._landingPriority["planetFall2_moonSurface_hoopyCasino"] = 2;
        pfai._landingPriority["planetFall2_mainSurface_hoopyCasino_aronar"] = 2;
    
        if (missionVariables.PF2HoopyCasino) this._spawn = JSON.parse(missionVariables.PF2HoopyCasino);
    }
    
    this.startUpComplete = function() {
        // register our settings, if Lib_Config is present
        if (worldScripts.Lib_Config) {
            worldScripts.Lib_Config._registerSet(this._hcConfig);
        }
    }
    
    this.playerWillSaveGame = function() {
        missionVariables.PF2HoopyCasino = JSON.stringify(this._spawn);
    }
    Scripts/planetFall2_hoopy_conditions.js
    "use strict";
    this.name = "PlanetFall2_Hoopy_Conditions";
    this.author = "phkb";
    this.copyright = "CC-BY-SA-NC 4.0";
    this.description = "Condition script";
    
    //-------------------------------------------------------------------------------------------------------------
    // ship condition script
    this.allowSpawnShip = function(shipKey) {
    	var hp = worldScripts["hoopy_populator"];
    	var check = hp._limitCorpStates ? (system.techLevel >= hp._minTL && system.government == 7) : (system.techLevel >= hp._minTL && system.scrambledPseudoRandomNumber() > 0.55 && system.government != 4);
    	switch (shipKey) {
    		case "planetFall2_mainSurface_hoopyCasino_aronar":
    			if (galaxyNumber == 0 && system.ID == 73 && worldScripts.PlanetFall2_HoopyCasinos._spawn.mainPlanet) return true;
    			break;
    		case "planetFall2_mainSurface_hoopyCasino":
    			if (shipKey == "planetFall2_mainSurface_hoopyCasino" && galaxyNumber == 0 && system.ID == 73) return false;
    			if ((check || system.info.description.indexOf('hoopy casinos') > -1) && worldScripts.PlanetFall2_HoopyCasinos._spawn.mainPlanet) return true;
    			break;
    		case "planetFall2_subSurface_hoopyCasino":
    			if ((check || system.info.description.indexOf('hoopy casinos') > -1) && worldScripts.PlanetFall2_HoopyCasinos._spawn.extraPlanets) return true;
    			break;
    		case "planetFall2_moonSurface_hoopyCasino":
    			if ((check || system.info.description.indexOf('hoopy casinos') > -1) && worldScripts.PlanetFall2_HoopyCasinos._spawn.moons) return true;
    			break;
    	}
    	return false;
    }