Author Topic: Reload Addons?  (Read 4389 times)

I'm trying to code an addon and i don't like that i have to exit blockland completely to reload it. Is there a way around that? Is that what the "HUB" addon is for?

Setmodpaths(getmodpaths()); exec("path/to/addon"); should work, just put those in the console at the same time.

Thank you so much, but I can't seem to get it to work. This is the way i'm using it:
Code: [Select]
Setmodpaths(getmodpaths()); exec("Add-Ons\Script_FamilyMod.zip\server.cs");
« Last Edit: July 11, 2012, 03:58:47 PM by tyler0 »

\ is suppose to be /
Code: [Select]
exec("Add-Ons/Script_FamilyMod.zip/server.cs");

I used:
Code: [Select]
Setmodpaths(getmodpaths()); exec("Script_FamilyMod.zip/server.cs");
And i'm getting an error:
Quote
ERROR: File "Script_FamilyMod.zip/server.cs" is not in one of the default directories

Any idea what that means? lol


I've used:
Code: [Select]
Setmodpaths(getmodpaths()); exec("Add-Ons/Script_FamilyMod.zip/server.cs");
And the file is missing.

Take out .zip. I didn't see that whoops

Code: [Select]
exec("Add-Ons/Script_FamilyMod/server.cs");

Don't put it in a zip, then just use exec(path);

Works beautify thanks guys!

\ is suppose to be /
Code: [Select]
exec("Add-Ons/Script_FamilyMod.zip/server.cs");
What if it's not a script? Are there any changes?

What if it's not a script? Are there any changes?
No
Every add-on has a server.cs
If it's a client add-on, it has a client.cs

No
Every add-on has a server.cs
If it's a client add-on, it has a client.cs
if it's strictly client-sided it has no server.cs

Is it just me or is this sometimes ineffective?

Is it just me or is this sometimes ineffective?
It's probably just you

If it is an add-on with datablocks, for instance a weapon or vehicle, and you have modified any of them, to make these changes show you will need to execute it then run transmitDatablocks() or change the map or rejoin the server.

If it is an add-on with datablocks, for instance a weapon or vehicle, and you have modified any of them, to make these changes show you will need to execute it then run transmitDatablocks() or change the map or rejoin the server.

The host can see it right away. But yes, for other clients to be able to see it you'd need to do that. Some changes require a restart, though.