Back to Index Page generated: Nov 12, 2024, 11:02:04 PM

Expansion phkb's Factory Paint Jobs: Moray

Content

Warnings

  1. http://wiki.alioth.net/index.php/phkb's%20Factory%20Paint%20Jobs:%20Moray -> 404 Not Found
  2. Low hanging fuit: Information URL exists...

Manifest

from Expansion Manager's OXP list from Expansion Manifest
Description This bundle adds 27 new paint jobs for the Moray and 14 for the Medical Boat. This bundle adds 27 new paint jobs for the Moray and 14 for the Medical Boat.
Identifier oolite.oxp.phkb.FactoryPaintJobs_Moray oolite.oxp.phkb.FactoryPaintJobs_Moray
Title phkb's Factory Paint Jobs: Moray phkb's Factory Paint Jobs: Moray
Category Retextures Retextures
Author phkb phkb
Version 1.2 1.2
Tags
Required Oolite Version
Maximum Oolite Version
Required Expansions
Optional Expansions
Conflict Expansions
Information URL https://wiki.alioth.net/index.php/Factory_Paint_Jobs n/a
Download URL https://wiki.alioth.net/img_auth.php/3/39/FactoryPaintJobs_Moray_1.2.oxz n/a
License CC-BY-SA-NC 4.0 CC-BY-SA-NC 4.0
File Size n/a
Upload date 1700191886

Documentation

readme.txt

phkb's Moray Factory Paint Jobs
===============================

This pack adds 27 different textures for the standard Moray (Player and NPC), and 14 for the Moray Medical Boat (Player and NPC).

Licence
=======
This work is licensed under the Creative Commons Attribution-Noncommercial-Share Alike 4.0 Unported License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-sa/4.0/

Original diffuse, effects and normal maps from Griff's Moray.

Version History
===============
1.2
- Removed incorrect data key from materials.

1.1
- Switched to different version of normal and effect maps.

1.0
- Initial release.

Equipment

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

Ships

Name
phkb_moray_1
phkb_moray_10
phkb_moray_10_player
phkb_moray_11
phkb_moray_11_player
phkb_moray_12
phkb_moray_12_player
phkb_moray_13
phkb_moray_13_player
phkb_moray_14
phkb_moray_14_player
phkb_moray_15
phkb_moray_15_player
phkb_moray_16
phkb_moray_16_player
phkb_moray_17
phkb_moray_17_player
phkb_moray_18
phkb_moray_18_player
phkb_moray_19
phkb_moray_19_player
phkb_moray_1_player
phkb_moray_2
phkb_moray_20
phkb_moray_20_player
phkb_moray_21
phkb_moray_21_player
phkb_moray_22
phkb_moray_22_player
phkb_moray_23
phkb_moray_23_player
phkb_moray_24
phkb_moray_24_player
phkb_moray_25
phkb_moray_25_player
phkb_moray_26
phkb_moray_26_player
phkb_moray_27
phkb_moray_27_player
phkb_moray_2_player
phkb_moray_3
phkb_moray_3_player
phkb_moray_4
phkb_moray_4_player
phkb_moray_5
phkb_moray_5_player
phkb_moray_6
phkb_moray_6_player
phkb_moray_7
phkb_moray_7_player
phkb_moray_8
phkb_moray_8_player
phkb_moray_9
phkb_moray_9_player
phkb_moray_med_1
phkb_moray_med_10
phkb_moray_med_10_player
phkb_moray_med_11
phkb_moray_med_11_player
phkb_moray_med_12
phkb_moray_med_12_player
phkb_moray_med_13
phkb_moray_med_13_player
phkb_moray_med_14
phkb_moray_med_14_player
phkb_moray_med_1_player
phkb_moray_med_2
phkb_moray_med_2_player
phkb_moray_med_3
phkb_moray_med_3_player
phkb_moray_med_4
phkb_moray_med_4_player
phkb_moray_med_5
phkb_moray_med_5_player
phkb_moray_med_6
phkb_moray_med_6_player
phkb_moray_med_7
phkb_moray_med_7_player
phkb_moray_med_8
phkb_moray_med_8_player
phkb_moray_med_9
phkb_moray_med_9_player

Models

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

Scripts

Path
Scripts/phkb_moray_conditions.js
"use strict";
this.name = "phkb_moray_conditions_script";
this.author = "phkb";
this.copyright = "2021 phkb";
this.license = "CC BY-NC-SA 4.0";

this.allowOfferShip = function(shipKey) {
    // only offer certain styles/colours on a regular basis
    var keys = {
        0: [1,2,3,4,5,6,7,8,9],
        1: [10,11,12,13,14,15,16,17,18],
        2: [19,20,21,22,23,24,25,26,27]
    }
    var week = parseInt(clock.daysComponent / 7) % 4;  // will be 0-3
    var period = parseInt(clock.daysComponent / 30) % 3;  // will be 0-2
    var keylist = keys[period];
    var avail = [];
    switch (week) {
        case 0: 
            avail.push(keylist[1]);
            avail.push(keylist[2]);
            break;
        case 1:
            avail.push(keylist[3]);
            avail.push(keylist[4]);
            break;
        case 2:
            avail.push(keylist[5]);
            avail.push(keylist[6]);
            avail.push(keylist[7]);
            break;
        case 3:
            avail.push(keylist[8]);
            avail.push(keylist[0]);
            break;
    }
    for (var i = 0; i < avail.length; i++) {
        if ((shipKey + "E").indexOf("_" + avail[i] + "E") >= 0) return true;
    }
    return false;
}
Scripts/phkb_moraymed_conditions.js
"use strict";
this.name = "phkb_moraymed_conditions_script";
this.author = "phkb";
this.copyright = "2021 phkb";
this.license = "CC BY-NC-SA 4.0";

this.allowOfferShip = function(shipKey) {
    // only offer certain styles/colours on a regular basis
    var keys = {
        0: [1,3,5,7,9,11,13],
        1: [2,4,6,8,10,12,14],
    }
    var week = parseInt(clock.daysComponent / 7) % 4;  // will be 0-3
    var period = parseInt(clock.daysComponent / 30) % 2;  // will be 0-1
    var keylist = keys[period];
    var avail = [];
    switch (week) {
        case 0: 
            avail.push(keylist[2]);
            avail.push(keylist[6]);
            break;
        case 1:
            avail.push(keylist[5]);
            avail.push(keylist[1]);
            break;
        case 2:
            avail.push(keylist[4]);
            avail.push(keylist[0]);
            break;
        case 3:
            avail.push(keylist[3]);
            break;
    }
    for (var i = 0; i < avail.length; i++) {
        if ((shipKey + "E").indexOf("_" + avail[i] + "E") >= 0) return true;
    }
    return false;
}