Sticky Devices/Weapons
Is there any way to set a device so that you can't uninstall it? Trying to see if I can hardwire a drive to a ship so that it can't be sold or transferred to another ship. I already made the part notforsale but that's so no more appear in shops.
"Have you guys ever watched the show?" ~ Guy
-
- Fleet Officer
- Posts: 1036
- Joined: Wed Feb 03, 2010 4:28 am
- Location: Researching how to make St. Kats star go supernova.
- Contact:
If you add the data field 'virtual="true"' then the device can be installed or uninstalled only through code.
Play in over 100 systems in a network. Play the 2011 Mod Of the Year
and the highest rated mod on Xelerus, The Network.
Play the July Mod of the Month, Fellow Pilgrims!
Play My other mods as well
(Drako Slyith)* I am a person
(Eliza chatbot)> Do you believe it is normal to be a person?
That will work in this case. I also want to know if you can make a device weapon sticky.
For those of you who played enough older games it's like a cursed item in rogue, and possibly nethack although I didn't play that one as much.
I was thinking about making items that once installed can't be easily removed. It seems like stations can uninstall anything and it's only when you want something put in that you come across limitations of individual stations. Possibly an item that is species specific for install. It would keep you from destroying their ship and going elsewhere to use it. Instead you would have to buy it from them or wait for someone else to destroy a ship and loot it and then get them to install it for you.
For those of you who played enough older games it's like a cursed item in rogue, and possibly nethack although I didn't play that one as much.
I was thinking about making items that once installed can't be easily removed. It seems like stations can uninstall anything and it's only when you want something put in that you come across limitations of individual stations. Possibly an item that is species specific for install. It would keep you from destroying their ship and going elsewhere to use it. Instead you would have to buy it from them or wait for someone else to destroy a ship and loot it and then get them to install it for you.
"Have you guys ever watched the show?" ~ Guy
- alterecco
- Fleet Officer
- Posts: 1658
- Joined: Wed Jan 14, 2009 3:08 am
- Location: Previously enslaved by the Iocrym
Check the events page on the wiki: look for <CanBeUninstalled>
http://wiki.neurohack.com/transcendence/wiki/events
http://wiki.neurohack.com/transcendence/wiki/events
So after reading about <CanBeUninstalled> I have an idea where to put the code but it will still take a while to figure out the syntax to get it to work. I've looked through the code and as far as I can tell it isn't currently being used which is why everyone can uninstall anything with no restrictions.
The install is restricted through the station installing using a max tech level limit or in the case of armor through a max armor weight limit in the ships code. So I don't see the <CanBeInstalled> being used either. I thought maybe with an autoinstall item but no. Apparently they're too low level to worry about such a thing.
My first guess would be in the item itself under <Events> of course. It seems like the attempt to install items screen pulls this up and it would have to call back to the station calling it up and check to see is's sovereign or whatever else it might check and see if it meets the qualifications. Is that about right?
The install is restricted through the station installing using a max tech level limit or in the case of armor through a max armor weight limit in the ships code. So I don't see the <CanBeInstalled> being used either. I thought maybe with an autoinstall item but no. Apparently they're too low level to worry about such a thing.
My first guess would be in the item itself under <Events> of course. It seems like the attempt to install items screen pulls this up and it would have to call back to the station calling it up and check to see is's sovereign or whatever else it might check and see if it meets the qualifications. Is that about right?
"Have you guys ever watched the show?" ~ Guy
-
- Fleet Admiral
- Posts: 2876
- Joined: Thu Feb 03, 2011 5:21 am
- Location: Hmm... I'm confused. Anybody have a starmap to the Core?
Yes, <CanBeInstalled> is within the <Events> tag. I think that the checks you want are also doable.
Tutorial List on the Wiki and Installing Mods
Get on Discord for mod help and general chat


Der Tod ist der zeitlose Frieden und das leben ist der Krieg
Wir müssen wissen — wir werden wissen!
I don't want any sort of copyright on my Transcendence mods. Feel free to take/modify whatever you want.
Get on Discord for mod help and general chat


Der Tod ist der zeitlose Frieden und das leben ist der Krieg
Wir müssen wissen — wir werden wissen!
I don't want any sort of copyright on my Transcendence mods. Feel free to take/modify whatever you want.
The "NotForSale" tag does not prevent the item (if it is not virtual) from spawning for sale in some stations, such as Black Market and Teraton stations; and it does not prevent the Teraton fabricator from spawning one. The way to prevent an item from spawning randomly is to set its frequency to "notrandom".
Download and Play in 1.9 beta 1...
Drake Technologies (Alpha): More hardware for combat in parts 1 and 2!
Star Castle Arcade: Play a classic arcade game adventure, with or without more features (like powerups)!
Playership Drones: Buy or restore exotic ships to command!
Other playable mods from 1.8 and 1.7, waiting to be updated...
Godmode v3 (WIP): Dev/cheat tool compatible with D&O parts 1 or 2.
Drake Technologies (Alpha): More hardware for combat in parts 1 and 2!
Star Castle Arcade: Play a classic arcade game adventure, with or without more features (like powerups)!
Playership Drones: Buy or restore exotic ships to command!
Other playable mods from 1.8 and 1.7, waiting to be updated...
Godmode v3 (WIP): Dev/cheat tool compatible with D&O parts 1 or 2.