-
Posts
1070 -
Joined
-
Last visited
Content Type
Profiles
Forums
Downloads
Events
Everything posted by doc flabby
-
ok its back online at http://ssdir.playsubspace.com/centralonline.pl let me know if it crashes again, if it does i'll remove it.
-
ew ok I'll turn if off for now. Source code #!/usr/bin/perl #use strict; use IO::Socket; use IO::Select; use XML::Writer; use IO::File; use DateTime; use CGI qw(:cgi); use CGI::Cache; #my directory servers my @ssdirs = ( 'sscentral.sscuservers.net', 'ssdir.playsubspace.com', 'ds1.hlrse.net', 'ds1.krslynx.com', 'sscentral.com', 'nanavati.net', 'ds.hlrse.net', 'dirserver.ssnecentral.net' ); # Set up cache CGI::Cache::setup({ cache_options => { default_expires_in => '30 minutes' }}); my $cgi = new CGI; # CGI::Vars requires CGI version 2.50 or better CGI::Cache::set_key("centralonline"); # This should short-circuit the rest of the loop if a cache value is # already there CGI::Cache::start() or exit; print header(-type => 'application/xml'); # make browser expect xml sub fisher_yates_shuffle { my $deck = shift; # $deck is a reference to an array my $i = @$deck; while ($i--) { my $j = int rand ($i+1); @$deck[$i,$j] = @$deck[$j,$i]; } } #my $output = new IO::File(">centralonline.xml") || die("Failed to create file"); my $io = new IO::Handle; my $writer = new XML::Writer(STDOUT, #NEWLINES => 1, ENCODING => 'utf-8' ); $writer->xmlDecl("UTF-8"); $writer->pi('xml-stylesheet','type="text/xsl" href="centralonline.xsl"'); #shuffle fisher_yates_shuffle(\@ssdirs); $writer->startTag("subspacedirectorylist"); foreach my $dirServer (@ssdirs) { $writer->startTag("server"); $writer->dataElement("name",$dirServer); $writer->startTag("error"); my $sock = IO::Socket::INET->new( Proto => 'udp') || print('failed to connect'); my $aton = gethostbyname($dirServer) or print "Can't resolve $dirServer: $!\n"; my $addr = sockaddr_in(4990, $aton); my $sel = new IO::Select($sock); $sock->connect($addr); my $online = 0; my $retrycount =0; RETRY: $sock->send(pack('CCVv', 0x00, 0x01, 0x12345678, 0x0011)) or die "send: $!\n"; if ($sel->can_read(3)) { $online = 1; my $buf; if (!(my $len = $sock->recv( $buf, 596))) { $online = 0; print "recv: $!\n"; } } else { $online =0; if($retrycount<2) { $retrycount++; goto RETRY; } else { print "Connection Timeout\n"; } } #send directory request and disconnect to make sure its tidy $sock->send(pack('CCVC',0x00,0x03,0x00000000,0x01)); #send disconnect $sock->send(pack('CC', 0x00, 0x07)) or print "send: $!\n"; $sock->close(); $writer->endTag("error"); $writer->dataElement("lastchecked",DateTime->now->iso8601()); $writer->dataElement("online",$online); $writer->dataElement("zonecount",-1); $writer->endTag("server"); } $writer->endTag("subspacedirectorylist"); $writer->end(); CGI::Cache::stop();
-
I've created a small script that checks which directory servers are online (probably needs some more work, ill post up the source if anyone is interested. http://ssdir.playsubspace.com/centralonline.pl You can also view source and see that its an XML file Results are reported in random order and cached for 30minutes to avoid spamming the directory servers.
-
Or use the script i provided for LC, which auto restarts it when it crashes (because ssdir seems to crash randomly sometimes...i have this script -_-) http://www.ssforum.net/index.php?showtopic=24204&view=findpost&p=261007
-
Wikipedia pretty much covers it, they are all types seal http://en.wikipedia.org/wiki/Gasket
-
Probably worth adding this to the guide, since poor frame rate is the most common complaint.
-
dynamic updates do override the static settings, so if for some reason, updates start coming in from the firewalled servers, they take presidence
-
How do you envision a new and improved SSDL? =)
doc flabby replied to L.C.'s topic in General Discussion
Perhaps the new SSDL could have a sort of module which connects to SSForum to work with this download plugin. Integration, but not core dependence on this (just in case SSForum goes down or whatever). The best way would be to use ssforum database for the user authentication (for uploads/comments) and allow anonymous downloads That way if ssforum when down, all the downloads would still be available. I'm sure there is probably software already written that will do what ssdownloads does alot better, its just a question of finding the right piece of software and customising it Something like sourcewell http://sourcewell.berlios.de/html/ would be a great ssdl replacement with a decent html/css skin -
Central gets round this restriction by allowing the manual addition of zones from a txt file. if you give me a list of all the firewalled zones (i think i have the 5 main ones), i will add them to PSS's startup.txt
-
ssdir.playsubspace.com is back online I've also addressed the two bugs you hi lighted LC http://www.ssforum.net/index.php?showtopic=24311&view=findpost&p=261016 http://www.ssforum.net/index.php?showtopic=23946&view=findpost&p=256605 Latest version of Central Software including the C# SSAPI (with VIE encryption fully implemented in managed code) http://forums.minegoboom.com/viewtopic.php?p=81468#81468
-
It would probably be worth fixing the long username bug
-
How do you apply for SSC Access (as a zone host)?
-
What directory server version is it running?
-
Server provider has randomly taken server offline and is not replying to emails. http://forums.minegoboom.com/viewtopic.php?p=81458#81458
-
But this isn't anyone's fault but mine for not having proper video acceleration hardware. (Onboard Intel.) It just means you need to update directX http://www.telltalegames.com/forums/showthread.php?t=9123
-
Yes just to be clear the 100 player glitch is entirely caused by ssdir.playsubspace.com I haven't had a chance to fix it yet, its the result of a nasty hack i used to make it display zones on the directory manually, hopefully i will get a chance to fix this soon.
-
Write me a simple Linux shell script! Payment of $5
doc flabby replied to L.C.'s topic in General Discussion
That error indicates that it cant find "bash" shell try changing the first line to instead: #!/bin/sh Same error. I did cd /bin/, then dir. Both sh and bash are there. I've found our what's causing the error. You need to save the file in UNIX format to remove the the Windows Line endings. More info: http://www.linuxforums.org/forum/redhat-fedora-linux-help/65469-bad-interpreter-no-such-file-directory.html the command: dos2unix should do this for you -
I seem to remember VB6 arrays starting at 1 and not 0. So might have to be: For x = 1 To 60 Unless you use Option Explict. I don't know if they changed this in vb.net though.
-
Congratulations to the new champions of TWL Season 13. Many thanks to all the squads and staff and a special thanks to ph that made it all possible. TWLD Winner: Thunder Runner Up: Quicksand TWLJ Winner: Thunder Runner Up: Boss TWLB Winner: DicE Runner Up: Respect This makes Thunder of the most successful TWL Squads of all time
-
I really like that...windows 7 is great btw
-
If someone could change this game for the better...
doc flabby replied to Solitron's topic in General Discussion
Interestingly this mirrors my idea for subspace 2, to duel-licence it (and this continues to be my plan). Have an open source version that can be used for development, and is full playable, except it has no security. Then to have a completely closed source version for production servers, which contains the security code. Zone owners could then choose which clients they allow (to allow for development zones, and prevent lock-in) Whilst this may be true for 3D FPS, with modern CPUs I think there would be no problem doing 2d physics for large numbers of players, they can easily handle many 1000s of 2d objects interactive in 2d space. Something like http://code.google.com/p/chipmunk-physics/ which has full Newtonian physics (rather than the much simpler subspace physics) can easily handle large numbers of interactions. I think the limits often exist due to inefficient bandwidth usage, and sending alot more data than is necessary. Alot of games take every single key press you make and send it to the server, and receive the entire server state (and then receive deltas of this state each tick). -
If someone could change this game for the better...
doc flabby replied to Solitron's topic in General Discussion
Theres only one person who i know for sure has broken the client encryption fully and thats snrrrub. Hes even released a service that allows anyone to use Continuum Encryption, its how his StarLight Chat Client works. But you can already get continuum to connect to zones without using encryption at all if you run ASSS. I don't see any point in releasing an unencrypted continuum at this late stage. All it will do is damage the existing game. The most useful thing I think from a developers point of view, would the original source code for subspace/continuum's physics engine, including the interpolation and extrapolation it does. It does some very cleaver things to make gameplay seem smooth, despite the data coming to the client, not being smooth at all. Things that were cutting edge at the time, and have only been replicated in modern games in the last 5 years. The encryption isn't the thing holding up development, its the lack of knowledge of how parts of the game actually work. -
I think it will be very useful
-
Blurring the Line between Virtual and Reality
doc flabby replied to rootbear75's topic in General Discussion
My naming convention is much sadder, i name them all after girls i've liked -
I doubt it will work in 3.1 as it needs directx...