Overland Code and some problems...need assistance

Posted by Mirrodan on Thu 28 Oct 2004 10:05 AM — 6 posts, 22,981 views.

USA #0
I love the code and what not it is really cool...i'm just not sure what it means when it says to do the following... yea I know it said the novice coders shouldn't try to do it ...but, how do we become un noviced coders otherwise :P... anyways if anyone could give me an example of what to do to do the following i'd be greatly appriciative.

Then locate ALL calls to can_see in the following functions:

do_where [act_info.c]
indent_whogr [act_info.c]
do_who [act_info.c]
get_char_world [handler.c]
do_transfer [act_wiz.c]
do_gwhere [act_wiz.c]
do_gfighting [act_wiz.c]
do_bodybag [act_wiz.c]
do_users [act_wiz.c]
do_loadup [act_wiz.c]
do_ipcompare [act_wiz.c]

Add a TRUE argument to the calls.
Then locate ALL other calls to can_see and add a FALSE argument to those.
Then locate ALL calls to the PERS and MORPHPERS macros in the following functions:

do_group [act_comm.c]
do_where [act_info.c]
do_owhere [act_wiz.c]
do_owhere [grub.c]
do_vsearch [act_wiz.c]

Add a TRUE argument to the calls.
Then locate ALL other calls to the PERS and MORPHPERS macros and add a FALSE argument to those.



-Mirrodan
USA #1
I can't provide an exact example, I'm in CISCO, but what you do is... find the can_see function where it is called, like:
if ( can_see(ch, victim) )

So it says to add TRUE, so do this
if ( can_see(ch, victim, TRUE) )


Just like that. It's a bool check of some sort, but those are only examples, not the real call.
USA #2
ok i got that fixed thank you by the way....but there's one more error i can't figure out and have no idea what i'm doing wrong....



make -s smaug
o/overland.o(.text+0x193): In function `calc_angle':
/home/mirrodan/codeport/src/overland.c:500: undefined reference to `sqrt'
o/overland.o(.text+0x1a7):/home/mirrodan/codeport/src/overland.c:500: undefined reference to `sqrt'
o/overland.o(.text+0x1d6):/home/mirrodan/codeport/src/overland.c:500: undefined reference to `sqrt'
o/overland.o(.text+0xdb3): In function `do_survey':
/home/mirrodan/codeport/src/overland.c:801: undefined reference to `sqrt'
o/overland.o(.text+0x3ca8): In function `new_map_to_char':
/home/mirrodan/codeport/src/overland.c:428: undefined reference to `sqrt'
o/overland.o(.text+0x4716):/home/mirrodan/codeport/src/overland.c:2384: more undefined references to `sqrt' follow
collect2: ld returned 1 exit status
make[1]: *** [smaug] Error 1
make: *** [all] Error 2
Canada #3
Sound to me like you need to link in the math libraries.

In your makefile, confirm that you have -lm on your L_FLAGS line. If not, add it, should clear those errors right up.
USA #4
Thanks Graven,
I missed that step in the Overland snippet...totally over looked it for some reason everything seems to work fine with the exception of fold_area and load_rooms..... not sure which one is causing the fault but if you edit any rooms and folda the mud crashes on a warmboot/copyover...saying the following....


Sat Oct 30 22:39:35 2004 :: [*****] FILE: limbo.are LINE: 782
Sat Oct 30 22:39:35 2004 :: [*****] BUG: Load_objects: # not found.


as an example...i can't figure it out...i had to add an extra set of room flags maybe that's it i'm not sure..if there's anyone that could lend me a hand i'd greatly appriciate it..

-Mirrodan

USA #5
Nevermind i fixed it...something to do with the version stuff ...it didn't like it when you modified it for some reason...changed it back to 1 instead of 2 and now i've got no issues yet :)


-Mirrodan