View Full Version : Il2 Toe Brake Scipt Not Working
ABEA
1st November 2009, 05:32 PM
OK, I know this has been beaten to death, but I have tried everything to make the CH toe brake script work. For some reason, the R axis is not active, neither in calibration mode or in the game Hotas.
I am in hopes Bob and/or moderators can look at this and spot the problem, cause I have been driven to drink over this, and need to sober up.:cheers:
Bob Church
1st November 2009, 07:20 PM
Hi Abe,
I'd be happy to look, but there's no script in the zip. Just two map files. Can you post the CMS file and any CMS file that goes with it?
Best regards,
- Bob
The StickWorks
http://www.stickworks.com
ABEA
2nd November 2009, 12:28 AM
Oops! Here it is.
Bob Church
2nd November 2009, 02:46 AM
Hi Abe,
That's the CMC file. The one I need is the CMS file.
Best regards,
- Bob
The StickWorks
http://www.stickworks.com
ABEA
3rd November 2009, 12:33 AM
Well that proves I dont know what I'm doing, which is prolly the real problem anyway.
Hopefully here is the zipped file with all you need....
Bob Church
3rd November 2009, 05:41 AM
Hi Abe,
Got it. :) It all looks okay except for the last few lines:
....
endscript
script
if ([js3.a1 > js3.a2]) then
cms.a3 = js3.a1;
else
cms.a3 = js3.a2;
endif
endScript
That block will never execute because it's included in a second script/endScript block. There should only be one "script" statement at the top before anything else, and then one "endScript" at the bottom after everything. When it hits the first endScript, it just stops processing and I think that last block is your toe-brake logic.
Give it a try and let me know if it's still got problems.
Best regards,
- Bob
The StickWorks
http://www.stickworks.com
abe456
6th November 2009, 11:56 AM
Got it working, Bob. Thanks again for all your help. I have added about 3 more scripts now and all are working great!
Bob Church
6th November 2009, 06:56 PM
Hi Abe,
Great! Glad to hear it's sorted out. Have fun!
Best regards,
- Bob
The StickWorks
http://www.stickworks.com
Powered by vBulletin® Version 4.1.4 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.