Quantcast

Jump to content

» «
Photo

[SA|CLEO] Cruise Control: Reloaded

23 replies to this topic
Silent
  • Silent

    Altering R* Vision™ since 2008

  • Modding Staff
  • Joined: 01 Feb 2010
  • Poland
  • Contribution Award [Mods]
    Best Script/Plugin 2014 [SilentPatch]
    Most Respected 2014
    Most Helpful [Mods] 2014
    Most Helpful [GTA] 2013
    Most Helpful [Mods] 2013
    Most Talented [Modding] 2013
    Best Map 2013 [ViceCityStories PC Edition]
    Best Vehicle 2013 [III Aircraft]
    Most Helpful [Mods] 2012
    Modder of the Year 2012

#1

Posted 01 November 2012 - 03:45 PM Edited by SilentPL, 12 November 2013 - 02:29 PM.

Cruise Control: Reloaded 1.0


What's 'Reloaded'?

Reloaded is a series of modifications I'm going to write, which are basically remakes of my old mods, written back in 2008 or 2009. These mostly were bad and weren't working great. Now, my coding skills allow me to write them from scratch, this time working better and faster. All the mods are going to be Open Source, including both new style and old style sources, so you can compare them both and learn how the same (or similar) script can be written in several ways. Please note that it's NOT recommended to EVER use any of the old sources for any reason except than learning (by seeing bad habits)!

The first Reloaded mod I'm going to show you is Cruise Control (previously called Tempomat). It might not sound exciting or complex and indeed, this time it's a very simple mod (Silent's aging, eh? tounge.gif). The idea itself might have been made by several modders already, but this release is supposed to be the most natural Cruise Control available. It works differently from the other available mods, so the car's still obeying all the physics laws, and the steering works like the mod's operating your joypad manually (which it does indeed!).


This mod is compatible with the CLEO 3/4 Libraries found here:
http://cleo.sannybuilder.com/

Put CLEO folder (with all their content) in your game directory (not much of a content though!).


Download

As GTAGarage widget is gone for now:
http://www.gtagarage...ow.php?id=22133


Usage

Press the = button whilst driving to activate Cruise Control. You will hear a single beep indicating that mod is active and waiting you to release throttle. After doing so, you will hear a second beep and vehicle's speed will be kept steady. Accelerate or brake to deactivate Cruise Control.


Known bugs

None.


That's gonna be the simplest CLEO ever released by me here tounge2.gif
  • Cisto likes this

LINK/2012
  • LINK/2012

    LIVIN' IN CODE

  • Feroci
  • Joined: 30 Jan 2011
  • Brazil
  • Best Tool 2014 [Mod Loader]
    Contribution Award [Mods]

#2

Posted 01 November 2012 - 04:46 PM

Going to see nooby mods made in a complex way tounge.gif

aStiffSausage
  • aStiffSausage

    Formerly Oksu

  • Members
  • Joined: 30 Sep 2010
  • Finland

#3

Posted 01 November 2012 - 07:54 PM Edited by oksa8, 02 November 2012 - 07:18 PM.

QUOTE (Link2012 @ Thursday, Nov 1 2012, 18:46)
Going to see nooby mods made in a complex way tounge.gif

This, but also with a lot better functionality! smile.gif

Will test this right away.

EDIT: God damn it, you've done it again! Thanks really much! smile.gif

Btw, got one suggestion for this mod: If you could add decrease/increase option?

Silent
  • Silent

    Altering R* Vision™ since 2008

  • Modding Staff
  • Joined: 01 Feb 2010
  • Poland
  • Contribution Award [Mods]
    Best Script/Plugin 2014 [SilentPatch]
    Most Respected 2014
    Most Helpful [Mods] 2014
    Most Helpful [GTA] 2013
    Most Helpful [Mods] 2013
    Most Talented [Modding] 2013
    Best Map 2013 [ViceCityStories PC Edition]
    Best Vehicle 2013 [III Aircraft]
    Most Helpful [Mods] 2012
    Modder of the Year 2012

#4

Posted 02 November 2012 - 07:57 PM

QUOTE (oksa8 @ Thursday, Nov 1 2012, 20:54)
Btw, got one suggestion for this mod: If you could add decrease/increase option?

Thought about it, had no idea which keypress to use tounge.gif

aStiffSausage
  • aStiffSausage

    Formerly Oksu

  • Members
  • Joined: 30 Sep 2010
  • Finland

#5

Posted 02 November 2012 - 08:11 PM

QUOTE (SilentPL @ Friday, Nov 2 2012, 21:57)
QUOTE (oksa8 @ Thursday, Nov 1 2012, 20:54)
Btw, got one suggestion for this mod: If you could add decrease/increase option?

Thought about it, had no idea which keypress to use tounge.gif

Maybe +/-? smile.gif

Though I guess a way to customize keypresses (other than compiling own script) would be good. Especially for people who aren't using "stantard" keyboard-overlay.

Silent
  • Silent

    Altering R* Vision™ since 2008

  • Modding Staff
  • Joined: 01 Feb 2010
  • Poland
  • Contribution Award [Mods]
    Best Script/Plugin 2014 [SilentPatch]
    Most Respected 2014
    Most Helpful [Mods] 2014
    Most Helpful [GTA] 2013
    Most Helpful [Mods] 2013
    Most Talented [Modding] 2013
    Best Map 2013 [ViceCityStories PC Edition]
    Best Vehicle 2013 [III Aircraft]
    Most Helpful [Mods] 2012
    Modder of the Year 2012

#6

Posted 02 November 2012 - 08:14 PM

QUOTE (oksa8 @ Friday, Nov 2 2012, 21:11)
Though I guess a way to customize keypresses (other than compiling own script) would be good. Especially for people who aren't using "stantard" keyboard-overlay.

That's going to decrease compatibility with EXEs other than 1.0 (NOT going to make it CLEO4 only), but should be possible.

EvilRaptor
  • EvilRaptor

    The Driver

  • Members
  • Joined: 14 Jun 2007
  • United-Kingdom

#7

Posted 02 November 2012 - 09:28 PM

This is cool man, looking forward to more of your stuff biggrin.gif

On the question of keypresses, could you not use the SCM opcode
CODE
00E1:   player 0 pressed_key 19

using 14 (reverse) or 16 (accelerate) for increasing and decreasing the speed? As these are the ones that relate to customizable controls...

Silent
  • Silent

    Altering R* Vision™ since 2008

  • Modding Staff
  • Joined: 01 Feb 2010
  • Poland
  • Contribution Award [Mods]
    Best Script/Plugin 2014 [SilentPatch]
    Most Respected 2014
    Most Helpful [Mods] 2014
    Most Helpful [GTA] 2013
    Most Helpful [Mods] 2013
    Most Talented [Modding] 2013
    Best Map 2013 [ViceCityStories PC Edition]
    Best Vehicle 2013 [III Aircraft]
    Most Helpful [Mods] 2012
    Modder of the Year 2012

#8

Posted 02 November 2012 - 11:28 PM

Well, both are used to toggle Cruise Control off (just like in the real autocruise, when you press brake it shuts down instantly).

EvilRaptor
  • EvilRaptor

    The Driver

  • Members
  • Joined: 14 Jun 2007
  • United-Kingdom

#9

Posted 03 November 2012 - 05:53 PM

I guess that's true enough, what about the positive/negative conversation response buttons, 10 and 11 (respectively)?
I'm just thinking about the prospects of people having custom controls, that's all, it'd be cool though :]

Silent
  • Silent

    Altering R* Vision™ since 2008

  • Modding Staff
  • Joined: 01 Feb 2010
  • Poland
  • Contribution Award [Mods]
    Best Script/Plugin 2014 [SilentPatch]
    Most Respected 2014
    Most Helpful [Mods] 2014
    Most Helpful [GTA] 2013
    Most Helpful [Mods] 2013
    Most Talented [Modding] 2013
    Best Map 2013 [ViceCityStories PC Edition]
    Best Vehicle 2013 [III Aircraft]
    Most Helpful [Mods] 2012
    Modder of the Year 2012

#10

Posted 03 November 2012 - 07:07 PM

Indeed, Y/N (or DPad Up/DPad Down) seems like the best keypresses to implement this. Guess I'll add it soon.

TheGodfather.
  • TheGodfather.

    Nobody likes me here...I think...

  • Members
  • Joined: 19 Jun 2012

#11

Posted 04 November 2012 - 03:19 AM

I used the mod but the speed still decrease a bit slowly but it decreases even if you use the mod..Can u please fix that ??

aStiffSausage
  • aStiffSausage

    Formerly Oksu

  • Members
  • Joined: 30 Sep 2010
  • Finland

#12

Posted 17 November 2012 - 09:25 PM

I got a small suggestion, maybe for additional version.

When you press brake, the mod would temporarily stop working and when brake is released, it would accelerate back to set speed. Or when pressing brake, the cruise-control speed would set to 0 until acceleration-key is pressed. Would help a lot when driving in a city, when you don't need to set the speed all the time in a small alley where you could just let the car glide.

Silent
  • Silent

    Altering R* Vision™ since 2008

  • Modding Staff
  • Joined: 01 Feb 2010
  • Poland
  • Contribution Award [Mods]
    Best Script/Plugin 2014 [SilentPatch]
    Most Respected 2014
    Most Helpful [Mods] 2014
    Most Helpful [GTA] 2013
    Most Helpful [Mods] 2013
    Most Talented [Modding] 2013
    Best Map 2013 [ViceCityStories PC Edition]
    Best Vehicle 2013 [III Aircraft]
    Most Helpful [Mods] 2012
    Modder of the Year 2012

#13

Posted 17 November 2012 - 09:43 PM

That could work, although it indeed should be an additional version - real life cruise control shutdowns after pressing brake pedal, safety reason.

Silent
  • Silent

    Altering R* Vision™ since 2008

  • Modding Staff
  • Joined: 01 Feb 2010
  • Poland
  • Contribution Award [Mods]
    Best Script/Plugin 2014 [SilentPatch]
    Most Respected 2014
    Most Helpful [Mods] 2014
    Most Helpful [GTA] 2013
    Most Helpful [Mods] 2013
    Most Talented [Modding] 2013
    Best Map 2013 [ViceCityStories PC Edition]
    Best Vehicle 2013 [III Aircraft]
    Most Helpful [Mods] 2012
    Modder of the Year 2012

#14

Posted 19 November 2012 - 09:42 PM

Thought I'd bump it with some news:

I'm planning to release 1.1 version which will cover all the requests in its INI file. That's how it might look:

CODE
[CruiseControl]
; Set to 1 to make Cruise Control shutdown permanently after pressing Accelerate key
; Setting to 0 will make it shutdown temporaily and go back to esired speed when key is released
DisableOnAccelerate=0
; The same as above, but with Brake key
DisableOnBrake=1
; Toggle on/off key; Virtual Key Code, see virtualkeys.txt for reference
ToggleKey=11
; Increase Speed key; Virtual Key Code, see virtualkeys.txt for reference
IncreaseSpeedKey=12
; Decrease Speed key; Virtual Key Code, see virtualkeys.txt for reference
DecreaseSpeedKey=13


I also thought about a little API (one SCM function), which could allow implementing a new arrow for speedometers which will indicate the speed Cruise Control is aiming at (18 Wheels of Steel anyone?). I'm thinking about shipping an example speedometer (most likely, the one made by Alexander Blade) with this feature applied.

Gramps
  • Gramps

    ★★★★★

  • Modding Staff
  • Joined: 23 May 2008
  • New-Zealand
  • Helpfulness Award
    Contribution Award [Mods]

#15

Posted 22 November 2012 - 08:57 AM

Thats awesome ! ^ v1.1 is going to be great icon14.gif

Can I make a suggestion?

It's not really 'cruise control' as such; but more of a way to cruise with the traffic ..

Possible to set a speed limit (that similar to the speed of the NPC's drive in town); so we can't go over this speed limit with disabling it. That way we can drive around town like a normal person, instead of normal-crazy-GTA-style.

Also, is it possible to somehow 'decrease acceleration' .. Its easy to control acceleration when using a XBOX360 control (by using the triggers underneath) .. But with a keyboard, as soon as I put my finger on the 'W' key, its 'full acceleration'; theres no inbetween (except if I tap, but that isn't realistic)

I hope thats easy to understand ^

EDIT

Disregard that last bit, will probably be to hard to implement. I guess the easiest way to achieve it would be to use my 360 controller when I want to drive around town like a normal person. I just left it there incase anyone else had any input/thoughts into the idea.

Silent
  • Silent

    Altering R* Vision™ since 2008

  • Modding Staff
  • Joined: 01 Feb 2010
  • Poland
  • Contribution Award [Mods]
    Best Script/Plugin 2014 [SilentPatch]
    Most Respected 2014
    Most Helpful [Mods] 2014
    Most Helpful [GTA] 2013
    Most Helpful [Mods] 2013
    Most Talented [Modding] 2013
    Best Map 2013 [ViceCityStories PC Edition]
    Best Vehicle 2013 [III Aircraft]
    Most Helpful [Mods] 2012
    Modder of the Year 2012

#16

Posted 22 November 2012 - 04:10 PM

Both are possible to implement (not 100% sure about the 1st one though). Perhaps I could add "Gentle movments" button, which would 'slow down' the WSAD inputs when pressed (say, press Shift + W to accelerate slowly).

Gramps
  • Gramps

    ★★★★★

  • Modding Staff
  • Joined: 23 May 2008
  • New-Zealand
  • Helpfulness Award
    Contribution Award [Mods]

#17

Posted 23 November 2012 - 06:53 AM

QUOTE (SilentPL @ Thursday, Nov 22 2012, 16:10)
Perhaps I could add "Gentle movments" button, which would 'slow down' the WSAD inputs when pressed (say, press Shift + W to accelerate slowly).

Perfect ! inlove.gif
Sorry we haven't caught up on Skype in a while; different Timezones lol. My PC is always on, so i'm always on Skype, even though I'm not around

aStiffSausage
  • aStiffSausage

    Formerly Oksu

  • Members
  • Joined: 30 Sep 2010
  • Finland

#18

Posted 06 February 2013 - 07:15 PM

Has there been progress in v2.0? smile.gif

Silent
  • Silent

    Altering R* Vision™ since 2008

  • Modding Staff
  • Joined: 01 Feb 2010
  • Poland
  • Contribution Award [Mods]
    Best Script/Plugin 2014 [SilentPatch]
    Most Respected 2014
    Most Helpful [Mods] 2014
    Most Helpful [GTA] 2013
    Most Helpful [Mods] 2013
    Most Talented [Modding] 2013
    Best Map 2013 [ViceCityStories PC Edition]
    Best Vehicle 2013 [III Aircraft]
    Most Helpful [Mods] 2012
    Modder of the Year 2012

#19

Posted 06 February 2013 - 07:28 PM

Unfortunately not, many other things were stealing my time tounge.gif

IBS-RP
  • IBS-RP

    Player Hater

  • Members
  • Joined: 06 Oct 2013

#20

Posted 12 November 2013 - 12:28 AM

Where is download link???


Silent
  • Silent

    Altering R* Vision™ since 2008

  • Modding Staff
  • Joined: 01 Feb 2010
  • Poland
  • Contribution Award [Mods]
    Best Script/Plugin 2014 [SilentPatch]
    Most Respected 2014
    Most Helpful [Mods] 2014
    Most Helpful [GTA] 2013
    Most Helpful [Mods] 2013
    Most Talented [Modding] 2013
    Best Map 2013 [ViceCityStories PC Edition]
    Best Vehicle 2013 [III Aircraft]
    Most Helpful [Mods] 2012
    Modder of the Year 2012

#21

Posted 12 November 2013 - 02:30 PM

Where is download link???


GTAGarage widget is gone since the update, so there was no link in the main post indeed. Get it here:
http://www.gtagarage...ow.php?id=22133

chairmansaab
  • chairmansaab

    Square Civilian

  • Members
  • Joined: 15 Oct 2011

#22

Posted 30 January 2014 - 10:00 PM

Please make one for cleo Android!!

step2ice
  • step2ice

    Player Hater

  • Members
  • Joined: 12 Jun 2005

#23

Posted 18 August 2014 - 01:13 PM Edited by step2ice, 18 August 2014 - 01:23 PM.

Usage

Press the = button whilst driving to activate Cruise Control. You will hear a single beep indicating that mod is active and waiting you to release throttle. After doing so, you will hear a second beep and vehicle's speed will be kept steady. Accelerate or brake to deactivate Cruise Control.
 


 

 

 

Well I have a couple of Cleo mods installed. I tried your cruise control cause it sounded what I need. Unfortunately the = or 0 key does nothing when pressed ingame.

 

Could it be that your *cs file is sensitive or interferes with others in the Cleo folder?


Wylight
  • Wylight

    GTA4Life!

  • Members
  • Joined: 24 Sep 2013
  • None

#24

Posted 19 August 2014 - 10:52 PM

 

Usage

Press the = button whilst driving to activate Cruise Control. You will hear a single beep indicating that mod is active and waiting you to release throttle. After doing so, you will hear a second beep and vehicle's speed will be kept steady. Accelerate or brake to deactivate Cruise Control.
 


 

 

 

Well I have a couple of Cleo mods installed. I tried your cruise control cause it sounded what I need. Unfortunately the = or 0 key does nothing when pressed ingame.

 

Could it be that your *cs file is sensitive or interferes with others in the Cleo folder?

 

First of all, congrats for the bump  :)

Second, try it without any other mods, see what happens and make sure you install it correctly.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users