Sedstr 18 Posted May 8, 2014 (edited) Simple batch file/script I wrote to present session history in order.Copy to a text file, save as DayZHistory.bat or whatever.bat and run it.While playing, it will present your server session connection history in order.@echo offsetlocalset FileName=%HOMEDRIVE%\%HOMEPATH%\Documents\DayZ\%USERNAME%.DayZProfileset FileTime="-":loopfor %%X in (%FileName%) do ( if %FileTime% NEQ "%%~tX" ( type %FileName% | find "lastMPServer" ) set FileTime="%%~tX")rem wait 5 seconds before checking againTIMEOUT /T 5 >nul 2>nulgoto :loopYou can change the TIMEOUT value to anything you like, 120 seconds may be more appropriate.Hope this helps... Edited May 8, 2014 by Sedstr 8 Share this post Link to post Share on other sites
Death By Crowbar 1213 Posted May 8, 2014 Interesting that you use a ping to wait 5 seconds. I suppose that works... Share this post Link to post Share on other sites
Sedstr 18 Posted May 8, 2014 (edited) Interesting that you use a ping to wait 5 seconds. I suppose that works...If it were in ksh, which I originally wrote it in, its a simple 'sleep 5' but in dos, I dont know of any other way to sleep the loop.there is probably a better way in Power Shell, I just thought it would be easier to do in a vanilla DOS, in case people didn't have powershell installed.Having said that, you could change the number of seconds between tests to whatever you think appropriate, pick a number below the wait time between connecting to a new server, 120 seconds could work fine I guess. Edited May 8, 2014 by Sedstr Share this post Link to post Share on other sites
Irish. 4886 Posted May 8, 2014 Why thank you good sir! 1 Share this post Link to post Share on other sites
kichilron 8550 Posted May 8, 2014 If it were in ksh, which I originally wrote it in, its a simple 'sleep 5' but in dos, I dont know of any other way to sleep the loop.there is probably a better way in Power Shell, I just thought it would be easier to do in a vanilla DOS, in case people didn't have powershell installed.Having said that, you could change the number of seconds between tests to whatever you think appropriate, pick a number below the wait time between connecting to a new server, 120 seconds could work fine I guess. timeout ? 1 Share this post Link to post Share on other sites
Sedstr 18 Posted May 8, 2014 timeout ?Fixed, thanks kichilron. Share this post Link to post Share on other sites
kichilron 8550 Posted May 8, 2014 (edited) Fixed, thanks kichilron. Might not work on Windows XP, but who uses that these days anyway? ;) Also might want to include some "code"-brackets around the code bit in BB-Code. Edited May 8, 2014 by kichilron Share this post Link to post Share on other sites
Sedstr 18 Posted May 8, 2014 Might not work on Windows XP, but who uses that these days anyway? ;) Also might want to include some "code"-brackets around the code bit in BB-Code.I tried using code brackets, it indents it nice, but adds horible syntax highlighting.It also removed any whitespace/cr and added code:auto=0 to it after editing it again. I tried code:dos, didn't fix the broken highlighting though. 1 Share this post Link to post Share on other sites
Hetstaine 10852 Posted May 9, 2014 Nice.my faves and server history constantly just do not work. :thumbsup: :beans: Share this post Link to post Share on other sites
Sedstr 18 Posted May 10, 2014 glad its helped a few people Share this post Link to post Share on other sites
WrecklessMEDIC 129 Posted May 10, 2014 Very nice. Now if only the devs would just incorporate that feature into the useless "History" list so it wasn't a rambling mess we'd be set. ;) Share this post Link to post Share on other sites
WrecklessMEDIC 129 Posted May 11, 2014 (edited) Oops..... Double post. Edited May 11, 2014 by WrecklessMEDIC Share this post Link to post Share on other sites
Sedstr 18 Posted May 12, 2014 (edited) Very nice. Now if only the devs would just incorporate that feature into the useless "History" list so it wasn't a rambling mess we'd be set. ;)when they finish playing with ragdoll physics... Edited May 13, 2014 by Sedstr Share this post Link to post Share on other sites
Sedstr 18 Posted May 16, 2014 in case you missed it.... Share this post Link to post Share on other sites
Etherious 907 Posted May 16, 2014 Nice OP! ^-^ :beans: Share this post Link to post Share on other sites
Sedstr 18 Posted May 21, 2014 Nice OP! ^-^ :beans:TY Share this post Link to post Share on other sites
Death By Crowbar 1213 Posted May 23, 2014 @echo offsetlocalset FileName=%HOMEDRIVE%\%HOMEPATH%\Documents\DayZ\%USERNAME%.DayZProfileset FileTime="-"set LogFile=E:\Scripts\DayZSessionHistory.txt:loopfor %%X in (%FileName%) do ( if %FileTime% NEQ "%%~tX" ( echo "%%~tX" >> %LogFile% type %FileName% | find "lastMPServer" >> %LogFile% ) set FileTime="%%~tX")rem wait 2 minutes (120) seconds before checking againTIMEOUT /T 120 >nul 2>nulgoto :loopYou know, this has been really really helpful. I took it a step further and store that information to a log file I can go back and check. The output in the log file looks like this:"05/22/2014 09:34 PM" lastMPServer="108.174.57.17:2802";lastMPServerName="|g4| Look at the Flowers... | Chicago | 24/7 Day | 2hr Restarts"; Share this post Link to post Share on other sites