Jump to content
    1. Welcome to GTAForums!

    1. GTANet.com

    1. GTA Online

      1. The Criminal Enterprises
      2. Updates
      3. Find Lobbies & Players
      4. Guides & Strategies
      5. Vehicles
      6. Content Creator
      7. Help & Support
    2. Red Dead Online

      1. Blood Money
      2. Frontier Pursuits
      3. Find Lobbies & Outlaws
      4. Help & Support
    3. Crews

    1. Grand Theft Auto Series

      1. Bugs*
      2. St. Andrews Cathedral
    2. GTA VI

    3. GTA V

      1. Guides & Strategies
      2. Help & Support
    4. GTA IV

      1. The Lost and Damned
      2. The Ballad of Gay Tony
      3. Guides & Strategies
      4. Help & Support
    5. GTA San Andreas

      1. Classic GTA SA
      2. Guides & Strategies
      3. Help & Support
    6. GTA Vice City

      1. Classic GTA VC
      2. Guides & Strategies
      3. Help & Support
    7. GTA III

      1. Classic GTA III
      2. Guides & Strategies
      3. Help & Support
    8. Portable Games

      1. GTA Chinatown Wars
      2. GTA Vice City Stories
      3. GTA Liberty City Stories
    9. Top-Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    1. Red Dead Redemption 2

      1. PC
      2. Help & Support
    2. Red Dead Redemption

    1. GTA Mods

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Red Dead Mods

      1. Documentation
    3. Mod Showroom

      1. Scripts & Plugins
      2. Maps
      3. Total Conversions
      4. Vehicles
      5. Textures
      6. Characters
      7. Tools
      8. Other
      9. Workshop
    4. Featured Mods

      1. Design Your Own Mission
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Rockstar Games

    2. Rockstar Collectors

    1. Off-Topic

      1. General Chat
      2. Gaming
      3. Technology
      4. Movies & TV
      5. Music
      6. Sports
      7. Vehicles
    2. Expression

      1. Graphics / Visual Arts
      2. GFX Requests & Tutorials
      3. Writers' Discussion
      4. Debates & Discussion
    1. Announcements

    2. Support

    3. Suggestions


Special car path mode?


Recommended Posts

So, some time ago i downloaded this mod:

It's a mod the let you record the vehicle and then play the recorded path.

But there's interesting things about it.

First: It creates an file very similar to the RRR files on carrec.img, but somehow it can play the path from this file without using the built-in paths system. It's divided into two .cs files, a recorder script, and a driver script.

There's no source code, and Sanny fails to decompile the driver script, but the recorder script decompiles fine, and it's very similar to the ones that create RRR files.

I created a RRR file creator by myself (i borrowed the memory reading routine from other code, but mostly it was built by me) just to learn how it worked. It works fine, i can post here if anyone wants, i have a commented source code.

But i didn't find any way or opcode that would let me play a path recorded on a file, the opcodes can only read paths from carrec.img, and if i tried to use another opcodes, i would probably fail, because i can't set every properties i can record using get car struct opcode, and it's even incomplete for that use.

I can't find out how that driver script works, and i can't decompile it.

Also, i observed that it behaves in a diferent way:
The car doesn't collide with other cars on the way, it just pass through them without interaction.

The normal behaviour when assigned to paths is different, the car does collide with everything, though it's not affected at all.

So, any ideas?


Edited by guferr
Link to comment
Share on other sites


I havent worked with paths but i have a bit of opcodes.
I am sure that if you couldnt figure it out or anyone else,

after you check these out that i could do it in my spare time.

I hope this helps.




07C0: load_path 706
0873: release_path 201

07C1: path 201 available
060E: car [email protected] assigned_to_path
860E: not car [email protected] assigned_to_path
87C1: not path 706 available

05EB: assign_car [email protected] to_path 706
085E: assign_car [email protected] to_looped_path 347

05EC: release_car [email protected] from_path
06C5: release_car [email protected] from_path

05ED: freeze_car [email protected] while_on_path
05EE: unfreeze_car [email protected] while_on_path

0705: car [email protected] assign_to_path 342 and_drive_normal
0706: advance_car [email protected] further_along_path 1.0
06FD: set_car [email protected] speed_on_path_to 1.0
04E0: car [email protected] abandon_path_radius 30

099B: unknown_enable_car [email protected] collision_on_path
// this opcode he probably didnt use or know of during the coding
// reason there is no collision with anything.

072F: enable_car [email protected] stuck_check_distance 1.0 time 2000 and_restore_if stuck 1 flipped 1 unk_place_on_road_properly 1 to_path -1 // extended 03CC






Link to comment
Share on other sites



I havent worked with paths but i have a bit of opcodes.

I am sure that if you couldnt figure it out or anyone else,

after you check these out that i could do it in my spare time.

I hope this helps.


Yes, i know these opcodes.


But the question is that they only use the carrecxxx.rrr files on carrec.img, they don't let you load your own file instead, or anything other than the pre-defined paths on carrec.img.


That mod records an file with the same structures or an RRR file, but it don't add it to carrec.img or make any change to it (even why, a script can't modify .img files, and even if it could, it would be very difficult) and then it can play the recorded path some how.


If at least i could decompile the .cs file, but i can't, and there's no source code too.

Link to comment
Share on other sites

Years ago @Deji made a code snippet to do such. You'll need to search through his website.



Got it.



Edited by Silent
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

  • 1 User Currently Viewing
    0 members, 0 Anonymous, 1 Guest

  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.