1. Do not share user accounts! Any account that is shared by another person will be blocked and closed. This means: we will close not only the account that is shared, but also the main account of the user who uses another person's account. We have the ability to detect account sharing, so please do not try to cheat the system. This action will take place on 04/18/2023. Read all forum rules.
    Dismiss Notice
  2. For downloading SimTools plugins you need a Download Package. Get it with virtual coins that you receive for forum activity or Buy Download Package - We have a zero Spam tolerance so read our forum rules first.

    Buy Now a Download Plan!
  3. Do not try to cheat our system and do not post an unnecessary amount of useless posts only to earn credits here. We have a zero spam tolerance policy and this will cause a ban of your user account. Otherwise we wish you a pleasant stay here! Read the forum rules
  4. We have a few rules which you need to read and accept before posting anything here! Following these rules will keep the forum clean and your stay pleasant. Do not follow these rules can lead to permanent exclusion from this website: Read the forum rules.
    Are you a company? Read our company rules
Dirty

Digital Combat Simulator (DCS) - Experimental plug-in v0.10

This plug-in exports vehicle accelerations and vehicle angular rates.

  1. yobuddy

    yobuddy Well-Known Member Staff Member Moderator SimAxe Beta Tester SimTools Developer Gold Contributor

    Joined:
    Feb 9, 2007
    Messages:
    5,307
    Occupation:
    Computer Technician
    Location:
    Portland, Oregon - USA
    Balance:
    49,491Coins
    Ratings:
    +5,109 / 18 / -0
    Chassis has only really been used so far with shock position. (example output)
    Vibe_6_Output = "Chassis," & .SuspensionPositionFrontLeft.ToString & ":" & .SuspensionPositionFrontRight.ToString & ":" & .SuspensionPositionRearLeft.ToString & ":" & .SuspensionPositionRearRight.ToString

    I believe in the tests for this we were just sending the value (which happened to be a number between 0 and 1 in the game we tested.)

    We usually just send the speed output itself.

    Game Vibe is built for experimentation, if you think of anything cool to try, give me a shout.

    Take care guys!
    yobuddy
    • Like Like x 3
  2. Dirty

    Dirty Well-Known Member Gold Contributor

    Joined:
    Oct 15, 2017
    Messages:
    744
    Occupation:
    All the way up front.
    Location:
    Germany
    Balance:
    7,909Coins
    Ratings:
    +878 / 3 / -0
    • Winner Winner x 3
    • Like Like x 1
  3. MarkusB

    MarkusB Well-Known Member Gold Contributor

    Joined:
    Jun 30, 2015
    Messages:
    552
    Location:
    Germany
    Balance:
    4,213Coins
    Ratings:
    +596 / 2 / -0
    My Motion Simulator:
    2DOF, 3DOF, DC motor, Arduino, Motion platform
    • Like Like x 2
  4. MarkusB

    MarkusB Well-Known Member Gold Contributor

    Joined:
    Jun 30, 2015
    Messages:
    552
    Location:
    Germany
    Balance:
    4,213Coins
    Ratings:
    +596 / 2 / -0
    My Motion Simulator:
    2DOF, 3DOF, DC motor, Arduino, Motion platform
    Today I spent some more time with configuring DCS for Game Dash and Game Vibe, and the result is absolutely amazing for me. Maybe the following is also of interest for someone else.

    As @Dirty already wrote in the plugin description, you can configure the plugin with the lua file in the "SavedGames/DCS/Scripts/Hooks" folder.

    In the middle of this lua file you find the slots for Game Vibe and Game Dash that you can initialize with your favorite values.
    @Dirty has already provided two great functions which are WheelSpin() and Windiness(). You are now free to modify these functions or add new ones.

    Note that many input parameters depend on the plane you are using.

    At the moment I am only flying the TF-51D, and what I always wanted to have was wind that increases together with the engine's RPM and that is also dependent on the opening status of the canopy.
    That means, closing the canopy shall incrementally reduce the windiness, which shall still increase when pushing the throttle forward.
    So the wind is strongest with high RPM and open canopy.

    I found all required parameters in the file "mainpanel_init.lua" that is located in the folder "...SteamLibrary\steamapps\common\DCSWorld\Mods\aircraft\TF-51D\Cockpit\Scripts".

    The parameters are available via the main panel:
    mainPanel = Export.GetDevice(0)
    The parameters I needed were:
    engineRPM = mainPanel:get_argument_value(23)
    canopyValue = mainPanel:get_argument_value(162)

    Here is the function that calculates my canopy- and RPM-dependent windiness for Game Dash:
    function WindInsideCockpit()
    return engineRPM * (0.7 + canopyValue * 0.7)
    end

    Now about the vibrations. I have configured three Game Vibe slots:
    • One slot gets the engine's RPM value
    • One slot gets the value 1 when the landing gear is extracting or retracting, and otherwise 0
    • One slot gets the value 1 when the plane's power is on, and otherwise 0
    About the landing gear: Unfortunately the function "LoGetMechInfo" does not work for the TF-51D, so that I had to find something else.
    I ended up reading the status of a red warning LED that indicates an "unsafe state" of the landing gear. This LED is on when the gear is extracting or retracting.
    The parameter I found is:
    landingGearRedLightOn = mainPanel:get_argument_value(82)
    And this is the corresponding function for initializing the Game Vibe slot:
    function LandingGearExtractingOrRetracting()
    if (OnGround == 1) then
    return 0
    else
    return landingGearRedLightOn
    end
    end
    (The variable 'OnGound' had already been defined by @Dirty.)

    Finally about the plane's power: When turned on I wanted to get a slight humming vibration.
    For this one I am checking the cockpit light, which is automatically turned on when I turn on the battery power:
    leftCockpitLight = mainPanel:get_argument_value(185)
    And here's the function:
    function ElectricalPowerOn()
    if (leftCockpitLight > 0) then
    return 1
    else
    return 0
    end
    end

    I have attached my modified LUA file, just in case anyone is interested.

    Attached Files:

    • Informative Informative x 2
  5. Bastiuscha

    Bastiuscha Active Member

    Joined:
    Apr 1, 2017
    Messages:
    291
    Location:
    Germany
    Balance:
    750Coins
    Ratings:
    +191 / 2 / -0
    My Motion Simulator:
    6DOF
    Yeah really nice! I will check the new plugin today. I'm not quite sure yet, what the pencil values for wind speed should look like. But i'll look at it later.
  6. Bastiuscha

    Bastiuscha Active Member

    Joined:
    Apr 1, 2017
    Messages:
    291
    Location:
    Germany
    Balance:
    750Coins
    Ratings:
    +191 / 2 / -0
    My Motion Simulator:
    6DOF
    Hey, wind speed worked on first try! WOW! But, gamevibe don't receive any values from dcs world (i use beta). Just search the reason for that. at the moment.

    Edit: Dirty helped me out. It works just fine now. Now i hope some guys with experience, will bring us a good lua file, for the jets and helicopters. :) I will also try my hand at it, but i do not expect much success. :think:)
    Last edited: Aug 31, 2020
  7. Dirty

    Dirty Well-Known Member Gold Contributor

    Joined:
    Oct 15, 2017
    Messages:
    744
    Occupation:
    All the way up front.
    Location:
    Germany
    Balance:
    7,909Coins
    Ratings:
    +878 / 3 / -0
    Dirty updated Digital Combat Simulator (DCS) - Experimental plug-in with a new update entry:

    v0.10 brings some improvemens for inexperienced users during patching.

    Read the rest of this update entry...
  8. cityparker

    cityparker Member

    Joined:
    Sep 14, 2020
    Messages:
    35
    Balance:
    125Coins
    Ratings:
    +2 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor
    Why I can not download 0.10?
  9. Dirty

    Dirty Well-Known Member Gold Contributor

    Joined:
    Oct 15, 2017
    Messages:
    744
    Occupation:
    All the way up front.
    Location:
    Germany
    Balance:
    7,909Coins
    Ratings:
    +878 / 3 / -0
  10. Dirty

    Dirty Well-Known Member Gold Contributor

    Joined:
    Oct 15, 2017
    Messages:
    744
    Occupation:
    All the way up front.
    Location:
    Germany
    Balance:
    7,909Coins
    Ratings:
    +878 / 3 / -0
  11. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    21,147
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    148,578Coins
    Ratings:
    +10,903 / 54 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    Last edited: Mar 28, 2022
  12. Thomas Rabbertz

    Thomas Rabbertz New Member

    Joined:
    Aug 24, 2018
    Messages:
    28
    Balance:
    - 23Coins
    Ratings:
    +20 / 0 / -0
    My Motion Simulator:
    3DOF, Arduino
  13. Dirty

    Dirty Well-Known Member Gold Contributor

    Joined:
    Oct 15, 2017
    Messages:
    744
    Occupation:
    All the way up front.
    Location:
    Germany
    Balance:
    7,909Coins
    Ratings:
    +878 / 3 / -0
    Hi Thomas,

    no worries, we'll get this sorted.
    1. Where does the message "patching problem?" come from?
    2. When does it pop up?
    3. Do you have a screenshot?
    4. Is there a .lua file in "SavedGames/DCS.openbeta/Scripts/Hooks/"?
  14. Thomas Rabbertz

    Thomas Rabbertz New Member

    Joined:
    Aug 24, 2018
    Messages:
    28
    Balance:
    - 23Coins
    Ratings:
    +20 / 0 / -0
    My Motion Simulator:
    3DOF, Arduino
    Hi Dirty, many thanks for your quick reply!
    There was no folder called Hooks in the scrips folder. I added it and ran the patch again....and it works :)
  15. Thomas Rabbertz

    Thomas Rabbertz New Member

    Joined:
    Aug 24, 2018
    Messages:
    28
    Balance:
    - 23Coins
    Ratings:
    +20 / 0 / -0
    My Motion Simulator:
    3DOF, Arduino


    Here is the screenshot from what I got before I added the Hooks folder
    upload_2022-3-27_22-26-46.png
  16. Dirty

    Dirty Well-Known Member Gold Contributor

    Joined:
    Oct 15, 2017
    Messages:
    744
    Occupation:
    All the way up front.
    Location:
    Germany
    Balance:
    7,909Coins
    Ratings:
    +878 / 3 / -0
    Hmmm,.... that's strange.

    The patching routine should've created that folder. I guess for some reason it didn't and then the routine threw an exception. *scratching head*
    I will try to replicate it to find the source....

    Good to see it finally worked.

    Cheers,... Dirty :)
  17. Thomas Rabbertz

    Thomas Rabbertz New Member

    Joined:
    Aug 24, 2018
    Messages:
    28
    Balance:
    - 23Coins
    Ratings:
    +20 / 0 / -0
    My Motion Simulator:
    3DOF, Arduino
    Sounds great! Many thanks:thumbs
  18. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    21,147
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    148,578Coins
    Ratings:
    +10,903 / 54 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    What Path did you try patching to?
  19. Thomas Rabbertz

    Thomas Rabbertz New Member

    Joined:
    Aug 24, 2018
    Messages:
    28
    Balance:
    - 23Coins
    Ratings:
    +20 / 0 / -0
    My Motion Simulator:
    3DOF, Arduino
    User/savedgames/dcs.openbeta
  20. Thomas Rabbertz

    Thomas Rabbertz New Member

    Joined:
    Aug 24, 2018
    Messages:
    28
    Balance:
    - 23Coins
    Ratings:
    +20 / 0 / -0
    My Motion Simulator:
    3DOF, Arduino
    Hi, did you try to replicate the issue already? I think I found one more little problem.
    I got Game Engine to receive the motion data as we can see on the screenshot but no vibes input. I had a look at the SimTools_DCS_Exp_Hook_v010.lua and found the vibe slots all set to zero. For testing I copied the arguments from GameEngine slots to the Vibes slots and could see the input on vibes tuning Input. Now...I just need to find the right data for vibe slots.
    I found these here in one of your posts but they dont work on my machine
    local slot_GV_01 = "RPM," & vibe1.ToString
    local slot_GV_02 = "RPM," & vibe2.ToString
    local slot_GV_03 = "Weapon1," & vibe3.ToString
    local slot_GV_04 = "Weapon2," & vibe4.ToString
    local slot_GV_05 = "Landing Gear," & vibe5.ToString
    local slot_GV_06 = "Flaps," & vibe6.ToString
    local slot_GV_07 = "Turbulence," & vibe7.ToString
    local slot_GV_08 = 0
    Am I missing something else?
    thx Tom
    upload_2022-3-29_0-42-31.png