Page 1 of 1

XML Configuration files

PostPosted: 17 Sep 2011, 08:16
by FakeLoki
Hey Guys,
My friends and I have been really enjoying your game but I've been trying to make some minor modifications to the .xml files in Zero Ballistics using Notepad++ and I've been having touble finding the variables I'm after.

So far all I've really done is change the bot names in config_server.xml...
Code: Select all
<section name="">
        <variable name="names" value="[Hitler;Stalin;Churchill;Roosevelt;Mussolini;Menzies;Tojo;Blackadder]" type="vector<string>" />

Bring down the upgrade costs in upgrade_system.xml for a faster game...
Code: Select all
<section name="upgrade.cost">
                <variable name="weapon1" value="7"  type="unsigned" />
                <variable name="weapon2" value="7" type="unsigned" />
                <variable name="weapon3" value="7" type="unsigned" />

And try to nerf some weapons like the armor_piercing_cannon in weapon_systems.xml...
Code: Select all
<variable name="recoil" value="0.05" type="float" />

It seems as though the number of upgrades you can get is limited or something, is this the case and is it changeable without altering the source?
Is the max players per server stored in an xml file somewhere that I can't find?
It seems like there's no documentation for altering the game beyond the in game menus so I though I'd post this here.

Re: XML Configuration files

PostPosted: 19 Sep 2011, 18:47
by Michael
Hi FakeLoki,

great that you enjoy our game, we always love to hear that!

try to add the corresponding entries to all the config files affected (upgrades.xml and upgrade_system.xml), the upgrade effect should work, but GUI won't show more than 3 entries per category.
Code: Select all
<section name="upgrade.cost">
      <variable name="weapon3" value="7" type="unsigned" />
      <variable name="weapon4" value="7" type="unsigned" />
<section name="upgrade.desc">
      <variable name="weapon3" value="Highly increased damage." type="string" />
      <variable name="weapon4" value="Ultimately increased damage." type="string" />

@max players:
try editing the config_server.xml and restart the server afterwards:
Code: Select all
<section name="server.settings">
   <variable name="max_connections" value="10" type="unsigned" />


Re: XML Configuration files

PostPosted: 27 Jun 2018, 07:40
by jasminsmith
How to read and create simple XML configuration files for your application; Author: Hugh Hall; Updated: 6 Feb 2009; Section
7765X exam dumps

Re: XML Configuration files

PostPosted: 21 Jul 2018, 12:22
by PauletteLewis
I have tried executing the code what you have posted in this page and it got installed into my computer very easily and working smoothly. But, the problem is that it not getting installed in my office online assignment help companies blog server when I tried to install it by using third party software the system got crashed and all computers are stooped working.

Re: XML Configuration files

PostPosted: 19 Oct 2018, 07:35
by vovuk
Wherever you live or travel around the world, you are very likely to run into one of the more than 40,000 restaurants located in 121 countries around the globe.