Official Soldat Forums

Server Talk => Scripting Discussions and Help => Topic started by: KeYDoN on December 09, 2006, 05:42:43 pm

Title: [feature request] rehash
Post 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 ;)
Title: Re: [feature request] rehash
Post by: cooz on December 09, 2006, 06:33:34 pm
yes there is:
/recompile

but i think it doesn't work always right
Title: Re: [feature request] rehash
Post by: EnEsCe on December 09, 2006, 08:55:29 pm
Works perfect every time for me... You can just type /recompile or in your script, use Command('/recompile');
Title: Re: [feature request] rehash
Post by: KeYDoN on December 09, 2006, 09:07:30 pm
oh great :) i didnt found the cmd in the manuals and readmes ;o
Title: Re: [feature request] rehash
Post by: cooz on December 10, 2006, 05:13:59 am
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 ::)
Title: Re: [feature request] rehash
Post by: EnEsCe on December 10, 2006, 05:19:39 am
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.
Title: Re: [feature request] rehash
Post by: KeYDoN on December 10, 2006, 08:21:23 am
Code: [Select]
(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...]
Code: [Select]
(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
Title: Re: [feature request] rehash
Post by: cooz on December 10, 2006, 10:13:01 am
take it easy man, it's first version of soldat server with scriptting support, give it time :)
Title: Re: [feature request] rehash
Post by: EnEsCe on December 10, 2006, 10:19:53 am
I have never gotten any errors except for my own script errors when recompiling (Linux), so your doing it wrong. And stay ontopic.