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

Though I thought this was impossible, I see that Iban and Pedgi are updated their server every once in a while without shutting the server down. It'll show in the chat box that something has been changed or added or something. How do you do this?

What?  Must be a private mod of their's.

Easy enough.

exec("Add-Ons/NameOf_Addon/server.cs");

Then type transmitdatablocks(); if the thing you executed contained datablocks.

You can tell it to people using announce("Blah");

It's not a smiled upon practice as it probably lags like a bitch and it's just unstable. Plus sometimes particles come out as blocks.

Particles will appear as squares.  If you use new models that they haven't downloaded they will be disconnected.

Particles will appear as squares.  If you use new models that they haven't downloaded they will be disconnected.
Then type transmitdatablocks(); if the thing you executed contained datablocks.

I know, but it's generally a frowned upon practice.

I know, but it's generally a frowned upon practice.


You have no idea what you are talking about. Who would be doing the frowning here?

Quote goes here
Well yes, transmitting the datablocks is fine but if they're missing files, they're missing files. Mind you, the few times I've used transmitDatablocks(); it's done nothing at all - nobody sees any lists updated even a while after it's done.

And you might also want to use discoverFile("add-ons/Zip_Name.zip"); before executing it, or Blockland won't know where to read the zip for the file properly and you'll have it cutting off mid-sentence and stuff like that.


You have no idea what you are talking about. Who would be doing the frowning here?
:panda:


You have no idea what you are talking about. Who would be doing the frowning here?
Hi kompresser!

Well yes, transmitting the datablocks is fine but if they're missing files, they're missing files. Mind you, the few times I've used transmitDatablocks(); it's done nothing at all - nobody sees any lists updated even a while after it's done.

And you might also want to use discoverFile("add-ons/Zip_Name.zip"); before executing it, or Blockland won't know where to read the zip for the file properly and you'll have it cutting off mid-sentence and stuff like that.

The reason that they don't see the lists is because the clients only requests lists from the server upon joining (except for wrench event datablock lists, and assumably a few others). the clients would have to manually use the command to update their GUIs in order for them to see it.

Also, just using setModPaths(getModPaths()); refreshes everything in the default folders for execution, but the game does stall for a brief moment (because it's refreshing everything). Could be useful for a bunch of files.

So if I'm testing something, is it best to refresh it, instead of resetting?

Refreshing will be faster but only some things will refresh properly. So be careful and if stuff breaks do a full restart, but otherwise you should be ok.

i think packaged items don't refresh well... the game kept giving me an error at the "activatepackage" part.