|
|
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Member
Join Date: Oct 2007
Location: SYD Australia
Posts: 575
Reputation: 36
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
How do I go about running 2 programmes at the same time via the export.lua script. Both applications (TACVIEW being one of them) run okay with their individual export.lua scripts in place.
Is there a specific way/syntax in which I can merge the two separate export.lua scripts into a single script that will allow both to work simultaneously? |
|
|
|
|
|
#2 |
|
Junior Member
Join Date: Sep 2009
Posts: 5
Reputation: 0
![]() |
I have been searching for an answer to this as well and so far have found nothing.
Anyone? Thanks |
|
|
|
|
|
#3 |
|
ED Translator
Join Date: Feb 2005
Location: Paris, France
Posts: 360
Reputation: 12
![]() ![]() ![]() ![]() ![]() ![]() |
Yes you can
![]() There is a way. Don't merge your file, just create specific LUA files for this or that application. Then call those specific files by a "dofile()" command at the end of the export.lua (by the way, the dofile are executed from the last to the first in the export.lua file) Attention ! Take car on how you call export.lua's functions in your specific files : If you do it "basically", it's like you're rewriting the function, therefore preventing next LUA scripts to employ it. I'm not a specialist, but you can take example on how are written the last versions of - TacviewExportFlamingCliffs.lua (Tacview) - lotatc2.lua (LotATC v2) (see at the end of file how it's done) They work together like a charm ![]() Cheers Az'
__________________
Last edited by Azrayen; 10-05-2009 at 01:34 AM. |
|
|
|
|
|
#4 |
|
Junior Member
Join Date: Sep 2009
Posts: 5
Reputation: 0
![]() |
Azrayen,
Thanks for the info. Tacview and LotATC are indeed working together. This is very cool since they are my two preferred exports. Here's where I am having a problem: Running Touch Buddy in client/server mode where Touch Buddy sends command "GetLomacTEWS". This works fine by itself but when LotATC is also active, neither program gets their respective updates. Tacview seems to always work regardless (maybe because it is only running local?). |
|
|
|
|
|
#5 |
|
ED Translator
Join Date: Feb 2005
Location: Paris, France
Posts: 360
Reputation: 12
![]() ![]() ![]() ![]() ![]() ![]() |
As I said, I'm not a specialist. Just try to look in the LUA file for Touchbuddy.
Try to compare LUAs from Tacview & LotATC (IIRC there is a vanilla function used by LotATC but not by Tacview : I suppose the problem could be there ?) About local / not local running : I don't know... Are you sharing ports numbers or opening sockets the same way/with the same name (overwriting ??) (I don't even know if that's possible, only making guesses here, as I never programmed anything in LUA myself )++ Az'
__________________
|
|
|
|
|
|
#6 | |
|
ED Translator
Join Date: Feb 2005
Location: Paris, France
Posts: 360
Reputation: 12
![]() ![]() ![]() ![]() ![]() ![]() |
Quote:
Bad remembering...
__________________
|
|
|
|
|
|
|
#7 |
|
Junior Member
Join Date: Sep 2009
Posts: 5
Reputation: 0
![]() |
I just started messing around around with the export functions about a week ago, so I'm learning the LUA syntax as I go. Most of the export.lua files are clear enough but Tacview is a bit more complicated.
Another question would be whether the conflict between TEWS and LotATC exports originates at the time of export or when my client system "asks" for the data? |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| need some help of Ranking system lua scripts | CrazyFlyCat | General Discussion | 14 | 12-11-2007 11:47 AM |
| dedmac Scripts? | None12345 | PC Hardware | 1 | 06-27-2006 06:37 AM |
| Printable Training Mission scripts | keithb | General Discussion | 1 | 08-04-2005 10:18 PM |
| Dev: Lua scripts for mission triggers? | Jetfire | General Discussion | 2 | 11-15-2004 12:48 PM |