SA-MP Forums Archive
Updating without GMX? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Updating without GMX? (/showthread.php?tid=486396)



Updating without GMX? - Tagathron - 08.01.2014

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.


Re: Updating without GMX? - Voxel - 08.01.2014

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


Re: Updating without GMX? - Tagathron - 08.01.2014

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


Re: Updating without GMX? - Vince - 08.01.2014

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


Re: Updating without GMX? - Tagathron - 08.01.2014

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


Re: Updating without GMX? - rakshith122 - 08.01.2014

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.


Re: Updating without GMX? - PowerPC603 - 08.01.2014

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.


Re: Updating without GMX? - Vince - 08.01.2014

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


AW: Updating without GMX? - NaS - 08.01.2014

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.