dodger42 Posted August 9, 2006 Posted August 9, 2006 As I had previously posted, I am writing an online persistent (somewhat dynamic) campaign application. It is 99% complete with only one obstacle remaining before it is tested on hyperlobby. The issue of when an mp_log.txt is rotated. Can you please provide a definitive answer? The application uses the mplog to determine when victory is achieved. If previous results are in the mplog, determining victory is messy. This application will be made available for all once tested adequately. In my testing I have mixed results. At some point in the code you guys open a handle to mp_log.txt, and at some point you close that handle. Where is that? So, please a definitive answer would be great. . . . Lockon Advanced Realism with Touch-Buddy
S77th-GOYA Posted August 9, 2006 Posted August 9, 2006 Dodger, I've seen it hold onto old info too. I've never seen a set pattern for when it restarts with clean info, consistently. Could you rename the file after each mission?
Pilotasso Posted August 9, 2006 Posted August 9, 2006 I was under the impression MP_LOG.TXT reseted in each mission, doesnt it? .
dodger42 Posted August 9, 2006 Author Posted August 9, 2006 hey Goya, yeah it seems inconsistent, but thats not really possible. At some point lockon opens mplog.txt for writing and locks the file. You cannot delete or write to it as a result. Renaming also wont work until lockon closes its filehandle on mplog.txt. Forcing an unlock means the next mission will not be able to write to the log. Pilotasso, I thought this too. I'm not sure whether there is an option or something which makes this happen. When I used to run dedmac on the 77th server, I'm sure the mplog rotated at the end of each mission. But now all my tests show that it only resets with a game restart, which is far from ideal for an online campaign. :) . . . Lockon Advanced Realism with Touch-Buddy
Pilotasso Posted August 9, 2006 Posted August 9, 2006 maybe you could use an external ap to open and edit the file, wiping out its data if theres 5 minutes of inactivity, then you should make missions rotating in a period of time greater than this. .
dodger42 Posted August 9, 2006 Author Posted August 9, 2006 Cant be done. To manipulate the file means terminating the filehandle that lockon has to mplog.txt. Lockon will not try to re-establish that handle if its broken. So once you unlock the file, there can be no more logging. Until of course lockon fires up the handle again. The time this occurs is what I want ED to tell me. . . . Lockon Advanced Realism with Touch-Buddy
zaelu Posted August 9, 2006 Posted August 9, 2006 Couldn't be the file just readed by an external application? Like the IL-2 log readers? A online campaign with the complexity close to "Scorched Earth Online War" from IL-2 would be awesome. I don't know if you play IL-2 online but this game has also problems with the log being deleted everytime mission starts, with the fact that the log isn't "logging" too much data but, passionate guys overcomed those obstacles. Dogfight servers now have an incredible amount of things under whatch and Online Wars are more and more complex. I think you will find great inspiration on that comunity also... if not already :D . [sIGPIC][/sIGPIC] I5 4670k, 32GB, GTX 1070, Thrustmaster TFRP, G940 Throttle extremely modded with Bodnar 0836X and Bu0836A, Warthog Joystick with F-18 grip, Oculus Rift S - Almost all is made from gifts from friends, the most expensive parts at least
ESA_PIRAO Posted August 9, 2006 Posted August 9, 2006 I use mp_log.txt (combiend with a lua script) to extract data and with that create a file than later the members of our squad can upload and an automatic system process and save it in a database (our squad's logbook). I've probed that mp_log.txt is opened when you open the game and closed when you close it. Is deleted and a blank mp_log.txt created and opened when you start the game again. (I've said you that in another post dodger42) All that I've made to take and process the data in mp_log is parsing the file (everytime a mission stops). In our case is possible that you fly 3, 4 or 5 missions without restart the game, so the data of this flights is there all in one file. What I do to solve it? There are two ways. Examining ./Temp/AsyncNet.log you can know how many sessions are stored in the mp_log.txt and subsequently try to get where start and where end each session. (for example a 00:00:00 time if a remember good in the log) The other way is the way that now we use in the script. The lua script examine the mp_log.txt everytime the session start (mission) and counts how many lines are writted. So at the end of the session the script exclude these number of lines and only process the new ones.... I don't know if it can help you, but i try to explain it the best i know in my bad english. And I repeat my experience. The data in the mp_log.txt start to be writted in the first event of the first mission and ends in the last of the last missions. Every data is accumulated in the file. :P 1 ESA_PIRAO www.cruzdesanandres.com
dodger42 Posted August 9, 2006 Author Posted August 9, 2006 Thanks Pirao, this is good information. I was considering the LUA and mplog line count as an option, but prefer to avoid any coding like that for reliability reasons. But since ED havent responded I might not have a choice. I'm sure its just that ED are so busy with LOBS that they haven't responded. . . . Lockon Advanced Realism with Touch-Buddy
rockwelder Posted August 10, 2006 Posted August 10, 2006 This post really deserves a response... I can tell you that holidays and project work is probably preventing an immediate response. Patience, I believe you will get an ansewer - just have to wait till vacations are over.
dodger42 Posted August 10, 2006 Author Posted August 10, 2006 Agreed rockwelder. . . . Lockon Advanced Realism with Touch-Buddy
dodger42 Posted August 10, 2006 Author Posted August 10, 2006 Nothing heard. I'm certain ED are reading these forums. Is it not possible to get a 'sorry we can't help' or 'please wait a bit we will try to assist soon'? . . . Lockon Advanced Realism with Touch-Buddy
Alfa Posted August 10, 2006 Posted August 10, 2006 Nothing heard. I'm certain ED are reading these forums. Is it not possible to get a 'sorry we can't help' or 'please wait a bit we will try to assist soon'? I think half of the team is on hollyday and the other half extremely busy, so I am not so certain that they are reading this forum :) Cheers, - JJ. JJ
S77th-GOYA Posted August 10, 2006 Posted August 10, 2006 I think half of the team is on hollyday and the other half extremely busy, so I am not so certain that they are reading this forum :) Cheers, - JJ. Chizh is in the list of online members, right now.
dodger42 Posted August 10, 2006 Author Posted August 10, 2006 Well spotted G, and well I'd say BUSTED! :) Oh well, I'm testing the workaround now anyway. Its just a shame that a workaround is needed for something which should take maximum 2 mins to find in LO source. Maybe I was unreasonable to expect a response, but hey you gotta try right?!? :doh: . . . Lockon Advanced Realism with Touch-Buddy
Alfa Posted August 10, 2006 Posted August 10, 2006 Chizh is in the list of online members, right now. He would be among the extremely busy ones :) Cheers, - JJ. JJ
Zayets Posted August 15, 2006 Posted August 15, 2006 Any news on this fine program,dodger? [sIGPIC]OK[/sIGPIC]
kam Posted August 15, 2006 Posted August 15, 2006 Maybe I was unreasonable to expect a response, but hey you gotta try right?!? Well, have you tried to email them? Intel 5820k | Asus X-99A | Crucial 16GB | Powercolor Devil RX580 8GB | Win 10 x64 | Oculus Rift | https://gallery.ksotov.co.uk Patiently waiting for: DCS: Panavia Tornado, DCS: SA-2 Guideline, DCS: SA-3 Goa, DCS: S-300 Grumble
dodger42 Posted August 15, 2006 Author Posted August 15, 2006 Well, have you tried to email them? Yes, and I prefer to post questions in these forums so the answers benefit all, not just me. Any news on this fine program,dodger? Sure is Zayets. The application has undergone the first multiplayer tests and is performing very well. I will make another post with additional info in a fresh thread. . . . Lockon Advanced Realism with Touch-Buddy
warthogmadman987 Posted August 15, 2006 Posted August 15, 2006 hey dodger, could this possible be done for singleplayer? Like it could generate some missions, i dont need a storyline, but i thought it would be cool. I wonder if they dont ever restart up BSO that they will post up some of the stuff they had.
Force_Feedback Posted August 16, 2006 Posted August 16, 2006 I know ED's vision of the future, and here's a screenshot. They want to make flying transforming robots out of the F-16, F-15 and the Su-27 and let them join an evil force, wanting to destroy Earth and kill all humans, basically what Bender has been dreaming about since day 1. :megalol: Those evil flying machines will kick up dust while doing their low approaches to the battlescenes, then they will transform and attack enemy SAM sites and tanks by smashing the antennas and bending tank barrels, har har Creedence Clearwater Revival:worthy:
ED Team Glowing_Amraam Posted August 16, 2006 ED Team Posted August 16, 2006 I wonder if they dont ever restart up BSO that they will post up some of the stuff they had. BSO is just waiting for Black Shark :P https://www.youtube.com/channel/UCgJRhtnqA-67pKmQ3A2GsgA ED youtube channel https://www.facebook.com/glowingamraam My facebook page
bflagg Posted August 16, 2006 Posted August 16, 2006 hallowed are the ORI...? You nuts? SG-1 is gonna kick their flamming butts all over the place... "Demetrius.. you life is an open book to me once you entered this galaxy..." cirra 2006 .... Orlan Thanks, Brett
Recommended Posts