Jump to content

Backup.xml Parser (Add chance tags to vehicles and vehicle sets) 2.1

   (0 reviews)

1 Screenshot

About This File

This is a simple program I wrote to allow easier configuration of vehicle set chance and Vehicles now too.

I have created a gui now, so you may choose to have the files where ever. 

<VehicleSet chance="66">
                ...</VehicleSet>

<VehicleSet chance="33">
          ...</VehicleSet>

Take the backup.xml the tool creates and place it in your gtav/lspdfr folder if you didn't select that folder initially.  

How to use: 

select your custom backup.xml file, and your output folder then click parse, it should create a new file in the output folder named backup.xml or will overwrite backup.xml if it is contained in the output folder. 

Warning this tool is made for windows only. Since I don't have developer certificate, you will most likely get a windows security prompt when trying to run my program. Simply click more info and run anyway. 

It accepts .xml files only the formatting should be the same as the default backup.xml

with only the addition of vehicle set chance tags and vehicle chance tags. 

Please comment with any bugs you find.

 

What it does exactly:

Since all vehicle sets (within an area) have equal probability it will duplicate vehicle sets in order simulate the chance probabilities. 

eg in the case of nicebackup.xml looking like

<VehicleSet chance="66">

          <Vehicles>
                    <Vehicle chance="70">police</Vehicle>
                    <Vehicle chance="20">police2</Vehicle>
                    <Vehicle chance="10">police3</Vehicle>
                </Vehicles>
                <Peds>
                    <Ped chance="80">s_m_y_cop_01</Ped>  <!-- Chances must add up to 100 -->
                    <Ped chance="20">s_f_y_cop_01</Ped>
                </Peds>
                <NumPeds min="1" max="2" />  <!-- Number of peds that will respond (minimum and maximum) -->
                ...</VehicleSet>

<VehicleSet chance="33">

          "set two content" 
          ...</VehicleSet>

the tool will produce backup.xml looking like

<VehicleSet>

 <Vehicles>

          <Vehicle>police</Vehicle>
          <Vehicle>police</Vehicle>
          <Vehicle>police</Vehicle>
          <Vehicle>police</Vehicle>
          <Vehicle>police</Vehicle>
          <Vehicle>police</Vehicle>
          <Vehicle>police</Vehicle>
          <Vehicle>police2</Vehicle>
          <Vehicle>police2</Vehicle>
          <Vehicle>police3</Vehicle>
        </Vehicles>
        <Peds>
          <Ped chance="80">s_m_y_cop_01</Ped>
          <!-- Chances must add up to 100 -->
          <Ped chance="20">s_f_y_cop_01</Ped>
        </Peds>
        <NumPeds min="1" max="2" />
                ...</VehicleSet>

<VehicleSet>

 <Vehicles>
 
          <Vehicle>police</Vehicle>
          <Vehicle>police</Vehicle>
          <Vehicle>police</Vehicle>
          <Vehicle>police</Vehicle>
          <Vehicle>police</Vehicle>
          <Vehicle>police</Vehicle>
          <Vehicle>police</Vehicle>
          <Vehicle>police2</Vehicle>
          <Vehicle>police2</Vehicle>
          <Vehicle>police3</Vehicle>
        </Vehicles>
        <Peds>
          <Ped chance="80">s_m_y_cop_01</Ped>
          <!-- Chances must add up to 100 -->
          <Ped chance="20">s_f_y_cop_01</Ped>
        </Peds>
        <NumPeds min="1" max="2" />
                ...</VehicleSet>

<VehicleSet>

          "set two content" 
          ...</VehicleSet>

parser.PNG


What's New in Version 2.1

Released

Created gui for choosing files.




User Feedback

Create an account or sign in to leave a review

You need to be a member in order to leave a review

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

There are no reviews to display.

×