RUNNING WITH RIFLES http://runningwithrifles.com/phpBB3/ |
|
RWR Dedicated Server setup guide - OBSOLETE!!! http://runningwithrifles.com/phpBB3/viewtopic.php?f=9&t=1039 |
Page 3 of 4 |
Author: | {SAS}DocStone [ Tue May 21, 2013 1:13 pm ] |
Post subject: | Re: RWR Dedicated Server setup guide - Windows |
Guide updated to encompass new scripts. Just one thing though pasik, still having that issue where if I manually change the maps using the server console and the commands.xml if there are two commands chained together Code: <alias name="map1" command="change_map vanilla/maps/map1; execute start1.xml"/> then all that happens is the current map restarts. I have to run the following command first Code: <alias name="mapx" command="change_map vanilla/maps/map5"/> which will change the map with default settings before the server will recognise the original command and act on it. Only reason I noticed was during the last event I couldn't change the map until I remembered I had put the "mapx" command in to fix the issue. |
Author: | pasik [ Tue May 21, 2013 3:14 pm ] |
Post subject: | Re: RWR Dedicated Server setup guide - Windows *Updated* |
I still can't think of anything why that would happen. Server console Code: >map4 Map media/packages/vanilla.winter/maps/map4 load requested Overlay: media/overlays/modulaatio.invasion Loading Loading. Game loaded command class start_game command = start_game max_soldier 120 vehicles true player_bot_compensation 4 xp_multiplier 1 rp_multiplier 1 base_capture_system 0 friendly_fire false faction 0 ai_accuracy 0.94 initial_over_capacity 0 initial_occupied_bases 0 faction 1 ai_accuracy 0.94 initial_over_capacity 0 initial_occupied_bases 0 > commands.xml Code: ... <alias name="map4" command="change_map vanilla.winter/maps/map4; execute start1.xml"/> ... start1.xml Code: <command class="start_game" vehicles="1" max_soldiers="120" player_ai_compensation="4" progress_multiplier="1.0" base_capture_system="any" friendly_fire="0"> <faction initial_over_capacity="0" ai_accuracy="0.94" /> <faction initial_over_capacity="0" ai_accuracy="0.94" /> <!-- <faction initial_over_capacity="0" ai_accuracy="0.94" /> --> </command> For the fun of it, you could try this, should be interesting to know if it works or not: map3.xml: Code: <command class="change_map" map="media/packages/vanilla/maps/map3"> <!-- <overlay path="media/overlays/modulaatio.invasion" /> --> </command> commands.xml Code: ...
<alias name="foo" command="execute map3.xml; execute start1.xml"/> ... |
Author: | {SAS}DocStone [ Tue May 21, 2013 4:40 pm ] |
Post subject: | Re: RWR Dedicated Server setup guide - Windows *Updated* |
Lol, first time I type the command the current map stays the same but restarts, second time I type it, it changes map. Update! Actually, it does the same now with the original commands - I type map1 and the map does not change, I do it again and it does. Bizarre! |
Author: | pasik [ Tue May 21, 2013 5:11 pm ] |
Post subject: | Re: RWR Dedicated Server setup guide - Windows *Updated* |
Hmm.. what if you just press enter as the first command, or some non-existing command? |
Author: | {SAS}DocStone [ Tue Jun 04, 2013 3:22 pm ] |
Post subject: | Re: RWR Dedicated Server setup guide - Windows *Updated* |
Hehe, with the in game commands now the double entering is no longer an issue, weird. OK, here is an (EDITED)auto server restart batch file - restarts the server every 12 hours (currently 0400 and 1600 GMT for the {SAS} Servers) which should help out with the memory leaks that have been reported. (EDIT - once I figure out the AT command I might be able to set a time for restarts ) Code: @ECHO OFF :START CLS ECHO Starting Server Processes ECHO. TIMEOUT 5 ECHO Starting RWR Standard Server ECHO. e: CD e:/RWR1 START "RWR Standard" rwr_server.exe TIMEOUT 10 ECHO Starting map rotation script ECHO. CD e:/RWR1/modes START "Map Rotation Script" php gamemode_classic.php TIMEOUT 10 ECHO Starting RWR Invasion Server ECHO. CD e:/RWR2 START "RWR Invasion" rwr_server.exe TIMEOUT 10 ECHO Starting invasion script ECHO. CD e:/RWR2/modes START "Invasion Script" php gamemode_invasion.php ECHO 12 Hour Countdown Started ECHO. TIMEOUT 43200 ECHO Killing Servers ECHO. TASKKILL /f /im rwr_server.exe ECHO. TIMEOUT 30 ECHO Restarting servers ECHO. GOTO START This single command starts both servers and then after 12 hours kills them both and recalls itself to start all over again. Nice and simple. And just for you DoomMetal, a cut & paste special for in game map changes Spoiler: And the corresponding alias codes Spoiler: and modified start1.xml file, just do one for each map as you see fit: Spoiler: If someone would nice enough to modify my basic_command_handler.php file above to include the faction switch and the generate any in-game command code that pasik posted in this thread that would be ace, I have tried a few times but each time I do it I break it |
Author: | {SAS}DocStone [ Fri Mar 14, 2014 10:21 am ] |
Post subject: | Re: RWR Dedicated Server setup guide - Windows *Updated* |
Original post updated to reflect the 0.9.4 release, it really is much simpler now to get a dedicated server up and running. |
Author: | fallXone [ Mon Mar 17, 2014 2:21 am ] |
Post subject: | Re: RWR Dedicated Server setup guide - Windows *Updated 0.9. |
I am having a lot of trouble getting my server running.. Followed the steps just as you said. I'm running on Ubuntu Server. I make a new screen, run ./launch_server and the server launches. Then I run another screen and i do php server_settings_invasion.php, then I go back to the screen with the server and type start_server. The server starts but with none of my settings.. It isn't using any of the php files... What am I doing wrong? |
Author: | {SAS}DocStone [ Mon Mar 17, 2014 7:58 am ] |
Post subject: | Re: RWR Dedicated Server setup guide - Windows *Updated 0.9. |
fallXone wrote: I am having a lot of trouble getting my server running.. Followed the steps just as you said. I'm running on Ubuntu Server. I make a new screen, run ./launch_server and the server launches. Then I run another screen and i do php server_settings_invasion.php, then I go back to the screen with the server and type start_server. The server starts but with none of my settings.. It isn't using any of the php files... What am I doing wrong? You shouldn't need to manually start the server if your .php scripts are running properly, are you sure you have PHP installed on your system? Not up to speed on Ubuntu Server I am afraid. |
Author: | fallXone [ Mon Mar 17, 2014 2:57 pm ] |
Post subject: | Re: RWR Dedicated Server setup guide - Windows *Updated 0.9. |
{SAS}DocStone wrote: fallXone wrote: I am having a lot of trouble getting my server running.. Followed the steps just as you said. I'm running on Ubuntu Server. I make a new screen, run ./launch_server and the server launches. Then I run another screen and i do php server_settings_invasion.php, then I go back to the screen with the server and type start_server. The server starts but with none of my settings.. It isn't using any of the php files... What am I doing wrong? You shouldn't need to manually start the server if your .php scripts are running properly, are you sure you have PHP installed on your system? Not up to speed on Ubuntu Server I am afraid. Yeah I have php installed. What do you mean I shouldn't have to manually start the server? Do you guys have a linux guide available for running the dedicated server on linux? |
Author: | pasik [ Mon Mar 17, 2014 3:17 pm ] |
Post subject: | Re: RWR Dedicated Server setup guide - Windows *Updated 0.9. |
fallXone wrote: {SAS}DocStone wrote: fallXone wrote: I am having a lot of trouble getting my server running.. Followed the steps just as you said. I'm running on Ubuntu Server. I make a new screen, run ./launch_server and the server launches. Then I run another screen and i do php server_settings_invasion.php, then I go back to the screen with the server and type start_server. The server starts but with none of my settings.. It isn't using any of the php files... What am I doing wrong? You shouldn't need to manually start the server if your .php scripts are running properly, are you sure you have PHP installed on your system? Not up to speed on Ubuntu Server I am afraid. Yeah I have php installed. What do you mean I shouldn't have to manually start the server? Do you guys have a linux guide available for running the dedicated server on linux? Yup, you don't have to manually call start_server in the server console, the script is supposed to do it for you (script takes over the server console basically, though you can still intervene in there if needed). The source of the problem would seem to be that you'd need to start the gamemode script, that's the correct entry point, rather than server settings. So instead of running "php server_settings_invasion.php", try "php gamemode_invasion.php debug_output". |
Page 3 of 4 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |