Toontown Central Home Toontown Central Forums Toontown Central Gallery Toontown Central Arcade User Control Panel Register! Upcoming Events Lose Your Marbles? Click Here! Search Toontown Central This, our town of Halloween!

Go Back   ToonTown Central Forums > Game Forums > The Playground > Hallowed Ground

Hallowed Ground The place where Playground posts get buried. Yes, I am trying to think of a better name than this :)

Old ToonCheck server checker

Login or Register now to see less ads.

 
 
Thread Tools Display Modes
  #1 (permalink)  
Old 11-13-2002, 02:56 PM
Noobie Toon
 
Join Date: Nov 2002
Posts: 6
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();
}
Old Sponsored Links
  #2 (permalink)  
Old 11-13-2002, 03:46 PM
Gone Fishing
 
Join Date: Aug 2002
Location: CA
Posts: 157
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.
  #3 (permalink)  
Old 11-13-2002, 03:55 PM
Noobie Toon
 
Join Date: Nov 2002
Posts: 6
Sorry, I have only been playing a week. How do you run in windowed mode?
  #4 (permalink)  
Old 11-13-2002, 04:44 PM
Playing Golf
 
Join Date: Aug 2002
Location: Michigan USA
Posts: 354
download the ttwindow.zip file from the front page or the downloads link.
  #5 (permalink)  
Old 11-13-2002, 06:18 PM
Noobie Toon
 
Join Date: Nov 2002
Posts: 6
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.
  #6 (permalink)  
Old 11-13-2002, 07:45 PM
Gone Fishing
 
Join Date: Aug 2002
Location: CA
Posts: 157
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.
  #7 (permalink)  
Old 11-13-2002, 08:05 PM
Noobie Toon
 
Join Date: Nov 2002
Posts: 6
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.
  #8 (permalink)  
Old 11-13-2002, 08:26 PM
-rcv-'s Avatar
Kid Bugs
 
Join Date: Aug 2002
Location: 42° 24' 15"N, 82° 11' 47"W
Posts: 2,813
I didn't realize the server went down that much.

It doesn't. But a warning sign of addiction is extreme anxiety at even a brief, infrequent loss of the addictive material to the addict.

BTW, the previous state of Toontown (i.e. Windowed mode) is saved in the file usropt , in the Toontown folder.

-rcv-
Kid Bugs
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


All times are GMT. The time now is 11:35 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.

Big-Boards Ranking  iWatchDog ICCS Certified Child Safe Website

Online Gaming
Content Relevant URLs by vBSEO 3.2.0