Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ SMAUG ➜ SMAUG coding ➜ making game portless/internetless

making game portless/internetless

It is now over 60 days since the last post. This thread is closed.     Refresh page


Pages: 1  2 

Posted by Swimming   (20 posts)  Bio
Date Reply #15 on Thu 12 Feb 2004 04:57 PM (UTC)
Message
>When you say they worked before, do you mean that they >worked with connections and all that?

yep, everything worked before.

>If so, then you'd be better off trying to find out why >they don't work anymore. Things don't just randomly stop >working like that; chances are you changed network >settings somewhere and broke it.

I didn't change any settings or install anything. i just went to sleep one night with it working fine, and next day it was kaput.
would a program change stuff for no reason at all overnight?
i doubt it...

The error message appears after 'initializing sockets'

thankee~~
Top

Posted by David Haley   USA  (3,881 posts)  Bio
Date Reply #16 on Thu 12 Feb 2004 05:29 PM (UTC)
Message
So you get the error when you run the server, not when you compile? Is this output from SMAUG? Can you paste the text up until that point? What about the source code that outputs that error? We can't help you unless you're more specific and give more information.


And no, things don't just break overnight for no reason. Not even on Windows.

Chances are that there is something much more broken, and removing all network code - an extremely daunting task in and of itself - may not fix your problem.

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
Top

Posted by Swimming   (20 posts)  Bio
Date Reply #17 on Sat 14 Feb 2004 07:08 PM (UTC)
Message
nothings wrong with it when it compiles. It's something wrong with my computer not the code.

here's the output anyway:
...
Fri Feb 13 16:59:34 2004 :: Loading councils
Fri Feb 13 16:59:34 2004 :: Loading deities...
Fri Feb 13 16:59:34 2004 :: $
Fri Feb 13 16:59:34 2004 :: Done deities
Fri Feb 13 16:59:34 2004 :: Loading deities
Fri Feb 13 16:59:34 2004 :: Loading councils...
Fri Feb 13 16:59:34 2004 :: $
Fri Feb 13 16:59:34 2004 :: Done councils
Fri Feb 13 16:59:34 2004 :: Loading watches
Fri Feb 13 16:59:34 2004 :: Loading bans
Fri Feb 13 16:59:34 2004 :: Done.
Fri Feb 13 16:59:34 2004 :: Loading reserved names
Fri Feb 13 16:59:34 2004 :: Loading corpses
Fri Feb 13 16:59:34 2004 :: Loading Immortal Hosts
Fri Feb 13 16:59:34 2004 :: Done.
Fri Feb 13 16:59:34 2004 :: Loading Projects
Fri Feb 13 16:59:34 2004 :: Loading Morphs
Fri Feb 13 16:59:34 2004 :: Optimizing Morphs.
Fri Feb 13 16:59:34 2004 :: Done.
Fri Feb 13 16:59:34 2004 :: Loading Colors
Fri Feb 13 16:59:34 2004 :: Initializing socket
Init_socket: socket: Address family not supported by protocol


and it does the same on freshly downloaded source code

and here's where the error come from:
int init_socket( int port )
{
char hostname[64];
struct sockaddr_in sa;
int x = 1;
int fd;
gethostname(hostname, sizeof(hostname));
if ( ( fd = socket( AF_INET, SOCK_STREAM, 0 ) ) < 0 )
{
perror( "Init_socket: socket" );
exit( 1 );
}
if ( setsockopt( fd, SOL_SOCKET, SO_REUSEADDR,
(void *) &x, sizeof(x) ) < 0 )
{
perror( "Init_socket: SO_REUSEADDR" );
closesocket( fd );
exit( 1 );
}
#if defined(SO_DONTLINGER) && !defined(SYSV)
{
struct linger ld;
ld.l_onoff = 1;
ld.l_linger = 1000;
if ( setsockopt( fd, SOL_SOCKET, SO_DONTLINGER,
(void *) &ld, sizeof(ld) ) < 0 )
{
perror( "Init_socket: SO_DONTLINGER" );
closesocket( fd );
exit( 1 );
}
}
#endif
memset(&sa, '\0', sizeof(sa));
sa.sin_family = AF_INET;
sa.sin_port = htons( port );
if ( bind( fd, (struct sockaddr *) &sa, sizeof(sa) ) == -1 )
{
perror( "Init_socket: bind" );
closesocket( fd );
exit( 1 );
}
if ( listen( fd, 50 ) < 0 )
{
perror( "Init_socket: listen" );
closesocket( fd );
exit( 1 );
}
return fd;
}

...

and i've removed all network code and it actually starts up and runs. I know it runs because it's showing the reset messages, only now i can't log in, of course.

i'm going to reinstall it with windows 95 cus that's the disk i have, i hope nothing on my computer needed 98 . . .
<sigh>

~~thankee for the help~~
Top

Posted by Nick Gammon   Australia  (23,165 posts)  Bio   Forum Administrator
Date Reply #18 on Sat 14 Feb 2004 07:50 PM (UTC)
Message
You could always install Linux. Recent versions have an installer that is as easy to use as the Windows installer, and the MUD will be a lot more reliable.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Swimming   (20 posts)  Bio
Date Reply #19 on Tue 17 Feb 2004 11:08 PM (UTC)
Message
darnit. i don't have the windows code...
linux, humm? why not?

~~thankee~~
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


60,817 views.

This is page 2, subject is 2 pages long:  [Previous page]  1  2 

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.