From the core Boa
Code: Select all
escort_roles = (
{ "role" = "escort"; min = 1; max = 3; },
{ "role" = "escort-medium"; min = -2; max = 2; },
{ "role" = "escort-heavy"; min = -3; max = 1; },
{ "role" = ""; min = 0; max = 2; },
);
Moderators: winston, another_commander
Code: Select all
escort_roles = (
{ "role" = "escort"; min = 1; max = 3; },
{ "role" = "escort-medium"; min = -2; max = 2; },
{ "role" = "escort-heavy"; min = -3; max = 1; },
{ "role" = ""; min = 0; max = 2; },
);
Yes - definitely needs "role" rather than "roles" in the array, and the outer ()s on it. Once that's fixed, go back toSmivs wrote:'roles' (plural) is correct, although it should be 'role' in the array.
From the core BoaMight be worth a look at the brackets - I think the missing '(' and ')' might be playing a part here.Code: Select all
escort_roles = ( { "role" = "escort"; min = 1; max = 3; }, { "role" = "escort-medium"; min = -2; max = 2; }, { "role" = "escort-heavy"; min = -3; max = 1; }, { "role" = ""; min = 0; max = 2; }, );
min = 16
, too - or you may find your code only works reliably in Anarchy systems.Code: Select all
"dock_anaconda" = {
like_ship = "oolite_template_anaconda";
escort_roles = (
{role = ""; min = 16; max = 16;}
);
roles = "dockonly";
};
"dock_griff_boa_MK2_alt-NPC" = {
like_ship = "griff_boa_MK2_alt-NPC";
escort_roles = (
{role = ""; min = 16; max = 16;}
);
roles = "dockonly";
is_external_dependency = yes;
};
You might be missing a comma. I think perhapsphkb wrote:Code: Select all
"dock_anaconda" = { like_ship = "oolite_template_anaconda"; escort_roles = ( {role = ""; min = 16; max = 16;} ); roles = "dockonly"; };
Code: Select all
{role = ""; min = 16; max = 16;}
Code: Select all
{role = ""; min = 16; max = 16;},
That's amazing, phkb!A beta package is not far away...
So, a "Next ship" and "Previous ship" menu when you're viewing ship details, that sort of thing?Layne wrote:The interface where you have to back up to the screen and select each ship individually is a bit clunky.
The ability to look at the dock list of other stations is purely a debug/testing function. It saves you having to fly to the station to view it. I doubt this feature will be in the official release.Layne wrote:Listing the arrivals/departures for Rock Hermits seems a bit out-of-place, given those would seem to be places pilots would go to /avoid/ scrutiny by GalCop. If you want to include them, I'd make it only readable when you are actually docked at that particular Rock Hermit, and not remotely from the main station.
Again, this is visible only for the beta period. It will be hidden in the official release.Layne wrote:Listing the formal in-game roles for each ship in the entry also seems out of character.
It should show images for all ships. Can you do a "Write details to log" and send me the result?Layne wrote:I noticed the display for a worker's commuter in a communist system didn't show a graphic of the ship
Just so, just so. That would be helpful for ease of use.phkb wrote:So, a "Next ship" and "Previous ship" menu when you're viewing ship details, that sort of thing?
The log for the commuter has been sent as a private note.21:51:31.554 [script.javaScript.exception.unexpectedType]: ***** JavaScript exception (StationDockControl 0.1.0): TypeError: shipKeys is null
21:51:31.554 [script.javaScript.exception.unexpectedType]: ../AddOns/StationDockControl.oxp/Scripts/stationdockcontrol.js, line 317.
21:51:35.607 [script.javaScript.exception.unexpectedType]: ***** JavaScript exception (StationDockControl 0.1.0): TypeError: this._shipPlist is null
21:51:35.608 [script.javaScript.exception.unexpectedType]: ../AddOns/StationDockControl.oxp/Scripts/stationdockcontrol.js, line 1836.
OK, not sure what happened there. shipKeys should have been returned for the standard ship roles. Oh well, I've added code to cater for that scenario and if it happens again a message will appear in the log. Because this error would cause large parts of the code to fail, I've uploaded a new version with the fix, version 0.2.0. That version also happens to have the "Next ship"/"Previous ship" functions as well.Layne wrote:And a couple of error message that I noted in the log when when I was reviewing:21:51:31.554 [script.javaScript.exception.unexpectedType]: ***** JavaScript exception (StationDockControl 0.1.0): TypeError: shipKeys is null
21:51:31.554 [script.javaScript.exception.unexpectedType]: ../AddOns/StationDockControl.oxp/Scripts/stationdockcontrol.js, line 317.
21:51:35.607 [script.javaScript.exception.unexpectedType]: ***** JavaScript exception (StationDockControl 0.1.0): TypeError: this._shipPlist is null
21:51:35.608 [script.javaScript.exception.unexpectedType]: ../AddOns/StationDockControl.oxp/Scripts/stationdockcontrol.js, line 1836.
Because the Red Menace lurks just out of sight of peaceful citizens!phkb wrote:Still not sure why the commies ships aren't showing up.
Layne wrote:Because the Red Menace lurks just out of sight of peaceful citizens!
Code: Select all
// set up the interface screen, if required
var p = player.ship;
if(p && p.isValid) {
if (p.dockedStation.hasNPCTraffic && this.$checkStationRoleForView(p.dockedStation)) {
this._selectedStation = p.dockedStation;
this.$initInterface(p.dockedStation);
}
}
(payer.ship.docked)
.
Code: Select all
// set up the interface screen, if required
var p = player.ship;
if (p.docked) {
if (p.dockedStation.hasNPCTraffic && this.$checkStationRoleForView(p.dockedStation)) {
this._selectedStation = p.dockedStation;
this.$initInterface(p.dockedStation);
}
}