Remember Me
Cruise Control
Information Files
Author: fatmanone No Screenshots Available Yet
Works with: GTA San Andreas 
Release/Version: 0.2.1
Status: Work In Progress
Started on: 15 Mar 2009
Last Updated: 21 Mar 2009
Views: 24369
Type: Created from scratch
Rating: 3 (4 votes)
Please log in to rate this mod
Primitive attempt for a cruise control mod in GTASA.
It has some issues and I don't think I'll be able to fix them, maybe anyone else?
Anyway here it is:
Install it as usual in CLEO and while driving a vehicle (preferable a car) press C to enable cruising at the current speed and X or SPACE to stop cruising and revert to normal.

Drawbacks are: The car acts like is driven by magic, that is will not decrease speed while colliding with stuff and of course will take damage. It behaves strange while flipped as in the car will drag on its back as soon as you exit it (while flipped). The speed is actually lower than the current speed - I have no idea how to calculate the correct value for it.


Since v 0.1 was kinda lame (cars moved like zombies of sort), here is v 0.2. It features a background tool written in c# that scans a file created by the cleo script which contains the cruise control status, the desired speed and the current speed. The exe sends keys for acceleration or brake intermittently in order to maintain the desired speed (I presume you would still have arrow UP and DOWN as acc and brk). I like this more since it's real and the car reacts to the environment normally. There are some tuning options as teh timer interval, the pipe file, etc. Just try and see.

Use the key 'C' to set and unset the cruise mode. Insist a little, it may not work at the slightest touch.
Install is straightforward, just copy the content form
I included the full source code of both the cleo script and the c# app, so anyone with ideas, please go ahead and help yourselves, just let me know 'coz I really wanna see some improved variant.

Anyway, stay tuned as I am researching into v 0.3 which will use a dll for speed set. The only drawback that might pop up is the fact that it would not be possible to send the keys to the process, but I'll workaround it I guess (anyone knows more about dll's in gtasa through cleo, is welcome to comment or PM or whatever).

Updated the .NET application by adding some more tuning options. Enjoy!
Comments News
GeekOfEvil commented over 9 years ago:
Great Idea, if it would actually work ... :-( Please check your programs, i found several errors in the debug mode. Could you please help me: - I put the file in my CLEO-Folder. - Yes, i HAVE the latest CLEO3-Version. - In my San Andreas-Folder are the following files (except game files): 1.) GTASACRUISECONTROLPIPE 2.) gtaSetSpeed.config 3.) gtaSetSpeed.exe 4.) readme.cruisecontrol.021.txt Problem is: The Mod IS writing into the GTASACRUISECONTROLPIPE, but it doesn' t affect the game, I can not turn on the cruise control. And what exactly is the program "gtaSetSpeed.exe" for? I tried running SA (and the mod) with and without the programm, but both ways didn't work. Problem: It says "Cruise on XX", but there is no effect. If I take my finger of the [W]-Key, the car stops and the camera goes up and up. In my CLEO-Folder there is the file "cruisecontrol.0.2.1.cs" and in the CLEO_TEXT-Folder there is the file cruisecontrol.0.2.1.fxt. What is my mistake? :wtf: Please help me! :furious:
pman commented over 9 years ago:
okay it doesnt works... 1/5
pman commented over 9 years ago:
euh that let gtasetspeed thing run may that start B4 GTASA?
pman commented over 9 years ago:
euh... ? long reading so i skipped a little (everything) so i got then cruise control with c and i can stop it with x ok.. and i'l test it..
View All Comments | Add Comment

Discuss this mod at GTAForums
V 0.2.1
V 0.2.1 adds more tuning options.

View All Updates
0 users viewing this mod (0 guests)
brick bit bit bit
bit bit bit bit