I'm creating a custom shiftLogic controller for the Acura mod I'm making. I tried to replicate Acura's dynamic mode selector by controlling the shift aggression. More info about Acura's dynamic modes can be found https://www.acura.com/tlx/modals/integrated-dynamics-system. I get this error. '=' expected near '=='.
Your error is in line 173. Since you want to assign a value to automaticHandling.mode you are supposed to use just a single equal sign. You only use two equal signs for comparison like in if-statements. Wrong: Code: if automaticHandling.mode == "D" then automaticHandling.mode == "S" end Correct: Code: if automaticHandling.mode == "D" then automaticHandling.mode = "S" end
Now I've got another error. shiftLogic-tlxautomaticGearbox.lua:646: 'end' expected (to close 'if' at line 171) near '<eof>'"
You are missing a number of end's for your if statements. --- Post updated --- You are missing a number of end's for your if statements.
Fixed that issue and the game is fretting about not being able to find the vehicleController lua file. No errors related to my dynamic mode selector. If I use the standard ingame shiftLogic, the vehicle works fine, but the dynamic mode selector has no effect on the transmission.