Jump to content

Recommended Posts

Sturmovnik_PL
Posted

I bulid up a button box, based on arduino.Problem is in ,for example,  lights.In others games (ETS)  work correctly if i turn switch to left side, lights are on, if a turn switch to right, lights turn off.In BoS thats look that, if i turn switch to left, lights are turn on, but if i turn switch to right, lights still are turn on, i have to again turn switch to left, and only lights are turn off.

 

I know that this game is made for the use of buttons (keyboard), but maybe is something to fix that ?

 

I have to go away form computer for some hours, for cleary show my problem, i post up video, showing my problem, but when i i back to home.

Posted

Im not sure,as I barely use the lights,but if there are not 2 dedicated keys assigned to switch on/off in game settings,then you will probably not make it as you wish.

Sturmovnik_PL
Posted (edited)

Yes i know, but one time i can use my switches as i wish, and i have video of that, but 2 day later something was bad, i dont know why, cause i use same program for arduino, all code of the program is the same.Ok, i post vide when my button box worked correctly. There is a link https://youtu.be/eyvxg3c9rKI

Edited by [PUAF]Sturmovnik_PL
Sturmovnik_PL
Posted

Ok i know all, its not working in BoS, of one simply reason, BoS i made for using keyboard, and all bind doesnt have a on/off option, one thing which left, is a ask Devs, do they can a make bind a on/off, if they wont make that, my button box will useless :(

No601_Prangster
Posted

Can't you just bind both positions to the light? Then when you turn it one way it goes on and then turn the other way for off.

Posted (edited)

BoS controls is done for keyboard operation: press a give key for ON, press the same key again for OFF, so don't has support for ON-OFFswitch work properly - setting in games controls.

 

You need use a keymapper between the button box and the game with support for "mapped key on release" function. E.g. SVMapper, Joy2Key, HidMacros, Xpadder, AutoHotkey (scripts).

 

With this keymapper when you flip switch up (ON) is send a key press, eg. L and lights is turn on, when flip switch down (OFF) is send another keyp ress L and lights is turned OFF.

 

If you are used to codding can customize Arduino code adding this functions and so avoiding use keymapper.

 

MMjoy2 (firmware for Ardunio PRO micro and others) has good support for ON-OFF switches.

 

A workaround by hardware is use ON-OFF-ON switches - DPDT - (2 buttons in one lever) and wire both terminals in same button, assign this button in game for turn lights, so up and down will send the same button command. Is need set the switches properly before hit fly for avoid inverted situations.

Edited by Sokol1
Sturmovnik_PL
Posted (edited)

Can't you just bind both positions to the light? Then when you turn it one way it goes on and then turn the other way for off.

Problem is, in BoS u can bind one button/switch, for one action, u cannot bind two vaules /on and off, and its all problem.

Sokol, thank u very much i will check this out, tomorrow cause, today i dont have time for that.Tomorrow i will let u know, do its work corretly, with keymappers which give Sokol :salute:

Edited by [PUAF]Sturmovnik_PL
Posted

Problem is, in BoS u can bind one button/switch, for one action, u cannot bind two vaules /on and off, and its all problem.

 

Yes, the only command that has individual ON and OFF in controls GUI is flapes.

Sturmovnik_PL
Posted (edited)

Ehh, SVMAPPER works correctly, i am switch to left in any text area "L" is write, and if i switch to rights side, next "L" is write, but in bos still switches doesnt works corectly, i have continous, to "on".I dont know why thats wont work, because should work with SVmapper without any problem.Any idea Sokol ?

 

https://zapodaj.net/56bb0b1f9fe56.png.html SS of SVmapper

Edited by [PUAF]Sturmovnik_PL
No601_Prangster
Posted

Is the switch generating a continuous signal or just a paulse when switched. Keyboards only generate a short paulse.

Sturmovnik_PL
Posted (edited)

Pulse, because when i switch left, and then to right, i am have only two "l"

Edited by [PUAF]Sturmovnik_PL
Posted (edited)

This toggle switch generate a continuous signal in ON position - in Windows Games Controllers the button test is highlight when the switch is in ON, is like you press a joy button or keyboard key and HOLD, but this is normal. Press L in keyboard and hold don't make lights turn ON/OFF continuous but only ON.

 

But there something different in BoS controls (relative to other games) that make difficult use this kind of switch - I know that for use joystick software (Saitek, Ch, TM) is need use pause/delays for commands with modifiers, e..g LAlt+A.

 

This simple free/shareware keymappers don't allow set delays.

 

I test there lights commands  with SVMapper, Joy2key and HidMacros.

 

No luck with SVMapper and Joy2Key*, the second keys is not seem in game, even if I add 2 keys for turn ON/OFF lights in game controls, e.g. L and K  - for release send a different key.

 

Work in HidMacros in this way: set press to send l,l,l and release to send l,l,l (even number). Don't worry that lights will not blink.  :)

 

Same for Landing gear, press (and release) sending  g,g,g work OK. 

 

Probable AutoHotkey allow set pause/delays, but is need create scrips and is more CPU use intensive.

 

* Curious that in other test - previous version of BoS - I achieve that "on press" and "on release" work (sending different keys):

https://forum.il2sturmovik.com/topic/20963-svmapper/?do=findComment&comment=331515

Edited by Sokol1
Sturmovnik_PL
Posted (edited)

So i have to use a HidMicros program, but for me is too complicated, i dont know how set up that program, if u will tell me how set up that program (HidMicros), I will very greateful.

Edited by [PUAF]Sturmovnik_PL
Sturmovnik_PL
Posted

Okay, i dont find realse option in HidMarcos, i can only bind keys, for press, not for release.

Posted (edited)

OK, since SVMapper is minimalist and elegant  :) I don't give up, a way that work: 

 

Bo-SLights.jpg

 

This RShift is set only in SVMapper for add a extra delay before send L - only the 999 in SVMapper is not sufficient. Game controls see only the L. 

 

BTW - This toggle switch will give you a additional problem in LaGG-3 because in this plane cockpit lights has 2 stage, so is L for main panel, L again for lateral lights and and then L for OFF. Try set a way that ignore the first L.

Edited by Sokol1
  • Upvote 1
Sturmovnik_PL
Posted

You badass, now everything works correctly, do u want my arduino code for 32 buttons, and 5 axis ?

Sturmovnik_PL
Posted

But, still is one some weird problem, if u have a pressed any key on keyboard, u cannot go to menu.In flight if u want go to menu,u have to turn off all switches :mellow:

Posted (edited)

Okay, i dont find realse option in HidMarcos, i can only bind keys, for press, not for release.

 

Just in case, in HidMacros you create a New Macro for "Lifgts ON" and when set the button (Scan) choose "pressed".

Then create a New Macro for "Lights OFF" and when set the button (Scan) - the same button - choose "released"

Edited by Sokol1
Sturmovnik_PL
Posted (edited)

Just in case, in HidMacros you create a New Macro for "Lifgts ON" and when set the button (Scan) choose "pressed".

Then create a New Macro for "Lights OFF" and when set the button (Scan) - the same button - choose "released"

Ahh u are smart, but now work that with svmapper, so i will using svmapper, becasue is simpler.Thank u very much again Sokol :salute:

Edited by [PUAF]Sturmovnik_PL

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...