GearBlocks

GearBlocks

Not enough ratings
SemiAutomaticGearBoxAutomation
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
122.289 KB
9 Nov, 2024 @ 6:52am
9 Jan @ 3:52am
19 Change Notes ( view )

Subscribe to download
SemiAutomaticGearBoxAutomation

In 2 collections by a_ra_ga_l
Sports car and its components
10 items
Custom Scripts
10 items
Description
Author: a_ra_ga_l

Purpouse:
A tool to automate semi automatic gear box.

Application:
Applicable to most semi-automatic transmission.

Requirements:
* All creation weels must have a contact with a track (any spear / static / cosmetic weels will impact calculation of speed in a wrong way)
* Transmission needs to have a following gears configuration: [(R,) (N,) 1, 2, 3, ...].
* Gear shifting must be controlled by only two buttons (for shifting gear up and shifting geaar down).
* Trasmission gears must be calibrated to automaticaly interconnect after a single button click.

Usage:
1. Enable only when world is loaded.
2. Go thru settings window and adjust setting values to fit your needs/scenarios.
3. (optional) Enable automatic shifting mode.
4. When finished adjusting settings, settgins window can be closed. No manual save actions are required.
5. Enjoy driving experiance.
6. In case you'll need setting window again, search for ">" button in top roght corner.

Notice:
Currently addon is incapable to shift gears due to lack of access to multiple functions via game Lua API. A request to expose required Lua API functions, was already submitted to developer. As soon as requested functions gets implemented script will be updated too.
In a mean time, addon still informs you about the time gear shifting should occure and at the same time has a slic UI that works perfectly as a car dashboard and shows a speed based on your creation weel spining RMP instead of relying on speed sensor (that basicaly shows objects velocity).
12 Comments
a_ra_ga_l  [author] 6 Jan @ 10:05am 
now i really hope there will be no more issues
just don't forget to remove spear tires from your creation before using this script
a_ra_ga_l  [author] 6 Jan @ 9:52am 
ow my god ........ :steamsad:
just realized that all this time i was also calculating searing wheel RMPs as part of tires ............
this is why English is so hard ... two different things named exactly the same :D
give me some more time to fix this
a_ra_ga_l  [author] 6 Jan @ 9:30am 
let me know if you'll find any other issues or if you'll have any ideas on how could i improve this script
a_ra_ga_l  [author] 6 Jan @ 9:26am 
just released an update
issue with calculation was due to different axes reference points in wheels
simple speaking some of them had size as X some of them as Y
a_ra_ga_l  [author] 6 Jan @ 9:10am 
from checking it seems like there is some "magic" happening with the wheels
like their sizes written as "9" but calculated as "18"
i'll review my script for any bugs and i'll test a bit more with different wheels to see that is the exact issue here
thanks for bringing it up and letting me know
I checked again, freezing works correctly, maybe some bug, but the speed is still wrong https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=3399859833
a_ra_ga_l  [author] 6 Jan @ 8:52am 
strange ... i can not see a problem with script resetting gears on creation freeze.
are you sure that "Engine/Crankshaft ID" is of a part from a same creation that you are freezing ?
a_ra_ga_l  [author] 6 Jan @ 8:46am 
I'll check reset on freeze (previously it was working but i made some changes so who knows...)
Regardin working in general - could you link at leas one creation that script is not working with ?
hmm that's interesting, i tested my cars and it only works with the pickup gen 5 monster, also the script doesn't reset gears if you freeze creation
a_ra_ga_l  [author] 6 Jan @ 1:01am 
If you have your creation published on workshop, please give me a link - i'll thest the script with you creation and see what might be wrong (if there is anything wrong at all)