RUNNING WITH RIFLES
http://www.runningwithrifles.com/phpBB3/

How to make the server save the game data(s) and then resume
http://www.runningwithrifles.com/phpBB3/viewtopic.php?f=5&t=3206
Page 1 of 1

Author:  terminus [ Tue Jan 24, 2017 12:46 pm ]
Post subject:  How to make the server save the game data(s) and then resume

I have built a rwr server with Ubuntu server 16.04/64bit.
And follow the post run "./launch_server" then "start_script start_invasion.as", eveything is ok.
But when i use command "exit" and then run the server again, the game just start as a new process.
How to make the game save and load? or use some command to change the stage?

Can u write a post to explain the server commands?
like this
Code:
start_game [param1] [param2] ...
param1 : means ...


rwr is a good game.
thx.

Author:  pasik [ Wed Jan 25, 2017 10:14 am ]
Post subject:  Re: How to make the server save the game data(s) and then re

The server doesn't have proper support for that unfortunately, the server is intended to be run 24/7. The player profiles are stored permanently when running Invasion so player progress is preserved over server restarts.

Basically, it would be possible for the Invasion server scripts to be extended so that it would save the info to which stage the game got to, and when starting the script, make it query the saved data and initialize the gamemode state so that it at least continues from the last reached stage, even if the actual stage progression would be lost.

Alternatively the script could be extended with a chat command that completes the stages up to a wanted stage, this would allow you to manually skip some stages. Currently there is /0_win in-game chat command (or declare_winner 0 in server console) that admins can use that completes the current stage and prepares to advance to the next one.

Some info about the server console commands can be found with help and also with e.g. help start_server. I guess console commands are largely not used these days apart from start_script and status as there's a bit more power in the XML commands http://runningwithrifles.gamepedia.com/ ... _interface that can be useful in some rare scenarios. XML commands in files can be executed in the console with execute 1.xml style.

Author:  terminus [ Thu Jan 26, 2017 2:17 am ]
Post subject:  Re: How to make the server save the game data(s) and then re

pasik wrote:
The server doesn't have proper support for that unfortunately, the server is intended to be run 24/7. The player profiles are stored permanently when running Invasion so player progress is preserved over server restarts.

Basically, it would be possible for the Invasion server scripts to be extended so that it would save the info to which stage the game got to, and when starting the script, make it query the saved data and initialize the gamemode state so that it at least continues from the last reached stage, even if the actual stage progression would be lost.

Alternatively the script could be extended with a chat command that completes the stages up to a wanted stage, this would allow you to manually skip some stages. Currently there is /0_win in-game chat command (or declare_winner 0 in server console) that admins can use that completes the current stage and prepares to advance to the next one.

Some info about the server console commands can be found with help and also with e.g. help start_server. I guess console commands are largely not used these days apart from start_script and status as there's a bit more power in the XML commands http://runningwithrifles.gamepedia.com/ ... _interface that can be useful in some rare scenarios. XML commands in files can be executed in the console with execute 1.xml style.


Thx, i have a try :)
Do u have a plan to make all the server used script(s) and config(s) together?
Make the folder tree as follow:

rwr_server
|
|-- [server_configs]
|-- [server_scripts]
|-- media
|-- profiles
|-- tools
|-- ...

The config files in one place will meke the server admin more easier to set and control.
And, the wiki of dedicated server is waiting for updating :)

Author:  terminus [ Thu Jan 26, 2017 1:44 pm ]
Post subject:  Re: How to make the server save the game data(s) and then re

pasik wrote:
The server doesn't have proper support for that unfortunately, the server is intended to be run 24/7. The player profiles are stored permanently when running Invasion so player progress is preserved over server restarts.

Basically, it would be possible for the Invasion server scripts to be extended so that it would save the info to which stage the game got to, and when starting the script, make it query the saved data and initialize the gamemode state so that it at least continues from the last reached stage, even if the actual stage progression would be lost.

Alternatively the script could be extended with a chat command that completes the stages up to a wanted stage, this would allow you to manually skip some stages. Currently there is /0_win in-game chat command (or declare_winner 0 in server console) that admins can use that completes the current stage and prepares to advance to the next one.

Some info about the server console commands can be found with help and also with e.g. help start_server. I guess console commands are largely not used these days apart from start_script and status as there's a bit more power in the XML commands http://runningwithrifles.gamepedia.com/ ... _interface that can be useful in some rare scenarios. XML commands in files can be executed in the console with execute 1.xml style.


Another problem, when a stage is over, the server change to next stage, the server has a chance to disappear from the servers list.
I have to "stop_server" and use xml command start again, it will be shown.
Plz take a check.
Thx :)

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/