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

Expansion phkb's Factory Paint Jobs: Boa

Content

Warnings

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

Manifest

from Expansion Manager's OXP list from Expansion Manifest
Description This bundle adds 36 new paint jobs for the Boa. This bundle adds 36 new paint jobs for the Boa.
Identifier oolite.oxp.phkb.FactoryPaintJobs_Boa oolite.oxp.phkb.FactoryPaintJobs_Boa
Title phkb's Factory Paint Jobs: Boa phkb's Factory Paint Jobs: Boa
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/f/f5/FactoryPaintJobs_Boa_1.2.oxz n/a
License CC-BY-SA-NC 4.0 CC-BY-SA-NC 4.0
File Size n/a
Upload date 1700192290

Documentation

readme.txt

phkb's Boa Factory Paint Jobs
=============================

This pack adds 36 different textures for the standard Boa (NPC and player variants).

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 Boa.

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_boa_1
phkb_boa_10
phkb_boa_10_pirate
phkb_boa_10_player
phkb_boa_11
phkb_boa_11_pirate
phkb_boa_11_player
phkb_boa_12
phkb_boa_12_pirate
phkb_boa_12_player
phkb_boa_13
phkb_boa_13_pirate
phkb_boa_13_player
phkb_boa_14
phkb_boa_14_pirate
phkb_boa_14_player
phkb_boa_15
phkb_boa_15_pirate
phkb_boa_15_player
phkb_boa_16
phkb_boa_16_pirate
phkb_boa_16_player
phkb_boa_17
phkb_boa_17_pirate
phkb_boa_17_player
phkb_boa_18
phkb_boa_18_pirate
phkb_boa_18_player
phkb_boa_19
phkb_boa_19_pirate
phkb_boa_19_player
phkb_boa_1_pirate
phkb_boa_1_player
phkb_boa_2
phkb_boa_20
phkb_boa_20_pirate
phkb_boa_20_player
phkb_boa_21
phkb_boa_21_pirate
phkb_boa_21_player
phkb_boa_22
phkb_boa_22_pirate
phkb_boa_22_player
phkb_boa_23
phkb_boa_23_pirate
phkb_boa_23_player
phkb_boa_24
phkb_boa_24_pirate
phkb_boa_24_player
phkb_boa_25
phkb_boa_25_pirate
phkb_boa_25_player
phkb_boa_26
phkb_boa_26_pirate
phkb_boa_26_player
phkb_boa_27
phkb_boa_27_pirate
phkb_boa_27_player
phkb_boa_28
phkb_boa_28_pirate
phkb_boa_28_player
phkb_boa_29
phkb_boa_29_pirate
phkb_boa_29_player
phkb_boa_2_pirate
phkb_boa_2_player
phkb_boa_3
phkb_boa_30
phkb_boa_30_pirate
phkb_boa_30_player
phkb_boa_31
phkb_boa_31_pirate
phkb_boa_31_player
phkb_boa_32
phkb_boa_32_pirate
phkb_boa_32_player
phkb_boa_33
phkb_boa_33_pirate
phkb_boa_33_player
phkb_boa_34
phkb_boa_34_pirate
phkb_boa_34_player
phkb_boa_35
phkb_boa_35_pirate
phkb_boa_35_player
phkb_boa_36
phkb_boa_36_pirate
phkb_boa_36_player
phkb_boa_3_pirate
phkb_boa_3_player
phkb_boa_4
phkb_boa_4_pirate
phkb_boa_4_player
phkb_boa_5
phkb_boa_5_pirate
phkb_boa_5_player
phkb_boa_6
phkb_boa_6_pirate
phkb_boa_6_player
phkb_boa_7
phkb_boa_7_pirate
phkb_boa_7_player
phkb_boa_8
phkb_boa_8_pirate
phkb_boa_8_player
phkb_boa_9
phkb_boa_9_pirate
phkb_boa_9_player

Models

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

Scripts

Path
Scripts/phkb_boa_conditions.js
"use strict";
this.name = "phkb_boa_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
    // qtr 1 - style 1 (1-9)
    // qtr 2 - style 2 (10-18)
    // qtr 3 - style 3 (19-27)
    // qtr 4 - style 4 (28-36)
    // 12 weeks per qtr
    // week 1 - 1&2
    // week 2 - 3&4
    // week 3 - 5&6
    // week 4 - 7&8&9
    // repeat
    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],
        3: [28,29,30,31,32,33,34,35,36]
    }
    var week = parseInt(clock.daysComponent / 7) % 4;  // will be 0-3
    var qtr = parseInt(clock.daysComponent / 30) % 4;  // will be 0-3
    var keylist = keys[qtr];
    var avail = [];
    switch (week) {
        case 0: 
            avail.push(keylist[0]);
            avail.push(keylist[1]);
            break;
        case 1:
            avail.push(keylist[2]);
            avail.push(keylist[3]);
            break;
        case 2:
            avail.push(keylist[4]);
            avail.push(keylist[5]);
            break;
        case 3:
            avail.push(keylist[6]);
            avail.push(keylist[7]);
            avail.push(keylist[8]);
            break;
    }
    for (var i = 0; i < avail.length; i++) {
        if ((shipKey + "E").indexOf("_" + avail[i] + "E") >= 0) return true;
    }
    return false;
}