Official Soldat Forums
Server Talk => Scripting Discussions and Help => Topic started by: KeYDoN on December 09, 2006, 05:42:43 pm
-
there is no rehash cmd, inst it?
A cmd that reloads the scripts without restarting the server
I mean a AdminCmd not a scriptingfunction ;)
-
yes there is:
/recompile
but i think it doesn't work always right
-
Works perfect every time for me... You can just type /recompile or in your script, use Command('/recompile');
-
oh great :) i didnt found the cmd in the manuals and readmes ;o
-
i remeber when Leo was installing some scripts on his server, and they didn't work correctly... he had to restart server,
so i'm just telling what i saw ::)
-
Selfkill servers have all sorts of problems so im not surprised. The only problem I found was when you recompile, you loose variables set in ActivateServer, so ive made it so ActivateServer is called when you recompile.
-
(14:19:10) /recompile
(14:19:10) [*] Exception raised on SetVariables(Access violation at address 0808A241, accessing address 00000000)
(14:19:10) [*] Exception raised on SetVariables(Access violation at address 0808A241, accessing address 00000000)
(14:19:10) [*] Compiling Script Core.pas...
(14:19:10) [*] Run-time error (OnPlayerSpeak "const"): No Error
(14:19:10) [*] Compiling Script AdminCore.pas...
(14:19:10) [*] Compiling Script NetworkCore.pas...
(14:19:10) [*] Compilation Complete.
[... tried a second time, no changes in the scripts...]
(14:19:30) /recompile
(14:19:30) [*] Compiling Script Core.pas...
(14:19:30) [*] Compiling Script AdminCore.pas...
(14:19:30) [*] Compiling Script NetworkCore.pas...
(14:19:30) [*] Compilation Complete.
...And no its not a selfkill server, soldatserver is just coded in a bad way :p
-
take it easy man, it's first version of soldat server with scriptting support, give it time :)
-
I have never gotten any errors except for my own script errors when recompiling (Linux), so your doing it wrong. And stay ontopic.