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

Custom start.xml options
http://www.runningwithrifles.com/phpBB3/viewtopic.php?f=5&t=1031
Page 1 of 1

Author:  {SAS}DocStone [ Tue Feb 26, 2013 3:41 pm ]
Post subject:  Custom start.xml options

Following on from this post:

pasik wrote:
{SAS}DocStone wrote:
Let me know what setting to change, and I will do it. Had a second blast there and it was almost 5v5 and the games were much more fun.


I love overtaking threads :) The direct way is to call e.g. "compensation_factor 20" in the server console. If you're using aliases to start the matches with specific settings, such as the 1,2,3,4 or 5 commands, you could edit commands.xml so that

Code:
    <alias name="3" command="start_game 0 0.94 160"/>


would be

Code:
    <alias name="3" command="start_game 0 0.94 160; compensation_factor 20"/>


to concatenate the commands into one call.

Other ways to increase difficulty / game time per match in cooperative would be
* starting the map with base count handicap, it's the first parameter, e.g. setting it to 1 will make greens have one base to start with (0 means even)
* increasing AI accuracy, in start_game command it's the second parameter, 0.94

While we are at it, it's also possible to run certain commands via the XML interface, e.g. http://modulaatio.com/runningwithrifles/start1.xml, you could copy that file in the server folder and in the console call "execute start1.xml". The XML commands are a bit more convenient, and they provide some extended settings.

Back to topic, I'm glad you're enjoying the adversary gaming style! I hope not all matches are ending up as complete stalemates :)


Looking to implement a start.xml file that would start the server with the following parameters:

Code:
start_server 1234 SAS_Clan 0.3


Then start the game with the following parameters:

Code:
start_game 0 0.94 300; compensation_factor 20


I would then like to create individual maps.xml files for each map which would firstly change the map, then it would run the above start_game command automatically as at the moment changing maps resets the game parameters to default.

Any pointers on how to do this would be ace! Cheers!

Author:  pasik [ Tue Feb 26, 2013 8:14 pm ]
Post subject:  Re: Custom start.xml options

{SAS}DocStone wrote:
Looking to implement a start.xml file that would start the server with the following parameters:

Code:
start_server 1234 SAS_Clan 0.3


Have a file like http://modulaatio.com/runningwithrifles ... server.xml, name to SAS_Clan, port to 1234, set client_faction_index as -1 to allow clients joining any faction like usual.

Persistency can be "match" or "forever", "match" is the default, which clears player profiles (stats, rank, last weapons, mortar counts etc) when a new match starts, forever doesn't.

{SAS}DocStone wrote:
Then start the game with the following parameters:

Code:
start_game 0 0.94 300; compensation_factor 20


I would then like to create individual maps.xml files for each map which would firstly change the map, then it would run the above start_game command automatically as at the moment changing maps resets the game parameters to default.


Have a file like http://modulaatio.com/runningwithrifles/start1.xml, modify max_soldiers to 300, player_bot_compensation to 20, initial_over_capacity to 0 for both factions, initial_occupied_bases to 0 on the first faction.

Repeat that for settings for every map, you'll then have start1.xml, start2.xml .. start5.xml.

You can group map change and match start commands using aliases at this point, aliases can contain other aliases as well, though such is not used in the example below. Edit commands.xml:

Code:
    <alias name="1" command="change_map vanilla/maps/map1; execute start1.xml"/>


There's one special alias, which is called init. You can make that to start the server when you launch the server application

Code:
   <alias name="init" command="execute start_server.xml"/>


I didn't test any of these, let me know if something isn't working! :)

Author:  {SAS}DocStone [ Tue Feb 26, 2013 10:00 pm ]
Post subject:  Re: Custom start.xml options

Cheers! I will probably break stuff :D

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