Off the Edge of the Map

GroupAdministrators
Posts1,199
JoinedMar 21, 2006
Hands on is good, right up to the point where you break something beyond repair. D:
Sorcerer

GroupMembers
Posts857
JoinedMay 8, 2005
Raine said:
Does it help when I say I have no idea what I'm doing =p, I'm trying to learn C while building a mud at the same time (likes more hands on learning). =D!
Many of us learned what we know about coding from our muds, or at least what we know of mud coding anyway...
Fledgling

GroupMembers
Posts8
JoinedMar 27, 2009
I hate to bring this post back up to the top, but I'm having a horribly odd issue. So to break it down: I'm running SmaugFUSS 1.9. No mods, other than this Bank Mod I'm trying to install. I'm running CYGWIN under Windows 7. This is basically just a test bed, before I upload to a live server, and familiarizing myself with SmaugFUSS. Before I worked on a CircleMUD, so things don't seem all that different in operation. There's the background.
Here's the problem: So I followed the instructions for everything in this thread. Still getting:
I swapped out the DECLARE_DO_FUNs from bank.h to mud.h in an attempt to troubleshoot. No go. Same messages as before. I triple checked the makefile, and bank.c is added. I even swapped it's order in the makefile, gets compiled to bank.o. So next, I tried the testing command. Added in DECLARE_DO_FUN ( do_testing ); went into act_obj.c and added a simple display. Make clean, then make, log in an get:
So, I've effectively THINK I've narrowed it down to bank.o not being accessed. I know I could just eliminate the need for bank.c/bank.o and code it right into one of the stock act_*.c that are loading and accessing fine...but I'd rather see if anyone can answer why...before I start mucking around with stock files right away. Plus I'm really picky about code being neat and organized...
Thanks in advance.
Here's the problem: So I followed the instructions for everything in this thread. Still getting:
Log: Quint: cedit balance create
Log: [*****] BUG: Error locating do_balance in symbol table. Resource temporarily unavailable
Command added.
Code do_balance not found. Set to no code.
I swapped out the DECLARE_DO_FUNs from bank.h to mud.h in an attempt to troubleshoot. No go. Same messages as before. I triple checked the makefile, and bank.c is added. I even swapped it's order in the makefile, gets compiled to bank.o. So next, I tried the testing command. Added in DECLARE_DO_FUN ( do_testing ); went into act_obj.c and added a simple display. Make clean, then make, log in an get:
.cedit testing create
Log: Quint: cedit testing create
Command added.
.testing
This is just a test.
So, I've effectively THINK I've narrowed it down to bank.o not being accessed. I know I could just eliminate the need for bank.c/bank.o and code it right into one of the stock act_*.c that are loading and accessing fine...but I'd rather see if anyone can answer why...before I start mucking around with stock files right away. Plus I'm really picky about code being neat and organized...
Thanks in advance.
Off the Edge of the Map

GroupAdministrators
Posts1,199
JoinedMar 21, 2006
Did you add bank.c to your Makefile?
Apprentice

GroupMembers
Posts63
JoinedNov 25, 2007
Quint said:
I hate to bring this post back up to the top, but I'm having a horribly odd issue. So to break it down: I'm running SmaugFUSS 1.9. No mods, other than this Bank Mod I'm trying to install. I'm running CYGWIN under Windows 7. This is basically just a test bed, before I upload to a live server, and familiarizing myself with SmaugFUSS. Before I worked on a CircleMUD, so things don't seem all that different in operation. There's the background.
Here's the problem: So I followed the instructions for everything in this thread. Still getting:
Log: Quint: cedit balance create
Log: [*****] BUG: Error locating do_balance in symbol table. Resource temporarily unavailable
Command added.
Code do_balance not found. Set to no code.
I swapped out the DECLARE_DO_FUNs from bank.h to mud.h in an attempt to troubleshoot. No go. Same messages as before. I triple checked the makefile, and bank.c is added. I even swapped it's order in the makefile, gets compiled to bank.o. So next, I tried the testing command. Added in DECLARE_DO_FUN ( do_testing ); went into act_obj.c and added a simple display. Make clean, then make, log in an get:
.cedit testing create
Log: Quint: cedit testing create
Command added.
.testing
This is just a test.
So, I've effectively THINK I've narrowed it down to bank.o not being accessed. I know I could just eliminate the need for bank.c/bank.o and code it right into one of the stock act_*.c that are loading and accessing fine...but I'd rather see if anyone can answer why...before I start mucking around with stock files right away. Plus I'm really picky about code being neat and organized...
Thanks in advance.
try cedit bank create do_bank
or cedit bank code do_bank
Fledgling

GroupMembers
Posts8
JoinedMar 27, 2009
.cedit bank create do_bank
Log: Quint: cedit bank create do_bank
Log: [*****] BUG: Error locating do_bank in symbol table. Resource temporarily unavailable
Command added.
Code do_bank not found. Set to no code.
Same thing. I've also tried using the code field with balance/deposit/withdraw
Magician

GroupMembers
Posts176
JoinedMay 21, 2006
It's because of the const char thing. Your do_bank function needs const in front of the char.
void do_bank (char_data ch const char)
something like that.
void do_bank (char_data ch const char)
something like that.
Fledgling

GroupMembers
Posts8
JoinedMar 27, 2009
That's how it's set up in the bank.c files.
void do_balance( CHAR_DATA * ch, char *argument )
Off the Edge of the Map

GroupAdministrators
Posts1,199
JoinedMar 21, 2006
Quint said:
That's how it's set up in the bank.c files.
void do_balance( CHAR_DATA * ch, char *argument )
Should be
void do_balance( CHAR_DATA * ch, const char *argument )
Fledgling

GroupMembers
Posts8
JoinedMar 27, 2009
Awesome! That did it! Much appreciated!
Can't believe I missed that!
Can't believe I missed that!