Cabal_Common_Music (used in Vector and the demo) does something similiar. It plays the specified musicfile when a specific ship is close to the player. Dunno if it still works in v1.80/v1.82. Oh, and establishing streams is costly.Wildeblood wrote:Addendum: Has anyone ever done this in a ship OXP - adding a sound effect to a shipSpawned event to alert the player when a particular ship is about?
Some sensible tweaks
Moderators: winston, another_commander
Re: Some sensible tweaks
- Wildeblood
- ---- E L I T E ----
- Posts: 2453
- Joined: Sat Jun 11, 2011 6:07 am
- Location: Western Australia
- Contact:
Re: Some sensible tweaks
Yeah, nah. If it's zero the condition test (0 & 1) should fail, not pass. Something else is happening.phkb wrote:The problem is that "legality_export" is present on all items. It's just zero for most of them. Which means that the undocumented launch option will be available as long as the player has any cargo at all.
In your heart, you know it's flat.
Re: Some sensible tweaks
WildeBlood, that sounds like you assume js treatsWildeblood wrote:Yeah, nah. If it's zero the condition test (0 & 1) should fail, not pass. Something else is happening.
market[prop].legality_export
as a Boolean value where 0 equates false .legality_export is a number according to wiki, and i think js doesn't convert that into a boolean value, but interprets your condition as "does
market[prop].legality_export
exist" .OS : Arch Linux 64-bit - rolling release
OXPs : My user page
Retired, reachable at [email protected]
OXPs : My user page
Retired, reachable at [email protected]
Re: Some sensible tweaks
JS treats various things as false in that sort of check -Lone_Wolf wrote:WildeBlood, that sounds like you assume js treatsmarket[prop].legality_export
as a Boolean value where 0 equates false .
false
, 0
, ""
, null
and undefined
. Usually useful; occasionally a problem when the sort of false something is matters.- 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: Some sensible tweaks
Wiki page put up for Dockside Services: http://wiki.alioth.net/index.php/Dockside_Services
As far as I can tell, this OXP is now redundant. Everything it does is already incorporated into the Game Code.
Or am I wrong?
As far as I can tell, this OXP is now redundant. Everything it does is already incorporated into the Game Code.
Or am I wrong?
Last edited by Cholmondely on Thu May 20, 2021 5:30 pm, edited 1 time in total.
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?
- 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: Some sensible tweaks
Wiki page put up for Undocumented Launch: http://wiki.alioth.net/index.php/Undocumented_Launch
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?
- Wildeblood
- ---- E L I T E ----
- Posts: 2453
- Joined: Sat Jun 11, 2011 6:07 am
- Location: Western Australia
- Contact:
Re: Some sensible tweaks (beacons, lasers, cargo, sun)
I just found the following message in my PM drafts, where it has been languishing since June 15th, 2012, 10:55 pm.
After mentioning this to you the other night, I wondered why I don't still use it and went looking for it. About two hours later, at about 4 a.m., I remembered that I had accidentally deleted it several months ago. I blame you for my lack of sleep.Wildeblood wrote:You can't buy any equipment item more than once, so you have to actually define EQ_ABLATIVE_SHIELD_1 through to EQ_ABLATIVE_SHIELD_100 in the equipment.plist. It actually worked very well.SandJ wrote:Wildeblood wrote:Uh-huh. The same principle as the never released Wildefire Equipment Bay Shield System, which automatically added 100 dummy equipment entries on red alert and removed them again as soon as the red alert ended.
I considered making the Beer Cooler an item you could buy multiple times, and then call it "Sacrificial Armour Plating" but I couldn't work out how.
In your heart, you know it's flat.
- 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: Some sensible tweaks
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?