Jump to content

GTA V Lighting Pattern Carcols Command Line Testing Tool 1.0.0

   (1 review)

This is a little RPH command line tool I put together to utilize the new ELS-like features in RPH 0.47 that allow dynamic modifications of a vehicle's siren settings. Basically, you can modify the sequence, speed, direction, etc. of any siren on any vehicle, can apply any siren audio to any vehicle, etc. I've also added some commands to quickly enable you to enable only one siren at a time, or to cycle through all of the sirens with only one on at a time, to help you focus in on one part of your vehicle without distraction, or to see which sirens are where on a vehicle. 

Requires RPH 0.47+ and knowledge of carcols editing. This is a very very quick and simple plugin, designed to help out with testing new carcols settings. It's not meant for general use as an ELS type plugin. I will not be providing any support for it. It's simply here for you to use if you might find it useful or interesting. 

Due to a bug in RPH 0.47, it's not currently possible to clone and edit added sirensettings (e.g. siren settings above 13). You will need to use one of the default sirensettings slots to edit your patterns. 

The commands should be fairly self-explanatory if you're familiar with carcols editing. Just type "help" into the RPH console to see all the commands (Press F4 to open the console). 

Mulledk: Adding lighting editing features to RPH
PNWParksFan: Making this script

User Feedback

Recommended Comments

@PNWParksFan I have the exact same question as Lundy.

Also, is this "bug with RPH 0.47" also a problem with 0.45? I utilize sirensettings=14-20 with Custom Visuals, so this wouldn't be much help if I can't use it for custom additions.

Link to comment
Share on other sites

2 hours ago, Techengage said:

@PNWParksFan I have the exact same question as Lundy.

Also, is this "bug with RPH 0.47" also a problem with 0.45? I utilize sirensettings=14-20 with Custom Visuals, so this wouldn't be much help if I can't use it for custom additions.

The emergency lights developer assets that this plugin is probably based on were only first included with 0.46.

Link to comment
Share on other sites

2 hours ago, Lundy said:

@PNWParksFan So, this allows you to basically edit the carcols in-game and watch them? Is it simplified or is it shown exactly as the raw text from the carcols?

Not sure what you mean by "is it simplified". There's about a dozen console commands, in the form of e.g. SetLightFlashSequence(light_id, sequence). So for each command you specify the siren id you want to change and the new value. It's not like you directly paste in a bunch of XML if that's what you're asking. 

2 hours ago, Techengage said:

@PNWParksFan I have the exact same question as Lundy.

Also, is this "bug with RPH 0.47" also a problem with 0.45? I utilize sirensettings=14-20 with Custom Visuals, so this wouldn't be much help if I can't use it for custom additions.

This plugin will ONLY work with RPH 0.47. the emergency lighting API was added in 0.46 but had a bug that restricted you to only being able to edit the headlights/taillights. The bug in 0.47 does mean your 14-20 carcols won't work with it. You'll need to overwrite one of the default slots for testing, then once satisfied you can move it back to the custom slot. Overwrite an infrequently used a lot like the fire truck or lifeguard truck lights. 

Link to comment
Share on other sites

18 minutes ago, PNWParksFan said:

Not sure what you mean by "is it simplified". There's about a dozen console commands, in the form of e.g. SetLightFlashSequence(light_id, sequence). So for each command you specify the siren id you want to change and the new value. It's not like you directly paste in a bunch of XML if that's what you're asking.

That's what I meant. Sorry, I'm not familiar with the setup ragehook has given for carcols editing.

Link to comment
Share on other sites

20 minutes ago, Lundy said:

That's what I meant. Sorry, I'm not familiar with the setup ragehook has given for carcols editing.

No problems, that's what this plugin is for so you don't have to mess with the RPH API directly. Give it a try, I think it's pretty easy to figure out once you install it. 

Link to comment
Share on other sites

49 minutes ago, PNWParksFan said:

Not sure what you mean by "is it simplified". There's about a dozen console commands, in the form of e.g. SetLightFlashSequence(light_id, sequence). So for each command you specify the siren id you want to change and the new value. It's not like you directly paste in a bunch of XML if that's what you're asking. 

This plugin will ONLY work with RPH 0.47. the emergency lighting API was added in 0.46 but had a bug that restricted you to only being able to edit the headlights/taillights. The bug in 0.47 does mean your 14-20 carcols won't work with it. You'll need to overwrite one of the default slots for testing, then once satisfied you can move it back to the custom slot. Overwrite an infrequently used a lot like the fire truck or lifeguard truck lights. 

Great point. I'll definitely be trying this one out for my next update. Thank you very much :thumbsup:

Link to comment
Share on other sites

2 hours ago, PNWParksFan said:

No problems, that's what this plugin is for so you don't have to mess with the RPH API directly. Give it a try, I think it's pretty easy to figure out once you install it. 

Does your tool allow me to add my own lines into it? So lets say I put in sirensetting 17 and edit each siren to what I wish. Is that possible with it? Or does it only edit existing sirens?

Link to comment
Share on other sites

1 hour ago, Lundy said:

Does your tool allow me to add my own lines into it? So lets say I put in sirensetting 17 and edit each siren to what I wish. Is that possible with it? Or does it only edit existing sirens?

Unfortunately due to the aforementioned bug in RPH 0.47 you would not be able to edit sirensetting17. You need to start with a vehicle that has one of the default 1-13 sirensettings applied to it. From there, you can edit each of the sirens. 

At this time there's no way to export your changes, but eventually I'll add more features to allow that. 

Link to comment
Share on other sites

4 hours ago, PNWParksFan said:

Unfortunately due to the aforementioned bug in RPH 0.47 you would not be able to edit sirensetting17. You need to start with a vehicle that has one of the default 1-13 sirensettings applied to it. From there, you can edit each of the sirens. 

At this time there's no way to export your changes, but eventually I'll add more features to allow that. 

Is there a possibility of changing from console commands to a GUI? I know this is asking a whole lot, but it's always worth asking!

Link to comment
Share on other sites

1 hour ago, Techengage said:

Is there a possibility of changing from console commands to a GUI? I know this is asking a whole lot, but it's always worth asking!

No. This is a small, simple script I threw together quickly to test out the new features. Unless someone wants to hire me to do it for them, I haven't the time nor interest in developing a GUI for it. If somebody else wants to make a GUI for it I'm happy to share my code with them, although TBH it's just itsy-bitsy command line wrappers around the new RPH methods. 

Link to comment
Share on other sites

5 hours ago, Sethy1124 said:

Where are the edited carcols saved, I am trying to export them.

They don't get saved, it's just for testing purposes. You need to keep track of what you entered. Maybe in the future I will make a version which can export. 

Link to comment
Share on other sites

Create an account or sign in to comment

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

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
×
×
  • Create New...