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

DGill
---- E L I T E ----
---- E L I T E ----
Posts: 296
Joined: Thu Jan 01, 2009 9:45 am

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

Post by DGill »

Redspear wrote: Sat Jan 13, 2024 6:11 pm
DGill wrote: Sat Jan 13, 2024 4:30 pm
but would like to move the model to the space on the right and shrink it down
Total cheat/workaround idea here as I don't know how to do what you're asking exactly the way you're describing it but...

Imagine your image as part of a larger canvas with an alpha channel providing a transparent background.
The shield/medal/whatever placed on the far right of the image, vertically centred.

Result I'd have thought would be that the image is positioned where you want while the alpha channel avoids interfering with other overlays/image placements.

Alas the image is a rotating 3D object defined in the shipdata.plist and not a .png image - I wish it was an image but oolite seems only to allow one overlay to be specified so I thought I might be able to fudge using a 3d object.

I tried looking at the library.pad code for placing multiple image.png but the script is too advanced for me to comprehend.
DGill
---- E L I T E ----
---- E L I T E ----
Posts: 296
Joined: Thu Jan 01, 2009 9:45 am

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

Post by DGill »

Thanks Redspear, penny finally dropped and issue is now sorted.
User avatar
Redspear
---- E L I T E ----
---- E L I T E ----
Posts: 2774
Joined: Thu Jun 20, 2013 10:22 pm
Location: On the moon Thought, orbiting the planet Ignorance, looking through a telescope with the lens cap on

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

Post by Redspear »

DGill wrote: Sun Jan 14, 2024 10:33 am
Thanks Redspear, penny finally dropped and issue is now sorted.
Glad to have helped (...if indeed I did).
DGill
---- E L I T E ----
---- E L I T E ----
Posts: 296
Joined: Thu Jan 01, 2009 9:45 am

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

Post by DGill »

If dealEnergyDamageWithinDesiredRange is deprecated, what is the correct replacement command?

log file gives:

10:48:53.166 [oxp-standards.deprecated]: dealEnergyDamageWithinDesiredRange is deprecated for <ShipEntity 0x6f781380>{"Splinter" position: (65815, 2.3495e+006, 1.31934e+006)
User avatar
Cholmondely
Archivist
Archivist
Posts: 5779
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 »

DGill wrote: Sat Jan 27, 2024 1:41 pm
If dealEnergyDamageWithinDesiredRange is deprecated, what is the correct replacement command?

log file gives:

10:48:53.166 [oxp-standards.deprecated]: dealEnergyDamageWithinDesiredRange is deprecated for <ShipEntity 0x6f781380>{"Splinter" position: (65815, 2.3495e+006, 1.31934e+006)
From our wiki:

Missile explosions

The AI command dealEnergyDamageWithinDesiredRange is obsolete as it has bugs especially apparent at low frame rates. The JS method dealEnergyDamage is recommended.
And there are a number of mentions of "dealEnergyDamageWithinDesiredRange" on this BB
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?
DGill
---- E L I T E ----
---- E L I T E ----
Posts: 296
Joined: Thu Jan 01, 2009 9:45 am

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

Post by DGill »

Thanks Cholmondely, I'll do a bit of searching and see what I can find.
User avatar
Reval
---- E L I T E ----
---- E L I T E ----
Posts: 417
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 »

I was wondering if there was a procedure in JS and/or .plist to get an escort of x number of fighters for a player ship...
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: 4980
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: Tue Apr 15, 2025 4:58 pm
I was wondering if there was a procedure in JS and/or .plist to get an escort of x number of fighters for a player ship...
The [EliteWiki] UPS Courier mod has an equipment item you can purchase, called "Private Escort", which hires an escort crew of small fighters for 10 days. The mod has scripts and AI for the escort ships. Might be worth a look.
User avatar
Reval
---- E L I T E ----
---- E L I T E ----
Posts: 417
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 »

Wonderful! Thanks for the heads up - I'll download right away :)
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: 417
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 »

Is the witchpoint beacon/buoy an entity and, if so, under what heading do I find it in the Javascript reference? - I merely want its position so I can spawn some ships there (instead of around the player.ship, where collisions tend to happen).
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: 5779
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: Fri Apr 18, 2025 4:14 pm
Is the witchpoint beacon/buoy an entity and, if so, under what heading do I find it in the Javascript reference? - I merely want its position so I can spawn some ships there (instead of around the player.ship, where collisions tend to happen).
My understanding is that it is much more than an entity - it is the 0,0,0 frame of reference for the position of everything in the entire solar system (and hence the difficulties when trying to nail things down for other orbiting planets (which go around the sun which presumably"goes around" the planet which has the witchpoint stuck off on the side somewhere!). Much easier when nothing moves!

And hence the issues with Commander Cheyd's clever "Pirate Ambushes oxp" where the beacon is hijacked and moved to a more pirate-infested locale!
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: 417
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 »

Wow. I had no idea.... most interesting and enlightening! - so the position vector-wise will be [0,0,0].

Thanks for that (as thanks for so much else!)
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: 4980
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: Fri Apr 18, 2025 4:14 pm
I merely want its position so I can spawn some ships there (instead of around the player.ship, where collisions tend to happen).
If you spawn your ships without a position, the witchpoint will be assumed. eg

Code: Select all

	system.addShips("my_shiprole", 3);
That would spawn 3 ships that have the role "my_shiprole" at the witchpoint, somewhere around the beacon. Basically, as if the ship jumped in from another system.
Post Reply