Back to Index Page generated: Dec 20, 2024, 7:22:09 AM

Expansion Space Crowds - Stellar Serpent

Content

Warnings

  1. License not specified
  2. Required Expansions mismatch between OXP Manifest and Expansion Manager at character position 0064 (DIGIT ZERO vs LATIN SMALL LETTER N)
  3. Information URL mismatch between OXP Manifest and Expansion Manager string length at character position 0
  4. No version in dependency reference to oolite.oxp.astrobe.spacecrowds:null
  5. Unknown key 'upload_date' at https://wiki.alioth.net/img_auth.php/d/dc/Oolite.oxp.astrobe.sc-serpents.oxz!manifest.plist

Manifest

from Expansion Manager's OXP list from Expansion Manifest
Description Adds the Stellar Serpents versus Vipers rare encounter to Space Crowds. Adds the Stellar Serpents versus Vipers rare encounter to Space Crowds.
Identifier oolite.oxp.Astrobe.sc-serpent.oxz oolite.oxp.Astrobe.sc-serpent.oxz
Title Space Crowds - Stellar Serpent Space Crowds - Stellar Serpent
Category Activities Activities
Author Astrobe Astrobe
Version 1.0 1.0
Tags
Required Oolite Version
Maximum Oolite Version
Required Expansions
  • oolite.oxp.astrobe.spacecrowds:0
  • oolite.oxp.Thargoid.StellarSerpents:1.21
  • oolite.oxp.astrobe.spacecrowds:
  • oolite.oxp.Thargoid.StellarSerpents:1.21
  • Optional Expansions
    Conflict Expansions
    Information URL n/a
    Download URL https://wiki.alioth.net/img_auth.php/d/dc/Oolite.oxp.astrobe.sc-serpents.oxz n/a
    License
    File Size n/a
    Upload date 1610873486

    Documentation

    Also read http://wiki.alioth.net/index.php/Space%20Crowds%20-%20Stellar%20Serpent

    Equipment

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

    Ships

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

    Models

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

    Scripts

    Path
    Config/script.js
    "use strict";
    this.name        = "sc-serpents"; 
    this.author      = "Astrobe"; 
    this.copyright   = "2017 Creative Commons: attribution, non-commercial, sharealike."; 
    this.description = "Adds stellar serpents encounter to Spacecrowds."; 
    this.version     = "0.0.2";
    
    this.$serpent= function(pos)
    {
        // 'this' is bound to the spacecrowds script-object here
        this.$report("Stellar serpent!");
        // The automatic despawn done by $spawnRandomRoles doesn't work well on Stellar Serpents
        // because they are made of multiple "ships". So we do it manually.
        // Serpents will therefore remain in the system, which is not too bad; plus that's a rare encounter
        system.addGroup("stellarSerpents_head", 1, pos, 5E3);
    	this.$small_police_patrol(pos);
    }
    
    this.startUp=function()
    {
    	delete this.startUp;
    	function runDeps(s)
    	{
            var ws=worldScripts[s];
    		if(ws.startUp) ws.startUp();
    		if(worldScripts[s].startUp) delete worldScripts[s].startUp;
            return ws;
    	};
    		
    	var ws=runDeps("spacecrowds");
        //ws.$flushScenarios();
    	ws.$pushRareScenario(this.$serpent);
        ws.$report("Added stellar serpent encounter");
    }