Author Topic: Disable AddOn  (Read 915 times)

A Script like Load Addon but it Disables an Addon

Something like this would crash the server.

Something like this would crash the server.
no it just isnt really possible without being hacky and/or silly


If you search all files in the add-on for the words 'package' 'function' and 'datablock' you could get the names and deactivate/overwrite/delete them. That part is easy. The hard part is if the add-on uses those words in any place other than package, function, and datablock definitions.

Only issues I see is with functions that the add-on completely rewrites, instead of just packaging, as well as weapons/vehicles/lights/emitters/ still being in the list, although I think those lists could just be resent.

If you search all files in the add-on for the words 'package' 'function' and 'datablock' you could get the names and deactivate/overwrite/delete them. That part is easy. The hard part is if the add-on uses those words in any place other than package, function, and datablock definitions.

Only issues I see is with functions that the add-on completely rewrites, instead of just packaging, as well as weapons/vehicles/lights/emitters/ still being in the list, although I think those lists could just be resent.

You can't delete datablocks without the server throwing a major fit, because of the object ID system.

An alternative would be to remove the UI Name of the datablocks instead, then resend the lists.

A Script like Load Addon but it Disables an Addon

It would probably crash you when you try to use that. Same with using load addon you sometimes crash if its a certain Item type.

It would probably crash you when you try to use that. Same with using load addon you sometimes crash if its a certain Item type.
If you have an actually good version of it, then it's pretty reliable.


Only time I've crashed is loading all of T+T at once.

If you have an actually good version of it, then it's pretty reliable.


Only time I've crashed is loading all of T+T at once.

I meant the clients would crash. not you.

If you have an actually good version of it, then it's pretty reliable.


Only time I've crashed is loading all of T+T at once.
hehe, I've been able to do it without crashing. :P

On topic: this would be nice. Maybe like Chrono said
An alternative would be to remove the UI Name of the datablocks instead, then resend the lists.
That way at least people couldn't use things like Mini nuke if you forgot to disable it or something like that.

I meant the clients would crash. not you.
not really, only if they're loading/don't have it and it contains shapes

Tomtom uses some sort of deactivatepackage script when testing and modifying a new weapon. If only I knew torquescript I would help.