Posts: 233
Threads: 48
Joined: Aug 2013
Reputation:
0
So,is it possible to update the server without restarting it?I mean for the changes to show without reseting.
I think i've seen that somewhere.
Posts: 578
Threads: 56
Joined: Sep 2013
Reputation:
0
I don't think its possible since the server uses the .amx you compiled before starting it and is required a restart to read the new compiled .amx file. Or....?
Posts: 233
Threads: 48
Joined: Aug 2013
Reputation:
0
Yeah i know,i'm not sure.Because on some server labels and pickups just appeared during the gameplay,as some new features aswell.
Posts: 10,066
Threads: 38
Joined: Sep 2007
Reputation:
0
Through filterscripts, sure. Though it won't be possible with a gamemode.
Posts: 233
Threads: 48
Joined: Aug 2013
Reputation:
0
Ah,so you can edit a filterscript,re-upload it and the changes automatically take effect?
Posts: 224
Threads: 32
Joined: Nov 2013
Reputation:
0
If its a gamemode, you have to restart.
If its a filterscript, login as RCON and use /rcon reloadfs nameofit
It'll get reloaded and your updates will take effect.
Posts: 1,733
Threads: 20
Joined: Nov 2010
Reputation:
0
Or some scripts have in-game commands to create new labels or pickups during runtime.
In my own script, I have admin-commands to add extra gas-stations, police-stations, speedcamera's, houses, businesses and some others.
All of those add new pickups and 3D textlabels while the server is running.
But if there is a change in the code, then yes, you need to reload your filterscript.
Posts: 10,066
Threads: 38
Joined: Sep 2007
Reputation:
0
You'll have to reload the filterscript, but yes. But make sure that everything created by the filterscript is destroyed on unload. Pickups, cars, objects, etc ..
Posts: 1,801
Threads: 21
Joined: Mar 2008
Reputation:
0
Well, you could theoretically turn your gamemode into a filterscript and reload it any time.
The problem is, all variables reset when the FS gets unloaded (IDs of objects, label IDs, textdraw IDs, player data etc get lost), so if it's something bigger and it's not done perfectly it will fuck up at some point.
But for some smaller systems there should not be any problem.