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 ➜ ROM ➜ Compiling the server ➜ Starting a New MUD - Base suggestions?

Starting a New MUD - Base suggestions?

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


Pages: 1  2 3  

Posted by Scruffy   (16 posts)  Bio
Date Reply #15 on Sat 02 Jul 2005 08:42 PM (UTC)

Amended on Sat 02 Jul 2005 08:51 PM (UTC) by Scruffy

Message
not sure if this helps you or not. If I had to take a guess (assuming it was the rom i was supposed to use for the source), I'd say it's Ivan's patch after all...it was originally written in spanish. But how to fix this?...

dave@scruffy:~/Rom24$ cd area
dave@scruffy:~/Rom24/area$ gdb ../src/rom
GNU gdb 6.3
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i486-slackware-linux"...Using host libthread_db library "/lib/libthread_db.so.1".

(gdb) run
Starting program: /home/dave/Rom24/src/rom
Sat Jul 2 15:42:27 2005 :: Creating skill table of length 151, size 7852
cargar_tabla_razas: No such file or directory
load_tabla_comandos : No such file or directory
../data/socials: No such file or directory

Program exited with code 01.
(gdb)
Top

Posted by Greven   Canada  (835 posts)  Bio
Date Reply #16 on Sat 02 Jul 2005 08:50 PM (UTC)
Message
You should try to run gdb in the same place that the startup script tries to run the mud. If it changes to another directory, go to that directory and see if it works. The other to make sure is that the files it is trying to load is in the proper directory, from that code socials should be in the data directory.

Nobody ever expects the spanish inquisition!

darkwarriors.net:4848
http://darkwarriors.net
Top

Posted by Scruffy   (16 posts)  Bio
Date Reply #17 on Sat 02 Jul 2005 09:02 PM (UTC)
Message
My startup file
-----------------------------------

#!/bin/csh
# Written by Furey.
# With additions from Tony and Alander.

# Set the port number.
set port = 9000
if ( "$1" != "" ) set port="$1"

# Change to area directory.
cd ../area

# Set limits.
if ( -e shutdown.txt ) rm -f shutdown.txt

while ( 1 )
# If you want to have logs in a different directory,
# change the 'set logfile' line to reflect the directory name.
set index = 1000
while ( 1 )
set logfile = ../log/$index.log
if ( ! -e $logfile ) break
@ index++
end

# Run rom.
../src/rom $port >&! $logfile


# Restart, giving old connections a chance to die.
if ( -e shutdown.txt ) then
rm -f shutdown.txt
exit 0
endif
sleep 15
end


-----------------------------------

I was already running from /area. If those files are in fact missing, I have absolutely no idea where to obtain them either...Going to try recompiling it as if it were the first boot again, and see if that helps. Any other suggestions welcome :) . And on a side note, I would like to add that I am highly impressed at how fast responses are here. It's highly appreciated.
Top

Posted by Scruffy   (16 posts)  Bio
Date Reply #18 on Sat 02 Jul 2005 09:07 PM (UTC)
Message
Alright guys. Got something different here...tried it this time after compiling while my make file had the -DFIRST_BOOT in it again and got...

dave@scruffy:~/Rom24/area$ gdb ../src/rom
GNU gdb 6.3
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i486-slackware-linux"...Using host libthread_db library "/lib/libthread_db.so.1".

(gdb) run
Starting program: /home/dave/Rom24/src/rom
Sat Jul 2 16:07:02 2005 :: [*****] BUG: Fix_exits: 10525:1 -> 10535:3 -> 10534.
Sat Jul 2 16:07:02 2005 :: [*****] BUG: Fix_exits: 3458:2 -> 3472:0 -> 10401.
Sat Jul 2 16:07:02 2005 :: [*****] BUG: Fix_exits: 8705:4 -> 8706:5 -> 8708.
Sat Jul 2 16:07:02 2005 :: [*****] BUG: Fix_exits: 8717:2 -> 8719:0 -> 8718.
Err: obj an elemental rod of earthquake (9217) -- 7, mob a small rock (9217) --3
Err: obj elemental wand of wind and air (9218) -- 27, mob an alchemist (9234) -- 13
Err: obj an ice staff (9216) -- 25, mob a puddle (9214) -- 8
Err: obj an icicle (9227) -- 28, mob the Ice Bandit (9228) -- 24
Err: obj elemental wand of fire (9215) -- 16, mob a flame (9215) -- 4
Err: obj elemental wand of fire (9215) -- 16, mob a flame (9215) -- 4
Err: obj elemental wand of wind and air (9218) -- 27, mob a small spark (9218) -- 4
Err: obj elemental wand of wind and air (9218) -- 27, mob an eddie (9225) -- 2
Err: obj an ice staff (9216) -- 25, mob a baby rainbow dragon (9235) -- 16
Err: obj a wet noodle (8010) -- 5, mob a Futsie (8002) -- 17

Top

Posted by Greven   Canada  (835 posts)  Bio
Date Reply #19 on Sat 02 Jul 2005 09:22 PM (UTC)
Message
I couldn't tell you exactly what the errors mean, I've never used ROM before, but you could try grepping the source files for "Err: obj " and see if anything relevany comes up. If you can checl the code that produces that error, you could at least narrow down what circumstances existed to create those error.

BTW, if you have the original, non-patched source, did that boot ok with this file set up?

Nobody ever expects the spanish inquisition!

darkwarriors.net:4848
http://darkwarriors.net
Top

Posted by Zeno   USA  (2,871 posts)  Bio
Date Reply #20 on Sat 02 Jul 2005 09:34 PM (UTC)
Message
Those errors should cause the mud to crash. What else is after that?

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
Top

Posted by Scruffy   (16 posts)  Bio
Date Reply #21 on Sat 02 Jul 2005 09:45 PM (UTC)
Message
Booted fine before the patch. And as for what's after that, the answer is nothing...just blank lines if I hit enter.
Top

Posted by Greven   Canada  (835 posts)  Bio
Date Reply #22 on Sat 02 Jul 2005 09:59 PM (UTC)
Message
Then you've really got 3 options: Forget about the patch as it is in its current form and go with the stock code, try to hunt do through the code WHY its not booting by setting break points and grepping error message to fix what the patch messed up, or try another codebase that has OLC building code in it already(*cough*smaugfuss*cough*). If you want to go with the second and track it down, I would read over the GDB tutorial and see if you can make any headway. We're always here if you come across any snags.

Nobody ever expects the spanish inquisition!

darkwarriors.net:4848
http://darkwarriors.net
Top

Posted by Scruffy   (16 posts)  Bio
Date Reply #23 on Sun 03 Jul 2005 06:38 AM (UTC)

Amended on Sun 03 Jul 2005 06:44 AM (UTC) by Scruffy

Message
I know you guys are strongly pushing here for Smaug, but I guess you can just call me that stubborn b**t*rd that likes rom 2.4. I ended up downloading and compiling the most basic stripped down version of QuickMUD that I could find and through looking at the code have been modifying it all night. I would like to thank each one of you for your time spent trying to help me. It was and continues to be greatly appreciated. I just have one question...I'm adding a patch by hand for skill and group editing and am having a slight problem...in the readme, it told me to add ', 0' to the end of each skill and group.

{
"rom basics", {0, 0, 0, 0},
{"scrolls", "staves", "wands", "recall"}, 0
}

{
"mage basics", {0, -1, -1, -1},
{"dagger"}, 0
}

{
"cleric basics", {-1, 0, -1, -1},
{"mace"}, 0
}


I'm not really sure where to add that ,0 in there though. Where it's at right now is what I assumed would be right by looking at it... Also, when I try doing a make, I'm getting

const.c:1790: error: parse error before '{' token
const.c:1791: warning: missing braces around initializer
const.c:1791: warning: (near initialization for `group_table[1].rating')
const.c:1793: error: parse error before numeric constant
(1793 starts at the { before mage basics ).

I'm guessing this is being caused just by my not knowing where to shove that extra ,0 . Any help would be greatly appreciated. Again, this is for adding the skedit and gredit commands.
Top

Posted by Zeno   USA  (2,871 posts)  Bio
Date Reply #24 on Sun 03 Jul 2005 06:53 AM (UTC)
Message
I'm pretty sure it'd have to be in the brackets. Like this:
 {"mace", 0}

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
Top

Posted by Robert Powell   Australia  (367 posts)  Bio
Date Reply #25 on Sun 03 Jul 2005 11:31 AM (UTC)

Amended on Sun 03 Jul 2005 11:33 AM (UTC) by Robert Powell

Message
I would sugest using FirstMud as far as rom derivs go, it will in the long run save you hours and hours of changing all thos e little things that will annoy you about stock rom and its being actively developed. I remember putting ivans olc into a stock rom, there are a number of realy buggy versions of it out there, if i remember you want something like version 2.6, 2.7 was last mabe, and it was bugged to hell, working on memory, please correct me if im wrong.

cargar_tabla_razas: No such file or directory
load_tabla_comandos : No such file or directory

loading race table
loading commands table

Its assuming you have changed ROM to use commands and race files.

Just a guy having a bit of fun. Nothing more, nothing less, I do not need I WIN to feel validated.
Top

Posted by Scruffy   (16 posts)  Bio
Date Reply #26 on Sun 03 Jul 2005 06:33 PM (UTC)

Amended on Sun 03 Jul 2005 06:51 PM (UTC) by Scruffy

Message
Thanks! Ya...Every version of OLC that I've tried has blown my stock Rom up. I've tried 2.0, 2.1, 1.9 (i think...having a hard time remembering now), and just recently tried 1.81...None of which worked, so I have something that's buggy.... I've tried running QuickMUD because it already has built in OLC but I would prefer something almost completely stripped down of all races and classes with yet making it possible to add new races and classes (items as well for that matter, getting rid of all old stock items). QuickMUD Advanced 1.1 came somewhat close for me, although I don't care too much for some things in it...I'll give the one you mentioned a try though. What version would you recommend based on what I've said above, and where can I find it?



***EDIT***
Alright. So I'm trying version 3.9b, downloaded from mudmagic, and was incredibly impressed while it was compiling. It appears to have many of the features that I am looking for already built in, and looked like a remarkably clean compile - well written. Until....

telnet.c: In function `int telopt_unknown(DESCRIPTOR_DATA*, unsigned char,
unsigned char, bool)':
telnet.c:212: warning: comparison is always true due to limited range of data
type
telnet.c:225: warning: comparison is always true due to limited range of data
type
telnet.c:232: warning: comparison is always true due to limited range of data
type
make: *** [telnet.o] Error 1
bash-3.00$

Here's the segment in question

/* telopt_unknown handles all the negotiation commands that the mud server
doesn't understand
*/
int telopt_unknown(DESCRIPTOR_DATA * d, unsigned char c, unsigned char t,
bool quiet)
{
char buf[MAX_STRING_LENGTH];
char cmd[MAX_INPUT_LENGTH];
char opt[MAX_INPUT_LENGTH];
char rev;
char len = 1;

if (c == '\n' || c == '\r' || c == '\0')
return 0;
/*line 212 is next line*/
if (TELCMD_OK(c))
{
sprintf(cmd, "%s", TELCMD(c));
if (c == IAC)
len = 1; /* IAC IAC */
else if (c >= SB)
len = 2; /* IAC DONT/DO/WONT/WILL/SB ?? */
else
len = 1; /* IAC ?? */
}

if (!quiet)
{
/*line 225 is next line*/
if (TELCMD_OK(c))
sprintf(cmd, "%s", TELCMD(c));
else
sprintf(cmd, "[%u]", c);

if (TELOPT_OK(t))
sprintf(opt, "%s", TELOPT(t));
/*line 232*/ else if (TELCMD_OK(t))
sprintf(opt, "%s", TELCMD(t));
else if (t == 85)
sprintf(opt, "COMPRESS-1");
else if (t == 86)
sprintf(opt, "COMPRESS-2");
else
sprintf(opt, "[%u]", t);

switch ((unsigned char) c)
{
case WILL:
rev = WONT;
break;
case WONT:
rev = DONT;
break;
case DONT:
rev = WONT;
break;
case DO:
rev = DONT;
break;
default:
rev = c;
break;
}
sprintf(buf, "%c%c%c", IAC, rev, t);
write_to_descriptor(d, buf, 0);
}
return len;
}
Top

Posted by Greven   Canada  (835 posts)  Bio
Date Reply #27 on Sun 03 Jul 2005 07:38 PM (UTC)
Message
Could you paste a copy of the TELCMD_OK macro?

Nobody ever expects the spanish inquisition!

darkwarriors.net:4848
http://darkwarriors.net
Top

Posted by Scruffy   (16 posts)  Bio
Date Reply #28 on Sun 03 Jul 2005 08:13 PM (UTC)
Message
Where would I find that macro?
Top

Posted by Greven   Canada  (835 posts)  Bio
Date Reply #29 on Sun 03 Jul 2005 08:44 PM (UTC)
Message
probably in on of the .h files included in the code, couldn't tell you. try grepping it in *.h files.

Nobody ever expects the spanish inquisition!

darkwarriors.net:4848
http://darkwarriors.net
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.


89,756 views.

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

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.