It is currently Thu May 01, 2025 5:16 am

RUNNING WITH RIFLES Multiplayer

test

Game servers 50 List provided by EpocDotFr | Players online 99


All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Custom start.xml options
PostPosted: Tue Feb 26, 2013 3:41 pm 
Offline
User avatar

Joined: Mon Feb 25, 2013 12:24 pm
Posts: 283
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!

_________________
Image


Top
 Profile  
 
PostPosted: Tue Feb 26, 2013 8:14 pm 
Offline
Site Admin

Joined: Mon Jun 27, 2011 11:59 am
Posts: 2856
{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! :)


Top
 Profile  
 
PostPosted: Tue Feb 26, 2013 10:00 pm 
Offline
User avatar

Joined: Mon Feb 25, 2013 12:24 pm
Posts: 283
Cheers! I will probably break stuff :D

_________________
Image


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 9 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group