Vehicle Modding Questions And Tips

Somewhat related:
Making all paint candy paint-like
Juiced Patch lets me play SR2 at a bearable FPS if I press F1, to activate Voliton's "Ugly Mode".
0.jpg
0a.jpg

However, one of the setbacks is that it turns off the specular light. This turns every car from a Gradient tool to a Paint Bucket tool (i.e. ugly and flat)
Candy paint (and to a lesser extent, Iridescent) does not suffer from this issue (right picture).
source: Artur Haddad of StackOverflow

The idea is to make:
1. Shader variables
<Shader_Variable>Fresnel_Falloff_Brightness_Amount</Shader_Variable>
and
<Shader_Variable>Fresnel_Falloff_Contrast_Amount</Shader_Variable> 's values be above 0.0
2. Change all Paint type to Standard*
*In my brief experimentation I discovered Candy Paint were labeled as Standard, so.
There are 600+ paint entries in the game (or atleast in my GOTR files), and since it's repetitious work with a valid pattern, automating this will free up your time for other tasks such as playing the game.

It's very possible there is a "better" way to do this without reliance on plugins*.
However, Notepad++ mostly supports only single-line search and replace**, so.
As SeaboundSaint once mentioned in the Uninstaller sections, you shouldn't 100% trust random files from the internet. They could be doing anything you don't know about. Plugins could be open source, but Imma be honest I don't feel like reading code tonight. (i.e. if ToolBucket steals your data/make it explode I'm not taking responsibility)
As far as I could verify, Notepad++ plugins doesn't seem to have a code review process like F-Droid app store does for example.
I would love to be wrong on this, of course!
notice it has only one line in the ctrl+g
so to do multi line not only you would have to copy TAB CHARACTERS
you would also have to do shit like \r\n or \\r\\n and then MORE TAB CHARACTERS
and may a higher being decide if you use the history feature of the dropdown menu (it doesn't work anymore).
BOOOOOO

(at this point i am sooooo tired. sorry)
0. From menu bar, click Language > XML for that sweet, sweet syntax highlighting.
1. Plugins > Plugins Admin
1775047324735.png

2. Search for "ToolBucket", click the checkbox beside it and press Install (top right). It will prompt to restart and ask you to save any unsaved documents.
3. Check it's appeared in the Plugins submenu like in the picture above
Now to actually Find and Replace:

<Shader_Variable>
You can change the float values based on your preference.


Find (Old)Replace (New)
XML:
            <Shader_Values>
                <Shader_Variable>Fresnel_Falloff_Brightness_Amount</Shader_Variable>
                <Value>
                    <Float_Element>
                        <Float>0.0</Float>
                        </Float_Element>
                    </Value>
                </Shader_Values>
            <Shader_Values>
                <Shader_Variable>Fresnel_Falloff_Contrast_Amount</Shader_Variable>
                <Value>
                    <Float_Element>
                        <Float>0.0</Float>
                        </Float_Element>
                    </Value>
            </Shader_Values>
XML:
            <Shader_Values>
                <Shader_Variable>Fresnel_Falloff_Brightness_Amount</Shader_Variable>
                <Value>
                    <Float_Element>
                        <Float>1.0</Float>
                        </Float_Element>
                    </Value>
                </Shader_Values>
            <Shader_Values>
                <Shader_Variable>Fresnel_Falloff_Contrast_Amount</Shader_Variable>
                <Value>
                    <Float_Element>
                        <Float>1.35</Float>
                        </Float_Element>
                    </Value>
                </Shader_Values>

<Paint_Type> (note, TICK "USE REGULAR EXPRESSIONS" BOX!) .*? is a regular expression that acts as a wild card - as long as there is <Paint_Type> and </Paint_Type>, it doesn't care what's in the middle.

Find (Old)Replace (New)
<Paint_Type>.*?</Paint_Type><Paint_Type>Standard</Paint_Type>


So for first one, if Notepad++ open the plugin from menu bar > Plugins > ToolBucket
1775046889679.png


1775046384571.png


If you did it correctly it will say X matches replaced. If 0 matches, try checking your settings and the contents of the text.
1775046815244.png


The second one is much easier, you can continue using the ToolBucket interface or Notepad++'s native function (Ctrl+G).
Just make sure to paste <Paint_Type>.*?</Paint_Type> in Find, <Paint_Type>Standard</Paint_Type> in Replace and tick Use regular expression.

When all is said and done you should have something similiar to this (in Ugly Mode anyway - the reason I made this):

0b.jpg
0c.jpg

You can use it without Ugly Mode as well.

The file I am attaching is FOR GOTR. Vanilla file seems a different size, so you'll have to do it according to the provided steps if you need to for now. I'm a bit tired to do a proper release (and being honest it looks kinda ass anyway). donut steal
Enjoy

Edit: Added less contrast version which loses less colour of the vehicle (0.85 instead of 1.3)
 

Attachments

Last edited:
You can do multi-line find and replace in base Notepad++ (no plug-in required). Just highlight what you want to find/replace, then press CTRL+F/CTRL+H. It will look like the text is inline in the search box, but the line-breaks are there. You can even find just the line separator character by highlighting it.

Granted, you can't easily type up a paragraph into the search box, though. You'd have to type it into the file, highlight it, then find it.

There was also recent update which increased the number of characters that the find/replace can handle.

As SeaboundSaint once mentioned in the Uninstaller sections, you shouldn't 100% trust random files from the internet. They could be doing anything you don't know about.
That advice does indeed apply generally to anything you download from the internet, but specifically I give that warning to .bat files because they interface directly with a person's PC, and are very easy to modify. So only download a .bat file if you're absolutely sure it's from a reputable source.
 
See Part 1

 
If you got an example of a bat I could use or some I've been using this one but it ain't seem been working

sr2_vehicle_table_crunch.exe -output_name CAR_4DR_LUXURY04.cvtf -variant_table tables\CAR_4DR_LUXURY04.xtbl
 
Those are instructions for the Npc cruncher.
For the vehicle cruncher drop the vehicle xtbl and the vehicle_cust xtbl in the directory with the cruncher and drag the vehicle xtbl file on top of the cruncher.
 
If you got an example of a bat I could use or some I've been using this one but it ain't seem been working

sr2_vehicle_table_crunch.exe -output_name CAR_4DR_LUXURY04.cvtf -variant_table tables\CAR_4DR_LUXURY04.xtbl
Code:
sr2_vehicle_table_crunch.exe -output_name car_4dr_luxury04.cvtf -cust_table tables\car_4dr_luxury04_cust.xtbl -variant_table tables\CAR_4DR_LUXURY04.xtbl
 
Back
Top