Log in to reply
 

[SCRIPT] [RELEASED] Drive modes & Custom vehicle cameras



  • Hello!
    I've been working on this mod for maybe a month now, and thought I'd create a topic about it. This idea came from a request by @Senator3211 .

    What is it?
    Right now, there are 3 main functions:

    1. Drive modes:
    • You can switch between 5 different driving styles! Eco Pro, Comfort, Default, Sport, and Sport+.
    • Each mode has it's own settings, such as suspension values, traction values, max speed, acceleration multiplier, and engine power multiplier. Each vehicle can have its own unique settings for each mode! Of course, there is a customizable HUD that tells you which mode you are in.
    1. Two Three custom cameras for each vehicle!
    • You can switch between a first-person type camera, a bonnet/fixed type camera, and a third-person type camera. Both are almost fully customizable at this point. And yes, each vehicle has it's own camera settings!
    1. Fully editable!
    • You can edit all the above through a NativeUI menu. This includes the drive mode settings for each mode PER vehicle, the HUD positioning and style, and the 3 vehicle cameras.

    What I still need to complete

    • I gotta fix this very annoying bug with the third-person camera. Fixed, thanks to LeeC2202!!
    • The first-person camera can be blocked by your character's head depending on it's position. Not sure if I can fix this Fixed as well, thanks to - you guessed it - LeeC2202!!

    More info to come..



  • @stillhere Sounds amazing. Good luck. :)



  • @Frazzlee I've been chatting with ikt, getting help with memory address editing in SHVdotNet. If it works out then it will actually change handling.meta values just like his script. Right now it's just basic torque/engine multipliers, "fake" suspension (like my other mod), and max speed limiter. I want to get real suspension editing and maybe dampening and body roll in there.



  • @Frazzlee Yeah that sounds really interesting, I'd love that! Once I figure out these memAddress issues I can send you a PM and work this out.



  • Finally somebody has come with this really needed mod! Hurrahh!!



  • @stillhere

    Is there anyway to edit the vehicle bonnet camera's position?
    The view you can toggle in the options?



  • @rastakilla you can edit the "first-person" camera location to the bonnet and it looks quite good! I decided I will implement a third camera option for this though, so that the user doesn't have to choose between a first-person view or a bonnet view; they can have both :D



  • @stillhere said in [SCRIPT] [WIP] Drive modes & Custom vehicle cameras:

    @rastakilla you can edit the "first-person" camera location to the bonnet and it looks quite good! I decided I will implement a third camera option for this though, so that the user doesn't have to choose between a first-person view or a bonnet view; they can have both :D

    Oh sweet looking forward to it!



  • The mod is almost ready to go! Here's a closer look at the HUD editor and camera modes:



  • So while waiting for some beta testing, I found a couple bugs that I managed to fix with the Drive Mode editor. On a slightly unrelated note, here's how the custom cameras look like on a motorcycle:



  • No support for latest patch?
    When i peess "create initial config" in handling editor - nothing happens... But camera control works fine...



  • @st1llal1ve Just sent you a reply on the mod page. Are the files created at least? A folder for the vehicle and a "1st - Default.cfg" and "CameraSettings.ini"?



  • Bro I use game version v1.0.2189, is there an update required for this mod? was using the mod before I updated, now at first the mod wasn't working when i press f10 key, I redownloaded new scripthook, scripthookvdonet,dotnet2, dontnet 3. I downloaded NativeUI latest versions everything, got INMNativeUI, I'm using ikt's RTH editor, manual trans, customgearratios, and speedo. I got an error in log which I'm posting here. I got everything required all the other mods work, is there a compatibility issue with ikt's mods? I read somewhere on the mod downloads page some one had similar problem, if the mod doesn't need update then can u please help me fix this issue, I love your mod, THANKSSSS~!!!!!!

    Heres the log.....ERROR

    [09:23:09] [ERROR] Caught fatal unhandled exception:
    System.TypeInitializationException: The type initializer for 'GTA.Native.MemoryAccess' threw an exception. ---> System.NullReferenceException: Object reference not set to an instance of an object.
    at GTA.Native.MemoryAccess..cctor()
    --- End of inner exception stack trace ---
    at GTA.Entity.get_MemoryAddress()
    at DrivingModes.HandlingUtils.GetHandlingValue(Int32 exactOffset)
    at DrivingModes.DriveModes.SaveCurrentHandlingFromMemory(String path)
    at DrivingModes.DriveModes.CreateNewConfig(String configName)
    at DrivingModes.DriveModes.ProcessMenus()
    at DrivingModes.DriveModes.OnTick(Object sender, EventArgs e)
    at GTA.Script.raise_Tick(Object value0, EventArgs value1)
    at GTA.Script.MainLoop()
    [09:23:33] [DEBUG] Unloading script domain 'ScriptDomain_40D86106' ...
    [09:23:33] [DEBUG] Stopping 9 script(s) ...
    [09:23:33] [DEBUG] Aborted script 'DrivingModes.DriveModes'.
    [09:23:33] [DEBUG] Aborted script 'FixWheelTurnBack'.
    [09:23:34] [DEBUG] Aborted script 'INMNativeUI.BigMessageThread'.
    [09:23:34] [DEBUG] Aborted script 'NativeUI.BigMessageThread'.
    [09:23:34] [DEBUG] Aborted script 'mlgthatsme.GarageMod.NotificationManager'.
    [09:23:34] [DEBUG] Aborted script 'mlgthatsme.GarageMod.SinglePlayerGarageScript'.
    [09:23:34] [DEBUG] Aborted script 'mlgthatsme.GUI.NativeInputManager'.
    [09:23:34] [DEBUG] Aborted script 'mlgthatsme.AnimatedCameraScript'.
    [09:23:34] [DEBUG] Aborted script 'Stop_Reversing_While_Braking'.
    [09:23:34] [DEBUG] Deleted script domain 'ScriptDomain_40D86106'.
    [09:23:34] [DEBUG] Created script domain 'ScriptDomain_127B9DAA' with v2.9.0.
    [09:23:34] [DEBUG] Loading scripts from 'F:\Grand Theft Auto V\scripts' into script domain 'ScriptDomain_127B9DAA' ...
    [09:23:34] [DEBUG] Found 1 script(s) in 'DrivingModes.dll'.
    [09:23:34] [DEBUG] Found 1 script(s) in 'FixWheelTurnBack.dll'.
    [09:23:34] [DEBUG] Found 1 script(s) in 'INMNativeUI.dll'.
    [09:23:34] [DEBUG] Found 1 script(s) in 'NativeUI.dll'.
    [09:23:34] [DEBUG] Found 4 script(s) in 'SinglePlayerGarage.dll'.
    [09:23:34] [DEBUG] Found 1 script(s) in 'Stop Reversing While Braking.dll'.
    [09:23:34] [DEBUG] Starting 9 script(s) ...
    [09:23:34] [DEBUG] Instantiating script 'DrivingModes.DriveModes' in script domain 'ScriptDomain_127B9DAA' ...
    [09:23:34] [DEBUG] Started script 'DrivingModes.DriveModes'.
    [09:23:34] [DEBUG] Instantiating script 'FixWheelTurnBack' in script domain 'ScriptDomain_127B9DAA' ...
    [09:23:34] [DEBUG] Started script 'FixWheelTurnBack'.
    [09:23:34] [DEBUG] Instantiating script 'INMNativeUI.BigMessageThread' in script domain 'ScriptDomain_127B9DAA' ...
    [09:23:34] [DEBUG] Started script 'INMNativeUI.BigMessageThread'.
    [09:23:34] [DEBUG] Instantiating script 'NativeUI.BigMessageThread' in script domain 'ScriptDomain_127B9DAA' ...
    [09:23:34] [DEBUG] Started script 'NativeUI.BigMessageThread'.
    [09:23:34] [DEBUG] Instantiating script 'mlgthatsme.GarageMod.NotificationManager' in script domain 'ScriptDomain_127B9DAA' ...
    [09:23:34] [DEBUG] Started script 'mlgthatsme.GarageMod.NotificationManager'.
    [09:23:34] [DEBUG] Instantiating script 'mlgthatsme.GarageMod.SinglePlayerGarageScript' in script domain 'ScriptDomain_127B9DAA' ...
    [09:23:35] [DEBUG] Started script 'mlgthatsme.GarageMod.SinglePlayerGarageScript'.
    [09:23:35] [DEBUG] Instantiating script 'mlgthatsme.GUI.NativeInputManager' in script domain 'ScriptDomain_127B9DAA' ...
    [09:23:35] [DEBUG] Started script 'mlgthatsme.GUI.NativeInputManager'.
    [09:23:35] [DEBUG] Instantiating script 'mlgthatsme.AnimatedCameraScript' in script domain 'ScriptDomain_127B9DAA' ...
    [09:23:35] [DEBUG] Started script 'mlgthatsme.AnimatedCameraScript'.
    [09:23:35] [DEBUG] Instantiating script 'Stop_Reversing_While_Braking' in script domain 'ScriptDomain_127B9DAA' ...
    [09:23:35] [DEBUG] Started script 'Stop_Reversing_While_Braking'.
    [09:26:24] [DEBUG] Created script domain 'ScriptDomain_20F582EE' with v2.9.0.
    [09:26:24] [DEBUG] Loading scripts from 'F:\Grand Theft Auto V\scripts' into script domain 'ScriptDomain_20F582EE' ...
    [09:26:25] [DEBUG] Found 1 script(s) in 'DrivingModes.dll'.
    [09:26:25] [DEBUG] Found 1 script(s) in 'FixWheelTurnBack.dll'.
    [09:26:25] [DEBUG] Found 1 script(s) in 'INMNativeUI.dll'.
    [09:26:25] [DEBUG] Found 1 script(s) in 'NativeUI.dll'.
    [09:26:25] [DEBUG] Found 4 script(s) in 'SinglePlayerGarage.dll'.
    [09:26:25] [DEBUG] Starting 8 script(s) ...
    [09:26:25] [DEBUG] Instantiating script 'DrivingModes.DriveModes' in script domain 'ScriptDomain_20F582EE' ...
    [09:26:25] [DEBUG] Started script 'DrivingModes.DriveModes'.
    [09:26:25] [DEBUG] Instantiating script 'FixWheelTurnBack' in script domain 'ScriptDomain_20F582EE' ...
    [09:26:25] [DEBUG] Started script 'FixWheelTurnBack'.
    [09:26:25] [DEBUG] Instantiating script 'INMNativeUI.BigMessageThread' in script domain 'ScriptDomain_20F582EE' ...
    [09:26:25] [DEBUG] Started script 'INMNativeUI.BigMessageThread'.
    [09:26:25] [DEBUG] Instantiating script 'NativeUI.BigMessageThread' in script domain 'ScriptDomain_20F582EE' ...
    [09:26:25] [DEBUG] Started script 'NativeUI.BigMessageThread'.
    [09:26:25] [DEBUG] Instantiating script 'mlgthatsme.GarageMod.NotificationManager' in script domain 'ScriptDomain_20F582EE' ...
    [09:26:25] [DEBUG] Started script 'mlgthatsme.GarageMod.NotificationManager'.
    [09:26:25] [DEBUG] Instantiating script 'mlgthatsme.GarageMod.SinglePlayerGarageScript' in script domain 'ScriptDomain_20F582EE' ...
    [09:26:26] [DEBUG] Started script 'mlgthatsme.GarageMod.SinglePlayerGarageScript'.
    [09:26:26] [DEBUG] Instantiating script 'mlgthatsme.GUI.NativeInputManager' in script domain 'ScriptDomain_20F582EE' ...
    [09:26:26] [DEBUG] Started script 'mlgthatsme.GUI.NativeInputManager'.
    [09:26:26] [DEBUG] Instantiating script 'mlgthatsme.AnimatedCameraScript' in script domain 'ScriptDomain_20F582EE' ...
    [09:26:26] [DEBUG] Started script 'mlgthatsme.AnimatedCameraScript'.
    [09:27:12] [ERROR] Caught fatal unhandled exception:
    System.TypeInitializationException: The type initializer for 'GTA.Native.MemoryAccess' threw an exception. ---> System.NullReferenceException: Object reference not set to an instance of an object.
    at GTA.Native.MemoryAccess..cctor()
    --- End of inner exception stack trace ---
    at GTA.Entity.get_MemoryAddress()
    at DrivingModes.HandlingUtils.GetHandlingValue(Int32 exactOffset)
    at DrivingModes.DriveModes.SaveCurrentHandlingFromMemory(String path)
    at DrivingModes.DriveModes.CreateNewConfig(String configName)
    at DrivingModes.DriveModes.ProcessMenus()
    at DrivingModes.DriveModes.OnTick(Object sender, EventArgs e)
    at GTA.Script.raise_Tick(Object value0, EventArgs value1)
    at GTA.Script.MainLoop()
    [09:48:54] [DEBUG] Created script domain 'ScriptDomain_88038C30' with v2.9.0.


Log in to reply
 

Looks like your connection to GTA5-Mods.com Forums was lost, please wait while we try to reconnect.