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 ➜ Learning more about descriptors...

Learning more about descriptors...

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


Pages: 1  2 

Posted by Nick Cash   USA  (626 posts)  Bio
Date Reply #15 on Sat 25 Jan 2003 11:30 PM (UTC)
Message
I used Gmud(to answer your first question) and I have no clue if you can log on. It just says connected, but its so laggy that the greeting doesn't pop up, so I can't even test if you can log on. I've got that you posted code in comm.c. I've checked my code 4 times to be sure I did everything in the snippet and I'm positive I did. Anyways, I think its just laggy, so I guess my question is do you have any ideas on how I could reduce that lag, or should I just not use that code?

Thanks again for the help.

~Nick Cash
http://www.nick-cash.com
Top

Posted by Boborak   USA  (228 posts)  Bio
Date Reply #16 on Sun 26 Jan 2003 12:52 AM (UTC)
Message
I'm still a bit confused on your problems. You said that everyone who's already connected is still ok right? If that were the case the wouldn't they be 'laggy' too? How do you know if you can't log on if you've never tried? Just because the greeting doesn't show up, doesn't mean you necessarily can't log on. If it doesn't kick you off right away after saying 'connected' it's likely waiting for your username. try it.
Top

Posted by Nick Cash   USA  (626 posts)  Bio
Date Reply #17 on Tue 28 Jan 2003 01:44 AM (UTC)
Message
Alright, let me try and explain this as best I can.

Yes, everyone who is on is still okay, and not lagged down or anything, so I guess lag is not the cause. That was just my initial thought. And to test it I left my Gmud up all night until I checked it the next day (about 14 hours later) and it still just said connected, the greeting hadn't popped up. If I try and put in anything, like a user name or password, it does nothing, it is just entered like in Gmud, but it does nothing. So yeah, I hope that helpped explain the problem a bit better.

~Nick Cash
http://www.nick-cash.com
Top

Posted by Nick Gammon   Australia  (23,158 posts)  Bio   Forum Administrator
Date Reply #18 on Tue 28 Jan 2003 05:00 AM (UTC)
Message
Personally I wouldn't wait 14 hours for the greeting. :P

Sounds like - if it is connected - the server has got confused and is looking for input on the wrong descriptor.

- Nick Gammon

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

Posted by Nick Cash   USA  (626 posts)  Bio
Date Reply #19 on Tue 28 Jan 2003 06:55 PM (UTC)
Message
I just left it on over night, so I didn't really have to wait 14 hours. Anyways, do you have any ideas on how I could fix it?

Thanks.

~Nick Cash
http://www.nick-cash.com
Top

Posted by Nick Gammon   Australia  (23,158 posts)  Bio   Forum Administrator
Date Reply #20 on Wed 29 Jan 2003 02:30 AM (UTC)
Message
To help fix it we would have to reproduce it. What version of SWR exactly do you have? The URL of it, that is. You gave the location of the copyover code. What operating system are you using? Cygwin? If so on what platform exactly. Or something else?

- Nick Gammon

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

Posted by Nick Cash   USA  (626 posts)  Bio
Date Reply #21 on Wed 29 Jan 2003 05:08 AM (UTC)
Message
The SWR I'm using is the one from kyndig:
kyndig.com/codes/diku/merc/smaug/Star_Wars

I'm running it out of my shell acount which is Unix I beleive.

~Nick Cash
http://www.nick-cash.com
Top

Posted by Nick Cash   USA  (626 posts)  Bio
Date Reply #22 on Mon 03 Feb 2003 12:27 AM (UTC)
Message
Did I tell you enough information or are you all out of ideas. I really don't know whats wrong with it but its rather disturbing not being able to copyover even though the code is in. Anyways, if you guys don't have a clue on how I can fix this than thats alright. Thanks for the help.

~Nick Cash
http://www.nick-cash.com
Top

Posted by Nick Gammon   Australia  (23,158 posts)  Bio   Forum Administrator
Date Reply #23 on Mon 03 Feb 2003 04:20 AM (UTC)
Message
I don't want to seem unhelpful, but couldn't you ask at the Kyndig site about this? You have the SMAUG SWR version from there, and the copyover snippet from there, and it doesn't work, so why not ask at the site in question?

You don't seem too sure what operating system you are running on, you said "Unix I believe". Aren't you sure? Which Unix? Linux? OpenBSD? FreeBSD? NetBSD? Solaris? Which version of the operating system?

To have much hope of debugging someone would have to download the SWR source, add the snippet, compile it, test it, reproduce the problem, if they could, and then work out why it is happening. It mightn't even happen if you are on, say Red Hat Linux 6, and they are testing on Debian version x.

- Nick Gammon

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

Posted by Vicious   (3 posts)  Bio
Date Reply #24 on Mon 03 Feb 2003 04:39 AM (UTC)
Message
I have seen this problem many times and though I don't know how to fix it I might be able to give you some insight on what the problem does. Exactly what it does is connect you, and then it is like *not is* you were just hit by a lag spell except that it lasts until the mud is rebooted. I was a long time player of Gundam Wing Mud *when it was actually up* and this mud had this problem a few times.

Anyways, they would announce to their players that a copyover was coming and save everyone and copyover. Well, more than once the copyover brought a good portion of lag so I would get off and try and reconnect. You would connect, and it doesn't matter what computer or OS you are running *I tried it on a few different comps with different OS*, but you would be stuck in limbo *limbo being connected without the ability to do anything. The greeting wouldn't pop up, you couldn't log in and all you could do is either get off and try again later and hope they rebooted or sit there and wait. It doesn't go away until you rebooted.

I don't know if this has to do with the OS the mud is using or some code that doesn't direct your connection to the right place but it is pretty easy to see it happen. I'm sure that wightknight would be able to show you its affects if you really wanted to see them happen, shrug he might not but I think he would show you for the sake of finding the problem.

I hope this helped you understand the problem a little better if you didn't understand it before. Good luck on figuring it out.

~Vicious- Begining coder and hardware manager.
Top

Posted by Nick Cash   USA  (626 posts)  Bio
Date Reply #25 on Fri 07 Feb 2003 03:16 AM (UTC)
Message
So I'm guessing no one has any insights to my problems? Vicious stated the problems exactly, anyways, if you guys don't know how to fix it or any ideas then thats okay.

Thanks for all the help so far...

~Nick Cash
http://www.nick-cash.com
Top

Posted by Jaden   (1 post)  Bio
Date Reply #26 on Thu 09 Sep 2004 04:40 PM (UTC)
Message
Hello all. Im new to this thread and felt that it would be appropriate to post this here. I have recently added in copyover to a godwars deluxe codebase. Im having the same issue has described. When i ./startup & in the shell the mud starts fine and you can connect, login, and play. Once you copyover, you can still play if you are already connected. If you disconnect and try to reconnect while the mud is running off the copyover, it will not display the greeting nor let you login. It only displays the messaged connected to: IPADDRESS and sits there. I was wondering if there is any information on how to fix this yet. Im sure i just have missed something in adding in the copyover snippet. My theory is that it just wont open new descriptors for players who try to connect after the copyover has been initiated. How to fix this im am not certain just yet.

Thanks in advance,

Jaden
Top

Posted by Nick Gammon   Australia  (23,158 posts)  Bio   Forum Administrator
Date Reply #27 on Thu 09 Sep 2004 11:02 PM (UTC)
Message
I don't know the copyover snippet, but from what you describe it sounds like the "listener" is not working.

To accept new connections there is a special socket that listens for them, and when it gets one it creates a new socket (for the new player). I would be checking around the code for the listening port.

- Nick Gammon

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

Posted by Nick Cash   USA  (626 posts)  Bio
Date Reply #28 on Thu 09 Sep 2004 11:40 PM (UTC)
Message
Well, I did eventually fix it. It was my fault. In SWR/SMAUG it has multiple ports that the game runs on. Back then I had just commented them out, and forgetting I didnt us them, I went a head and installed the whole copyover snippet, which assumed I was using them. Basically, it ties the listening port, however, it does not acknowledge connections. If its anything like swr, go to a line like this:

execl (EXE_FILE, "swreality", buf, "copyover", buf2, buf3, buf4, buf5, (char *) NULL);

And make sure everything is correct.

In smaug/swr the clue's are in the preceeding lines, which are


        sprintf (buf, "%d", port);
        sprintf (buf2, "%d", control);
        sprintf (buf3, "%d", control2);
        sprintf (buf4, "%d", conclient);
        sprintf (buf5, "%d", conjava);

In this case, merely comment out the ones you are not using, or remove them completely. Both solutions work seem to work correctly. However, I am not experienced with the GodWars base, so I have no clue if it is even remotely similar.

If you still can't figure it out, just post the function with the call to execl.

~Nick Cash
http://www.nick-cash.com
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.


66,624 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.