Fulqrum Publishing Home   |   Register   |   Today Posts   |   Members   |   UserCP   |   Calendar   |   Search   |   FAQ

Go Back   Official Fulqrum Publishing forum > Fulqrum Publishing > IL-2 Sturmovik

IL-2 Sturmovik The famous combat flight simulator.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #7  
Old 10-12-2010, 05:17 PM
MadBlaster MadBlaster is offline
Approved Member
 
Join Date: Oct 2010
Posts: 666
Default

You need glovepie to run this script and you need ppjoy to set up a virtual joystick. After you set up a virtual joystick in ppjoy, you need to map one of its virtual axis to the brakes in the settings.ini file (IL-2 game file). It should something like this:

[HotKey move]
AXE_RZ JoystickDevice3=brakes

Joystickdevice3 refers to the numbering that Windows assigns to game controllers. It starts at 0 and increases incrementally. You can tell from this i have 3 real controllers (devices #0, #1, and #2, my joystick and 2 gamepads) and 1 virtual controller, #3). Go to windows game controllers in the control panel. You will see a list of what you have connected. It is listed in numerical order from top to bottom, 0,1,2,3...etc. Wherever your virtual joystick lies in this list is the number it is assigned.

Here is the glovepie script that does what you want. Copy/paste/save to glovepie and run when you play the game. I tested in game and it works. When you turn the twist rudder to the left, nothing happens, the brake is off. When the rudder sits at center, the brake is off. When you twist it to the right, the brake is applied proportionally. PPJoy1.Analog3 would be the Z axis of my virtual joystick as shown in ppjoy. Joystick1.roll is the glovepie identifier for my real joystick rudder action. Most likely your 3d joystick will be recognized the same as mine is in glovepie. If not, you will have to use the glovepie debug command to find how glovepie recognizes your rudder action on your twist joystick, and then subsitute that identifier for where I have joystick1.roll in the script. But it will probably work ok if it is standard 3d joystick.

GlovePieScript
if joystick1.roll <=0 then
var.brake=-1
elseif joystick1.roll >0 then
var.brake=(2*(joystick1.roll))-1
endif
PPJoy1.Analog3=var.brake
Reply With Quote
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:16 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 2007 Fulqrum Publishing. All rights reserved.