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


Register forum user name Search FAQ

Gammon Forum

[Folder]  Entire forum
-> [Folder]  SMAUG
. -> [Folder]  SMAUG coding
. . -> [Subject]  Overland Code and some problems...need assistance

Overland Code and some problems...need assistance

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


Posted by Mirrodan   USA  (28 posts)  [Biography] bio
Date Thu 28 Oct 2004 10:05 AM (UTC)
Message
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

Admin and Head Coder
For Techno-Magicka
techno-magicka.dreasphere.org 4000
AIM: tchnmgck
MSN: newell_everett@hotmail.com
YAHOO: everettnewell
[Go to top] top

Posted by Zeno   USA  (2,871 posts)  [Biography] bio
Date Reply #1 on Thu 28 Oct 2004 03:59 PM (UTC)
Message
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.

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
[Go to top] top

Posted by Mirrodan   USA  (28 posts)  [Biography] bio
Date Reply #2 on Fri 29 Oct 2004 09:04 AM (UTC)
Message
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

Admin and Head Coder
For Techno-Magicka
techno-magicka.dreasphere.org 4000
AIM: tchnmgck
MSN: newell_everett@hotmail.com
YAHOO: everettnewell
[Go to top] top

Posted by Greven   Canada  (835 posts)  [Biography] bio
Date Reply #3 on Fri 29 Oct 2004 03:44 PM (UTC)
Message
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.

Nobody ever expects the spanish inquisition!

darkwarriors.net:4848
http://darkwarriors.net
[Go to top] top

Posted by Mirrodan   USA  (28 posts)  [Biography] bio
Date Reply #4 on Sun 31 Oct 2004 04:56 AM (UTC)
Message
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


Admin and Head Coder
For Techno-Magicka
techno-magicka.dreasphere.org 4000
AIM: tchnmgck
MSN: newell_everett@hotmail.com
YAHOO: everettnewell
[Go to top] top

Posted by Mirrodan   USA  (28 posts)  [Biography] bio
Date Reply #5 on Sun 31 Oct 2004 10:11 AM (UTC)
Message
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

Admin and Head Coder
For Techno-Magicka
techno-magicka.dreasphere.org 4000
AIM: tchnmgck
MSN: newell_everett@hotmail.com
YAHOO: everettnewell
[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.


15,192 views.

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

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

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

[Best viewed with any browser - 2K]    [Hosted at HostDash]