Link for SothisTC.oxp (2013 version)
spara wrote: ↑Thu Apr 22, 2021 6:33 amHere's a new link to the same old file (SothisTC_1.0.3_2013-05-16.zip): https://app.box.com/s/q98qf9z2kxh0gadr2k3m.
Moderators: winston, another_commander
Link for SothisTC.oxp (2013 version)
spara wrote: ↑Thu Apr 22, 2021 6:33 amHere's a new link to the same old file (SothisTC_1.0.3_2013-05-16.zip): https://app.box.com/s/q98qf9z2kxh0gadr2k3m.
This looks like an issue with New Cargoes. Tested with Kiota stations and the behavior is the same. Most likely the Speciality Cargo screen is set up on docking and it disappears over save. Any idea, cim?andrax_iON wrote: ↑Thu Apr 29, 2021 3:23 amI've no issue with spawning at the TC on game load, but I lose access to 'Speciality Cargo' in the F4 screen; F3 includes an option to renew subscription to TraderNet, F5 confirms current access & if I launch / re-dock, the welcome screen appears as expected & SpecCargo is restored to F4. Repeated a number of times, it seems consistent; nothing of note in the logs, same behaviour with or without some eye candy (HUD/Ambience) OXPs included.
it wasn't seen because I wasn't there! I was at the Main Orbital Station despite having saved at SothisTC (I think - see comments on decay, degeneration & decreptitude of aging brain cells cited above).
At a guess - since I didn't really touch New Cargoes after the secondary saving was implemented - it's setting up the F4 content on the main station early in the load process, and then the populator runs and the player gets moved and it doesn't re-set the F4 content at that point. Probably just needs some bits moving to a different event handler - some things in startUp should be in startUpComplete - at a guess.
This is a sound idea. The positioning indeed breaks if x and y coordinates of the main station both happen to be 0. The seed could be tied to the system number and the position would have more variance across systems. And of course the code would be a lot cleaner and easier to read. We would lose the math lesson though . I'll revisit the positioning in my next content post.cim wrote: ↑Fri Apr 30, 2021 2:14 pmYou could get similar results by changing location to PLANET_ORBIT and setting a static location seed, rather than using coordinates. Marginally more efficient, doesn't break if the main station happens to be exactly in front of or behind the planet, and shortens the OXP code a bit.
Oh noes!
Code: Select all
this.$addSothis = function() { //add sothis to corporate states
//Ask spawn permission from Station Validator oxp
if (worldScripts.station_validator && (worldScripts.station_validator.$deaths("sothis").length !== 0))
return;
if (system.government == 7 && system.techLevel > 7 && system.mainStation) {
system.setPopulator("sothis_tc", {
callback: function(pos) {
system.addShips("sothis", 1, pos, 0);
}.bind(this),
location: "PLANET_ORBIT",
locationSeed: (256*galaxyNumber)+(1+system.ID),
deterministic: true
})
}
}
Code: Select all
market_capacity = 63;
market_definition = (
{
"type" = "class";
"name" = "oolite-business";
"price_multiplier" = 1.2;
"price_randomiser" = 0.3;
"quantity_multiplier" = 0.7;
"quantity_randomiser" = 0.4;
},
{
"type" = "default";
"capacity" = 0;
}
);
market_monitored = yes;
Code: Select all
!!NOTE: No data for system found! Unable to assess docks. Resetting data entry for system.
> PS.awardEquipment("EQ_FUEL_INJECTION")
PS.awardEquipment("EQ_ADVANCED_COMPASS")
true
!!ERROR: Station is null (OXP removed?): Removing The Gazelle and the Albatross -- Coriolis Station (0)
Code: Select all
> PS.fuel = 7
7
!!ERROR: Station is null (OXP removed?): Removing Daimon VII -- Coriolis Station (0)
Code: Select all
17:30:12.399 [shipData.load.begin]: Loading ship data.
17:30:12.442 [plist.parse.failed]: Failed to parse /Users/accountname/Library/Application Support/Oolite/AddOns/SothisTC_(inside brackets)1.0.3.oxp/Config/shipdata-overrides.plist as a property list.
Unexpected character { at line 1
Code: Select all
18:14:40.604 [dataCache.rebuild.explicitFlush]: Cache explicitly flushed with shift key. Rebuilding from scratch.
18:14:40.606 [searchPaths.dumpAll]: Resource paths:
/var/folders/6s/ysb64pns7r3472gl73j4zsnc0000gn/T/AppTranslocation/26AC26C4-3005-4FE3-B06E-179E2D2C6C7C/d/Oolite 1.9TR.app/Contents/Resources
~/Library/Application Support/Oolite/Managed AddOns
~/Library/Application Support/Oolite/AddOns
~/Library/Application Support/Oolite/Managed AddOns/oolite.oxp.spara.market_observer.oxz
~/Library/Application Support/Oolite/Managed AddOns/FPO_Zaonce.oxz
~/Library/Application Support/Oolite/Managed AddOns/oolite.oxp.cim.new-cargoes.oxz
~/Library/Application Support/Oolite/Managed AddOns/oolite.oxp.Commander_McLane.Randomshipnames.oxz
~/Library/Application Support/Oolite/Managed AddOns/oolite.oxp.phkb.StationDockControl.oxz
~/Library/Application Support/Oolite/AddOns/SothisTC_1.0.3 lesson 3.oxp
~/Library/Application Support/Oolite/AddOns/oolite.oxp.spara.market_inquirer.oxp
~/Library/Application Support/Oolite/AddOns/Debug.oxp
~/Library/Application Support/Oolite/AddOns/Sothis (2017).oxp
18:14:40.648 [shipData.load.begin]: Loading ship data.
18:14:40.671 [plist.parse.failed]: Failed to parse /Users/accountname/Library/Application Support/Oolite/AddOns/SothisTC_1.0.3 lesson 3.oxp/Config/shipdata-overrides.plist as a property list.
Unexpected character { at line 1
18:14:40.673 [oxp-standards.deprecated]: Old style sub-entity declarations are deprecated in sothis_station
18:14:40.673 [oxp-standards.deprecated]: Old style sub-entity declarations are deprecated in sothis_station
18:14:40.673 [oxp-standards.deprecated]: Old style sub-entity declarations are deprecated in kw_buoy
18:14:40.673 [oxp-standards.deprecated]: Old style sub-entity declarations are deprecated in kw_buoy
18:14:40.673 [oxp-standards.deprecated]: Old style sub-entity declarations are deprecated in kw_buoy
18:14:41.022 [oxp-standards.deprecated]: The conditions key is deprecated for equipment TraderNet Monthly Subscription (Renewal)
18:14:41.719 [debugSupport.load.success]: Debug Bundle loaded successfully.
18:14:41.734 [startup.complete]: ========== Loading complete in 1.48 seconds. ==========
18:15:02.232 [shipData.load.begin]: Loading ship data.
18:15:02.454 [oxp-standards.deprecated]: The conditions key is deprecated for equipment TraderNet Monthly Subscription (Renewal)
18:15:02.928 [oxp-standards.deprecated]: Script /Users/accountname/Library/Application Support/Oolite/Managed AddOns/oolite.oxp.cim.new-cargoes.oxz/Scripts/cargotypeextension.js does not "use strict";
18:15:02.938 [oxp-standards.deprecated]: Script /Users/accountname/Library/Application Support/Oolite/Managed AddOns/oolite.oxp.cim.new-cargoes.oxz/Scripts/cargotypestatic.js does not "use strict";
18:15:02.949 [oxp-standards.deprecated]: Script /Users/accountname/Library/Application Support/Oolite/Managed AddOns/oolite.oxp.cim.new-cargoes.oxz/Scripts/cargotypedynamic.js does not "use strict";
18:15:02.955 [oxp-standards.deprecated]: Script /Users/accountname/Library/Application Support/Oolite/Managed AddOns/oolite.oxp.cim.new-cargoes.oxz/Scripts/cargotypetradernet.js does not "use strict";
18:15:02.963 [oxp-standards.deprecated]: Script /Users/accountname/Library/Application Support/Oolite/Managed AddOns/oolite.oxp.cim.new-cargoes.oxz/Scripts/cargotypeauctions.js does not "use strict";
18:15:02.973 [oxp-standards.deprecated]: Script /Users/accountname/Library/Application Support/Oolite/Managed AddOns/oolite.oxp.cim.new-cargoes.oxz/Scripts/cargotypescavenger.js does not "use strict";
18:15:02.979 [oxp-standards.deprecated]: Script /Users/accountname/Library/Application Support/Oolite/Managed AddOns/oolite.oxp.cim.new-cargoes.oxz/Scripts/cargotypeopencontract.js does not "use strict";
18:15:02.986 [oxp-standards.deprecated]: Script /Users/accountname/Library/Application Support/Oolite/Managed AddOns/oolite.oxp.cim.new-cargoes.oxz/Scripts/cargotypepermits.js does not "use strict";
18:15:02.993 [oxp-standards.deprecated]: Script /Users/accountname/Library/Application Support/Oolite/Managed AddOns/oolite.oxp.cim.new-cargoes.oxz/Scripts/cargotyperegional.js does not "use strict";
18:15:03.001 [oxp-standards.deprecated]: Script /Users/accountname/Library/Application Support/Oolite/Managed AddOns/oolite.oxp.cim.new-cargoes.oxz/Scripts/cargotypefetch.js does not "use strict";
18:15:03.008 [oxp-standards.deprecated]: Script /Users/accountname/Library/Application Support/Oolite/Managed AddOns/oolite.oxp.cim.new-cargoes.oxz/Scripts/cargotypedefaultmarket.js does not "use strict";
18:15:03.016 [oxp-standards.deprecated]: Script /Users/accountname/Library/Application Support/Oolite/Managed AddOns/oolite.oxp.cim.new-cargoes.oxz/Scripts/Stations/cargotypestationhermit.js does not "use strict";
18:15:03.023 [oxp-standards.deprecated]: Script /Users/accountname/Library/Application Support/Oolite/Managed AddOns/oolite.oxp.cim.new-cargoes.oxz/Scripts/Stations/cargotypestationconstore.js does not "use strict";
18:15:03.030 [oxp-standards.deprecated]: Script /Users/accountname/Library/Application Support/Oolite/Managed AddOns/oolite.oxp.cim.new-cargoes.oxz/Scripts/Stations/cargotypestationsuperhub.js does not "use strict";
18:15:03.037 [oxp-standards.deprecated]: Script /Users/accountname/Library/Application Support/Oolite/Managed AddOns/oolite.oxp.cim.new-cargoes.oxz/Scripts/Stations/cargotypestationcasino.js does not "use strict";
18:15:03.044 [oxp-standards.deprecated]: Script /Users/accountname/Library/Application Support/Oolite/Managed AddOns/oolite.oxp.cim.new-cargoes.oxz/Scripts/Stations/cargotypestationcommies.js does not "use strict";
18:15:03.051 [oxp-standards.deprecated]: Script /Users/accountname/Library/Application Support/Oolite/Managed AddOns/oolite.oxp.cim.new-cargoes.oxz/Scripts/Stations/cargotypestationgrs.js does not "use strict";
18:15:03.058 [oxp-standards.deprecated]: Script /Users/accountname/Library/Application Support/Oolite/Managed AddOns/oolite.oxp.cim.new-cargoes.oxz/Scripts/Stations/cargotypestationrrs.js does not "use strict";
18:15:03.065 [oxp-standards.deprecated]: Script /Users/accountname/Library/Application Support/Oolite/Managed AddOns/oolite.oxp.cim.new-cargoes.oxz/Scripts/Stations/cargotypestationdictators.js does not "use strict";
18:15:03.072 [oxp-standards.deprecated]: Script /Users/accountname/Library/Application Support/Oolite/Managed AddOns/oolite.oxp.cim.new-cargoes.oxz/Scripts/Stations/cargotypestationspacebar.js does not "use strict";
18:15:03.079 [oxp-standards.deprecated]: Script /Users/accountname/Library/Application Support/Oolite/Managed AddOns/oolite.oxp.cim.new-cargoes.oxz/Scripts/Stations/cargotypestationgalnavy.js does not "use strict";
18:15:03.086 [oxp-standards.deprecated]: Script /Users/accountname/Library/Application Support/Oolite/Managed AddOns/oolite.oxp.cim.new-cargoes.oxz/Scripts/Stations/cargotypestationsalvage.js does not "use strict";
18:15:03.092 [oxp-standards.deprecated]: Script /Users/accountname/Library/Application Support/Oolite/Managed AddOns/oolite.oxp.cim.new-cargoes.oxz/Scripts/Stations/cargotypestationplanetfall.js does not "use strict";
18:15:03.099 [oxp-standards.deprecated]: Script /Users/accountname/Library/Application Support/Oolite/Managed AddOns/oolite.oxp.cim.new-cargoes.oxz/Scripts/Stations/cargotypestationkiotabio.js does not "use strict";
18:15:03.109 [oxp-standards.deprecated]: Script /Users/accountname/Library/Application Support/Oolite/Managed AddOns/oolite.oxp.cim.new-cargoes.oxz/Scripts/Stations/cargotypestationkiotacomms.js does not "use strict";
18:15:03.117 [oxp-standards.deprecated]: Script /Users/accountname/Library/Application Support/Oolite/Managed AddOns/oolite.oxp.cim.new-cargoes.oxz/Scripts/Stations/cargotypestationkiotahabitat.js does not "use strict";
18:15:03.124 [oxp-standards.deprecated]: Script /Users/accountname/Library/Application Support/Oolite/Managed AddOns/oolite.oxp.cim.new-cargoes.oxz/Scripts/Stations/cargotypestationkiotamanufacturing.js does not "use strict";
18:15:03.131 [oxp-standards.deprecated]: Script /Users/accountname/Library/Application Support/Oolite/Managed AddOns/oolite.oxp.cim.new-cargoes.oxz/Scripts/Stations/cargotypestationkiotaresearch.js does not "use strict";
18:15:03.138 [oxp-standards.deprecated]: Script /Users/accountname/Library/Application Support/Oolite/Managed AddOns/oolite.oxp.cim.new-cargoes.oxz/Scripts/Stations/cargotypestationkiotasolar.js does not "use strict";
18:15:03.180 [oxp-standards.deprecated]: Script /Users/accountname/Library/Application Support/Oolite/AddOns/Sothis (2017).oxp/Config/script.js does not "use strict";
18:15:03.180 [script.load.world.listAll]: Loaded 59 world scripts:
CargoTypeExtension 1.2.3
CargoTypeExtension-Auctions 1.1.1
CargoTypeExtension-Base 1.2.3
CargoTypeExtension-DefaultMarket 1.2.3
CargoTypeExtension-Dynamic 1.2.3
CargoTypeExtension-FetchContracts 1.2.3
CargoTypeExtension-OpenContract 1.2.3
CargoTypeExtension-Permits 1.2.3
CargoTypeExtension-Regional 1.2.3
CargoTypeExtension-Scavenger 1.2.3
CargoTypeExtension-Station-Astrofactory 1.2.3
CargoTypeExtension-Station-ConStore 1.2.3
CargoTypeExtension-Station-Galnavy 1.2.3
CargoTypeExtension-Station-GRS 1.2.3
CargoTypeExtension-Station-HoopyCasino 1.2.3
CargoTypeExtension-Station-KiotaBiosphere 1.2.3
CargoTypeExtension-Station-KiotaFactory 1.2.3
CargoTypeExtension-Station-KiotaHabitat 1.2.3
CargoTypeExtension-Station-KiotaRelay 1.2.3
CargoTypeExtension-Station-KiotaResearch 1.2.3
CargoTypeExtension-Station-KiotaSolar 1.2.3
CargoTypeExtension-Station-PlanetFall 1.2.3
CargoTypeExtension-Station-RockHermit 1.2.3
CargoTypeExtension-Station-RRSWaystation 1.2.3
CargoTypeExtension-Station-SalvageGang 1.2.3
CargoTypeExtension-Station-SpaceBar 1.2.3
CargoTypeExtension-Station-SuperHub 1.2.3
CargoTypeExtension-Station-ZGF 1.2.3
CargoTypeExtension-TraderNet 1.2.3
market_inquirer 1.14.1
market_observer3 3.7
mo-traders_rating3 3.7
Oolite Equipment Control 1.90
Oolite Ship Library 1.90
oolite-cloaking-device 1.90
oolite-constrictor-hunt 1.90
oolite-contracts-cargo 1.90
oolite-contracts-helpers 1.90
oolite-contracts-parcels 1.90
oolite-contracts-passengers 1.90
oolite-libPriorityAI 1.90
oolite-nova 1.90
oolite-populator 1.90
oolite-primable-equipment-register 1.90
oolite-registership 1.90
oolite-thargoid-plans 1.90
oolite-trumbles 1.90
oolite-tutorial 1.90
randomshipnames 1.6
sothis_tc 1.0.3
sothis_tc_new_cargoes 1.0
Spawn-sothis 1.0.1
StationDockControl 1.1.24
StationDockControl_EscortLaunch 1.1.24
StationDockControl_HackChip 1.1.24
StationDockControl_Interface 1.1.24
StationDockControl_MFD 1.1.24
StationDockControl_Populator 1.1.24
StationDockControl_ShuttleLaunch 1.1.24
18:15:34.366 [shipData.load.begin]: Loading ship data.
18:15:34.578 [oxp-standards.deprecated]: The conditions key is deprecated for equipment TraderNet Monthly Subscription (Renewal)
18:15:34.819 [script.load.world.listAll]: Loaded 59 world scripts:
CargoTypeExtension 1.2.3
CargoTypeExtension-Auctions 1.1.1
CargoTypeExtension-Base 1.2.3
CargoTypeExtension-DefaultMarket 1.2.3
CargoTypeExtension-Dynamic 1.2.3
CargoTypeExtension-FetchContracts 1.2.3
CargoTypeExtension-OpenContract 1.2.3
CargoTypeExtension-Permits 1.2.3
CargoTypeExtension-Regional 1.2.3
CargoTypeExtension-Scavenger 1.2.3
CargoTypeExtension-Station-Astrofactory 1.2.3
CargoTypeExtension-Station-ConStore 1.2.3
CargoTypeExtension-Station-Galnavy 1.2.3
CargoTypeExtension-Station-GRS 1.2.3
CargoTypeExtension-Station-HoopyCasino 1.2.3
CargoTypeExtension-Station-KiotaBiosphere 1.2.3
CargoTypeExtension-Station-KiotaFactory 1.2.3
CargoTypeExtension-Station-KiotaHabitat 1.2.3
CargoTypeExtension-Station-KiotaRelay 1.2.3
CargoTypeExtension-Station-KiotaResearch 1.2.3
CargoTypeExtension-Station-KiotaSolar 1.2.3
CargoTypeExtension-Station-PlanetFall 1.2.3
CargoTypeExtension-Station-RockHermit 1.2.3
CargoTypeExtension-Station-RRSWaystation 1.2.3
CargoTypeExtension-Station-SalvageGang 1.2.3
CargoTypeExtension-Station-SpaceBar 1.2.3
CargoTypeExtension-Station-SuperHub 1.2.3
CargoTypeExtension-Station-ZGF 1.2.3
CargoTypeExtension-TraderNet 1.2.3
market_inquirer 1.14.1
market_observer3 3.7
mo-traders_rating3 3.7
Oolite Equipment Control 1.90
Oolite Ship Library 1.90
oolite-cloaking-device 1.90
oolite-constrictor-hunt 1.90
oolite-contracts-cargo 1.90
oolite-contracts-helpers 1.90
oolite-contracts-parcels 1.90
oolite-contracts-passengers 1.90
oolite-libPriorityAI 1.90
oolite-nova 1.90
oolite-populator 1.90
oolite-primable-equipment-register 1.90
oolite-registership 1.90
oolite-thargoid-plans 1.90
oolite-trumbles 1.90
oolite-tutorial 1.90
randomshipnames 1.6
sothis_tc 1.0.3
sothis_tc_new_cargoes 1.0
Spawn-sothis 1.0.1
StationDockControl 1.1.24
StationDockControl_EscortLaunch 1.1.24
StationDockControl_HackChip 1.1.24
StationDockControl_Interface 1.1.24
StationDockControl_MFD 1.1.24
StationDockControl_Populator 1.1.24
StationDockControl_ShuttleLaunch 1.1.24
18:15:35.835 [oxp-standards.deprecated]: Script /Users/accountname/Library/Application Support/Oolite/AddOns/Sothis (2017).oxp/Scripts/sothisscript.js does not "use strict";
18:15:35.996 [oxp-standards.deprecated]: system.legacy_addShipsAtPrecisely() is deprecated
18:16:55.345 [StationDockControl]: !!ERROR: Station is null (OXP removed?): Removing Gravitic Kin of the Graf III -- Coriolis Station (0)
18:20:26.454 [oxp-standards.deprecated]: system.legacy_addShipsAtPrecisely() is deprecated
New changes added, all looks just fine wrt SothisTC - the market seems to confirm the weighting on capacity & price, as a rank amateur the logic here sounds very reasonable to me.
Thank you for the badly needed laugh!
Quaternions in this context are an extension to 3d vectors, which allows one to express orientation in 3D-space. Aboutish.Cholmondely wrote: ↑Sun May 02, 2021 4:51 pmSo quaternions are the square roots of the cube roots of -1? Is that it?
Why not. Let's keep that in mind.Cholmondely wrote: ↑Sun May 02, 2021 4:51 pmWhat about the listing on the Ship's Library (at game start-up)/View Ship Specifications (on the docked F4 screen)?
This is a bit alarming, since it prevents shipdata changes from being read. Maybe a semicolon problem somewhere? Fix this and some of the problems might go away.Cholmondely wrote: ↑Sun May 02, 2021 4:51 pmCode: Select all
17:30:12.399 [shipData.load.begin]: Loading ship data. 17:30:12.442 [plist.parse.failed]: Failed to parse /Users/accountname/Library/Application Support/Oolite/AddOns/SothisTC_(inside brackets)1.0.3.oxp/Config/shipdata-overrides.plist as a property list. Unexpected character { at line 1
You mean those CargoTypeExtension-Station... entries? Those are from New Cargoes and not to be alarmed of. New Cargoes has a special script for all stations it supports. Those scripts are registered at game start even though the specific station is not installed.Cholmondely wrote: ↑Sun May 02, 2021 4:51 pmI don't know where all the Kiota stuff comes from. Its in neither AddOns or Managed AddOns, and I held the shift key down on restart for the newly tweaked SothisTC_1.0.3 lesson 3.oxp
In practice you can simplify this a bit, too, and just do "locationSeed: {some number unique to Sothis}" - as the position of any particular locationSeed relative to the three primary objects is already randomised within the Oolite core on a per-system basis, using the system random seed property from planetinfo.plist http://wiki.alioth.net/index.php/Planet ... andom_Seedspara wrote: ↑Sat May 01, 2021 2:17 pmCode: Select all
locationSeed: (256*galaxyNumber)+(1+system.ID),