Skip to content
View in the app

A better way to browse. Learn more.

LCPDFR.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
The latest updated version of RAGE Plugin Hook, required to play LSPDFR, can be found inside the LSPDFR download. It is not currently available on the RAGE Plugin Hook website.

Requests for backup.xml customization

Featured Replies

First off, huge thank-you to the LSPDFR team for LSPDFR 0.3 - it's awesome!

I'm enjoying customizing my backup.xml, but am finding myself wishing for a bit more flexibility, especially with probability of certain backup units arriving. It appears that each <VehicleSet> has an equal probability of responding, regardless of how many <Vehicle> entries are in that set. This means, for example, that I get a police bike almost 50% of the time when I call for State Patrol backup, even if there's 4 different vehicles listed under the non-bike group. It would be nice to be able to set the probability like you can with peds for any of the sets or vehicles groups, e.g.:

  <StatePatrol>
    <LosSantosCity>
      <VehicleSet chance="80">
        <Vehicles>
          <Vehicle chance="15" extra_2="true" extra_7="true" extra_12="false">police4</Vehicle>
          <Vehicle chance="15" extra_1="true">fbi</Vehicle>
          <Vehicle chance="70" livery="4" extra_2="false" extra_4="false" extra_3="true">police2</Vehicle>
        </Vehicles>
        <Peds>
          <Ped comp_shirt="1" comp_decals="1" comp_pants="1" helmet="false">s_m_y_hwaycop_01</Ped>
        </Peds>
        <NumPeds min="1" max="2" />
      </VehicleSet>
      <VehicleSet chance="20">
        <Vehicles>
          <Vehicle>policeb</Vehicle>
        </Vehicles>
        <Peds>
          <Ped comp_shirt="1" comp_decals="1" comp_pants="0" prop_head="0" helmet="true">s_m_y_hwaycop_01</Ped>
        </Peds>
        <NumPeds min="1" max="1" />
      </VehicleSet>
    </LosSantosCity>

 

It would also be nice to be able to add additional response regions. We currently have LS City, LS County, Blaine County, and North Yankton. I'd love to be able to add a region for the parks, so I could configure park rangers to respond in some areas. It would also be cool to be able to configure LS International Airport as a separate area, and have Airport Police, TSA, etc. be able to respond. It seems like there is some way of determining where you are in the game, e.g. callouts say "Backup required in... umm, Raton Canyon". Whatever system estimates what region you're in for that, could be adapted into the XML file. At the top of the file, before <BackupUnits>, you could have <ExtraBackupRegions>. Each entry would override the default regions included when the player is in that region. The format might be like: 

<ExtraBackupRegions>
  <BackupRegion name="Parks">
    <IncludeArea>Raton Canyon</IncludeArea>
    <IncludeArea>Paleto Forest</IncludeArea>
    <IncludeArea>Mt Chilliad State Wilderness</IncludeArea>
  </BackupRegion>
  <BackupRegion name="Airport">
    <IncludeArea>Los Santos International Airport</IncludeArea>
  </BackupRegion>
  <BackupRegion name="Port">
    <IncludeArea>Terminal</IncludeArea>
    <IncludeArea>Docks District</IncludeArea>
  </BackupRegion>
</ExtraBackupRegions>

<!-- Resume file as normal, allowing the regions above
     to be used in any of the backup unit sections. 
     If a region is missing a definition for one of 
     the categories, then just use the default for the
     area, e.g. if no "state patrol" is specified for 
     Los Santos International Airport, just send the 
     regular state patrol defined for City of Los Santos -->

<BackupUnits>
  <LocalPatrol>
    <Parks>
      <VehicleSet>
        
        ... 

 

Edited by PNWParksFan
Added details to example xml

[REL] Coastal Callouts: An action-packed mod with new vehicles, maps, capabilities, and callouts in and around the waters of Los Santos

[REL] Police Tape: Make your scenes more realistic while stopping peds and traffic

[REL] Better EMS: Realistic and dynamic EMS response

Join the Parks Benefactor Program to support my work and get early beta access!

  • Replies 24
  • Views 2.3k
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

  • default backup.xml doesn't have any examples of vehicle chance, so I'm not sure what you're referring to.

  • PNWParksFan
    PNWParksFan

    Yeah as far as I can tell, chance only applies to peds, but @Sam or @LMS would have to confirm that. 

  • I'm going to update it with a file choosing gui within an hour. Edit: Done,  Ok guys final update for a while...  barring in any bugs.  I added a gui file chooser to try and make things easier. 

Posted Images

28 minutes ago, PNWParksFan said:

First off, huge thank-you to the LSPDFR team for LSPDFR 0.3 - it's awesome!

I'm enjoying customizing my backup.xml, but am finding myself wishing for a bit more flexibility, especially with probability of certain backup units arriving. It appears that each <VehicleSet> has an equal probability of responding, regardless of how many <Vehicle> entries are in that set. This means, for example, that I get a police bike almost 50% of the time when I call for State Patrol backup, even if there's 4 different vehicles listed under the non-bike group. It would be nice to be able to set the probability like you can with peds for any of the sets or vehicles groups, e.g.:


  <StatePatrol>
    <LosSantosCity>
      <VehicleSet chance="80">
        <Vehicles>
          <Vehicle chance="15" extra_2="true" extra_7="true" extra_12="false">police4</Vehicle>
          <Vehicle chance="15" extra_1="true">fbi</Vehicle>
          <Vehicle chance="70" livery="4" extra_2="false" extra_4="false" extra_3="true">police2</Vehicle>
        </Vehicles>
        <Peds>
          <Ped comp_shirt="1" comp_decals="1" comp_pants="1" helmet="false">s_m_y_hwaycop_01</Ped>
        </Peds>
        <NumPeds min="1" max="2" />
      </VehicleSet>
      <VehicleSet chance="20">
        <Vehicles>
          <Vehicle>policeb</Vehicle>
        </Vehicles>
        <Peds>
          <Ped comp_shirt="1" comp_decals="1" comp_pants="0" prop_head="0" helmet="true">s_m_y_hwaycop_01</Ped>
        </Peds>
        <NumPeds min="1" max="1" />
      </VehicleSet>
    </LosSantosCity>

 

It would also be nice to be able to add additional response regions. We currently have LS City, LS County, Blaine County, and North Yankton. I'd love to be able to add a region for the parks, so I could configure park rangers to respond in some areas. It would also be cool to be able to configure LS International Airport as a separate area, and have Airport Police, TSA, etc. be able to respond. It seems like there is some way of determining where you are in the game, e.g. callouts say "Backup required in... umm, Raton Canyon". Whatever system estimates what region you're in for that, could be adapted into the XML file. At the top of the file, before <BackupUnits>, you could have <ExtraBackupRegions>. Each entry would override the default regions included when the player is in that region. The format might be like: 


<ExtraBackupRegions>
  <BackupRegion name="Parks">
    <IncludeArea>Raton Canyon</IncludeArea>
    <IncludeArea>Paleto Forest</IncludeArea>
    <IncludeArea>Mt Chilliad State Wilderness</IncludeArea>
  </BackupRegion>
  <BackupRegion name="Airport">
    <IncludeArea>Los Santos International Airport</IncludeArea>
  </BackupRegion>
  <BackupRegion name="Port">
    <IncludeArea>Terminal</IncludeArea>
    <IncludeArea>Docks District</IncludeArea>
  </BackupRegion>
</ExtraBackupRegions>

<!-- Resume file as normal, allowing the regions above
     to be used in any of the backup unit sections. 
     If a region is missing a definition for one of 
     the categories, then just use the default for the
     area, e.g. if no "state patrol" is specified for 
     Los Santos International Airport, just send the 
     regular state patrol defined for City of Los Santos -->

<BackupUnits>
  <LocalPatrol>
    <Parks>
      <VehicleSet>
        
        ... 

 

You can simply duplicate your vehicle sets to get the desired effect for your first request.  Each vehicle set has an equal chance of being spawned, so if you had two vehicle sets with a car and one set with a bike, the car would have a 2/3 chance.

The second thing is something we're considering for future versions.

"You tell me exactly what you want, and I will very carefully explain to you why it cannot be."

Well you can also make a copy of the VehicleSet to increase its probability. 

Logging in...

Launching game...

Error launching game: Cannot load while loading. Please log out and retry.

Logging out...

Error logging out. You are not logged in. You need to be logged in to log out. Please log in to log out.

  • Author
2 minutes ago, Sam said:

You can simply duplicate your vehicle sets to get the desired effect for your first request.  Each vehicle set has an equal chance of being spawned, so if you had two vehicle sets with a car and one set with a bike, the car would have a 2/3 chance.

The second thing is something we're considering for future versions.

Thanks for letting me know about that. It'll lead to enormous vehicle sets to get desired probabilities, so if you can add support for "chance=" in future versions it would be much appreciated. Adding more entries does work in the meantime though. 

Can you comment on the issues some of us are having with enabling/disabling extras not working as expected? http://www.lcpdfr.com/forums/topic/58961-backupxml-sharing-thread/#comment-392376

[REL] Coastal Callouts: An action-packed mod with new vehicles, maps, capabilities, and callouts in and around the waters of Los Santos

[REL] Police Tape: Make your scenes more realistic while stopping peds and traffic

[REL] Better EMS: Realistic and dynamic EMS response

Join the Parks Benefactor Program to support my work and get early beta access!

I created a tool that parses a "nicebackup.xml" file that includes vehicleset chance tags and creates the proper amount of duplicates to get the desired effect. 

I'm considering making a graphical editor for backup.xml but that will take some more time. 

 

 

Edited by jackscrj

23 hours ago, PNWParksFan said:

First off, huge thank-you to the LSPDFR team for LSPDFR 0.3 - it's awesome!

I'm enjoying customizing my backup.xml, but am finding myself wishing for a bit more flexibility, especially with probability of certain backup units arriving. It appears that each <VehicleSet> has an equal probability of responding, regardless of how many <Vehicle> entries are in that set. This means, for example, that I get a police bike almost 50% of the time when I call for State Patrol backup, even if there's 4 different vehicles listed under the non-bike group. It would be nice to be able to set the probability like you can with peds for any of the sets or vehicles groups, e.g.:

 

Very interesting thread, if I may ask how did you find out about the VehicleSet and per vehicle percentages? Don't see that documented anywhere. Thanks for sharing.

Sam's response:

23 hours ago, Sam said:

You can simply duplicate your vehicle sets to get the desired effect for your first request.  Each vehicle set has an equal chance of being spawned, so if you had two vehicle sets with a car and one set with a bike, the car would have a 2/3 chance.

The second thing is something we're considering for future versions.

 

Each <vehicle> in a <vehicleset> has the ability to be tagged with <vehicle chance="80"> say.

The main issue here was if you want to have your car <vehicleset> spawn with certain peds and your bike <vehicleset> spawn with a single ped with helmet say. 

But you wanted the car to spawn 75% of the time vs 25% of the time for the bike say. 

Edited by jackscrj
clarification

No problem, at first I didn't realize what an awesome addition the backup customization was. 

@Kilyin just to clarify there are a few distinctions, I think you are aware of this but for others reading: A vehicleset and a vehicle are not the same thing.

<vehicleset>

 <vehicles>

<vehicle chance="30">police<vehicle>

<vehicle chance="70">police2<vehicle>

</vehicles>

...

</vehicleset> 

Is possible in the original. 

 

The request was to allow chance tags on the <vehicleset> to allow for easier editing. So I made a tool as a work around. 

Edited by jackscrj

Is it possible to clarify? Can we use the chance attribute with vehicles too?

Can I use :

<vehicle chance="90">police2</vehicle>
<vehicle chance="10">police4</vehicle>

instead of typing the police2 line 9 times (more like pasting but you get the idea) and police4 1 time?

Edited by DLM3

Where we're going, we don't need signatures.

  • Author

Yeah as far as I can tell, chance only applies to peds, but @Sam or @LMS would have to confirm that. 

[REL] Coastal Callouts: An action-packed mod with new vehicles, maps, capabilities, and callouts in and around the waters of Los Santos

[REL] Police Tape: Make your scenes more realistic while stopping peds and traffic

[REL] Better EMS: Realistic and dynamic EMS response

Join the Parks Benefactor Program to support my work and get early beta access!

Ops you guys are right... Disregard my earlier comment. I can probably add it to my backup parser if you'd like. 

Edited by jackscrj

Well you guys were correct, vehicle chance tags were not supported. So I updated my xml parser to do those as well. 

If you guys do check it out, can you let me know if my directions are confusing. 

 

 

Edited by jackscrj

2 minutes ago, jackscrj said:

Well you guys were correct, vehicle chance tags were not supported. So I updated my xml parser to do those as well. 

If you guys do check it out, can you let me know if my directions are confusing. 

 

 

I'll give it a whirl.

I'm going to update it with a file choosing gui within an hour.

Edit: Done,  Ok guys final update for a while...  barring in any bugs.  I added a gui file chooser to try and make things easier. 

Edited by jackscrj

I said before I was considering making a graphical editor, this is not what I meant. 

In other words would you be interested in a gui tool where you didn't have to touch the xml at all. 

Just now, jackscrj said:

I said before I was considering making a graphical editor, this is not what I meant. 

In other words would you be interested in a gui tool where you didn't have to touch the xml at all. 

I'm pretty comfortable editing .xml files by hand but I'm sure it would help someone and I'd at least test it out. Depending on how intuitive the GUI is I might use it exclusively.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.