Updating without GMX?
#1

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.
Reply
#2

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....?
Reply
#3

Yeah i know,i'm not sure.Because on some server labels and pickups just appeared during the gameplay,as some new features aswell.
Reply
#4

Through filterscripts, sure. Though it won't be possible with a gamemode.
Reply
#5

Ah,so you can edit a filterscript,re-upload it and the changes automatically take effect?
Reply
#6

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.
Reply
#7

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.
Reply
#8

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 ..
Reply
#9

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.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)