Ghostrida9 Posted June 9, 2010 Posted June 9, 2010 Ok, Dont know but maybe some of ya'll noticed the nice looking and Flashing lights oh the APACHE,or the spinning Light of the OH-58 Kiowa and Hokum when it goes for an approach:huh::huh:. Some simple Questions (or difficult) 1:Where can I find some info about those Lights (Game Folder), a lua script or something 2: are those Lights Hardcoded ??? 3: are those Lights stand alone models or a Part of the Helicopter lom Model Asking those Question cause there must be a way to add those Lights to the Fighters and Bombers too, and I got a feeling that there are a stand alone model cause the Lights are reflecting :book: RAF Gütersloh Airbase Project Now or Never
Michelange Posted June 9, 2010 Posted June 9, 2010 (edited) Hi, This is my Blinklight mod, it works after take off and only in NAV mod (Su-25 and Su-25T are not inclued they have this in game) This is only working for flyable planes. It is not possible to do this with AI the only solution is to have a new 3D model with animation of the flash light. Hope this is what you are searchingBlinkLight2.rar Edited June 10, 2010 by Michelange EVAC : French fighter school on LockOn: Flaming Cliffs Moding tutorials at C6
Ghostrida9 Posted June 10, 2010 Author Posted June 10, 2010 ok, I've tryed it and it works, my Tip, change the onTime = 0.3; to 0.1 and off time to 2.0, looks way more realistic cause the Lights are Flashing faster. Now I come up with some headache Questions:music_whistling: I use for example the A-10 1. Is it possible that not all the Lights are Flashing? maybe just the Red and green Lights at the End of the Wings?? 2. Possible to make this work for the AI (there must be a way damn it) hope somebody can help us....:cry: RAF Gütersloh Airbase Project Now or Never
diveplane Posted June 10, 2010 Posted June 10, 2010 Hi, This is my Blinklight mod, it works after take off and only in NAV mod (Su-25 and Su-25T are not inclued they have this in game) This is only working for flyable planes. It is not possible to do this with AI the only solution is to have a new 3D model with animation of the flash light. Hope this is what you are searching this never worked for me? , best to send over the complete files already edited , cant you get the lights flash on ground? https://www.youtube.com/user/diveplane11 DCS Audio Modding.
Fahhh Posted June 10, 2010 Posted June 10, 2010 In single player, it will probably work, but not online, due to most servers integrity checking export.lua you will not be able to use it.
Michelange Posted June 10, 2010 Posted June 10, 2010 this never worked for me? , best to send over the complete files already edited I've reuploaded the script. cant you get the lights flash on ground? Yes, edit the script BlinkLight2.lua you will fint this line : atAir = LoGetAltitudeAboveGroundLevel()>3 -- Airborn over 3m You can change the conditions or delete this but then you have also to remove it from this line if atAir and masterMode == "NAV" and self.plane ~= "su25" then 1. Is it possible that not all the Lights are Flashing? - No, this command LoSetCommand(175) concerns all the lights there is no command for red or green light. - The only solution is to do this in animation of a new 3DModel (ADA mod Les mirages is using this for exemple) 2. Possible to make this work for the AI Not sure, but if I refer to Tacview and Lotact you must extract all the planes ID from LoGetWorldObjects() then use the routine (sorry, I'm not programmer but some people may help you) but not online, due to most servers integrity checking export.lua you will not be able to use it. Yes, you are not alowed to get some informations (cheating) LoGetSelfData() is passing the check but LoGetModelTime(), LoGetAltitudeAboveGroundLevel(), LoGetNavigationInfo() are perhaps not alowed and there are no other solutions. The best solution for me is to include this as animation in the 3D model in LOM format and only the owners of the original 3DSMAX can do that try to contact them. Best regards EVAC : French fighter school on LockOn: Flaming Cliffs Moding tutorials at C6
rattler Posted June 11, 2010 Posted June 11, 2010 Is this possible to do in Fc1.12b? If so can you give me some details on what to do. I know the files just don't know what I should be changing or adding. Thanks for any info.:) Oh, yes I know about the mod for flashing lights. This seems like a different solution if possible.
diveplane Posted June 11, 2010 Posted June 11, 2010 I've reuploaded the script. Yes, edit the script BlinkLight2.lua you will fint this line : atAir = LoGetAltitudeAboveGroundLevel()>3 -- Airborn over 3m You can change the conditions or delete this but then you have also to remove it from this line if atAir and masterMode == "NAV" and self.plane ~= "su25" then - No, this command LoSetCommand(175) concerns all the lights there is no command for red or green light. - The only solution is to do this in animation of a new 3DModel (ADA mod Les mirages is using this for exemple) Not sure, but if I refer to Tacview and Lotact you must extract all the planes ID from LoGetWorldObjects() then use the routine (sorry, I'm not programmer but some people may help you) Yes, you are not alowed to get some informations (cheating) LoGetSelfData() is passing the check but LoGetModelTime(), LoGetAltitudeAboveGroundLevel(), LoGetNavigationInfo() are perhaps not alowed and there are no other solutions. The best solution for me is to include this as animation in the 3D model in LOM format and only the owners of the original 3DSMAX can do that try to contact them. Best regards fantastic job well done trying this out , this is what lockon also needs. testing now https://www.youtube.com/user/diveplane11 DCS Audio Modding.
rattler Posted June 11, 2010 Posted June 11, 2010 I am not sure what to do. for lofc!.12b where do I put the Blinklight2.lua. What has to be modified in it to get red and green lights to blink. Is this possible with this lua. Sorry but a bit stunned when it comes to this stuff. Any info appreciated.
diveplane Posted June 11, 2010 Posted June 11, 2010 this works ingame great , but we need manual control coded back into the script. i tried to turn the flashing off but it wont work? ctrl l =lights https://www.youtube.com/user/diveplane11 DCS Audio Modding.
Michelange Posted June 11, 2010 Posted June 11, 2010 (edited) I am not sure what to do. for lofc!.12b where do I put the Blinklight2.lua. What has to be modified in it to get red and green lights to blink. Is this possible with this lua. Sorry but a bit stunned when it comes to this stuff. Any info appreciated. Originaly it was done for FC1.12 and it is working in local as well as online. There is only one line différent. To avoid problems I've attached the FC1.12 version below. There is a readme.txt inside for the installation procedure. this works ingame great , but we need manual control coded back into the script. i tried to turn the flashing off but it wont work? ctrl l =lights You can not turn OFF the lights in NAV (1) mod it's permanant. You can use it like this : - At parking : turn the nav lights ON (Ctrl + l). The lights will not blink. - After Take off the lights are blinking. - You recive the ordre to FENCE IN, change your mode to BVR (2) or other mode depending of what you've briefed (Air/Groud, BORE etc...) - Verify in what state are the Nav Lights, if they are on (pull it off CTRL + L). The state (on/off) of the lights is depending on witch moment you've changed NAV to BVR. It is due to this conditions : if atAir and masterMode == "NAV" and self.plane ~= "su25" - atAir is over 3m you can change this but, be carefull if you change it to 50 m the condition is changing under 50m (in low flight it's peraps not what you want). I've no found an other solution to have the airborn information. - masterMode == "NAV" the other values are "BVR" "CAC" "LNG" "A2G" "OFF" look in export.lua - self.plane ~= "su25" this is to exclude Su-25 an Su-25T from the script, you can also excude other planes. but we need manual control coded back into the script.This is not possible there is no LUA command avalaible in lockon to get keyboard state information. There is another LUA Blinklights script on Lockonfiles who's using a external soft to do this but for me it was not the best solution. All the commands avalaible are listed in Export.lua. In fact Export.lua is a big (poor commented), list of Lockon's exchange routines. In the original file there is no active line, all the file is a big comment ( -- text or --[[ several lines of text ]] are comments in LUA)BlinkLightFC1.12.rar Edited June 11, 2010 by Michelange EVAC : French fighter school on LockOn: Flaming Cliffs Moding tutorials at C6
rattler Posted June 11, 2010 Posted June 11, 2010 (edited) :doh:Stunned one here again. I have the download and in it are config.lua, export.lua,blinklight.lua and a readme file. Now the stunned part. Are these files to replace the originals? if so then I go to lockon/config/export and there are two files config.lua and export.lua. do I replace those with yours? and add the brightligt.lua so now there are 3 files there? Or do I have to modify these files? Or am I in the wrong place. I said I was stunned when it comes to this type of thing. Most modders would understand but I am not a modder but I do know a little about most files for texturing and that's it. Sorry to be a pain. I am also flying a modded mig29g and a modded f-15, so is there anything else I need to do? Thanks much. NEVER MIND GUYS, BRAIN KICKED IN, EVERYTHING OK. THANKS VERY MUCH:doh::thumbup::thumbup: Edited June 11, 2010 by rattler
Michelange Posted June 11, 2010 Posted June 11, 2010 Now the stunned part. Are these files to replace the originals? if so then I go to lockon/config/export and there are two files config.lua and export.lua. do I replace those with yours? and add the brightligt.lua so now there are 3 files there? Or do I have to modify these files? Or am I in the wrong place. You are at the right place. Both solutions are good. Replace it or modify it. It's your choise. Make a copy of the originals if you are not sure. :pilotfly: EVAC : French fighter school on LockOn: Flaming Cliffs Moding tutorials at C6
rattler Posted June 11, 2010 Posted June 11, 2010 You are at the right place. Both solutions are good. Replace it or modify it. It's your choise. Make a copy of the originals if you are not sure. :pilotfly: I have it working but I had a crash to desktop. Don't think it was the files though. fly again to see if it re occurs. I use Xonar ds 7.1 sound card. Thanks for all your help, Appreciated.:thumbup::) Oh I replaced the files, till I study the lua files more. New area for me.:book:
diveplane Posted June 11, 2010 Posted June 11, 2010 my wingman lights where flashing as well. nice work. https://www.youtube.com/user/diveplane11 DCS Audio Modding.
rattler Posted June 12, 2010 Posted June 12, 2010 Got to do some tests. I get a frozen screen when using the files. Put the originals back and it works fine. It happens after about 5-10 min. of flying then it freezes the screen or I should say the sim. is still flying but you can't do anything and eventually the plane will crash, then you get the crash to desktop and a clicking sound from the audio. You have to log off the computer to solve the problem. Very strange. Anyway I will fly like this without the files for a little while and see, then I will reinstall the files and see what happens.I will keep you informed. Cheers.:)
Rikus Posted June 12, 2010 Posted June 12, 2010 It´s a pity, still in FC2 it´s difficult to see nav lights if you are a bit far from your wingman. Greetings
rattler Posted June 12, 2010 Posted June 12, 2010 It´s a pity, still in FC2 it´s difficult to see nav lights if you are a bit far from your wingman. Greetings hi, nice to meet you. Yup shore is nice. Wish I had FC2 but waiting for the DVD realease. Hope I can get this lights flashing solved. Works great when it works. Got to get longer than 5 min. though, LOL. Thanks for your post and hope to talk again in the future, cheers Pete
diveplane Posted June 13, 2010 Posted June 13, 2010 (edited) new version 2 download here http://forums.eagle.ru/showpost.php?p=925285&postcount=34 Edited June 15, 2010 by diveplane https://www.youtube.com/user/diveplane11 DCS Audio Modding.
Michelange Posted June 13, 2010 Posted June 13, 2010 ok made a modman package for everyone on this one.Thank You diveplane. Love the different Time lapses in the video. :pilotfly: Got to do some tests. I get a frozen screen when using the files. Put the originals back and it works fine. Question : Have You another script running in export.lua ? If yes, the scripts have to follow this rule. If not, they will not work together. You have also an errors.log in the temp folder to help you to find where the problem is. (be carefull if you have a "Null value error" it can be normal you are not always in the plane) :smilewink: EVAC : French fighter school on LockOn: Flaming Cliffs Moding tutorials at C6
diveplane Posted June 13, 2010 Posted June 13, 2010 Thank You diveplane. Love the different Time lapses in the video. :pilotfly: Question : Have You another script running in export.lua ? If yes, the scripts have to follow this rule. If not, they will not work together. You have also an errors.log in the temp folder to help you to find where the problem is. (be carefull if you have a "Null value error" it can be normal you are not always in the plane) :smilewink: any problems we can re upload it , all worked ok so far for me. again great job btw. https://www.youtube.com/user/diveplane11 DCS Audio Modding.
diveplane Posted June 13, 2010 Posted June 13, 2010 (edited) no only one script but if you can combine both scripts i made, for both aircraft versions running ingame this would be even better. Edited June 13, 2010 by diveplane https://www.youtube.com/user/diveplane11 DCS Audio Modding.
rattler Posted June 13, 2010 Posted June 13, 2010 Nice work to all in making this lights script. Great addition to the game. I do have one small request, don't forget Fc1.12 as there is still some who have not moved on to FC2 yet. This is too good not to have in both. Cheers and thanks for all your help.:thumbup::thumbup:
diveplane Posted June 14, 2010 Posted June 14, 2010 this thread should really be in the mods section though. https://www.youtube.com/user/diveplane11 DCS Audio Modding.
Michelange Posted June 14, 2010 Posted June 14, 2010 (edited) no only one script but if you can combine both scripts i made, for both aircraft versions running ingame this would be even better. I must do some tests to identify the plane Names. If you want you can also do this, it's easy. - Create an empty Blinklight.log file with any text editior in /temp directory. - Edit blinklight2.lua and delete the -- (the -- are comments or not active lines) in the following lines : -- local file = io.open("./Temp/Blinklight.log", "w") -- io.output(file) -- io.write(self.plane) -- io.close() This will then write the type of your plane in the Blinklight.log file each time you start the Sim (Fly). For example US planes you should have A10 and F15 (I have to verfy the syntax). After it's easy : if self.plane then time = LoGetModelTime() -- Model Time atAir = LoGetAltitudeAboveGroundLevel()>0 -- Airborn over 3m navInfo = LoGetNavigationInfo() -- Info Hud masterMode = navInfo.SystemMode.master -- Nav mod if self.plane == "A10A" or self.plane == "F15C" then -- US plane onTime = 0.1; -- Time light on offTime = 0.2; -- Time light off else -- Russian plane onTime = 0.9; -- Time light on offTime = 1.9; -- Time light off end end thats It. Test IT, I will send the file if you dont have any result. :pilotfly: PS : - You can copy past the red lines in the Blinklight2.lua file I dont think that I've made an syntax error. :music_whistling: - The colors are there for you to understand the relations - To diveplave : Attached te lua file for test and modman pack Edit : the last version works online can you combine both lights mods i have done ingame, assign the russian lights mod to russian jets and the nato lights to western aircraft? this possible? am dont know much on scripting looks like you have a good handle on it. thx , if we can get both scripts to run in game and find a soluation for MP woo hoo finished.BlinkLight2.zip Edited June 14, 2010 by Michelange EVAC : French fighter school on LockOn: Flaming Cliffs Moding tutorials at C6
Recommended Posts