Author Topic: Getting addons while server is running?  (Read 2106 times)

I added discoverFile to avoid the slowdown from the setModPaths(getModPaths()); hack, so its best to just use that command for a bunch of files instead of refreshing essentially the entire resource manager.

I added discoverFile to avoid the slowdown from the setModPaths(getModPaths()); hack, so its best to just use that command for a bunch of files instead of refreshing essentially the entire resource manager.

How do I use that? Do I say discoverFile("/Add-ons/<MOD NAME>/.server.cs"); ?


You have no idea what you are talking about. Who would be doing the frowning here?
Thanks for the new signature ;D

Thanks for the new signature ;D

ofcourse, when either badspot/rotondo/kompressor posts something atleast 1 person will put it in their signature.

ofcourse, when either badspot/rotondo/kompressor posts something atleast 1 person will put it in their signature.
yeah ive noticed it happens almost everytime Badspot post's something

Thanks for the new signature ;D
ofcourse, when either badspot/rotondo/kompressor posts something atleast 1 person will put it in their signature.
yeah ive noticed it happens almost everytime Badspot post's something
Relativity?

I want to know how to use discoverFile so I have an easier time working on my scripts.

You can tell it to people using announce("Blah");
transmitDatablocks(); sends the message on it's own. No need for announce.

transmitDatablocks(); sends the message on it's own. No need for announce.

Well if you wanted to make it pretty,

Code: [Select]
for(%i=0;%i<ClientGroup.getCount();%i++)
     ClientGroup.getObject(%i).transmitDatablocks(0); // Doesn't display message
messageAll('',"\c6The server has been \c4updated \c6with new Add-ons!");

ofcourse, when either badspot/rotondo/kompressor posts something atleast 1 person will put it in their signature.

yeah ive noticed it happens almost everytime Badspot post's something

Relativity?

I want to know how to use discoverFile so I have an easier time working on my scripts.
discoverFile("Add-ons/Your_Addon.zip");
if server is running: e(Your_Addon);
If it's a client mod and the server is not running: exec("Add-ons/Your_Addon/client.cs");