Tinkerer's Workshop - OXP tweaking for fun and profit!
Moderators: winston, another_commander
- Reval
- ---- E L I T E ----
- Posts: 402
- 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!
Hopefully this is the right thread for soliciting scripting advice (it's been a long time since I posted here).
I was wondering if there is a way to 'paginate' text on the F4 Interfaces screen. As my attempt stands at the moment, the longish text runs off the bottom of the page, and there doesn't seem to be a way to scroll it.
I was wondering if there is a way to 'paginate' text on the F4 Interfaces screen. As my attempt stands at the moment, the longish text runs off the bottom of the page, and there doesn't seem to be a way to scroll it.
Dor 'call me Grocer' Reval (a Xexedian Laver) was always considered a little backward.
- Cholmondely
- Archivist
- Posts: 5365
- 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!
Still having problems with shiplibrary.plists.
Xeptatl's Sword:
It works down to the )/* (if I put them in) and the rest then starts giving my poor old AppleMac a major attack of the galloping heeby-jeebies.
I'm also having problems with Behemoth & Griff's new ice-asteroids.
In each case, there are a zillion and one versions of the wee timorous beastie. I think that the problem is that I'm identifying the wrong ship-key (if that is the correct jargon).
STOP PRESS! Behemoth fixed!
Xeptatl's Sword:
Code: Select all
(
{
class = thargoid;
description = "The Blitznest is a Thargoid assault vessel designed to land soldier-drones in large numbers onto a planet. They are over 500m in diameter and each one can carry up to 1000 drones. Due to the fierceness of Thargoid soldier drones it is believed as few as 3000 drones could successfully establish a beach head.
The Blitznest is armed with high-power Thargoid lasers, and is a very strong ship. However, as an assault vehicle it is not very manoeuvrable, and has no 'Jump' capability.";
ship = "xs-blitznestLave";
summary = "Blitznest";
},
{
class = misc;
description = "Ferroplonium is a crystaline trans-uranic element, also known by the common name 'Heavy Iron'. It is very rare, and is thought to be made during super-nova explosions. It is normally mined from asteroids found in or near Nova systems. Because of its density a Ferroplonium crystal will normally accrete less dense matter such as rock around it, and a 'crystalloid' is a prize find for any miner. Ferroplonium is a powerful source of energy, and is highly valued. ";
ship = "xs-crystal";
summary = "Crystal";
},
{
class = misc;
description = "The GalDrivePod is a pylon-mounted Galactic Hyperdrive. Using this equipment allows you to make consecutive Galjumps. The GalDrivePod also incorporates a 'Wormhole Supressor Over-ride'. This cancels the supressors installed by GalCop in some systems to prevent spacers from jumping to one of the Lost Worlds. The Lost Worlds are isolated and un-reachable systems more than 7 light years away from any other system. They have such a low Tech Level that galactic Hyperdrives cannot be bought there, a situation that would leave a visitor stranded, un-able to leave either by Witchjumping or galactic jumping. When carrying a GalDrivePod a Commander can gal-jump to a Lost World using a regular Galactic Hyperdrive, and then leave again using the GalDrivePod. ";
ship = "xs-GalDrivePod";
summary = "Equipment";
},
{
class = "black_mamba";
description = "The ship-of-choice for this ferocious pirate fleet is the Mamba. With military-grade lasers, ECM, shield-boosters and Extra-Energy units these are formidable fighters. Painted black, they are very hard to see with the naked eye and it is this colour scheme which gave the Black Mamba fleet its name.";
ship = "xs-black-mamba";
summary = "Black Mamba";
},
{
class = "black_mamba";
description = "The Black Mambas use an 'Iron-Ass' Boa Class Cruiser as a Mothership. This ship is fully equipped with military grade lasers and shielding, and has an Extra-Energy unit and ECM. It acts as a Command and Control vessel for the fleet, and also as a repository for the fleet's 'acquisitions'. ";
ship = "xs-black-mamba-boa2";
summary = "Black Mamba Mothership";
}
)
/* Entries above all work (Black Mambas need a rejigged descriptions.plist for thir new class/value). Next three entries don't work - I've yet to try the others beneath them. Can't see what's wrong....
{
class = ship;
description = "The 'Thunder Child' is a Victoria-class heavy cruiser. At 1.5km long this is one of the largest naval vessels in service. Thunder Child is the newest and most powerful ship of her type and has truly formidable weaponry and defences, most of which are classified. ";
ship = "xs-thunderchild";
summary = "Victoria-class Heavy Cruiser";
}
{
class = "xeptatl_society";
description = "The Society have over 1000 monitor stations around the Eight Galaxies, which are, as the name suggest, surveillance and monitoring posts. They intercept Thargoid communications and monitor Thargoid activity as part of the Society's remit. They are normally situated close to the Sun and are similar to Rock Hermit bases, but have a much better range of facilities and equipment as they also act as bases for operations carried out by the Society's Agents. ";
ship = "xs-monitor-station";
summary = "Station";
},
{
class = "xeptatl_society";
description = "The Society have several interstellar stations devoted to research and development, where they study Thargoid technology and try to adapt it for use by the GalCop races. Most are quite small and many are built into asteroids and are in practice just large versions of the monitor stations. The main research station is a much more substantial structure almost 2km across and is situated in the Great Rift of Galaxy Seven. The station is of a unique 'dumbell' design and has a staff of over 5 000 who both live and work on the station. Because of the remote location workers' families also live on the station and so it has many civilian facilities such as schools, a hospital deck and shops and recreational areas. The total population can therefore be as high as 20,000.";
ship = "xs-station_pyramid";
summary = "Station";
},
{
class = "xeptatl_society";
description = "The Headquarters station is of a unique design with each of the six arms housing different administrative departments. It is thought that over 10,000 staff are based there, although most live on the planet.";
ship = "xs-headquarters";
summary = "Station";
},
{
class = "xeptatl_society";
description = "The Agents of the Xeptatl Society make extensive use of a fleet of Cobra S9 ships. These are well equipped models with Fuel Injection, ECM, Shield Boosters and Military Shield Enhancers. They will normally carry four ECM-hardened missiles and have military-grade lasers Forward and Aft. Although the ships are standard factory issue they are known to carry specialist equipment, much of which is Top Secret.
The dedication of the Society's Agents is illustrated by the fact that Society S9s are not equipped with Escape Capsules. In the event of lethal attack the Agents' duty is to either destroy the ship themselves or stay with it until it is destroyed, thus ensuring the technology does not fall into the wrong hands. ";
ship = "xs-cobra_generic";
summary = "Ship";
},
*/
I'm also having problems with Behemoth & Griff's new ice-asteroids.
In each case, there are a zillion and one versions of the wee timorous beastie. I think that the problem is that I'm identifying the wrong ship-key (if that is the correct jargon).
STOP PRESS! Behemoth fixed!
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?
•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?
Re: Tinkerer's Workshop - OXP tweaking for fun and profit!
Perhaps the .plist's should be called .txt's ( to me they are just that txt files with contend/text/var/code ) so the mac' s do not get confused anymore...
excellent bug plisting there tho !
excellent bug plisting there tho !
- Reval
- ---- E L I T E ----
- Posts: 402
- 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!
I've just been scouring the JS wiki to find a way of retrieving the current station's name, to no avail. As I'm running with Stations for Extra Planets, there are always several orbitals and outposts insystem, but so far I've only found system.stations, an array that I've used in several places to list them.
I'm probably missing something really obvious here, but station.name brought no joy.
I'm probably missing something really obvious here, but station.name brought no joy.
Dor 'call me Grocer' Reval (a Xexedian Laver) was always considered a little backward.
- Reval
- ---- E L I T E ----
- Posts: 402
- 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!
Also, I was wondering if there is a way to delay very slightly the start of the hyperdrive countdown after pressing 'h'.
Dor 'call me Grocer' Reval (a Xexedian Laver) was always considered a little backward.
- Reval
- ---- E L I T E ----
- Posts: 402
- 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!
Well, the start of the countdown cuts very short the last playerCommsMessage preceding it. So I thought that if there existed a scripted way of delaying its start, a player would be able to read the message through comfortably before it vanished. I'm talking about delaying it for no more than, say, 2 or 3 seconds...
Edit: here's the core of my hyperspace event-handler as it currently stands -
The 3-seconds function parameter has no effect in this case - the message just flashes up and is gone. Of course, it is recorded in the comms log, but that's not where I want it to be read...
Edit: here's the core of my hyperspace event-handler as it currently stands -
Code: Select all
this.playerStartedJumpCountdown = function(type, seconds) {
player.commsMessage("Be careful out among the miscreants Brother!",3);
}
Dor 'call me Grocer' Reval (a Xexedian Laver) was always considered a little backward.
Re: Tinkerer's Workshop - OXP tweaking for fun and profit!
What happens if you put that in a timer and send the comms message after the countdown begins instead of just before?
- Reval
- ---- E L I T E ----
- Posts: 402
- 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!
Ooh I've never tried that! - I don't think I'm really au fait with timers, but I think I may have used one in my GETTER HUD. Definitely worth looking into absent less recondite measures... thank you!
Edit: I wasn't aware you could interrupt the countdown in any way once it starts...
Edit: I wasn't aware you could interrupt the countdown in any way once it starts...
Dor 'call me Grocer' Reval (a Xexedian Laver) was always considered a little backward.
- Reval
- ---- E L I T E ----
- Posts: 402
- 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!
Thanks - both cancelH... and beginH... look promising
Dor 'call me Grocer' Reval (a Xexedian Laver) was always considered a little backward.
- Massively Locked
- Dangerous
- Posts: 84
- Joined: Tue Nov 20, 2012 12:20 pm
Re: Tinkerer's Workshop - OXP tweaking for fun and profit!
Reval wrote: ↑Fri Oct 28, 2022 10:14 pmI've just been scouring the JS wiki to find a way of retrieving the current station's name, to no avail. As I'm running with Stations for Extra Planets, there are always several orbitals and outposts insystem, but so far I've only found system.stations, an array that I've used in several places to list them.
I'm probably missing something really obvious here, but station.name brought no joy.
Code: Select all
player.ship.dockedStation.name
player.ship.dockedStation.shipClassName
player.ship.dockedStation.shipUniqueName
player.ship.dockedStation.displayName
Code: Select all
this.shipWillDockWithStation = function (stn) {
player.consoleMessage (stn.displayName)
}
this.shipDockedWithStation = function (stn) {
player.consoleMessage (stn.shipClassName)
}
- Reval
- ---- E L I T E ----
- Posts: 402
- 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!
Great! Thanks so much - just what I was after
Dor 'call me Grocer' Reval (a Xexedian Laver) was always considered a little backward.
- Cholmondely
- Archivist
- Posts: 5365
- 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!
Sorry to bump this again, but I feel unhappy adding the oxp of Xeptatl's Sword to the wiki until this is sorted out.Cholmondely wrote: ↑Wed Oct 26, 2022 9:45 pmStill having problems with shiplibrary.plists.
Xeptatl's Sword:
It works down to the )/* (if I put them in) and the rest then starts giving my poor old AppleMac a major attack of the galloping heeby-jeebies.Code: Select all
( { class = thargoid; description = "The Blitznest is a Thargoid assault vessel designed to land soldier-drones in large numbers onto a planet. They are over 500m in diameter and each one can carry up to 1000 drones. Due to the fierceness of Thargoid soldier drones it is believed as few as 3000 drones could successfully establish a beach head. The Blitznest is armed with high-power Thargoid lasers, and is a very strong ship. However, as an assault vehicle it is not very manoeuvrable, and has no 'Jump' capability."; ship = "xs-blitznestLave"; summary = "Blitznest"; }, { class = misc; description = "Ferroplonium is a crystaline trans-uranic element, also known by the common name 'Heavy Iron'. It is very rare, and is thought to be made during super-nova explosions. It is normally mined from asteroids found in or near Nova systems. Because of its density a Ferroplonium crystal will normally accrete less dense matter such as rock around it, and a 'crystalloid' is a prize find for any miner. Ferroplonium is a powerful source of energy, and is highly valued. "; ship = "xs-crystal"; summary = "Crystal"; }, { class = misc; description = "The GalDrivePod is a pylon-mounted Galactic Hyperdrive. Using this equipment allows you to make consecutive Galjumps. The GalDrivePod also incorporates a 'Wormhole Supressor Over-ride'. This cancels the supressors installed by GalCop in some systems to prevent spacers from jumping to one of the Lost Worlds. The Lost Worlds are isolated and un-reachable systems more than 7 light years away from any other system. They have such a low Tech Level that galactic Hyperdrives cannot be bought there, a situation that would leave a visitor stranded, un-able to leave either by Witchjumping or galactic jumping. When carrying a GalDrivePod a Commander can gal-jump to a Lost World using a regular Galactic Hyperdrive, and then leave again using the GalDrivePod. "; ship = "xs-GalDrivePod"; summary = "Equipment"; }, { class = "black_mamba"; description = "The ship-of-choice for this ferocious pirate fleet is the Mamba. With military-grade lasers, ECM, shield-boosters and Extra-Energy units these are formidable fighters. Painted black, they are very hard to see with the naked eye and it is this colour scheme which gave the Black Mamba fleet its name."; ship = "xs-black-mamba"; summary = "Black Mamba"; }, { class = "black_mamba"; description = "The Black Mambas use an 'Iron-Ass' Boa Class Cruiser as a Mothership. This ship is fully equipped with military grade lasers and shielding, and has an Extra-Energy unit and ECM. It acts as a Command and Control vessel for the fleet, and also as a repository for the fleet's 'acquisitions'. "; ship = "xs-black-mamba-boa2"; summary = "Black Mamba Mothership"; } ) /* Entries above all work (Black Mambas need a rejigged descriptions.plist for thir new class/value). Next three entries don't work - I've yet to try the others beneath them. Can't see what's wrong.... { class = ship; description = "The 'Thunder Child' is a Victoria-class heavy cruiser. At 1.5km long this is one of the largest naval vessels in service. Thunder Child is the newest and most powerful ship of her type and has truly formidable weaponry and defences, most of which are classified. "; ship = "xs-thunderchild"; summary = "Victoria-class Heavy Cruiser"; } { class = "xeptatl_society"; description = "The Society have over 1000 monitor stations around the Eight Galaxies, which are, as the name suggest, surveillance and monitoring posts. They intercept Thargoid communications and monitor Thargoid activity as part of the Society's remit. They are normally situated close to the Sun and are similar to Rock Hermit bases, but have a much better range of facilities and equipment as they also act as bases for operations carried out by the Society's Agents. "; ship = "xs-monitor-station"; summary = "Station"; }, { class = "xeptatl_society"; description = "The Society have several interstellar stations devoted to research and development, where they study Thargoid technology and try to adapt it for use by the GalCop races. Most are quite small and many are built into asteroids and are in practice just large versions of the monitor stations. The main research station is a much more substantial structure almost 2km across and is situated in the Great Rift of Galaxy Seven. The station is of a unique 'dumbell' design and has a staff of over 5 000 who both live and work on the station. Because of the remote location workers' families also live on the station and so it has many civilian facilities such as schools, a hospital deck and shops and recreational areas. The total population can therefore be as high as 20,000."; ship = "xs-station_pyramid"; summary = "Station"; }, { class = "xeptatl_society"; description = "The Headquarters station is of a unique design with each of the six arms housing different administrative departments. It is thought that over 10,000 staff are based there, although most live on the planet."; ship = "xs-headquarters"; summary = "Station"; }, { class = "xeptatl_society"; description = "The Agents of the Xeptatl Society make extensive use of a fleet of Cobra S9 ships. These are well equipped models with Fuel Injection, ECM, Shield Boosters and Military Shield Enhancers. They will normally carry four ECM-hardened missiles and have military-grade lasers Forward and Aft. Although the ships are standard factory issue they are known to carry specialist equipment, much of which is Top Secret. The dedication of the Society's Agents is illustrated by the fact that Society S9s are not equipped with Escape Capsules. In the event of lethal attack the Agents' duty is to either destroy the ship themselves or stay with it until it is destroyed, thus ensuring the technology does not fall into the wrong hands. "; ship = "xs-cobra_generic"; summary = "Ship"; }, */
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?
•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?
-
- Quite Grand Sub-Admiral
- Posts: 6683
- Joined: Wed Feb 28, 2007 7:54 am
Re: Tinkerer's Workshop - OXP tweaking for fun and profit!
That closing bracket above your comment marker terminates the list early. Move it at the end of everything and it should (hopefully) work. Also, remove the comma at the end of the very last entry.
Likely corrected list below (a couple of commas found missing)
Likely corrected list below (a couple of commas found missing)
Code: Select all
(
{
class = thargoid;
description = "The Blitznest is a Thargoid assault vessel designed to land soldier-drones in large numbers onto a planet. They are over 500m in diameter and each one can carry up to 1000 drones. Due to the fierceness of Thargoid soldier drones it is believed as few as 3000 drones could successfully establish a beach head.
The Blitznest is armed with high-power Thargoid lasers, and is a very strong ship. However, as an assault vehicle it is not very manoeuvrable, and has no 'Jump' capability.";
ship = "xs-blitznestLave";
summary = "Blitznest";
},
{
class = misc;
description = "Ferroplonium is a crystaline trans-uranic element, also known by the common name 'Heavy Iron'. It is very rare, and is thought to be made during super-nova explosions. It is normally mined from asteroids found in or near Nova systems. Because of its density a Ferroplonium crystal will normally accrete less dense matter such as rock around it, and a 'crystalloid' is a prize find for any miner. Ferroplonium is a powerful source of energy, and is highly valued. ";
ship = "xs-crystal";
summary = "Crystal";
},
{
class = misc;
description = "The GalDrivePod is a pylon-mounted Galactic Hyperdrive. Using this equipment allows you to make consecutive Galjumps. The GalDrivePod also incorporates a 'Wormhole Supressor Over-ride'. This cancels the supressors installed by GalCop in some systems to prevent spacers from jumping to one of the Lost Worlds. The Lost Worlds are isolated and un-reachable systems more than 7 light years away from any other system. They have such a low Tech Level that galactic Hyperdrives cannot be bought there, a situation that would leave a visitor stranded, un-able to leave either by Witchjumping or galactic jumping. When carrying a GalDrivePod a Commander can gal-jump to a Lost World using a regular Galactic Hyperdrive, and then leave again using the GalDrivePod. ";
ship = "xs-GalDrivePod";
summary = "Equipment";
},
{
class = "black_mamba";
description = "The ship-of-choice for this ferocious pirate fleet is the Mamba. With military-grade lasers, ECM, shield-boosters and Extra-Energy units these are formidable fighters. Painted black, they are very hard to see with the naked eye and it is this colour scheme which gave the Black Mamba fleet its name.";
ship = "xs-black-mamba";
summary = "Black Mamba";
},
{
class = "black_mamba";
description = "The Black Mambas use an 'Iron-Ass' Boa Class Cruiser as a Mothership. This ship is fully equipped with military grade lasers and shielding, and has an Extra-Energy unit and ECM. It acts as a Command and Control vessel for the fleet, and also as a repository for the fleet's 'acquisitions'. ";
ship = "xs-black-mamba-boa2";
summary = "Black Mamba Mothership";
},
{
class = ship;
description = "The 'Thunder Child' is a Victoria-class heavy cruiser. At 1.5km long this is one of the largest naval vessels in service. Thunder Child is the newest and most powerful ship of her type and has truly formidable weaponry and defences, most of which are classified. ";
ship = "xs-thunderchild";
summary = "Victoria-class Heavy Cruiser";
},
{
class = "xeptatl_society";
description = "The Society have over 1000 monitor stations around the Eight Galaxies, which are, as the name suggest, surveillance and monitoring posts. They intercept Thargoid communications and monitor Thargoid activity as part of the Society's remit. They are normally situated close to the Sun and are similar to Rock Hermit bases, but have a much better range of facilities and equipment as they also act as bases for operations carried out by the Society's Agents. ";
ship = "xs-monitor-station";
summary = "Station";
},
{
class = "xeptatl_society";
description = "The Society have several interstellar stations devoted to research and development, where they study Thargoid technology and try to adapt it for use by the GalCop races. Most are quite small and many are built into asteroids and are in practice just large versions of the monitor stations. The main research station is a much more substantial structure almost 2km across and is situated in the Great Rift of Galaxy Seven. The station is of a unique 'dumbell' design and has a staff of over 5 000 who both live and work on the station. Because of the remote location workers' families also live on the station and so it has many civilian facilities such as schools, a hospital deck and shops and recreational areas. The total population can therefore be as high as 20,000.";
ship = "xs-station_pyramid";
summary = "Station";
},
{
class = "xeptatl_society";
description = "The Headquarters station is of a unique design with each of the six arms housing different administrative departments. It is thought that over 10,000 staff are based there, although most live on the planet.";
ship = "xs-headquarters";
summary = "Station";
},
{
class = "xeptatl_society";
description = "The Agents of the Xeptatl Society make extensive use of a fleet of Cobra S9 ships. These are well equipped models with Fuel Injection, ECM, Shield Boosters and Military Shield Enhancers. They will normally carry four ECM-hardened missiles and have military-grade lasers Forward and Aft. Although the ships are standard factory issue they are known to carry specialist equipment, much of which is Top Secret.
The dedication of the Society's Agents is illustrated by the fact that Society S9s are not equipped with Escape Capsules. In the event of lethal attack the Agents' duty is to either destroy the ship themselves or stay with it until it is destroyed, thus ensuring the technology does not fall into the wrong hands. ";
ship = "xs-cobra_generic";
summary = "Ship";
}
)