rigs-of-rods icon indicating copy to clipboard operation
rigs-of-rods copied to clipboard

Unifnished Trigger Feature

Open graysonk95 opened this issue 9 years ago • 3 comments

I've been trying to create a high idle switch using triggers, but have come up empty-handed since the engine RPM control option (part of the 'E' flag) is "not available at the moment".

http://www.rigsofrods.com/wiki/pages/Truck_Description_File#Triggers

graysonk95 avatar Nov 10 '15 21:11 graysonk95

The feature is documented on the wiki but it is "not available at the moment" (it would be helpful to know who typed that, it might help narrow down the timeline).

It's probably just an incomplete feature. Adding the RPM flag does nothing. That's the best I could do testing it.

graysonk95 avatar Nov 12 '15 21:11 graysonk95

@graysonk95 Excellent idea!

Result: the "not available" notice had been there from the moment Sputnik_1 added the E-trigger info: http://www.rigsofrods.com/wiki/index.php?title=Truck_Description_File&diff=13859&oldid=13858

I'll check 0.4.0.7's code to see what was actually happening in there.

IIRC the idea of "slider RPM controller" has been around for a while, it turned up several times in the "powertrain" discussions I started, but there was some sort of issue with it. IIRC, basically, you had to somehow switch between trigger-only and classic-only control modes. If I'm to enable this feature, this needs to be resolved.

ohlidalp avatar Nov 13 '15 13:11 ohlidalp

If I understand correctly, I experienced that issue with trigger-only vs classic-only when playing around with the throttle control. I implemented the full-throttle trigger from the example on the wiki, and it worked, but my keyboard and G27 throttle input no longer worked at all. I guess the whole thing just needs reworked in that case.

(I'm no programmer, so bear with me here) As far as physical inputs go, I can use my keyboard arrow keys at the same time as my G27 wheel. Maybe the triggers could somehow be made to 'virtualize' an input device as a workaround? For example, whichever physical device has the more extreme input gets accepted by RoR. If I hold my G27 throttle at 25%, but then press [↑] on my keyboard, the keyboard overrides the G27 with 100% throttle. Same with steering and braking, the keyboard overrides.

Another (probably more feasible) option is the Engoption section, which includes values to specify an idle RPM and/or a "Min Idle Mixture" (http://www.rigsofrods.com/wiki/pages/Truck_Description_File#Engoption). Perhaps the trigger could be made to temporarily increase either the idle RPM value or the Min Idle Mixture value while it is triggered?

Just some ideas.

graysonk95 avatar Nov 16 '15 14:11 graysonk95