Brick Rigs

Brick Rigs

Not enough ratings
Hex Editing Vehicle Files
By erasemint
A guide for file editing with a hex editor and about the format of the vehicle file
   
Award
Favorite
Favorited
Unfavorite
Rundown
This guide assumes you know how to manage files between a file manager and a program.
If you are on the Brick Rigs discord, there are hex editing guides and a video or so in the tips channels.

Tool
A hex editor is a file editing software. This site provides a free browser-based hex editor.[hexed.it]

Hexediting
I recommend making a new vehicle file with only the brick you want to edit.
Normal vehicle files will have a lot to look through.

The blue-highlighted byte is what you should edit.


The gold underline shows the data type that you will usually be editing.

The site has a save file option you can use when you're done.
File Navigation
In-game, there is an option to Open Containing Folder in the right side of the vehicle menu.


Vehicle Saves Folder Location
Windows:
AppData/Local/BrickRigs/SavedRemastered/Vehicles
  • WIN + R, then type in %appdata% to get there faster.
    (If you don't want to just Open Containing Folder)
Linux:
.steam/debian-installation/steamapps/compatdata/552100/pfx/
drive_c/users/steamuser/AppData/Local/BrickRigs/SavedRemastered
  • 552100 is the game's store number on steam (also there is a line break in that sorry)
Format and Data Types
Here's how properties are stored :
RED : Property name (utf-8? str)
YELLOW : Number of values (uint 16)
GREEN : Length of all values (in bytes) (uint 32)
LIGHT BLUE : Value 1 (float 32)
BLUE : Value 2 (float 32)
PURPLE : Length in bytes of each value (uint 16)
(Credit to Perru)
Tips
Scaleables
There will be three 32-bit float values adjacent to each other, after the three zeros.
They are 4 bytes long each, and the value is on the left end.
(See format and data types section for more information)

Complicated FIles
In big files, there may be less than 3 zeros before the property value. This is because there is multiple values under the property name.
I suggest understanding the format and data types, for reading complex files.
(once you understand it shouldn't be hard to pick out details)

Value Conversion
Decimals may move around from what you see in-game to the hex editor.
There is an option to copy the value of a brick in-game and you should it'll be in the hex editor.

How to Search using Copied Property Value (hexed.it)


You can edit position and rotation of bricks but it's time consuming even if you are good at it.
(You can do it manually in-game anyway, and there is a mod on the discord that extends boundaries)
Thanks for Reading
Made for 1.8

I will consider crediting anyone I know who asks (possibly learned from).
Credited people can request for anyone specific to be credited.
You can ask for credit to be placed next to tips.
You can use information from this guide for your own guides.

Please suggest or correct information for this guide in the comments, and you can also be credited if you want.

Also please ask questions, and suggest stuff that may help with curse of knowledge bias stuff.

Credits
Perru
Varisha
Ookron
1 Comments
kot910 8 Sep @ 8:40pm 
:carto_sheep: