Page 30 of 30
Re: Tinkerer's Workshop - OXP tweaking for fun and profit!
Posted: Thu Apr 24, 2025 9:13 pm
by Reval
Interesting! (never heard of that one)
I like to standardize on the Lave Metre (Lm) - I wish Oolite did!
Re: Tinkerer's Workshop - OXP tweaking for fun and profit!
Posted: Thu Apr 24, 2025 9:26 pm
by Cholmondely
Reval wrote: ↑Thu Apr 24, 2025 9:13 pm
Interesting! (never heard of that one)
Oolite enables the Cavezzo of
La Serenissima before Napoleon laid waste to it.
Reval wrote: ↑Thu Apr 24, 2025 9:13 pm
I like to standardize on the Lave Metre (Lm) - I wish Oolite did!
No way! Metric degeneracy!! Fight it to the bitter end!!!

Re: Tinkerer's Workshop - OXP tweaking for fun and profit!
Posted: Thu Apr 24, 2025 9:48 pm
by Reval
All right - the Lave Yard, then, and the Lave Mile - just as long as it is standardized (preferably to Lave, since that's the lovely planet where we all start). At least we can't quibble about the Lave Hour, Lave Minute, and Lave Second - they are dependent on the planet's rotation etc.
Re: Tinkerer's Workshop - OXP tweaking for fun and profit!
Posted: Thu Apr 24, 2025 10:16 pm
by Reval
ooh I just figured it out and it all seems to fall into place... I put this inside a timer:
Code: Select all
this.$ctLastDist = this.$ctDist;
var ps = player.ship;
// present distance to station
var spos = system.mainStation.position;
this.$ctDist = ps.position.distanceTo(spos);
// distance travelled in one second
var travelledSecond = this.$ctLastDist - this.$ctDist;
and the distance travelled in one second on the timer
matches the current ship speed as shown in the GETter HUD. Woohoo! So now, getting the
time to Station at present speed is trivial.

Re: Tinkerer's Workshop - OXP tweaking for fun and profit!
Posted: Thu Apr 24, 2025 11:19 pm
by Cholmondely
Reval wrote: ↑Thu Apr 24, 2025 10:16 pm
ooh I just figured it out and it all seems to fall into place... I put this inside a timer:
Code: Select all
this.$ctLastDist = this.$ctDist;
var ps = player.ship;
// present distance to station
var spos = system.mainStation.position;
this.$ctDist = ps.position.distanceTo(spos);
// distance travelled in one second
var travelledSecond = this.$ctLastDist - this.$ctDist;
and the distance travelled in one second on the timer
matches the current ship speed as shown in the GETter HUD. Woohoo! So now, getting the
time to Station at present speed is trivial.
Are you trying to replicate the
Updating TSC oxp?
Re: Tinkerer's Workshop - OXP tweaking for fun and profit!
Posted: Thu Apr 24, 2025 11:59 pm
by Reval
Not especially (I haven't tried that OXP)... I created two Convoy OXPs (one of Cob IIIs and one of Python IIs, where the convoy pays the leader 10% of their trade earnings, in return for 'protection' and basic wages), and it can be quite tedious shepherding these groups (top speeds of 350) to the Main Station from Witchpoint. I'm unable to use injectors (much) or Torus drive (at all). So I like to have an indication of how many minutes remain until we make station dock, at present speed. Now it all works nicely and I'll doubtless be uploading to the Wiki fairly soon.
Re: Tinkerer's Workshop - OXP tweaking for fun and profit!
Posted: Fri Apr 25, 2025 12:44 am
by phkb
Reval wrote: ↑Thu Apr 24, 2025 11:59 pm
So I like to have an indication of how many minutes remain until we make station dock, at present speed.
The
Navigation MFD has that information already. If you're targeting the main station on your space compass, and you're facing in that direction, it will give you the estimated travel time.
Re: Tinkerer's Workshop - OXP tweaking for fun and profit!
Posted: Fri Apr 25, 2025 1:04 am
by Reval
Useful! - I didn't know that. But anyway, now I've worked it out on my own and it gave me plenty of good practice familiarizing myself with methods I didn't know about in the J-script Reference

Re: Tinkerer's Workshop - OXP tweaking for fun and profit!
Posted: Fri Apr 25, 2025 5:50 am
by Cholmondely
Reval wrote: ↑Thu Apr 24, 2025 11:59 pm
I'm unable to use ... Torus drive (at all).
Synchronised Torus OXP
Re: Tinkerer's Workshop - OXP tweaking for fun and profit!
Posted: Fri Apr 25, 2025 1:42 pm
by Reval
hmm that looks promising.... If only there were a way to get all of the convoy ships in my array to use their Torus drives when I want them to! - but I'm not sure if non-player NPC ships even have the ability to use the T-drive. I don't know how to designate
myself as player 'official convoy leader' of the group I have spawned...
Edit: I just discovered that you can form a group with any ship as 'leader':
Code: Select all
this.$ctShips = system.addShips("ct_convoy", this.$ctNumCompanion,[0,0,0]);
var ships = this.$ctShips;
// make each Companion a member of a Group
this.$ctGroup = new ShipGroup("COBRA Convoy",player.ship);
for(var x=0; x<ships.length; x++) {
this.$ctGroup.addShip(ships[x]);
}
I'm not sure what ultimate use it could have in the context of my OXP, but I did it anyway just to see if any behaviour changes and whether any glitches are introduced (JS Reference Wiki says there might be problems if you set your own ship as group leader, although I haven't noticed any yet).
Also, setting the convoy ship-type's max_speed in the shipdata.plist allows them to keep up if the player engages injectors or has Overdrive installed...