Jump to content

Sprool

Members
  • Posts

    571
  • Joined

  • Last visited

Everything posted by Sprool

  1. Totally disagree with mosqui! Something satisfying about saving money and crafting something yourself and getting it tuned sweetly. Just takes some tweaking. For me it was the pointtracker calibration and relative translation settings in opentrack that sorted everything. My 3 LEDs are on the left of my head, so when I turn head right, the LEDs effeectively move closer to the camera, and further when I turn head left. the relative translation compensates for this effect.
  2. Everything and a lot more is explained in this thread: https://forums.eagle.ru/showthread.php?t=89226
  3. Fair enough, its now also a minor revenue stream for cap, not just a flight sim video game
  4. I noticed the lua files were different for the middle east animals (which show up in game) and the cows/boar/chickens which dont. Cow-a.lua: mount_vfs_model_path (current_mod_path.."/Shapes/") mount_vfs_texture_path (current_mod_path.."/Textures/") Camel.lua: mount_vfs_model_path (current_mod_path.."/Shapes/") mount_vfs_texture_path (current_mod_path.."/Textures/animals.zip") But even if I edit the luas for cows & chickens, they dont appear in-game?
  5. Dropbox download ask for password ? Found this https://www.dropbox.com/s/9q49z5j53ag15io/DCS_Animals_Mod_V1.5.zip?dl=0&file_subpath=%2FDCS_Animals_Mod_V1.5 but DCS says its not authorised and wont run it. Maybe its an OVGME thing. I installed manually into my saved games / mods and it shows up, but no cows or chickens appear - I get most of the other animals. But I want cows and chickens!
  6. my trim works as normal too, no change. Ive always had to trim rudder and cyclic as separate items though.
  7. In the Supercarrier manual it says the LSO position (LAlt+F9) has a separate PLAT window you can move and interact with (Alt+C), the LSO Main Screen Window, wiht the grey PLAT Camera view below it. I just get the 2 small green screens on the physical LSO workstation. It says the view can be scrolled up and down with the mouse wheel - mine does nothing. It says window can be opened and closed by clicking top left? Is this still work-in-progress? It shows a grey plat camera view I have never seen in game. Am I missing s/thing? How do I bring this view up and interact with it? Or is it all still WIP?
  8. fields a bit too crisp and stripey for me, mountain looks fabulous!
  9. thanks - better solution!
  10. Glad to have helped a little.
  11. The problem may be that the Lua code only sees buttons/switches as on or off, and you want one switch to be seen as A, off or B. I would post a request in LeCuvier's toggle switch thread and see if he can suggest a workround for you. https://forums.eagle.ru/showthread.php?t=89226&page=81
  12. --{ down = SMS_commands.MasterArmSw, cockpit_device_id = devices.SMS, value_down = 1.0, name = _('Master Arm Switch - ARM'), category = {_('Instrument Panel'), _('Master Arm Panel')}}, --{ down = SMS_commands.MasterArmSw, cockpit_device_id = devices.SMS, value_down = 0.0, name = _('Master Arm Switch - SAFE'), category = {_('Instrument Panel'), _('Master Arm Panel')}} {down = SMS_commands.MasterArmSw, up = SMS_commands.MasterArmSw, cockpit_device_id = devices.SMS, value_down = 1.0, value_up = 0.0, name = _('Master Arm Switch 2-Pos ARM/SAFE'), category = {_('Instrument Panel'), _('Master Arm Panel')}}, put 2 dashes in front iof the 2 lines you posted to tell the lua code to ignore the command (it treats it as a comment so you can undo later if needed) then add the third line. Then go into settings controls in DCS menu and find the new entry for the F-18 master arm switch - "master arm - 2 pos - arm/safe." Then just designate a keypress or switch to assign to it. Thanks to LeCuvier for his brains on these toggle switch codes! LeCuvier's single line sort of combines the 2 original lines into one command. All its doing is telling the game to look for one keypress to arm, and pressing the key down flags it as 1 = armed, then it looks for a second keypress to toggle the safe state and assigns zero to it. LeCuviers edit combines both in that the if the switch is down = armed (value = 1) and if the switch is up = safe (0)
  13. Yes- thanks for the help :)
  14. Yep that kills the rotation, its a digital on/off thing not scaling up ana analog number, I need to be able to increase (double) the number of keypresses sent out. I think!
  15. Do you mean: Joystick.button(rotaries[i].ccwchar * 2, 1); delay(50); Joystick.button(rotaries[i].ccwchar * 2, 0);?
  16. No dont do that, I'll guess you are looking to edit the wrong file. the code form your first post, is it from saved games/dcsopenbeta/config/input/FA-18C_hornet/Joystick folder? If so, then thats the wrong file. You want to be editing Eagle Dynamics/DCS World Open Beta/Mods/Aircraft/FA-18C/Input/FA-18C/joystick/default.lua. The line controlling the master arm switch is line 149
  17. isnt the 1 or zero just acting as a flag on/off to register the rotary has changed position, cw or ccw? If so then making the number bigger will not achieve anything, if I get it to output 2, 3 or 4 pulses each time it moves then maybe that would work ?
  18. This version compiled ok, if I left it as rotaries = rotaries * 2; i got an error; void CheckAllEncoders(void) { for (int i=0;i<NUMROTARIES;i++) { unsigned char result = rotary_process(i); if (result == DIR_CCW) { Joystick.button(rotaries[i].ccwchar, 1); delay(50); Joystick.button(rotaries[i].ccwchar, 0); rotaries[i].ccwchar = rotaries[i].ccwchar*2; }; if (result == DIR_CW) { Joystick.button(rotaries[i].cwchar, 1); delay(50); Joystick.button(rotaries[i].cwchar, 0); rotaries[i].cwchar = rotaries[i].cwchar*2; };However the knob doesnt turn at all now in game?
  19. Heres the code covering the 4 rotaries, void rotary_init() { for (int i=0;i<NUMROTARIES;i++) { pinMode(rotaries[i].pin1, INPUT); pinMode(rotaries[i].pin2, INPUT); #ifdef ENABLE_PULLUPS digitalWrite(rotaries[i].pin1, HIGH); digitalWrite(rotaries[i].pin2, HIGH); #endif } } unsigned char rotary_process(int _i) { unsigned char pinstate = (digitalRead(rotaries[_i].pin2) << 1) | digitalRead(rotaries[_i].pin1); rotaries[_i].state = ttable[rotaries[_i].state & 0xf][pinstate]; return (rotaries[_i].state & 0x30); } void CheckAllEncoders(void) { for (int i=0;i<NUMROTARIES;i++) { unsigned char result = rotary_process(i); if (result == DIR_CCW) { Joystick.button(rotaries[i].ccwchar, 1); delay(25); Joystick.button(rotaries[i].ccwchar, 0); Joystick.button(rotaries[i].ccwchar, 0); }; if (result == DIR_CW) { Joystick.button(rotaries[i].cwchar, 1); delay(25); Joystick.button(rotaries[i].cwchar, 0); }; } } Really not sure which i can edit to give more movement, what are you like on arduino code? All its doing is going through the 4 encoders then outputting (digital write) one pulse CW or one pulse CCW if it detects any of the encoder state have changed. How can I get DCS to amplify the response to move the knob/dial a lot more per pulse?
  20. In my current button box build I have a matrix of 4 rotary encoders, and I want the on-screen dial/knob rotation to mimic the rotation of the rotary encoder on the panel. Since a lot of the DCS key mapping allows for keypresses to increment a parameter up or down, such as cockpit instrument light brightness or heading indicator, using a rotary encoder each small rotation step results in what the joystick controller recognises as a button depress, that just nudges the dial or setting one small increment up or down. The result is for a knob on the game to turn one revolution you have to turn the rotary encoder about 20 revolutions. Is there a way I can get it to turn on 1:1 ratio? Some setting in game or default lua, or some extra code I could add - its Arduino-board driven?
  21. Great build - nicely done :)
  22. Especially on the joystick axes its vital there's only one controller giving the input. All 3 you show here are fighting to control same axis. Delete the ones you dont need to leave only one for each control parameter. THen use tune axis to modify settings, null zone, curves.
  23. Post #708 shows: {down = SMS_commands.MasterArmSw, up = SMS_commands.MasterArmSw, cockpit_device_id = devices.SMS, value_down = 1.0, value_up = 0.0, name = _('Master Arm Switch 2-Pos ARM/SAFE'), category = {_('Instrument Panel'), _('Master Arm Panel')}}, This for the default.lua Joystick for Hornet. I'm going to give it a try. /edit: yep works fine. I now have 2 spst on/off switches on my button box, one controls quick start, the other controls master arm on/safe. Note: This code is all lua inside dcs, nothing to do with bodnar or arduino (which I'm using as the button interface with windows joystick controller) The file to edit (make a backup first) is DCSworld/mods/aircraft/FA-18C/input/joystick/default.lua If you need any help on the rotaries, gimme a shout.
  24. that post is now 81 pages long! I'm looking to do same with a button box (+ rotary encoders) so I'll post back if I find something more helpful.
  25. Me too, love helo missions ;)
×
×
  • Create New...