跳转到帖子

T_A

Members
  • 帖子数

    707
  • 注册日期

  • 上次访问

  • 得奖次数

    1

最新回复 发布由 T_A

  1. 5 minutes ago, slughead said:

    I have only spent two days on this. So it's quick and dirty. There is plenty of refinement to do.

    I'll take a look at resetting the LED state when the user drops out (eject/die/etc).

    Thanks , thats alot of code for 2 days

     

    for the reset if it helps this is how DCS-SRS does this:

       if _data ~= nil and not SR.fc3[_data.Name] then
            -- check for death / eject -- call below returns a number when ejected - ignore FC3
            local _device = GetDevice(0)
    
            if type(_device) == 'number' then
                _data = nil -- wipe out data - aircraft is gone really
            end
        end
    
        if _data ~= nil then
    		-- procceds to reset stuff... thats where leds will be turned off

     

  2. 2 hours ago, slughead said:

    I believe I have fixed the problem with starting a mission without entering an aircraft. Can you give this script a try? The script should ignore any aircraft other than the F-16C_50.

    Export.lua 3.64 kB · 0 downloads

     

    Yes it works, very nice work!

    tested in single player/ multiplayer  , choosing some other module slot on the server then switching to f-16 , ejecting then selecting another plane etc.

    but if i die/eject/change module  -  kill all the light , otherwise they stay last state.

     

    I actually took the time today to learn some DCS scripting to fix this , was almost there when i saw you posted the fix

    i looked at how DCS-SRS does this to get a clue and added the  if (aircraft ~=nil) part to LuaExportActivityNextEvent and also to LuaExportStart but realized most of LuaExportStart should run either way just without checks like you did (was fiddling with this when i saw a new post), so at least i learned something new today...

     

    quick note-  other mods don't put actual code in Export.lua but just call external lua file

    i pasted your 'Export.Lua' content in another file I.E  TMTQSExport.lua and in export i appended a call for this

    pcall(function() local dcsTM=require('lfs');dofile(dcsTM.writedir()..[[Scripts/TMTQSExport.lua]]); end,nil)

    *can be 'cleaner' by moving the files to the /Mods/*folder*  but not really important.

     

    anyways , really incredible work on this project, kudos to you!

  3. Font

    3 hours ago, slughead said:

    Forgive my ignorance, I have yet to use multiplayer. How can you not be in an aircraft when the mission starts?

    When you connect to a server that is running a mission , you get a list of open slots with all sorts of airplanes to select from , once you select an open slot you will spawn at the aircraft.

    In single player you are automatically assigned to a single 'player' designated aircraft.

  4. Tried to play around with the lua`s , but my knowledge of dcs export mechanics is next to none.

    from reading many other threads , its not a matter of export permission or server settings , its about not being inside an aircraft when the mission starts

    i tried to force it and skip the aircraft.name check (which was nil since i'm not in any aircraft) but it then failed due to GetDevice(0) usage.

    don`t know how DCS-BIOS does this , but i'm guessing they account for out of aircraft state , maybe have some kind of try-catch until you are actually sitting in one.

    just my 2 cents.

  5. 20 hours ago, slughead said:

    No, not as yet is now... yes. I have written a Thrustmaster target script to handle TCP packets exported from DCS via an export.lua and associated utility scripts that I have written.

    Take the files in f-16c_50_lamps_export.zip and put them in your Saved Games\DCS\Scripts or Saved Games\DCS.openbeta\Scripts folder or both if you use both stable and openbeta builds.

    Unzip the ViperTQSLEDSync.zip file and run the ViperTQSLEDSync.tmc file in Target.

    The target script must be running before you start your mission in DCS.

    This script does not take control of the ViperTQS so you use it as normal in DCS without needing to reconfigure DCS. Only the LEDs on the ViperTQS are controlled by the script. However, if you use a target script to map the ViperTQS to DCS, well you'll have to try to figure out how to combine this script with yours. Please don't ask me to help with combining scripts, you're going to have to figure that out on your own.

    I chose to use TCP rather than reading and writing files as it's less demanding on the processor and it will not wear out your SSD/HD prematurely. The export script only sends an update packet if one of the lamp indicators has changed. On the other side, the target script will only handle a packet if it receives one. So in that way, it's efficient. However, on the DCS side, it is polling for changes every 100ms. The CPU effort involved is minimal so it should not affect the performance of DCS. Ideally, I would want to trigger an update when a parameter changes rather than polling the parameters periodically. However, I don't think there is a mechanism by which this can be achieved. So it is what it is.

    One thing you will notice is that Thrustmaster has not properly emulated the RWR lights. For example, the ALTITUDE LOW and ALT are either both green or red at the same time. You can't illuminate one or the other. So a compromise had to be made in that when LOW is detected, the LED colour is red. When LOW isn't detected the LED is green unless the RWR is powered off. Similarly, the ACT/PWR button is either all green or off. I do not think you can illuminate the A or POWER individually - it's just one LED for the whole button. So that's quite a let down in my opinion. Although I only fly in VR so whilst I've gone to the effort of doing this, it's the 2D flyers that will reap the rewards and be a little miffed at the same time.

     

    ViperTQSLEDSync.zip 1.74 kB · 2 downloads f-16c_50_lamps_export.zip 3.09 kB · 2 downloads

    Truly impressive , i just finished testing this and i can confirm its working , first time i`ve seen the gear/handle lights on (no way to do via target gui yet...)

    Really appreciate the time you took to do this.

    Some notes:

    1. Exports file should be appended and not overwritten , for those who are not aware otherwise you`ll break other mods (like srs)

    2. I got errors running it at first on lines 72 and 73 where you check for farm stick (my target software doesnt recognize it0

    "Runtime Error: Symbol not found: FarmStickRight in main ( line 72 in ViperTQSLEDSync.tmc )"

    i just // those lines, run fine after   i updated to the .1003 version from 13.11.23 that added support for farm stick

    3. probably most important issue - only works first time in a mission , if i crash and fly again lights dont change , have to get out of the mission first. (tried to start/stop script while in mission)

     

    Small request - can you get the lights below the emer jettion button to blink i.e  on for being locked on and blinking while missile warning is on ?

     

    anyway - thanks again!

     

     

     

    • Like 1
  6. Havent played DCS in a year atleast , connected all my gear and started DCS

     

    Trackir 5 with pro clip , everything works great for a while

    then during play i will lose trackir , going back to trackir software it will say 'Title: None' instead of the usual 'Black Shark'

     

    any ideas?

  7. uhm you could have made your big reaveal when the product was done instead of Some month early...

    then you could have placed it right on the shelf without any worry about "crap".

     

    What is this toxicity about? Ever heard of marketing? What exactly is your problem other then wanting it so badly like the rest of us?

     

    I'm sure he knew those options. Thanks for the useless post.

     

     

     

    this is why i barely go on this forum anymore , instant fanboyism at any legitimate criticism.

    as if the devs are infallible and any other opinion is blaspheme

  8. For the harriers, thats the idea, you need to move to the farp to rearm.

     

    Unfortunately there is no other way to do it at a roadbase as the harrier doesn't have the same system as the viggen.

     

    Fixed the radio frequencies last night so they should be fine now.

     

     

     

    Sent from my ONEPLUS A3003 using Tapatalk

     

    Can you reduce the fuel for the Harriers on the road ? at the moment they are too heavy for vertical take off and its really time consuming and risky to move from road to the map if we cant even hover

  9. One pilot died from his injuries in hospital.

     

    Nope.

     

    According to hospital officials-

    One will be released today / tomorrow.

     

    the other is recovering from surgery and is stable and expected to recover from what seems like shrapnel injuries.

     

    Still not known for certain yet , but it seems they ejected due to the injury of the pilot and not the damage to plane.

  10. Ye good call on different modules for each side, the other day i shootdown a m2k in a harrier and it was enemy but it was really hard to spot which side by the skin.

     

     

    *edit*

     

    wait a minute , Harrier only on originally blue FARPs ? atleast give us harrier on red FARPs also

     

    *edit2*

    no weapons on Sabuli FARP and radio freqs no good there for harrier (cant use SRS)

  11. I don't have the natops right now but IIRC you can only toggle between wide and narrow.

    I suggest you to buy a set of TM MFD. They're not too expensive but sooo good on modern NATO aircrafts and actually on any module.

     

     

    I do have cougar MFDs , still not as easy as using all hotas

     

    anyway another question-

     

    i still don`t get how to reset the TPOD TDC on the HUD (like using china aft in A-10C)

  12. Why would setting 1688, the last possible code, be less arbitrary than 1111, the first?

     

    read what i wrote carefully , 1111 is not arbitrary which is why i wrote what i did , 1688 is arbitrary , but it is also what the A-10C in DCS uses as default code and what mission creators use when assigning JTACs.

     

    anyway , since it was already explained to me that this is the behavior of the real Harrier , this is a moot point.

  13. OK i give up, read the pocket guide and just cant understand the radio part

     

    radio is on , freq is 127.5

     

    how to i change it (manually and preset ) ?

     

     

    *edit*

    ok just noticed the radio buttons are dials AND push buttons

     

    so i got presets, but how do i select freq manually ?

×
×
  • 创建新的...