Leaderboard
Popular Content
Showing content with the highest reputation on 09/11/08 in all areas
-
Performance of what? The gun? It works great. What do you mean by multiple targeting? You can only have one thing targeted at a time.2 points
-
when admins feel like superhuman do whatever they want btw when the game will be released? :) :) lollllllll2 points
-
2 points
-
I first got this idea when we started work on our cockpit project, but at that time, I only knew how to export stuff from lockon via the export.lua script. After studying the lua language a little, and searching the net, I found out that it is also possible to use export.lua as an import script :) To try this out, I created a small program to run on my PDA, which functions like TouchBuddy in a way, but much simpler (at the moment, it has only six non-programmable buttons). It communicates with the PC via a TCP socket, using port 10309. On the PC, I was first planning to create a small server, which would translate the commands it received from the PDA into keystrokes for Lockon. But since Lockon has the LoSetCommand() function in the export.lua script, I wondered if it would be possible to create the server using a lua script. After some tests, I had a perfectly working server script, which handled all my commands, but it was running outside of Lockon, and since it used an endless loop, this might be a problem. Time to learn coroutines :) After a couple of hours of programming and testing, I finally managed to create a script, which runs inside Lockon, and listens on TCP port 10309 for incoming commands. It then translates the received commands into the numeric command codes listed at the end of the export.lua script, and calls the LoSetCommand() function. By using this script, I can now control my aircraft from any type of application, even via a script from a web browser :D As I'm still in the early stages of learning lua, maybe some of you can comment on my script to make it better. Here's the lua script: --------------------------------------------------------------------------------------------------- -- TCP Listener script for controlling Lockon from an external program -- -- Author: Bas 'Joe Kurr' Weijers -- --------------------------------------------------------------------------------------------------- dofile "lua.lua" -- Listener settings -- By default, the listener binds to port 10309 on all local network interfaces local host = "*" local port = 10309 -- Command list -- Send these commands from your application to execute the corresponding functions in Lockon -- The numbers here correspond to the commands at the end of the original export.lua script local commands = { view_cockpit = 7, view_external = 8, view_flyby = 9, view_ground_units = 10, view_civilians = 11, view_chase = 12, view_navy = 13, view_air_combat = 14, view_theater = 15, view_airfield = 16, chat_allies = 50, chat_common = 57, acs_altitude_toggle = 59, acs_autopilot_toggle = 62, acs_thrust_toggle = 63, mech_gear_toggle = 68, mech_hook_toggle = 69, mech_wings_toggle = 70, mech_canopy_toggle = 71, mech_flaps_toggle = 72, mech_flaps_down = 145, mech_flaps_up = 146, mech_airbrake_toggle = 73, mech_airbrake_open = 147, mech_airbrake_close = 148, mech_wheelbrakes_on = 74, mech_wheelbrakes_off = 75, mech_chute = 76, refuel_on = 79, refuel_off = 80, refuel_probe_toggle = 155, mode_nav = 105, mode_bvr = 106, mode_vs = 107, mode_bore = 108, mode_helmet = 109, mode_fio = 110, mode_ground = 111, mode_grid = 112, kobra = 121, engines_both_start = 309, engines_both_stop = 310, engines_left_start = 311, engines_left_stop = 312, engines_right_start = 313, engines_right_stop = 314, master_power_toggle = 315, lights_toggle = 175, jettison_weapons = 82, jettison_fueltanks = 178, radar_toggle = 86, eos_toggle = 87 } Coroutines = Coroutines or {} CoroutineIndex = CoroutineIndex or 0 local serverRunning = 0 local origStart = LuaExportStart local origStop = LuaExportStop function run_server() local socket = require("socket") local sck = socket.try(socket.bind(host, port)) if (sck ~= nil) then addr, prt = socket.try(sck:getsockname()) logtofile("Listener started") while (serverRunning == 1) do socket.try(sck:settimeout(0.01)) conn, err = sck:accept() if conn ~= nil then msg, err = conn:receive() conn:close() if (msg == "END") then stop_server = 1 else logtofile("Received: " .. msg .. " --> " .. commands[msg]) LoSetCommand(commands[msg]) end -- if end -- if coroutine.yield() end -- while sck:close() logtofile("Listener stopped") end -- if end -- function function start_server() logtofile("Starting listener") serverRunning = 1 CoroutineIndex = CoroutineIndex + 1 Coroutines[CoroutineIndex] = coroutine.create(run_server) LoCreateCoroutineActivity(CoroutineIndex, 0.0, 0.1) end function stop_server() logtofile("Stopping listener") serverRunning = 0 end function CoroutineResume(index, tCurrent) coroutine.resume(Coroutines[index], tCurrent) return coroutine.status(Coroutines[index]) ~= "dead" end function LuaExportStart() origStart() local file = io.open("./Temp/commander.log", "w") if file then io.output(file) end start_server() end function LuaExportStop() logtofile("End") stop_server() origStop() end function logtofile(message) io.write(message .. "\n") end --------------------------------------------------------------------------------------------------- -- End of lockon-commander.lua -- --------------------------------------------------------------------------------------------------- The sending application makes a connection each time a button is pressed, sends the corresponding command, and closes the connection again. If this doesn't happen, the lua script will wait until the connection is closed before continuing, thus effectively pause the mission in Lockon. Question to the devs: I found that there is a function to toggle the gear up and down (command 68 ), but are there also separate commands for lowering and raising the gear? I found that there are separate commands for the airbrake and flaps.1 point
-
1 point
-
1 point
-
Ruggbutt has created this terrain to supplement the terrain that Grandsurf and Rocky put together called LockOn Reloaded. They created the summer terrain, Rugg "finished" the project (so to speak) and put together autumn, spring and winter terrain. He was given permission to use some of the textures from Reloaded to modify and include in his terrain pack. Hope ya'll enjoy the fruits of his labor, this terrain represents a couple of weeks of hard work and little sleep. Download links are listed below: http://www.lockonfiles.com/modules.php?name=Downloads&d_op=viewdownloaddetails&cid=153&lid=1211&title=Enhanced%20SIMMOD%20Terrain#dldetails http://forum.combatace.com/index.php?autocom=downloads&showfile=7264 http://www.webfilehost.com/?mode=viewupload&id=9138058 http://www.fileplanet.com/191513/download/Enhanced-Terrain-for-Flaming-Cliffs http://files.filefront.com/terrain+enhanced+fcrar/;11747951;/fileinfo.html Original thread here http://sim-mod.com/forum/viewtopic.php?p=6095#6095 More screens at sim-mod.1 point
-
1 point
-
LOL anyone noticed there's B-1B photo in this article (click the link), with Tu-160 in caption, LOL :megalol: that's today's journalism, that's right.1 point
-
Илья ...ты в Москву едешь? В Асю стучи ,найдем Тебе какой ты хочешь джой:thumbup:1 point
-
I'd like to see contrails no longer fixed between 8000 and 12000 mtrs, a slider like for the cloud setting would be great. BTW: Chuck Norris counted to infinity - twice ! and They once made a Chuck Norris toilet paper, but it wouldn't take shit from anybody.1 point
-
1 point
-
Ну ошибся человек, что с того, должно было быть так: "Dronas'a, Laivynas'a и всех сотрудников ED на обратной стороне и титульном листе мануала (с пожеланиями)" :D:D:D:D:D1 point
-
greetings . medium water settings here . i fly the a-10 mostly .low like . water does move on the shoreline even at medium settings . look kind of neat to be honest . cheers .1 point
-
Thanks for the news Hajduk. Guys, i thought as mil sim fans you would be less hystericals about such events. Especially as the Radar Shield in Poland and Czech republic cant intercept any ICBMs coming from russia towards USA and most of Europe? The only thing they could intercept with that installation are some MRBMs flying towards France. But hey, WW3 is coming! Im moving into the cellar and putting on my tinfoil hat!1 point
-
гыгыгы. пока делают игру я успел окончить универ и найти работу, благодаря которой я каждый день нахожусь либо на Камовском ЛИКе, либо в Камовском цеху ))):pilotfly:1 point
-
Here it is: :thumbup: Yes, it`s cool. I would say, that I like all BS movies, from pure ingame to hollywood style ones.1 point
-
1 point
-
Any of you guys that keep asking when it'll be done and why its taking so long also anticipate release of Battle of Britain - Storm of War (sequel to IL-2 series)? I've stopped playing IL-2 for well over 3.5 years and before I stopped playing it there war work already started in BoB SoW... and just recently have they said this sim is now expected end summer of 2009. So do the math here and you'll see this equvalent to at least 5 years for release for that sim... Now also ED has stated time and time again that they are still hopping and probably expecting for BlackShark to be released end of 2008... if all goes well you're not looking at much more waiting.. and still give or take few extra months you're still very likely to get it late 2008, maybe early 2009... is this so long? When was BlackShark being started working on? How much time did it pass till then? I admit comparing BlackShark and WWII sim BoB SoW is not the same as there will be lot more flyable aircraft in BoB SoW but then again there is much less coding to be done for aircraft that have no radar, jammers, missiles etc... what I'm aiming at is that for a good product such as BS or BoB SoW it takes time... and ED have been frank with how things are progressing on their end. There have been many video's or working systems, avionics, engine startup... the scenery in video looks pretty good... all the advance physics coded into flight modelling etc... Why not keep bit more patience... it's not like you paid ED money already and they haven't delivered their product, right? You buy the game when it's being completed and offered on the market.1 point
-
Новый ролик: http://www.virtual-jabog32.de/index.php?section=downloads&subcat=28&file=929&lang=en&PHPSESSID=3048d90f67bcec582e9e212f1cadc6bd1 point
-
You should get it. For those who need answers, you can always do the following: Manually install Sim-Mods Summer Terrain Install new Other Season Textures via ModMan, or manually. They use the same configuration in the .lua script. Or you can take the chance and install all of them via modman and test yourself and make sure they work. Im about 98% sure it would work that way.1 point
-
thanks! Its only a few of us that are associated with ED so we are seriously outnumbered in the forums. Its hard to hold back the flood of questions. Kinda reminds me of the movie 300. Here's a better illustration to the question: When will it be ready?1 point
-
Ok guys, It is always a problem to "discuss" by post like this one. Let me clarify the situation. We are not saying this one is a thief or whatever, it is not "stolen" or bla bla bla. As always, freeware mod means that the autors spend a LOT of hours on their free time to improve or create a model. The miminum that people can do after the release of one's work is to recognise the free work and the good will of developers to share it with the communauty. :thumbup: 59th_reaper, we know each other form VFAT, I was with Kato the VFAT mod maker. You know that due to lack of time of this merged mod, it was impossible to "protect" fully the product. Hence the last we can attend if someone is using Lom file of the mod is first asking the author, if possible, or explain form where is the source of its files. Now the story of this french L39. I was in contact with Gmax academy for the fs2004 model several years ago. Finally the model was bad compared to the early model created by Knell. Knell offered its early work to the Virevoltes, we put only the Ejection seat and pilot from Gmax, with the author authorisation. After that, I have finished the 3D work, enhance the model (lights, antennas...) and add the full animations to drive it into Lockon. Icemaker did the Breitling texture. Well, if HUAF wants to use the model, that is not a problem, but THEY have to say that its a model from Knell, Airone and Icemaker, that is fair I guess. This should close the disussion with everyone aware of the respect we have to grant on "3rd party developers". :music_whistling: Cheers1 point
-
Great words, SK! For impatient members. Just image Your boss is coming to You every 10 minutes and asking if work You suppose to do is done. Nice, isn't it? :) DCS is mainly focused on 18+ customers, but sometimes You read the forum and don't believe in what You actually see...1 point
-
It will be announced when its ready. Please try to understand this, especially 159th George, I've seen this similar question asked by you several times. Not everything is finalized yet, so if something is stated and it doesn't appear in the final release, that would also cause an uproar. ED learned their lesson from FC. They gave out projected release dates and when they didn't meet them, the forum bashed on them. Wags/ED are not obligated to give out updates on a weekly basis. They do it out of their own free time. Think of it this way, the more time they spend giving out updates, the less time they have to work on BS. So the release date for black shark gets pushed back even further. Furthermore, threads like these are no benefit at all. It puts pressure on ED to work faster and you might end up with a buggy product. We've seen this before in the first release of Lock On. Ubisoft rushed the project a bit and the first release was buggy. Second, its threads like these that frustration beings to build up, and the word "troll" starts get throwing around. So please, everyone give ED their room to work. Thank you.1 point
-
if you allready havent do so rugg mate , give youself a pat on the back . you desirve lots buddy . thats awesome stuff . :thumbup::thumbup: man , this is so much fun . :joystick::pilotfly:1 point
-
I believe this is happening to me because this mod is made to be installed in MODMAN 6, and i'm still using the previous MODMAN 5 (lol i'm have so much installed i don't want to upset anything) I can see a file in the rar called "cfg.lma" i believe thats the file that holds the info to edit the graphics.cfg, but only MODMAN 6 can use it.1 point
-
1 point
-
Wow, I think it was the first Black Shark movie ever!! I was very surprised the first time I saw it, three or four years ago. Extremely nice flight mechanics. Regards!! P.D->For me, GA and ¿Supervanyisa? films are the best!!1 point
-
This one: (despite how wonderful some of the newer ones are - this one make my heart soar).1 point
-
AdA Mod is freeware, Yeniceri A10 Mod is freeware .... (did you paid for this mod ?) This is not because a mod is free to download that it's free to take everything you want to put it into another public mod without asking autorisation and/or write authors names in the readme Yes, this is a fault from VFAT Mod maker to forget rules of use in the readme file and/or name of skinner/modeler But it's a fault to the HUAF Mod maker not to say that he was not the model maker or how it taked it .... (it's named credits) should you be ok I made a public mod with your skin without marking who made the skin ? I don't think so Did you search to contact anyone in order to search the model maker name ? In 5 minutes, I found the VFAT official forum ... and they probably knew who is model maker and was able to tell you how to contact him this is the respect of modeler And another thing that is completly without respect of modeler's job This is the model from VFAT mod, you didn't know who make it but you know this is a GMAX L-39 based model ??? :music_whistling:1 point
-
Recently Browsing 0 members
- No registered users viewing this page.