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
➜ MUDs
➜ General
➜ I need help fixing some bugs :(
I need help fixing some bugs :(
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Lloyd graham
Canada (13 posts) Bio
|
Date
| Tue 12 Oct 2004 02:29 AM (UTC) Amended on Tue 12 Oct 2004 02:56 AM (UTC) by Lloyd graham
|
Message
| I am having two problems both of which i need addressed.
I am using 1st mud4.5.3 but one of the problems I am having is that when building and in the desc of Redit mode. when in the buffer any time you put in a string it acts as if you are trying to put in a command the writing still goes to the desc but my builders don’t like it. I checked at the place where I got the code but I couldn’t understand exactly what to do. i was told to put brackets nder the else and on the substitute_alias but i dont know what type of brackets or how to put them
else
crash_info.status = (CRASH_LIKELY);
strcpy(crash_info.logline, d->incomm);
crash_info.desc = d;
switch (d->connected)
{
case CON_PLAYING:
substitute_alias(d, d->incomm);
break;
default:
nanny(d, d->incomm);
break;
}
The other problem is that when people kill any thing I get a error that crashes the mud every time I have no clue what is causing this or how to fix it any help will be appreciated the errors are
---CRASH INFORMATION---
Signal 11 (Segmentation fault)
Log: kill cit
Details: It is VERY likely that this command caused the crash.
and
---CRASH INFORMATION---
Signal 11 (Segmentation fault)
Log: pulse_violence
Details: This crash occured while updating the above.
sincirly
Layal | Top |
|
Posted by
| Nick Gammon
Australia (23,158 posts) Bio
Forum Administrator |
Date
| Reply #1 on Tue 12 Oct 2004 09:28 PM (UTC) |
Message
| If you are not sure what kind of brackets to put under an else, or how to put them there, I suggest you need some practice writing simpler C programs than a MUD server.
It is like trying to make a 3-course meal when you aren't sure how to turn the oven on. Start simple, do some examples from "learn to program in C" books, and it will come to you.
You can find out what causes crashes, to an extent, by using gdb. I have done a lengthy write-up on using it which is available on this forum.
To get you started, the brackets they are talking about are these brackets:
else
{
// blah blah, do something here
}
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Lloyd graham
Canada (13 posts) Bio
|
Date
| Reply #2 on Tue 12 Oct 2004 10:31 PM (UTC) |
Message
| than you that is much apreceated and i will get myself a book on c and read trou it thanx. | 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.
10,912 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top