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 ➜ SMAUG ➜ Compiling the server ➜ Several coding problems

Several coding problems

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


Posted by Davidgan   Singapore  (5 posts)  Bio
Date Sun 11 Aug 2002 01:16 AM (UTC)
Message
I got the make problem working (downloaded the entier CYGWIN which took me hours).

However, can someone tell me how to make it that players can type who instead of who_1?

Also, after installing dual class, there are errors here and there:
Quote:

$ make
make smaug
make[1]: Entering directory '/home/David/smaug/dist/src'
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG act_info.c
In file included from act_info.c:25:
mud.h:1066: field 'DUAL_SKILL' declared as a function
mud.h:1067: field 'dual_adept' declared as a function
mud.h:1068: field 'find_skill_level' declared as a function
mud.h:1069: field 'hp_max' declared as a function
mud.h:1070: field 'hp_min' declared as a function
mud.h:1071: field 'use_mana' declared as a function
mud.h:1074: duplicate member 'hp_min'
mud.h:1075: duplicate member 'hp_max'
mud.h:3302: parse error before 'IS_VAMPIRE'
mud.h:3482: syntax error before 'struct'
act_info.c: In function 'do_practice':
act_info.c:3154:warning: implicit declaration of function 'DUAL_SKILL'
act_info.c: In function 'do_slist':
act_info.c:3154:warning: implicit declaration of function 'find_skill_level'
make[1]: *** [act_info.o] Error 1
make[1]: Leaving directory '/home/David/smaug/dist/src'
make: *** [all] Error 2


Help Please! =]
Top

Posted by Dark_Trunks   Australia  (27 posts)  Bio
Date Reply #1 on Mon 12 Aug 2002 01:51 AM (UTC)
Message
Off the top of my head, because I cant see my code at the moment, in the do_who function you want to remove the section where it checks if the argument is 1. I hope that helps you.
Top

Posted by Bipper   (17 posts)  Bio
Date Reply #2 on Mon 12 Aug 2002 04:51 AM (UTC)
Message
WAIT!

in mud.h there is a line right twords the beguining that says #REQWHOARG simply take that line out..

tadaa :)
Bipper
The amazing one who goes.. and when he doesn't he posts here 0_o
Top

Posted by Davidgan   Singapore  (5 posts)  Bio
Date Reply #3 on Mon 12 Aug 2002 12:00 PM (UTC)

Amended on Mon 12 Aug 2002 12:44 PM (UTC) by Davidgan

Message
Where is the do_who function? There are so many but can't find the one with argument 1 part.

Nevermind, managed to solve my problem reading through all the previous forums, now just the error with the dual class :D
Top

Posted by Davidgan   Singapore  (5 posts)  Bio
Date Reply #4 on Tue 13 Aug 2002 12:34 PM (UTC)
Message
More problems =]

Quote:

$ make
make smaug
make[1]: Entering directory `/home/David/smaug/dist/src'
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG comm.c
comm.c: In function `display_prompt':
comm.c:166: warning: implicit declaration of function `default_prompt'
comm.c:166: warning: assignment makes pointer from integer without a cast
comm.c:170: warning: implicit declaration of function `default_fprompt'
comm.c:170: warning: assignment makes pointer from integer without a cast
comm.c:212: warning: implicit declaration of function `make_color_sequence'
comm.c:145: warning: `victim' might be used uninitialized in this function
comm.c: At top level:
comm.c:3438: warning: type mismatch with previous implicit declaration
comm.c:170: warning: previous implicit declaration of `default_fprompt'
comm.c:3438: warning: `default_fprompt' was previously implicitly declared to re
turn `int'
comm.c:3453: warning: type mismatch with previous implicit declaration
comm.c:166: warning: previous implicit declaration of `default_prompt'
comm.c:3453: warning: `default_prompt' was previously implicitly declared to ret
urn `int'
comm.c:3479: redefinition of `display_prompt'
comm.c:142: `display_prompt' previously defined here
make[1]: *** [comm.o] Error 1
make[1]: Leaving directory `/home/David/smaug/dist/src'
make: *** [all] Error 2


This happened when I tried to make a healthbar for the combat system.
Top

Posted by Nick Gammon   Australia  (23,158 posts)  Bio   Forum Administrator
Date Reply #5 on Fri 16 Aug 2002 10:37 PM (UTC)
Message
You are using the functions before their declaration. You can prototype them by putting this near the start of the comm.c file (after the includes):


char *default_prompt( CHAR_DATA *ch );
char *default_fprompt( CHAR_DATA *ch );

- Nick Gammon

www.gammon.com.au, www.mushclient.com
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.


16,930 views.

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.