Tinkerer's Workshop - OXP tweaking for fun and profit!

Discussion and information relevant to creating special missions, new ships, skins etc.

Moderators: winston, another_commander

User avatar
Reval
---- E L I T E ----
---- E L I T E ----
Posts: 424
Joined: Thu Oct 29, 2020 3:14 am
Location: At home in the Xexedi Cluster, driving an FE Asp II, Laenina's Flux.

Re: Tinkerer's Workshop - OXP tweaking for fun and profit!

Post by Reval »

Interesting! (never heard of that one) ;)

I like to standardize on the Lave Metre (Lm) - I wish Oolite did!
Dor 'call me Grocer' Reval (a Xexedian Laver) was always considered a little backward.
Sibling of the Galactic Guild of Elite Traders.
User avatar
Cholmondely
Archivist
Archivist
Posts: 5785
Joined: Tue Jul 07, 2020 11:00 am
Location: The Delightful Domains of His Most Britannic Majesty (industrial? agricultural? mainly anything?)
Contact:

Re: Tinkerer's Workshop - OXP tweaking for fun and profit!

Post 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!!! :twisted:
Comments wanted:
Missing OXPs? What do you think is missing?
Lore: The economics of ship building How many built for Aronar?
Lore: The Space Traders Flight Training Manual: Cowell & MgRath Do you agree with Redspear?
User avatar
Reval
---- E L I T E ----
---- E L I T E ----
Posts: 424
Joined: Thu Oct 29, 2020 3:14 am
Location: At home in the Xexedi Cluster, driving an FE Asp II, Laenina's Flux.

Re: Tinkerer's Workshop - OXP tweaking for fun and profit!

Post 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.
Dor 'call me Grocer' Reval (a Xexedian Laver) was always considered a little backward.
Sibling of the Galactic Guild of Elite Traders.
User avatar
Reval
---- E L I T E ----
---- E L I T E ----
Posts: 424
Joined: Thu Oct 29, 2020 3:14 am
Location: At home in the Xexedi Cluster, driving an FE Asp II, Laenina's Flux.

Re: Tinkerer's Workshop - OXP tweaking for fun and profit!

Post 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. :)
Dor 'call me Grocer' Reval (a Xexedian Laver) was always considered a little backward.
Sibling of the Galactic Guild of Elite Traders.
User avatar
Cholmondely
Archivist
Archivist
Posts: 5785
Joined: Tue Jul 07, 2020 11:00 am
Location: The Delightful Domains of His Most Britannic Majesty (industrial? agricultural? mainly anything?)
Contact:

Re: Tinkerer's Workshop - OXP tweaking for fun and profit!

Post 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?
Comments wanted:
Missing OXPs? What do you think is missing?
Lore: The economics of ship building How many built for Aronar?
Lore: The Space Traders Flight Training Manual: Cowell & MgRath Do you agree with Redspear?
User avatar
Reval
---- E L I T E ----
---- E L I T E ----
Posts: 424
Joined: Thu Oct 29, 2020 3:14 am
Location: At home in the Xexedi Cluster, driving an FE Asp II, Laenina's Flux.

Re: Tinkerer's Workshop - OXP tweaking for fun and profit!

Post 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.
Dor 'call me Grocer' Reval (a Xexedian Laver) was always considered a little backward.
Sibling of the Galactic Guild of Elite Traders.
User avatar
phkb
Impressively Grand Sub-Admiral
Impressively Grand Sub-Admiral
Posts: 4984
Joined: Tue Jan 21, 2014 10:37 pm
Location: Writing more OXPs, because the world needs more OXPs.

Re: Tinkerer's Workshop - OXP tweaking for fun and profit!

Post 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 [EliteWiki] 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.
User avatar
Reval
---- E L I T E ----
---- E L I T E ----
Posts: 424
Joined: Thu Oct 29, 2020 3:14 am
Location: At home in the Xexedi Cluster, driving an FE Asp II, Laenina's Flux.

Re: Tinkerer's Workshop - OXP tweaking for fun and profit!

Post 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 :)
Dor 'call me Grocer' Reval (a Xexedian Laver) was always considered a little backward.
Sibling of the Galactic Guild of Elite Traders.
User avatar
Cholmondely
Archivist
Archivist
Posts: 5785
Joined: Tue Jul 07, 2020 11:00 am
Location: The Delightful Domains of His Most Britannic Majesty (industrial? agricultural? mainly anything?)
Contact:

Re: Tinkerer's Workshop - OXP tweaking for fun and profit!

Post by Cholmondely »

Reval wrote: Thu Apr 24, 2025 11:59 pm
I'm unable to use ... Torus drive (at all).
Synchronised Torus OXP
Comments wanted:
Missing OXPs? What do you think is missing?
Lore: The economics of ship building How many built for Aronar?
Lore: The Space Traders Flight Training Manual: Cowell & MgRath Do you agree with Redspear?
User avatar
Reval
---- E L I T E ----
---- E L I T E ----
Posts: 424
Joined: Thu Oct 29, 2020 3:14 am
Location: At home in the Xexedi Cluster, driving an FE Asp II, Laenina's Flux.

Re: Tinkerer's Workshop - OXP tweaking for fun and profit!

Post 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...
Dor 'call me Grocer' Reval (a Xexedian Laver) was always considered a little backward.
Sibling of the Galactic Guild of Elite Traders.
Post Reply