Author Topic: Loading Add-On Ingame?  (Read 1536 times)

I know it is possible and I want to know how.

In a normal hosting game and Dedicated game

How do you load an add-on from your folder because I am a poor scripter and all I could get was:

""client.cmdserver('exec.("Add-Ons/Script_Fire/Server.cs")');""

It said it was eval just the client thing didn't work I tired,
servercmd, commandtoserver, clientcmdtoserver, etc.

There is an adding called system_loadaddon I have it and will not give it out. Sorry

There is an adding called system_loadaddon I have it and will not give it out. Sorry

Yeah ive heard of that thing. I don;t know if it will help for dedicated servers though.

On the server, type this into the console:
Code: [Select]
exec("Add-Ons/Server_MyAddon/server.cs");
If the add-on was installed after the server started,
Code: [Select]
discoverFile(%file = "Add-Ons/Server_MyAddon/server.cs"); exec(%file);
Note that any add-on the loads weapons, vehicles, ect. won't work, due to the fact that datablocks are no longer allowed to be created.


On the server, type this into the console:
Code: [Select]
exec("Add-Ons/Server_MyAddon/server.cs");
If the add-on was installed after the server started,
Code: [Select]
discoverFile(%file = "Add-Ons/Server_MyAddon/server.cs"); exec(%file);
Note that any add-on the loads weapons, vehicles, ect. won't work, due to the fact that datablocks are no longer allowed to be created.



Perfect, exactly what I wanted, thanks.

Ill leave this unlocked if there is anyone else with anything better.

Try suggesting an add-on (PUBLIC) that automatically uploads an add-on on a server, maybe with a GUI, in the suggestions/requests forum!

There is an adding called system_loadaddon I have it and will not give it out. Sorry
If this is all you are going to post then do not post atall.
'Lol i hav it but ur not gettin it!'
Sadly this doesn't work when the add-on hasn't been put in the add-ons folder before starting blockland.