Jump to content

Dagger_c3

Members
  • Posts

    21
  • Joined

  • Last visited

About Dagger_c3

  • Birthday 08/12/1987

Personal Information

  • Flight Simulators
    THIS PROFILE IS NOT USED, CONTACT WITH USER "-Dagger-
  • Location
    THIS PROFILE IS NOT USED, CONTACT WITH USER "-Dagger-
  1. Couldn't this be done by Lua + dll plugin that links with the winmm.dll library??? Something like this: http://www.geekpedia.com/code111_Play-MP3-Files-Using-Csharp.html But instead of using a C# wrapper, using a C++ one. Of course we probably loose the interferences effects, the radio range and so on, but at least it will be something....
  2. I was looking at the SDK and it's programmed in C. It's possible to create a dll and then call it from lua with the "require"... If someone want to do it here I send some C/C++ (and C# althought its not recomendable) skeletons in order to make dll's http://rapidshare.com/files/321369012/Project.rar
  3. Hi, in my case I've done something similar in order to get the Coordinates when a ONLINE player ejects. (I'm making a kind of online data exporter so in a future I can do some dynamic campaign in PHP) I hope that it help, also it would be fine if you tell what file you're coding (events.lua, export.lua, etc etc) And don't give it up, I've wasted 2 full weeks in order to get something usefull ;) That's coded in the events.lua: function on_eject(id) report(_("%s ejected."), player_info(id)) eject(id) end local function eject(id) local runtimeId = get_player_runtime_id(id) io.write(string.format("id=%s pilot=%s coords=%s side=%s EJECT\n", runtimeId, get_player_name(id), get_unit_coordinates(runtimeId), get_player_side(id))) end local function get_player_runtime_id(networkId) missionId = get_player_mission_id(networkId) if missionId == nil or missionId == "" then return -1 end runtimeId, ok = net.dostring_in("mission", "return db.clients.red["..missionId.."].ID") if ok and runtimeId ~= "" then return runtimeId end runtimeId, ok = net.dostring_in("mission", "return db.clients.blue["..missionId.."].ID") if ok and runtimeId ~= "" then return runtimeId end return -1 end local function get_unit_latitude(runtimeId) latitude, ok = net.dostring_in("export", "local o = LoGetWorldObjects() return o["..runtimeId.."].LatLongAlt.Lat") if ok and latitude ~= "" then return latitude end return -1 end local function get_unit_longitude(rundimeId) longitude, ok = net.dostring_in("export", "local o = LoGetWorldObjects() return o["..runtimeId.."].LatLongAlt.Long") if ok and longitude ~= "" then return longitude end return -1 end local function get_unit_coordinates(runtimeId) if runtimeId == nil or runtimeId == "" then return -1 end return get_unit_latitude(runtimeId).."//"..get_unit_longitude(rundimeId) end local function get_player_mission_id(networkId) if players[networkId].unit ~= nil then return players[networkId].unit end return nil end
  4. I made this code in events.lua: io = base.io function on_start() local file = io.open("./Temp/KILLLOG.log", "w+") if file then io.output(file) end --Here there are more lua code end function on_eject(id) report(_("%s ejected."), player_info(id)) io.write(string.format("id=%s %s ejected.\n", net.get_unit_property(id, 1), player_info(id))) end It's suposed that in the file KILLOG should appear the unit runtime ID and the message In KILLOG I get this: id=!invalid property! RED player "Dagger" ejected. Do you know where is the problem? Is this a bug? In case that it is a bug, is there any way of getting the unit runtime ID? (Happens the same with UNIT_GROUP_MISSION_ID) Thanks a lot
  5. I made this code in events.lua: io = base.io function on_start() local file = io.open("./Temp/KILLLOG.log", "w+") if file then io.output(file) end --Here there are more lua code end function on_eject(id) report(_("%s ejected."), player_info(id)) io.write(string.format("id=%s %s ejected.\n", net.get_unit_property(id, 1), player_info(id))) end It's suposed that in the file KILLOG should appear the unit runtime ID and the message In KILLOG I get this: id=!invalid property! RED player "Dagger" ejected. Do you know where is the problem? Is this a bug? In case that it is a bug, is there any way of getting the unit runtime ID? Thanks a lot EDIT: Glups sorry, I posted in on Lockon and it should be on DCS
  6. Impresionante, como se dice en ingles, "I'm speechless" :worthy:
  7. Will it be difficult to create one mission generator, that create a mission based on the data retrieved from a .log?? I think that this can be a first step to make a independent dinamic campaign. If anyone want to do it, I can help with C#
  8. 100 views and nobody knows?? Some developer must know it.... PD: The program that I wish to create is a random mission generator (If I'm able of course)
  9. Hi all, while I was opening missions in Notepad++ I've noticed that there are some strange data.. [4] = { alt = 159, type = "Turning Point", action = "Rank", lat = 0.77909493104684, targets = { }, -- end of targets long = 0.68948196970086, x = -34473.906424121, speed = 18.333333333333, y = 416085.26549431, }, -- end of [4] I want to make some small programm in C# to create missions but I don't understand how this x and y are calculated (probably some math function in some of the .lua files) The lat and long are made only to put the objects in the map editor and the X and Y are to put the objects in real map. There are not any relation between those numbers because even that you put objects in top corners of the map, those numbers don't have any relation so I think that they are calculated using some maths... Anybody know how to calculate them??? Thanks in advance :) PS: My english is not the best but if you don't understand something or you want that I explain better, just ask ;)
  10. I think that the damage model of this missile is bad against ships. It's strange but I shoot like 20 Kh-25 (unlimited ammo on) against a CVN and it was in perfect condition, without even a hole and shooting in a lot of different places. On the other hand, with only 2 rocket pods of S-20 I destroyed it.. I hope that it get solved with the patch. Also, I want to say that blast effect of bombs is a bit innacurate, if you drop a bomb at 5 meters your helicopter is still in perfect condition. But If you throw at 3 meters or less you die instantly. I don't think that 2 meters do such difference.
  11. Hi, is there any way to make the spot light more brighter and more bigger? I don't think that this would be very difficult. As far as I remember there were a lot of mods for Lockon that done that. Thanks in advance
  12. Yes, was that, thanks a lot :) I hope that in DCS I could do the same Thanks again ;)
  13. I remember time ago that I changed some lime in view.cfg or view.lua that allowed me to zoom at maximum level the aircraft, so I could put the camera in the ground and see the wheels, see the pilot very closely, take better screenshots etc... One week ago I changed my computer and now I can't find what line I changed, anybody know it?? Thanks a lot
×
×
  • Create New...