Jump to content

Recommended Posts

Posted

This is a work in progress guys, I all of the default commands with a few minor changes to wheel brakes and parking brake. Flaps is a hold on DMS hat on the flight stick, since i cant figure out how to do a timed action in target (mainly because i dont feel like working with java script...a programmer does need SOME time off). engine start mapped to throttle button, mixtures, radiators, cowls and prop pitch mapped to stick hoolie hat. landing gear mapped to lg warning button. If anybody knows how to make one of those nifty visual images so you guys can get a visual on what i have mapped where i sure would apperciate it. I am new to the warthog and still learning the software. 

 

since i cant upload the actual file, nab it out of my dropbox here: https://www.dropbox.com/s/2fqhhkly899g8ru/Battle%20of%20Stalingrad.fcf

  • Like 1
Posted

MG-Cacti4-6

 

Thanks for your work, I just purchased the Wart Hog and getting ready to set it up this weekend.

Posted (edited)

yep, np. i am new to the script editor so it will continue to be a work in progress, especially if the extend some of the delays between key command inputs, like flaps and the parking brake/wheel brake. there will be major changes to weapon system commands once they are implemented. like i said i am trying to make it as intuitive as possible i just hope some of you guys find it as effective as i do. Plus i am trying to map it to default commands so that you dont have to change any binds or anything whenever a new build is released.

 

I should also say that I was totally stoked this term when i didnt have any programming classes for my major...well...i am still programming....but java script isnt that hard once you learn it...but still...i wanted some down time lol

Edited by -MG-Cacti4-6
Posted

-MG-Cacti4-6, THX for your efforts, I´ll DL your .tmc work and see if I can contribute in any way. I´ve been using the script editor for a few sims and I´ve got them working but BoS seems to have a somewhat different approach to howto read commands, ie I´ve been using the pinkie lever as shift button to double the commands but Bos does read it as a DX comm. I use the GUI to link the script to the sims they are made for that is the only use I have of the GUI.

I will keep you posted about findings but I cannot be at my puter every day because of work, I try to keep updated every day though.

Posted

well folks, since this iteration of alpha appears to be done  :cray: Now seems to be as good a time as any to go ahead and upload what I have to this point as far as the Warthog Script. I have added Flare functionality to the CMS hat. I should also note that I use the mic switch push and the slew control push button to center and pause track ir respectively. So I wouldn't expect those assignments (or lack there of in this case) to change any time soon. Cheers to a ridiculously fun Alpha session and i hope you find this useful  :drink2: . 

 

https://www.dropbox.com/s/ik2vvd0b46hgj1m/Battle%20of%20Stalingrad_v_2.0.tmc

 

 

post-18361-0-77914100-1385673691_thumb.jpg

 

post-18361-0-08602200-1385673703_thumb.jpg

Posted

I´ll have time to test tomorrow night! Pics are very informative. THX

Posted (edited)

with out further delay, the latest and greatest

 

https://www.dropbox.com/s/ik2vvd0b46hgj1m/Battle%20of%20Stalingrad_v_2.0.tmc

 

 

notes:

 

added all weapons functionality to second stage trigger it should work just fine. the fire all guns funcitonality is still on the slap switch, as a backup at this point. mainly because i haven't tested the script in game.

 

Layout photos for an easier understanding of the layout of specific button presses and functionality:

 

post-18361-0-61318900-1386197488_thumb.jpgpost-18361-0-63738100-1386197497_thumb.jpg

 

 

Sorry for the quality of photos...still tinkering with photoshop  :(

 

again for those unaware, in order for this config to work properly you have to run it out of the TARGET script editor, not through the gui.

Edited by -MG-Cacti4-6
Posted (edited)

I will  have to vcorrect you in a way MG, you can run the conf  via the GUI if you set up a FLY NOW! app on the left side of the GUI. BUT for every update of the game you need to reassign it again, although this is a hitch you can make a few test configs, test them go back to the script and change things save changes and retest without much hazzle.

Edited by FlyingH
Posted (edited)

I'm also  trying to build a profile but there's one thing that does not function properly, and I noticed that also in your profile there's the same "bug". for example the nav lights on off ( RCtrl+L), when you switch on it, you don' t only light on the nav lights but also cockpit light ( key L ). It seems that instead pressing the combination CTRL+L  the TARGET software give the commands to press L+CTRL, don't know how to explain, if you give the command with the keyboard you can try.

Perhaps it's a bug in the game ? or it's TARGET ?

 

Another thing, which I've not resolved yet, is the flap up command (LShift+F), don't know how to make it working properly, I can make flaps go down but don't know how, the same command for flaps up does not function .... now I'll study how did you get it working properly ...

Edited by Kappone
Posted

I'm also  trying to build a profile but there's one thing that does not function properly, and I noticed that also in your profile there's the same "bug". for example the nav lights on off ( RCtrl+L), when you switch on it, you don' t only light on the nav lights but also cockpit light ( key L ). It seems that instead pressing the combination CTRL+L  the TARGET software give the commands to press L+CTRL, don't know how to explain, if you give the command with the keyboard you can try.

Perhaps it's a bug in the game ? or it's TARGET ?

 

 

 

If I am understanding you right, it should work just fine in Target. In the Target software when you use the virtual keyboard to assign a key or combination of keys to a command, it differentiates between say a left ctrl and a right ctrl.

I may very well not be quite understanding what you mean however...

Posted

One good use i saw for the speed brake switch is the canopy open/close.

 

Seems very natural to use somehow and it's a very useful command, atleast in the LaGG.

Posted

If I am understanding you right, it should work just fine in Target. In the Target software when you use the virtual keyboard to assign a key or combination of keys to a command, it differentiates between say a left ctrl and a right ctrl.

I may very well not be quite understanding what you mean however...

It's not a problem of left/right shift or else, it's a problem of "timing" in pressing the combo keystroke! Remaining in the flaps up/down example:

 

I have no problem in assigning the flap down command, which is 'f', but I ( and also MG I suppose, reading its script) have problem in assigning the LEFT SHIFT + L combination ( and probably every 'special key' + another key), because it seems that for the game I press the 'f' key BEFORE the shift key. Don't know if it's a problem of BOS or of TARGET software ( didn't tested with other games yet). Actually I resolved ( thanks to the script of MG ) adding a delay of some milliseconds between the pressure of the left shift key and the f key, so the result is the correct sequence SHIFT + f and not f + SHIFT.

Ah and applied the up/down flap to the BOAT SWITCH in the right throttle, this is the script for this button assignement:

 

    MapKey(&Throttle, BSB, DOWN+'f');                                                             // this is for flap down

    MapKey(&Throttle, BSM, CHAIN(UP+'f', UP+ L_SHIFT+'f'));                          // this is the release command for both up/down

    MapKey(&Throttle, BSF, CHAIN(DOWN+ L_SHIFT, D(50), DOWN+'f'));       //this is for flap up , notice the 50ms delay between L_SHIFT and f command

Posted

Turns out I am having the same problem.

I have my flaps assigned to the 3 position flaps switch on the Warthog throttle through Target, with a hold command.

Flaps down works as it should , middle position works as should ( stops the movement), flaps up - no joy. I have the left shift f key combo assigned in Target, and it works appropriately whilst viewing in the Target event viewer.

 

I have never seen this before. Key combos work just fine in my profile for Cliffs of Dover, which I modeled this profile after.

I may just have to re-assign another key for flaps up.

Posted

Turns out I am having the same problem.

I have my flaps assigned to the 3 position flaps switch on the Warthog throttle through Target, with a hold command.

Flaps down works as it should , middle position works as should ( stops the movement), flaps up - no joy. I have the left shift f key combo assigned in Target, and it works appropriately whilst viewing in the Target event viewer.

 

I have never seen this before. Key combos work just fine in my profile for Cliffs of Dover, which I modeled this profile after.

I may just have to re-assign another key for flaps up.

Yes you can reassign the key ( I think the j is free) or apply the same trick I've used for the boat switch, the above script adjusted for the flap switch will work well I think.

Now I'll work to solve the problem i have for the nav, cockpit and landing lights, all affected form the same "bug" ... When I'll have a decent profile working I'll post it.

Posted

Yeah I just simply re-assigned flaps up to the q key and made the change in Target, flaps up works quite well now...

Posted

Its any command with a shift state (SHIFT, ALT, CTRL Etc) that just don't work for me and as such i just cant map all the keys i need.

 

Its like Kappone says, the game registers the character before the shift state, which is a problem.

 

If anyone finds a workaround i would be very happy :)

Posted

Its any command with a shift state (SHIFT, ALT, CTRL Etc) that just don't work for me and as such i just cant map all the keys i need.

 

Its like Kappone says, the game registers the character before the shift state, which is a problem.

 

If anyone finds a workaround i would be very happy :)

 

Ideally 777 will find the workaround in the form of a fix where the game will recognize these inputs from Target.

Wonder if anyone has submitted this in the bugs forum...

Posted

I have submitted the bug reports.

 

as to the issues with say flaps, lights, and the like, thats why i went into the script editor, but havent gotten to lighting yet as its not a priority...will do it next itteration.

 

anywa, if you use the script editor, and use the chain command, things seem to fall into place much more. like say for instance, with the fire all guns command. said command is r_cntrl _ spc, but if you have machine guns mapped to the first stage trigger, there is a sizeable delay between functionality but if you do this:

MapKey(&Joystick, TG1, R_ALT+SPC);<this is machine guns only>
MapKey(&Joystick, TG2, CHAIN (DOWN+ R_ALT, UP+ R_ALT, DOWN+SPC)); <this is all guuns>

then what happens is that the r_alt button is flipped and released instantly, and all weapons are fired without a delay. Another problem however is flaps. because target hits key's so fast, right now the game doesnt recognize some inputs, in this case, shift. which makes incermental adjustments on raise flaps problematic at best. so rather than have no flap functionality, i used the chain command again here:

 MapKey(&Joystick, H3U, CHAIN(DOWN+ L_SHIFT, D(), DOWN+'f', D(7000), UP+'f', D(), UP+L_SHIFT));
  MapKey(&Joystick, H3D, 'f');
     

now, as you can see, pressing the tms hat down lowers the flaps and that works just fine. in order to raise the flaps, I ran into an issue where the game wasnt detecting the shift key being pressed. so what i did was once again chain commands, and this time i added a delay, annotated by the D(). that installs the default delay between key presses. hopefully the game will sort out its controls soon so there can be incremental flap adjustments rather than full up. I had to install that 7 second delay on the f key to ensure that flaps would come up in one motion rather than constantly pressing the button. 

Posted (edited)

It's not a problem of left/right shift or else, it's a problem of "timing" in pressing the combo keystroke! Remaining in the flaps up/down example:

 

I have no problem in assigning the flap down command, which is 'f', but I ( and also MG I suppose, reading its script) have problem in assigning the LEFT SHIFT + L combination ( and probably every 'special key' + another key), because it seems that for the game I press the 'f' key BEFORE the shift key. Don't know if it's a problem of BOS or of TARGET software ( didn't tested with other games yet). Actually I resolved ( thanks to the script of MG ) adding a delay of some milliseconds between the pressure of the left shift key and the f key, so the result is the correct sequence SHIFT + f and not f + SHIFT.

Ah and applied the up/down flap to the BOAT SWITCH in the right throttle, this is the script for this button assignement:

 

    MapKey(&Throttle, BSB, DOWN+'f');                                                             // this is for flap down

    MapKey(&Throttle, BSM, CHAIN(UP+'f', UP+ L_SHIFT+'f'));                          // this is the release command for both up/down

    MapKey(&Throttle, BSF, CHAIN(DOWN+ L_SHIFT, D(50), DOWN+'f'));       //this is for flap up , notice the 50ms delay between L_SHIFT and f command

good call on mapping te flaps to the boat switch, i will implement that next itteration as well, actually i will move it to the speed brake switch for now, with no stucka's in play at the moment it is currently unassigned. 

Edited by -MG-Cacti4-6
Posted

i wont, thanks for the feedback on my script. I have already fixed flaps (assigned to speed brake switch) and lights. I will in all liklyhood eventually attach the speed brake functionality to the pinky switch since it is currently unassigned....either that or the flaps up, mid, down switch. I think i may end up attaching open, close canopy to the slap switch on the main stick. seems more intuitive that way.

Posted

I'm not using the TARGET software on mine. I simply bound everything into the BoS control panel. With the exception of quirks like having to flip the fuel-boost switch to "on" position to turn on/off (or cycle in the LaGG) the cockpit lights rather than on being on & off being off, it works great. Flaps toggle works perfect. Flip it down & flaps go down til full stop or I flip it back to center. Over all it's a pretty basic setup, but the game is in its infancy so I expect I'll change things up down the road.

Posted (edited)

OK folks, here is the latest and greatest. a few changes of note:

 

1) Zoom added to DMS up/DMS down

2) open/close canopy added to slap switch

3) flaps added to pinky switch. Forward for flaps up, aft for flaps down. 

 

Other than that no major changes. below you will find images of the mappings and the tmc script file. 

 

cheers!

 

Dropbox file:  here!

 

I should also note:

 

If i can find a use for the pinky switch in game, i will shift flaps over to the flap lever. as it is right now, I can't think of anything really good to put there.

post-18361-0-73462400-1386884804_thumb.jpg

post-18361-0-29540200-1386884814_thumb.jpg

Edited by -MG-Cacti4-6
Posted (edited)

Nice one; I use the tailwheel lock/unlock for the pinky switch and I use the actual flap paddle for the flaps as I like the abilty to stop the flap operation by flicking to the middle.

 

OK folks, here is the latest and greatest. a few changes of note:

 

1) Zoom added to DMS up/DMS down

2) open/close canopy added to slap switch

3) flaps added to pinky switch. Forward for flaps up, aft for flaps down.

 

Other than that no major changes. below you will find images of the mappings and the tmc script file.

 

cheers!

 

Dropbox file: here!

 

I should also note:

 

If i can find a use for the pinky switch in game, i will shift flaps over to the flap lever. as it is right now, I can't think of anything really good to put there.

Edited by Georgio
Posted

In my Target profile, which is still a work in progress, I put my brakes on the NWS switch, with a hold command.

The paddle I use as a modifier.

Flaps I put on the flaps 3 way switch for down/neutral/up, and I can stop movement of course by moving back to neutral position.

POV hat I use for trip, since I have Track IR. I also have my Track IR Pause and Re-center function assigned to it as well using the /in postition with the paddle.

Zoom and lights I have on Hat2 ( again use the paddle modifier).

Engine Cowl and Oil Radiator I have on Hat3

Tailwheel lock and gear I have on Hat4.

Toggle engine and drop bombs on S2 ( using paddle modifier).

 

Still working on it though, will tune it some more this weekend if I can find the time.

Posted

Nice one; I use the tailwheel lock/unlock for the pinky switch and I use the actual flap paddle for the flaps as I like the abilty to stop the flap operation by flicking to the middle.

 

You can do that too with the pinkey switch :good:

 

its essentially the same thing, just closer to the hand so i dont have to take my eyes off the screen to find the flap lever

In my Target profile, which is still a work in progress, I put my brakes on the NWS switch, with a hold command.

The paddle I use as a modifier.

Flaps I put on the flaps 3 way switch for down/neutral/up, and I can stop movement of course by moving back to neutral position.

POV hat I use for trip, since I have Track IR. I also have my Track IR Pause and Re-center function assigned to it as well using the /in postition with the paddle.

Zoom and lights I have on Hat2 ( again use the paddle modifier).

Engine Cowl and Oil Radiator I have on Hat3

Tailwheel lock and gear I have on Hat4.

Toggle engine and drop bombs on S2 ( using paddle modifier).

 

Still working on it though, will tune it some more this weekend if I can find the time.

see i am not a fan of using modifiers or anything, I knida feel that I i need to use a modifier with as many silly buttons, switch, and hats that are on this thing, i am programming too many features to remember

Posted

 

see i am not a fan of using modifiers or anything, I knida feel that I i need to use a modifier with as many silly buttons, switch, and hats that are on this thing, i am programming too many features to remember

 

I am a fan of using  the in/out modifier, using the paddle. I don't have much trouble remembering the functions I use it for. Like my POV hat, I know all I have to do to trim is tap the button with my thumb, and to pause trackIR just hold paddle in and button down.

 

Now using the U/M/D modifiers, now that would be a bit much for my old feeble mind so I don't mess with that.

I also tend to be as consistent as I can across my flight sims to help make it easier to remember, like this profile is very much modeled after the profile I have for Cliffs of Dover.

 

And now to really help complicate further I have a CH Throttle Quadrant on the way to give me some additional buttons/axis, I could use couple more sliders.

Posted

...press the 'f' key BEFORE the shift key....

I have never seen this before. Key combos work just fine in my profile for Cliffs of Dover, which I modeled this profile after.

I may just have to re-assign another key for flaps up

 

Dburnette

 

I remember that in CloD "release" it have the same problem, see a key before the modifier (Alt, Ctrl...) if the command are send by external keymaper, solved later in some patch.

Since BoS is Alpha, this should by fixed in next releases.

 

Sokol1

Posted

Dburnette

 

I remember that in CloD "release" it have the same problem, see a key before the modifier (Alt, Ctrl...) if the command are send by external keymaper, solved later in some patch.

Since BoS is Alpha, this should by fixed in next releases.

 

Sokol1

 

Yeah I expect the key combo issue will be fixed soon, I am just leaving my keys pretty much at default and working with it as is for now rather than changing some of the defaults.

Posted

dburnette, how did you make the paddle (S4 I guess you mean) to I/Omodofier? I have this function assigned in my other Target scripts but BOS doesn´t recognise this except for SHIFT+F2!! (which is assigned to I H4D on my hog!!) All other shiftstates are ignored!! (Would you please share your script for scruitinizing?)

Posted (edited)

dburnette, how did you make the paddle (S4 I guess you mean) to I/Omodofier? I have this function assigned in my other Target scripts but BOS doesn´t recognise this except for SHIFT+F2!! (which is assigned to I H4D on my hog!!) All other shiftstates are ignored!! (Would you please share your script for scruitinizing?)

 

I just added it in the advanced Target GUI under " edit layers".

Works just fine in BOS, however, the one thing that does not work at this time in BOS is a combination key assignment, like ctrl+F - when I assign a combo in Target, BOS does not interpret it properly. I am sure the developers are aware and will fix it at some point.

 

But using the paddle as an I/O modifier works just fine, using it on a few of my Warthog buttons.

 

TargetGUI.jpg

Edited by dburnette
Posted

I am really looking forward to using mine after Christmas!

Posted

New profile in my signature!

Posted (edited)

Hey guys,

 

Well I have been wanting to delve into the scripting a bit, looks like now I will probably need to in order to make some key combinations assigned in Target work in BOS. Not sure why they work in other sims and not BOS, but it is what it is I guess.

 

In the meantime, let's say I want to introduce a delay between the left shift key and f key for example, in my current Warthog profile for BOS. Now say I have in my profile that key assignment as a "hold" , rather than "pulse". Reason I do this, for things like say flaps up, is I can move the flaps up switch to up, and it continually raises the flaps until such time as I move it back to the neutral position, or reaches full up. I do the same with my trim commands as well.

 

Can I do a delay statement between the shift and f, while using a "hold" command?

 

I will read more about scripting in the upcoming days, staring a new computer build later this morning and will be tied up with it for a while I am sure...

 

Thanks for any tips,

Edited by dburnette
Posted

yes you can. the code should look something like this.

 

MapKey(&<device>, <button>, CHAIN( Down+<key>, D() <this is the delay function>, DOWN+<key>));

 

if you look up thread you will see where i linked exact coding...i actually linked it below:

 

 

I have submitted the bug reports.

 

as to the issues with say flaps, lights, and the like, thats why i went into the script editor, but havent gotten to lighting yet as its not a priority...will do it next itteration.

 

anywa, if you use the script editor, and use the chain command, things seem to fall into place much more. like say for instance, with the fire all guns command. said command is r_cntrl _ spc, but if you have machine guns mapped to the first stage trigger, there is a sizeable delay between functionality but if you do this:

MapKey(&Joystick, TG1, R_ALT+SPC);<this is machine guns only>
MapKey(&Joystick, TG2, CHAIN (DOWN+ R_ALT, UP+ R_ALT, DOWN+SPC)); <this is all guuns>

then what happens is that the r_alt button is flipped and released instantly, and all weapons are fired without a delay. Another problem however is flaps. because target hits key's so fast, right now the game doesnt recognize some inputs, in this case, shift. which makes incermental adjustments on raise flaps problematic at best. so rather than have no flap functionality, i used the chain command again here:

 MapKey(&Joystick, H3U, CHAIN(DOWN+ L_SHIFT, D(), DOWN+'f', D(7000), UP+'f', D(), UP+L_SHIFT));
  MapKey(&Joystick, H3D, 'f');
     

you can alter the delay by insterting a number into the parenthesis. if you have any issues just shoot me a pm and i should be able to point you in the right direction

Posted

Hey guys,

 

Well I have been wanting to delve into the scripting a bit, looks like now I will probably need to in order to make some key combinations assigned in Target work in BOS. Not sure why they work in other sims and not BOS, but it is what it is I guess.

 

In the meantime, let's say I want to introduce a delay between the left shift key and f key for example, in my current Warthog profile for BOS. Now say I have in my profile that key assignment as a "hold" , rather than "pulse". Reason I do this, for things like say flaps up, is I can move the flaps up switch to up, and it continually raises the flaps until such time as I move it back to the neutral position, or reaches full up. I do the same with my trim commands as well.

 

Can I do a delay statement between the shift and f, while using a "hold" command?

 

I will read more about scripting in the upcoming days, staring a new computer build later this morning and will be tied up with it for a while I am sure...

 

Thanks for any tips,

oh i forgot to add this.

 

this is what my flaps lever looks like scripting wise on the throttle.

 MapKey(&Throttle, FLAPU,CHAIN(DOWN+L_SHIFT, D(), DOWN+'f'));
    MapKey(&Throttle, FLAPM, CHAIN(UP+'f', UP+L_SHIFT)); 
    MapKey(&Throttle, FLAPD, 'f');
Posted

yes you can. the code should look something like this.

 

MapKey(&<device>, <button>, CHAIN( Down+<key>, D() <this is the delay function>, DOWN+<key>));

 

if you look up thread you will see where i linked exact coding...i actually linked it below:

 

 

you can alter the delay by insterting a number into the parenthesis. if you have any issues just shoot me a pm and i should be able to point you in the right direction

 

Thank you , I really appreciate the help!

Should at least get me steered in the right direction.

 

I have had my hands full today with a complete new pc build, now trying to get all my apps installed, then work on overclocking some as well.

Hopefully I will be ready by the weekend for the next access period.

Posted

Thank you , I really appreciate the help!

Should at least get me steered in the right direction.

 

I have had my hands full today with a complete new pc build, now trying to get all my apps installed, then work on overclocking some as well.

Hopefully I will be ready by the weekend for the next access period.

you can save some time tinkering with it by downloading my script and then looking at it. i have already made some adjustments to it for adding in stab movement for the 109, but i will upload that on thursday as usual. 

Posted

you can save some time tinkering with it by downloading my script and then looking at it. i have already made some adjustments to it for adding in stab movement for the 109, but i will upload that on thursday as usual. 

 

Will do as soon as I can get some time from getting things installed on this system, thanks for the help!

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...