|
|
|
|
|||||||
| Hallowed Ground The place where Playground posts get buried. Yes, I am trying to think of a better name than this :) |
ToonCheck server checker
|
|
Login or Register now to see less ads. |
|
|
Thread Tools | Display Modes |
|
|||
|
ToonCheck server checker
I wrote a little app yesterday during the downtime which will check if the server is up. If it is down, it will recheck every five seconds until it comes up, at which time it will launch the game.
I put it on my server for download at http://64.176.147.135/tooncheck.zip Here is the code which was wrapped with perl2exe for ActiveState 5.6.1 if anyone feels like checksumming the scary exe or write their own scary exe: # Modules use IO::Socket; print "Checking ToonTown status...\n"; my $good = try_login(); if ($good < 0){ print "ToonTown appears to be down.\nI will check every five seconds and let you know when it is back online."; } while ($good < 0){ select(undef,undef,undef,5.0); $good = try_login(); } print "TOON TOWN IS ONLINE!!!\n"; select(undef,undef,undef,5.0); `explorer http://play.toontown.com/play.php`; print "Press ENTER to exit"; my $exit = <STDIN>; exit(); sub try_login { my $sock = IO::Socket::INET->new(PeerAddr => 'gameserver.toontown.com', PeerPort => 6667, Proto => "tcp", Type => SOCK_STREAM, Timeout => 5 ) or return (-1); $sock->close(); } |
Sponsored Links |
|
|||
|
Wow, that seems nifty. However, I was wondering, does this run the internet explorer full screen version? It seems to me that it does.
I have to use the IE version for downloading new server versions, but the rest of the time I run windowed. So this will work great when the server is down because of an upgrade, but if it goes down some other time.... However, it is a neat util, thanks for letting us share it. |
|
|||
|
Ok. I updated the version to accept the arguments from the shortcuts.
Extract the new executable to your ToonTown directory. Edit the properties of your shortcut. Change the filename in "Target" from toontown.exe to tooncheck.exe. The shortcut will now work normally with the addition of upchecking and retries prior to launching. You can also still just double-click tooncheck.exe without using a shortcut and it will launch the game with your default settings. I actually wouldn't recommend you using this all the time, because I intentionally wrote in a 5 second pause so you can read the messages. Hence, using TownCheck is 5 seconds slower at launching the game than the normal shortcut. You should probably just make a copy of your preferred shortcut and rename it to something like "ToonCheck Windowed", modify it as above, and only use it when the server is down. Incidentally, after writing this update it appears that the original ToonCheck would run with whatever settings you ran from last, so if you had been using windowed mode ToonCheck would run in windowed mode. I haven't looked into the files much, but apparently your last used settings are saved on the client side so that those settings will be used next time you go to the webpage. |
|
|||
|
Wow. Either you are really smart, or you have a lot of free time. (or both, like the rest of us) I thank you for your largess in this project. I'm sure I'm not alone in realizing the usefulness of this tool.
|
|
|||
|
Hmmm. I didn't realize the server went down that much. Well, I hope someone can get some use out of it at some point. It really didn't take any time at all. I was just wishing that I didn't have to keep retrying yesterday while the game was down, so I whipped it out.
|
| Thread Tools | |
| Display Modes | |
|
|
