T_A
最新回复 发布由 T_A
-
-
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 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.
-
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.
-
38 minutes ago, slughead said:
Have you tried the scripts with multiplayer yet? It may not be compatible at all with multiplayer.
Just tried it , doesnt work, connected to a server with what appears to be all exports enabled
-
1
-
-
12 minutes ago, slughead said:
When you say fly again do you mean respawn without returning to the mission debrief screen?
yes exactly , it will be useful for me since i fly mostly on mp servers where i *ahem* respawn alot..
-
1
-
-
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 afteri updated to the .1003 version from 13.11.23 that added support for farm stick3. 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!
-
1
-
-
I there any solution to having the leds sync with DCS ? (like the threat warning panel buttons and gear lever and wheel status)
really annoys me that they make a feature that is absolutely unusable
can DCS BIOS or other app interact with DCS and TARGET or something ?
-
1
-
-
Well now i`m getting this stuttering everywhere in MP using MT client
with ST clients its gone (like my FPS...)
-
-
Just setup my Viper TQS today, how do i get the threat buttons to light up to match DCS , same for landing gear ?
-
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?
-
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
-
Ye i stopped playing BF since they did that to the Harrier, tried a few times , just too much hassle for no good reason .
having harrier spawn on road bases is one thing , but this? nope
-
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
-
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.
-
Please fix Harrier , FARPs don`t have weapons and the radio frequencies and not good for SRS there
-
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)
-
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)
-
Can you only zoom with the MFD buttons or can you alsp do it with HTS mode?
i know i can use WD/NR from hotas
-
mvsgas can we get a summary in plain English?
-
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.
-
Damn , guess the fault is with the actual Harrier programmers and not the RAZBAM
-
Zeus can we get the TPOD / DMT Default laser code to 1688 like the A10C? if it were some other arbitrary code i could understand , but 1111 seems like something a programmer would put just cuz he HAD to put a value.
-
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 ?

Thrustmaster F-16 TQS LED synchronize with game ?
在 Thrustmaster
发布于
Thanks , thats alot of code for 2 days
for the reset if it helps this is how DCS-SRS does this: