{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!
