Page 1 of 1
Time
Posted: Wed Nov 07, 2018 6:56 pm
by Hemlock
Greetings....
Just an observation and somehow some advice and/or solution.
I have always wondered why when one visits a Coriolis Station to sell and buy goods that the Ooniverse clock stays so docile. In my mind it would be much more "realistic" if offloading/selling 50 tons of stuff would take some time, and indeed, the buying/loading of 50 tons of stuff would also take some time.
As it stands, one can visit a station, sell off 50 tons of computers and pick up 50 tons of furs and be in and out in minutes. Even allowing for looking at and kicking the thrusters of assorted space craft.
My point, is there an automatic way, or an OXP, to adjust the Ooniverse Clock to reflect a time in port.
I am thinking:
1 ton unload/load time = 30 minutes
10 ton unload/load time = 3 Hours - getting more efficient as more is loaded
etc......
Thanks....feel free to blast me with Mil Lasers if I deserve.
Regards
Hemlock
Re: Time
Posted: Wed Nov 07, 2018 7:45 pm
by Disembodied
A good idea - and open to all sorts of expansion. Different types of ship could have better or worse loading time modifiers: for example, the Python could have a particularly efficient cargo-hold layout, and load cargo much faster than (say) a Boa. Players could purchase upgrades such as rotating cargo racks, which speed loading and unloading. A more expensive upgrade (e.g. an internal crane) could give a bigger speed boost, at the cost of a small amount of cargo space.
Loading and unloading speeds could vary according to planetary tech level, too: low TLs could be slower, mostly done by hand, whereas high TL stations would have gravity sleds and cargo carousels.
It would be good if loading time was signalled to the player, as well as just advancing the clock. A "clunk" sound effect could signal a ship being loaded or unloaded. One clunk would be a very fast load; five clunks would be the slowest. It wouldn't slow the game to any practical degree but it would definitely make an immediately noticeable difference a player would see when visiting a low-tech system, or changing to a different type of ship.
Re: Time
Posted: Wed Nov 07, 2018 8:16 pm
by Rustem
I want little time for repair, upgrade an equipment in the Behemoth and Navy Station. The player pay more credits and should be little time.
If the torpedo will be installed one day during the battle in the war zone, then this battle will end without me:)
Suggestion a new station feature is adjusted time for install, upgrade and repair the ship equipments.
Re: Time
Posted: Wed Nov 07, 2018 8:31 pm
by Disembodied
Yes, a nice idea … players could pay/bribe the station for faster loading!
Re: Time
Posted: Wed Nov 07, 2018 9:37 pm
by phkb
Here's a sample (untested!) script you can play with that adds time whenever cargo is bought and sold, factored so that efficiency improved with more cargo bought/sold:
Code: Select all
"use strict";
this.name = "Cargo_Handling_Time";
this.playerBoughtCargo = this.playerSoldCargo = function (commodity, units, price) {
// only add time for t commodities
if (system.mainStation.market[commodity].quantity_unit === "0") {
clock.addSeconds((units * 1800) * ((units * 0.6) / units));
}
}
To use this, create a folder in your AddOns folder called "Cargo_Handling.oxp", create a subfolder in this called "Config", and save the script in that folder with the name "script.js".
[Edited to fix bug in sample script]
Re: Time
Posted: Thu Nov 08, 2018 1:33 pm
by Hemlock
Thanks phkb....
It didn't seem to work though....did as you instructed...used Notepad++
Save file to large to append.....
H
Re: Time
Posted: Thu Nov 08, 2018 10:07 pm
by phkb
Sorry, there was a missing bracket. The save further confusion, though, I've put together a small OXP with the working code:
Cargo_Handling.oxp.zip. Just unzip the OXP folder into your AddOns folder and you should be good to go.
Re: Time
Posted: Fri Nov 09, 2018 10:01 am
by spara
Just a quick comment here. If someone takes this further, it should probably work so that some sort of transaction key needs to be pressed for things to actually happen. You would kind of create a list of actions and then execute it.
Re: Time
Posted: Fri Nov 09, 2018 1:29 pm
by Hemlock
phkb wrote: ↑Thu Nov 08, 2018 10:07 pm
Sorry, there was a missing bracket. The save further confusion, though, I've put together a small OXP with the working code:
Cargo_Handling.oxp.zip. Just unzip the OXP folder into your AddOns folder and you should be good to go.
Perfect! Works like a champ.....Thank you so much.
I suppose that anyone with the coding brain could if they desire add on to this to expand the ideas outlined above that would be good. Obviously not for everyone's Ooniverse.
Regards
Re: Time
Posted: Wed Nov 14, 2018 4:12 am
by stranger
Seems interesting and well-reasoned addition to Ooniverse!
Re: Time
Posted: Wed Aug 17, 2022 11:14 pm
by Cholmondely
phkb wrote: ↑Thu Nov 08, 2018 10:07 pm
I've put together a small OXP with the working code:
Cargo_Handling.oxp.zip. Just unzip the OXP folder into your AddOns folder and you should be good to go.
Is this a "mechanics" oxp?
Re: Time
Posted: Wed Aug 17, 2022 11:18 pm
by phkb
Cholmondely wrote: ↑Wed Aug 17, 2022 11:14 pm
Is this a "mechanics" oxp?
Yes.
Re: Time
Posted: Sat Aug 20, 2022 10:32 pm
by Cholmondely
Wiki page is now up for this cargo-handling oxp