Jump to content

Recommended Posts

Posted

I disagree. Put in a request in the wishlist forum to ask ED for examply what it is you need, and I will make sure they have a look at the least :)

 

You could cheat (it would be less efficient, but you could) with LoGetObjectByID by iterating through IDs.

[sIGPIC][/sIGPIC]

Reminder: SAM = Speed Bump :D

I used to play flight sims like you, but then I took a slammer to the knee - Yoda

Posted
You can have your opinion and you also can choose your way to express it. You chosen a rather arrogant aproach to do so, with that confrontational atitude based on whatever power you think you have to get back at me. Rather strange defenition of politeness you have.

 

Your acusations are not consistent by saying my yet unfullfilled project would be more a cheat than using the 360º owell neck view like we had in previous LOMAC versions or the Bullseye or the ATC utilities. Your interest, as far as you made me understand may lie elsewhere but to discuss this LUA project. I do not know exactly what is you purpose for your agressive remarks, but I would like you to spare me from your lectures and rethink your atitude or focus your agresseviness onto something else.

 

Im not going to "enlighten you" as the objective of this project was made pretty clear already, And Im not in the mood to perpectuate this discussion into a charade.

 

I don't know why you insist on making this about me , YOU ARE THE ONE LOOKING FOR WAYS TO CHEAT ...

 

I don't make any accusations I only quoted YOU , you dug your own hole pilotasso .

[sIGPIC]http://img.photobucket.com/albums/v108/madmaxx69/LOMAC/Rykesig1.jpg[/sIGPIC]

Savage 77th , http://s77th.com

|Core i7 920|Asus P6T Deluxe V2|GTX 285|9600GT-OC|6G DDR3|Softh on 3x22"CRTs|Tir2|yeahIsaidTir2|X-45|Haf 932|Vista Ultimate 64|

Posted

the funnyman did it again

 

Man, if this antenna feature is cheating, then so is TrackIR, especially since I can't turn it off to even the gameplay out when padlock is turned off.

LOL.. you arent serious are you? You actually compare trackir to padlock? LOL..

Have you ever used trackir? If you did, can you tell me where you bought it, since mine does not lock and track automatically.

Posted

OK I started to feel the ground here. Heres what I compiled based on what I think I need to export data:

 

*******************************************************

function LuaExportStart()

 

File

local file = io.open("./Temp/Export.log", "w")

if file then

io.output(file)

 

end

 

---------------------------------------------------------------------------------------

 

function LuaExportBeforeNextFrame()

end

 

---------------------------------------------------------------------------------------

 

function LuaExportAfterNextFrame()

 

end

 

---------------------------------------------------------------------------------------

 

function LuaExportStop()

 

end

 

-------------------------------------------------------------------------------------

function LuaExportActivityNextEvent(t)

 

 

 

 

local allowed_types = {"A-50", "An-26B", "An-30", "IL-76", "IL-78", "MiG-23", "MiG-25", "MiG-27",

"MiG-29", "MiG-31", "Su-17", "Su-24", "Su-25", "Su-27", "Su-30", "Su-33", "Su-34", "Tu-142", "Tu-160",

"Tu-22", "Tu-95", "A-10", "B-1B", "B-52", "C-130", "C-17", "E-2C", "E-3A", "F-117", "F-14", "F-15", "F-16",

"F-5E", "F/A-18", "KC-10A", "S-3B", "Ka-27", "Ka-50", "Ka-52", "Mi-24W", "Mi-26", "Mi-8MT", "AH-1W", "AH-64"}

 

local tNext = t

 

local o = LoGetWorldObjects()

for k,v in pairs(o) do

socket.try(c:send(string.format("t = %.2f, ID = %d, name = %s, country = %s(%s), LatLongAlt = (%f, %f, %f), heading = %f\n", t, k, v.Name, v.Country, v.Coalition, v.LatLongAlt.x, v.LatLongAlt.Long, v.LatLongAlt.Alt, v.Heading)))

end

tNext = tNext + 1.0

 

return tNext

end

-------------------------------------------------------------------------------------

 

LoGetTargetInformation() -- (args - 0, results - 1 (table of current targets tables))

 

-------------------------------------------------------------------------------------

 

LoGetLockedTargetInformation() -- (args - 0, results - 1 (table of current locked targets tables))

this functions return the table of the next target data

target =

{

ID , -- world ID (may be 0 ,when ground point track)

type = {level1,level2,level3,level4}, -- world database classification

country = , -- object country

position = {x = {x,y,z}, -- orientation X ort

y = {x,y,z}, -- orientation Y ort

z = {x,y,z}, -- orientation Z ort

p = {x,y,z}} -- position of the center

velocity = {x,y,z}, -- world velocity vector m/s

distance = , -- distance in meters

convergence_velocity = , -- closing speed in m/s

mach = , -- M number

delta_psi = , -- aspect angle rad

fim = , -- viewing angle horizontal (in your body axis) rad

fin = , -- viewing angle vertical (in your body axis) rad

flags = , -- field with constants detemining method of the tracking

-- whTargetRadarView = 0x0002; -- Radar review (BVR)

-- whTargetEOSView = 0x0004; -- EOS review (BVR)

-- whTargetRadarLock = 0x0008; -- Radar lock (STT) == whStaticObjectLock (pinpoint) (static objects,buildings lock)

-- whTargetEOSLock = 0x0010; -- EOS lock (STT) == whWorldObjectLock (pinpoint) (ground units lock)

-- whTargetRadarTrack = 0x0020; -- Radar lock (TWS)

-- whTargetEOSTrack = 0x0040; -- Radar lock (TWS) == whImpactPointTrack (pinpoint) (ground point track)

-- whTargetNetHumanPlane = 0x0200; -- net HumanPlane

-- whTargetAutoLockOn = 0x0400; -- EasyRadar autolockon

-- whTargetLockOnJammer = 0x0800; -- HOJ mode

 

reflection = , -- target cross section square meters

course = , -- target course rad

isjamming = , -- target ECM on or not

start_of_lock = , -- time of the beginning of lock

forces = { x,y,z}, -- vector of the acceleration units

updates_number = , -- number of the radar updates

}

 

LoGetTWSInfo() -- return Threat Warning System status (result the table )

result_of_LoGetTWSInfo =

{

Mode = , -- current mode (0 - all ,1 - lock only,2 - launch only

Emitters = {table of emitters}

}

emitter_table =

{

ID =, -- world ID

Type = {level1,level2,level3,level4}, -- world database classification of emitter

Power =, -- power of signal

Azimuth =,

Priority =,-- priority of emitter (int)

SignalType =, -- string with vlues: "scan" ,"lock", "missile_radio_guided","track_while_scan";

}

**********************************************************************************

 

Is this right to start viewing target info on the output file export.log on ANY solo or multiplayer mission?

There might be too many procedures than what I need.

.

Posted

you REALLY dont want to be exporting before/after every frame.... thats a heavy workload, so stick with your code that uses the event timer

 

function LuaExportActivityNextEvent(t)
local tNext = t

-- Put your event code here and increase tNext for the next event
-- so this function will be called automatically at your custom
-- model times. 

       # do some stuff here

tNext = tNext + <number-of-seconds-until-next-update>

return tNext
end

  • Like 1
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...