[Home] [Downloads] [Search] [Help/forum]

Gammon Software Solutions forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  SMAUG
. -> [Folder]  SMAUG coding
. . -> [Subject]  Learning more about descriptors...

Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?
(New message)
Subject: Learning more about descriptors...
Name:
Your forum user name.
Register forum user name
Password:
Your forum password.
Forgotten password?
Message:
Message to be posted (in English, please).
Forum codes:
Check this if your message uses 'forum codes' or templates (auto-detected for new posts).
Forum codes Templates

Save this message ...


Subject review (reverse sequence)

Pages: 1 2  

Posted by Nick Cash   USA  (626 posts)  [Biography] bio
Date Thu 09 Sep 2004 11:40 PM (UTC)  quote  ]
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
[Go to top] top

Posted by Nick Gammon   Australia  (18,770 posts)  [Biography] bio   Forum Administrator
Date Thu 09 Sep 2004 11:02 PM (UTC)  quote  ]
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
[Go to top] top

Posted by Jaden   (1 post)  [Biography] bio
Date Thu 09 Sep 2004 04:40 PM (UTC)  quote  ]
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
[Go to top] top

Posted by Nick Cash   USA  (626 posts)  [Biography] bio
Date Fri 07 Feb 2003 03:16 AM (UTC)  quote  ]
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
[Go to top] top

Posted by Vicious   (3 posts)  [Biography] bio
Date Mon 03 Feb 2003 04:39 AM (UTC)  quote  ]
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.
[Go to top] top

Posted by Nick Gammon   Australia  (18,770 posts)  [Biography] bio   Forum Administrator
Date Mon 03 Feb 2003 04:20 AM (UTC)  quote  ]
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
[Go to top] top

Posted by Nick Cash   USA  (626 posts)  [Biography] bio
Date Mon 03 Feb 2003 12:27 AM (UTC)  quote  ]
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
[Go to top] top

Posted by Nick Cash   USA  (626 posts)  [Biography] bio
Date Wed 29 Jan 2003 05:08 AM (UTC)  quote  ]
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
[Go to top] top

Posted by Nick Gammon   Australia  (18,770 posts)  [Biography] bio   Forum Administrator
Date Wed 29 Jan 2003 02:30 AM (UTC)  quote  ]
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
[Go to top] top

Posted by Nick Cash   USA  (626 posts)  [Biography] bio
Date Tue 28 Jan 2003 06:55 PM (UTC)  quote  ]
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
[Go to top] top

Posted by Nick Gammon   Australia  (18,770 posts)  [Biography] bio   Forum Administrator
Date Tue 28 Jan 2003 05:00 AM (UTC)  quote  ]
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
[Go to top] top

Posted by Nick Cash   USA  (626 posts)  [Biography] bio
Date Tue 28 Jan 2003 01:44 AM (UTC)  quote  ]
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
[Go to top] top

Posted by Boborak   USA  (228 posts)  [Biography] bio
Date Sun 26 Jan 2003 12:52 AM (UTC)  quote  ]
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.
[Go to top] top

Posted by Nick Cash   USA  (626 posts)  [Biography] bio
Date Sat 25 Jan 2003 11:30 PM (UTC)  quote  ]
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
[Go to top] top

Posted by Boborak   USA  (228 posts)  [Biography] bio
Date Sat 25 Jan 2003 05:02 AM (UTC)  quote  ]
Message
Two questions. What client do you use? and Even though the greeting doesn't display, can you still log on by typing your name and such? Also, open up comm.c and in:

void new_descriptor()

look for this chunk of code:
/*
* Send the greeting.
*/
{
extern char * help_greeting;
if ( help_greeting[0] == '.' )
write_to_buffer( dnew, help_greeting+1, 0 );
else
write_to_buffer( dnew, help_greeting , 0 );
}

If you can still log on and that code is not there, see if you can locate something similar to it. But, if by chance you can't even log on properly, you have a much worst situation (you may have skipped a part in the snippet).
[Go to top] 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.


4,162 views.

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

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

[Home]

Written by Nick Gammon - 5K

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( http://www.gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Internet Contents Rating Association (ICRA) - 2K]    [Web site powered by FutureQuest.Net]