Top Mud Sites Forum Return to TopMudSites.com
Go Back   Top Mud Sites Forum > Mud Development and Administration > MUD Coding
Click here to Register

Reply
 
Thread Tools
Old 08-17-2003, 11:26 AM   #1
Delerak
Senior Member
 
Delerak's Avatar
 
Join Date: Apr 2003
Name: Dan
Location: New York
Posts: 706
Delerak is on a distinguished road
Send a message via ICQ to Delerak Send a message via AIM to Delerak Send a message via MSN to Delerak Send a message via Yahoo to Delerak
Alright, I have this...what... codebase I guess. I tried compiling it with Make in mandrake linux. But I get about a thousand different errors in db.c, and I am far from a capable coder, is there anyone out there (KaVir?) that can take a look at the code and try to compile it in there system? I found this code somewhere on the net a long time ago, it's called Swordquest and I think it's all custom code, not sure, but I will upload it to my site and post a link to it if anyone replies and will help me out, thanks.

-Delerak
Delerak is offline   Reply With Quote
Old 08-17-2003, 11:28 AM   #2
Yui Unifex
Senior Member
 
Join Date: Apr 2002
Location: Florida
Posts: 323
Yui Unifex is on a distinguished road
Send a message via ICQ to Yui Unifex Send a message via AIM to Yui Unifex
Question

Try posting some of the errors to this forum. I'm sure someone can help ya out. An http link to the codebase is also useful.
Yui Unifex is offline   Reply With Quote
Old 08-17-2003, 12:14 PM   #3
Delerak
Senior Member
 
Delerak's Avatar
 
Join Date: Apr 2003
Name: Dan
Location: New York
Posts: 706
Delerak is on a distinguished road
Send a message via ICQ to Delerak Send a message via AIM to Delerak Send a message via MSN to Delerak Send a message via Yahoo to Delerak
I can't recall the main error, I know it had mainly to do with db.c here is a link to the codebase, I can always go into mandrake, compile then copy/paste the errors.

Swordquest
Delerak is offline   Reply With Quote
Old 08-17-2003, 01:23 PM   #4
Yui Unifex
Senior Member
 
Join Date: Apr 2002
Location: Florida
Posts: 323
Yui Unifex is on a distinguished road
Send a message via ICQ to Yui Unifex Send a message via AIM to Yui Unifex
Question

These were the messages that I got:
[code] gcc -c -O -Wall -ggdb db.c
db.c;982;8; macro names must be identifiers
db.c; In function `load_resets';
db.c;942; warning; unused variable `pRoomIndex'
db.c;943; warning; unused variable `pexit'
db.c;932; warning; unused variable `buf'
db.c; In function `reset_area';
db.c;1525; warning; unused variable `pObjToIndex'
db.c; In function `find_string_references';
db.c;3031; warning; suggest explicit braces to avoid ambiguous `else'
db.c;3037; warning; suggest explicit braces to avoid ambiguous `else'
db.c;3050; warning; suggest explicit braces to avoid ambiguous `else'
db.c;3056; warning; suggest explicit braces to avoid ambiguous `else'
db.c;3069; warning; suggest explicit braces to avoid ambiguous `else'
db.c;3075; warning; suggest explicit braces to avoid ambiguous `else'
db.c;3088; warning; suggest explicit braces to avoid ambiguous `else'
db.c;3094; warning; suggest explicit braces to avoid ambiguous `else'
db.c;3107; warning; suggest explicit braces to avoid ambiguous `else'
db.c;3113; warning; suggest explicit braces to avoid ambiguous `else'
db.c;3126; warning; suggest explicit braces to avoid ambiguous `else'
db.c;3132; warning; suggest explicit braces to avoid ambiguous `else'
db.c;3142; warning; suggest explicit braces to avoid ambiguous `else'
db.c;3153; warning; suggest explicit braces to avoid ambiguous `else'
db.c;3159; warning; suggest explicit braces to avoid ambiguous `else'
db.c;3170; warning; suggest explicit braces to avoid ambiguous `else'
db.c;3176; warning; suggest explicit braces to avoid ambiguous `else'
db.c;3187; warning; suggest explicit braces to avoid ambiguous `else'
db.c;3193; warning; suggest explicit braces to avoid ambiguous `else'
db.c;3204; warning; suggest explicit braces to avoid ambiguous `else'
db.c;3210; warning; suggest explicit braces to avoid ambiguous `else'
db.c;3221; warning; suggest explicit braces to avoid ambiguous `else'
db.c;3227; warning; suggest explicit braces to avoid ambiguous `else'
make; *** [db.o] Error 1[/quote]

The only thing preventing you from compiling that file is the line:
db.c:982:8: macro names must be identifiers

This line is an #ifdef 0 line that essentially removes a section of code up until the #endif. 0 is not an identifier, so you need to give it a better name with #define. At the top of the source file I added #define COMPILESECTION 0, and then I changed that line to #ifdef COMPILESECTION and it worked as advertised. There were no other errors in the compilation, except an undefined reference to crypt which is also easily remedied.

Edit: Err, and that should really be #if instead of #ifdef =).
Yui Unifex is offline   Reply With Quote
Old 08-17-2003, 06:35 PM   #5
Delerak
Senior Member
 
Delerak's Avatar
 
Join Date: Apr 2003
Name: Dan
Location: New York
Posts: 706
Delerak is on a distinguished road
Send a message via ICQ to Delerak Send a message via AIM to Delerak Send a message via MSN to Delerak Send a message via Yahoo to Delerak
Thank you!
Delerak is offline   Reply With Quote
Old 08-17-2003, 06:59 PM   #6
Delerak
Senior Member
 
Delerak's Avatar
 
Join Date: Apr 2003
Name: Dan
Location: New York
Posts: 706
Delerak is on a distinguished road
Send a message via ICQ to Delerak Send a message via AIM to Delerak Send a message via MSN to Delerak Send a message via Yahoo to Delerak
What command did you use to boot the mud? I tried QUEST and QUESTstartup but they won't work. I think I fixed that other problem, here is what I get now.

Quote:
Originally Posted by
rm -f QUESTtest
gcc -O -o QUESTtest act_comm.o act_info.o act_move.o act_obj.o act_wiz.o change.o comm.o const.o db.o emote.o fight.o handler.o interp.o limited.o magic.o money.o names.o obj_fun.o olc.o races.o random.o review.o room_fun.o save.o shoot.o
shop.o special.o update.o
act_info.o(.text+0x2ced): In function `do_password':
/home/delerak/Darksun MUD/QUESTsrc/act_info.c:1961: undefined reference to `crypt'
act_info.o(.text+0x2d79):/home/delerak/Darksun MUD/QUESTsrc/act_info.c:1978: undefined reference to `crypt'
comm.o(.text+0x1387): In function `nanny':
/home/delerak/Darksun MUD/QUESTsrc/comm.c:1250: undefined reference to `crypt'
comm.o(.text+0x1d4b):/home/delerak/Darksun MUD/QUESTsrc/comm.c:1561: undefined reference to `crypt'
comm.o(.text+0x1dde):/home/delerak/Darksun MUD/QUESTsrc/comm.c:1584: undefined reference to `crypt'
collect2: ld returned 1 exit status
make: *** [merc] Error 1
[delerak@653289hfc28 QUESTsrc]$
Delerak is offline   Reply With Quote
Old 08-17-2003, 08:59 PM   #7
Yui Unifex
Senior Member
 
Join Date: Apr 2002
Location: Florida
Posts: 323
Yui Unifex is on a distinguished road
Send a message via ICQ to Yui Unifex Send a message via AIM to Yui Unifex
Question

In the Makefile, change the line that reads:
$(CC) $(L_FLAGS) -o $(OUT_FILE) $(O_FILES)

To:
$(CC) $(L_FLAGS) -o $(OUT_FILE) $(O_FILES) -lcrypt

And those undefined references should go away.

I did not start the mud, but that file named 'QUESTstartup' looks mighty suspicious.
Yui Unifex is offline   Reply With Quote
Old 08-17-2003, 09:10 PM   #8
Yui Unifex
Senior Member
 
Join Date: Apr 2002
Location: Florida
Posts: 323
Yui Unifex is on a distinguished road
Send a message via ICQ to Yui Unifex Send a message via AIM to Yui Unifex
Question

Yeah, startup is indeed screwed up. You need to mkdir QUESTplr, QUESTlog, and QUESTrmsave. Then you need to edit the Makefile and change the line:
OUT_FILE = QUESTtest

To:
OUT_FILE = QUESTexecutable

Then edit QUESTarea/area.lst and move the areas 'ys.are' and 'food.are' above 'dcity.are'. The file should look something like this when you're done:
help.are
limbo.are
stdeq.are
food.are
ys.are
dcity.are
random.are
elfforst.are
celemir.are
outscele.are
$

Then it should work.
Yui Unifex is offline   Reply With Quote
Old 08-17-2003, 11:13 PM   #9
Delerak
Senior Member
 
Delerak's Avatar
 
Join Date: Apr 2003
Name: Dan
Location: New York
Posts: 706
Delerak is on a distinguished road
Send a message via ICQ to Delerak Send a message via AIM to Delerak Send a message via MSN to Delerak Send a message via Yahoo to Delerak
Going to go try that now, thanks again Yui.
Delerak is offline   Reply With Quote
Old 08-17-2003, 11:26 PM   #10
Delerak
Senior Member
 
Delerak's Avatar
 
Join Date: Apr 2003
Name: Dan
Location: New York
Posts: 706
Delerak is on a distinguished road
Send a message via ICQ to Delerak Send a message via AIM to Delerak Send a message via MSN to Delerak Send a message via Yahoo to Delerak
Okay compiled worked. I'm trying to start it up now, when I do
./QUESTstartup it freezes my terminal, when I do ./QUESTexecutable is says area.1st no such file or folder. Now maybe I have to edit one of those?
*goes and gets a book on C*

-Delerak
Delerak is offline   Reply With Quote
Old 08-17-2003, 11:28 PM   #11
Delerak
Senior Member
 
Delerak's Avatar
 
Join Date: Apr 2003
Name: Dan
Location: New York
Posts: 706
Delerak is on a distinguished road
Send a message via ICQ to Delerak Send a message via AIM to Delerak Send a message via MSN to Delerak Send a message via Yahoo to Delerak
Woah, wait it minute, it's working, weird! Thanks Yui I got it!

-Delerak
Delerak is offline   Reply With Quote
Old 08-17-2003, 11:32 PM   #12
Delerak
Senior Member
 
Delerak's Avatar
 
Join Date: Apr 2003
Name: Dan
Location: New York
Posts: 706
Delerak is on a distinguished road
Send a message via ICQ to Delerak Send a message via AIM to Delerak Send a message via MSN to Delerak Send a message via Yahoo to Delerak
Man this is weird. Do I accept my own character within the shell, I can probably figure it out. I've finally found a codebase that I can work my RPI with. Praise be to alah. You are my god Unifex! Looking for an apprentice?

-Delerak
Delerak is offline   Reply With Quote
Old 08-17-2003, 11:55 PM   #13
myrdred23
New Member
 
Join Date: May 2003
Posts: 8
myrdred23 is on a distinguished road
Btw, that base isn't custom like you thought, its obviously a diku/merc derivative, judging by the copyrights in the files. Either way, it doesn't mean its bad or anything, just thought you should know.
myrdred23 is offline   Reply With Quote
Old 08-18-2003, 02:18 PM   #14
Delerak
Senior Member
 
Delerak's Avatar
 
Join Date: Apr 2003
Name: Dan
Location: New York
Posts: 706
Delerak is on a distinguished road
Send a message via ICQ to Delerak Send a message via AIM to Delerak Send a message via MSN to Delerak Send a message via Yahoo to Delerak
Okay, I got it working, but I can't seem to get my character on. I had to create QUESTnewplr and I got the pfile, I looked over review.c but it doesn't give me much information except how to do it if I am online in the game and I can't get in the game without accepting myself, is there something I need to do to the pfile or is it a command in my shell? I've messed around for a while with it, any help? Yui come to my rescue again?

-Delerak
Delerak is offline   Reply With Quote
Old 08-19-2003, 09:07 PM   #15
Yui Unifex
Senior Member
 
Join Date: Apr 2002
Location: Florida
Posts: 323
Yui Unifex is on a distinguished road
Send a message via ICQ to Yui Unifex Send a message via AIM to Yui Unifex
Question

Alrighty, it's not too tough fix your playerfile. Move the unapproved pfile in QUESTnewplr to QUESTplr. Then edit the pfile and change the line that reads "Act 1604" to "Act 1600". That '4' signifies the UNAPPROVED bit for new players. With that gone, you should be able to login without problems. It looks like level 40 is also the highest immortal level (at least from looking at the command table), so you can set your level there too and login as an admin.

If you want to remove the approval process altogether, you can just comment out the line "SET_BIT( d->character->act, PLR_UNAPPROVED );" in comm.c line 1742.
Yui Unifex is offline   Reply With Quote
Reply


Thread Tools


An age-old codebase - Similar Threads
Thread Thread Starter Forum Replies Last Post
d20 Codebase caspin00 MUD Coding 8 04-29-2004 05:31 PM
Looking for a particular codebase... Scrod Fungus MUD Coding 4 02-11-2004 08:43 PM
Looking for Codebase Khadgar MUD Coding 1 08-16-2003 02:25 PM
Looking for a Codebase. Jenred MUD Coding 1 08-28-2002 11:49 PM
SWR Codebase:Help Metathran Elf MUD Builders and Areas 1 07-19-2002 11:17 AM

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off

All times are GMT -4. The time now is 05:22 AM.


Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Style based on a design by Essilor
Copyright Top Mud Sites.com 2014