Reply
 
Thread Tools Display Modes
Old 12-31-2007, 05:49 AM   #1
IvanK
Member
 
Join Date: Oct 2007
Location: SYD Australia
Posts: 575
Reputation: 36 IvanK is a splendid one to beholdIvanK is a splendid one to beholdIvanK is a splendid one to beholdIvanK is a splendid one to beholdIvanK is a splendid one to beholdIvanK is a splendid one to beholdIvanK is a splendid one to beholdIvanK is a splendid one to beholdIvanK is a splendid one to beholdIvanK is a splendid one to beholdIvanK is a splendid one to behold
Default Combing Export LUA scripts

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?
IvanK is offline   Reply With Quote
Old 10-05-2009, 01:04 AM   #2
reaper2040
Junior Member
 
Join Date: Sep 2009
Posts: 5
Reputation: 0 reaper2040 is on a distinguished road
Default

I have been searching for an answer to this as well and so far have found nothing.

Anyone?

Thanks
reaper2040 is offline   Reply With Quote
Old 10-05-2009, 01:25 AM   #3
Azrayen
ED Translator
 
Azrayen's Avatar
 
Join Date: Feb 2005
Location: Paris, France
Posts: 360
Reputation: 12 Azrayen is just really niceAzrayen is just really niceAzrayen is just really niceAzrayen is just really niceAzrayen is just really niceAzrayen is just really nice
Default

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.
Azrayen is offline   Reply With Quote
Old 10-05-2009, 07:16 AM   #4
reaper2040
Junior Member
 
Join Date: Sep 2009
Posts: 5
Reputation: 0 reaper2040 is on a distinguished road
Default

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?).
reaper2040 is offline   Reply With Quote
Old 10-05-2009, 06:57 PM   #5
Azrayen
ED Translator
 
Azrayen's Avatar
 
Join Date: Feb 2005
Location: Paris, France
Posts: 360
Reputation: 12 Azrayen is just really niceAzrayen is just really niceAzrayen is just really niceAzrayen is just really niceAzrayen is just really niceAzrayen is just really nice
Default

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'
__________________
Azrayen is offline   Reply With Quote
Old 10-05-2009, 11:16 PM   #6
Azrayen
ED Translator
 
Azrayen's Avatar
 
Join Date: Feb 2005
Location: Paris, France
Posts: 360
Reputation: 12 Azrayen is just really niceAzrayen is just really niceAzrayen is just really niceAzrayen is just really niceAzrayen is just really niceAzrayen is just really nice
Default

Quote:
Originally Posted by Azrayen View Post
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 ?)
Error, there isn't.
Bad remembering...
__________________
Azrayen is offline   Reply With Quote
Old 10-05-2009, 11:41 PM   #7
reaper2040
Junior Member
 
Join Date: Sep 2009
Posts: 5
Reputation: 0 reaper2040 is on a distinguished road
Default

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?
reaper2040 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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


All times are GMT +4. The time now is 09:31 PM. vBulletin Skin by ForumMonkeys. Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.