-
Posts
274 -
Joined
-
Last visited
Personal Information
-
Website
http://www.lomac-stats.com
-
Pre-processing an mp_log.txt for stats (Howto)
dodger42 replied to dodger42's topic in Lock On: Flaming Cliffs 1 & 2
Sorry you didn't get it to work Renato. I'm not sure what you were trying to achieve with LUA. -
"A dingo's got me baby!" :music_whistling:
-
Pre-processing an mp_log.txt for stats (Howto)
dodger42 replied to dodger42's topic in Lock On: Flaming Cliffs 1 & 2
Hey Ranato, some ideas below. Bare in mind, I haven't touched lockon or lockon stats for years. I did re-upload the http://www.lomac-stats.com website for you to see. 1. if($victim == 'S-300PS 5P85D ln') { $victim_dirty = $victim; } else { $victim_dirty = ereg_replace("\(.*\)", "", $victim); } $victim_pristine = str_replace("-","_",$victim_dirty); Those are unix timestamps. Here is a sample conversion: $unixtime = '1222611216' $time = gmdate("Y-m-d H:i:s", $unixtime); echo $time; 2. From memory, only landing is recorded. This makes it impossible to calculate flight time unfortunately. 3. For lomac-stats.com I used a cron like scheduler. In windows you can use a scheduler too. You just run the processor. c:\php\php.exe c:\lomac\pre_processor.php The database suppresses duplicates so you can just keep on piping in the logs. I ended up creating a lockon server launcher which submitting the mp_log.txt after each mission was finished. Unfortunately I don't have that launcher anymore. 4. You need to use the php scandir() function. You get an array returned which you can use as a while loop. The while loop would be calling the pre_processor.php file. <?php $dir = "c:\logs"; $dh = opendir($dir); while (false !== ($filename = readdir($dh))) { $files[] = $filename; } sort($files); print_r($files); ?> -
Wow this campaign model sounds similar to the one i developed for Lockon with LODC. Wags do you plan to allow the mission to finish on objective completion rather than simply time? This would be helpful in MP campaign setup.
-
Its back online now :P
-
Hey All, Since Lockon represents the bulk of the touch-buddy users, just wanted to give you an update on the server migration issue. Its a bit of a long and boring story. From a hardware firewall dying to cisco sending out an incorrect power cable and other little bizarre problems. Once the new cable arrives today, it will be a matter of re-configuring the firewall and we'll then be good to go. Thanks to our users for being patient. Dodger
-
Optimum maneuvering speeds for missile evasion?
dodger42 replied to tmdgm's topic in Lock On: Flaming Cliffs 1 & 2
S77th used to fly a great BVR mission in SU33 vs F-14 with Phoenix missiles. The best way to beat that phoenix was to beam, then turn towards the missile when the tews started counting down to impact. The turn towards the missile was always at the best turn speed which was relatively slow. -
Announcement from =TuAF= Squadron
dodger42 replied to TorwaK's topic in Lock On: Flaming Cliffs 1 & 2
Nice stats Torwak. What language did you write it in? -
SU-33 carrier landing almost impossible?!
dodger42 replied to SoaringEagle74's topic in Lock On: Flaming Cliffs 1 & 2
Join the S77th. They have some outstanding carrier landing tutorials which helped me heaps. -
Strap that to one of those remote control turbines...
-
Suggestions and help on mission rotator development
dodger42 replied to RvEYoda's topic in Lock On: Flaming Cliffs 1 & 2
Nice one Yoda - rep inbound for sharing - sadly such sharing is not commonplace these days. -
Suggestions and help on mission rotator development
dodger42 replied to RvEYoda's topic in Lock On: Flaming Cliffs 1 & 2
Your system sounds good. Do you plan to make the mission victory parameters configurable via a GUI or is text file only? Also, will this be an RvE exclusive, or will it be available to the community? -
Suggestions and help on mission rotator development
dodger42 replied to RvEYoda's topic in Lock On: Flaming Cliffs 1 & 2
Fingers crossed on some improvements. Editor created mission objectives are only logged at the end of the mission rather than when the objective is complete. With the mission rotator / campaign code I wrote, the objectives were based on a2a or a2g kills (quantity) only. Goya and I did a bunch of testing for mission objectives but sadly it was fruitless. -
Suggestions and help on mission rotator development
dodger42 replied to RvEYoda's topic in Lock On: Flaming Cliffs 1 & 2
What would be nice would be for mission objectives (set in mission editor) to be logged when they are achieved. Goya and I have harped on about this in the past. It would allow a much more effective pseudo-dynamic mission rotator. Does anybody know if BS brings changes to the MPlog.txt?