Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
tintin++ ogg sound player script for linux
Author: Robert Smith
Submitted by: Vladaar
6Dragons ogg Soundpack
Author: Vladaar
Submitted by: Vladaar
6Dragons 4.4
Author: Vladaar
Submitted by: Vladaar
LoP 1.46
Author: Remcon
Submitted by: Remcon
LOP 1.45
Author: Remcon
Submitted by: Remcon
Users Online
CommonCrawl, Yandex, DotBot

Members: 0
Guests: 12
Stats
Files
Topics
Posts
Members
Newest Member
481
3,735
19,370
618
Micheal64X
Today's Birthdays
There are no member birthdays today.
Related Links
» SmaugMuds.org » General » Smaug Snippets » Samsons Bank Code Questions
Forum Rules | Mark all | Recent Posts

Samsons Bank Code Questions
< Newer Topic :: Older Topic >

Pages:<< prev 1, 2 next >>
Post is unread #21 Dec 29, 2007, 9:50 pm
Go to the top of the page
Go to the bottom of the page

Kayle
Off the Edge of the Map
GroupAdministrators
Posts1,195
JoinedMar 21, 2006

Hands on is good, right up to the point where you break something beyond repair. D:
       
Post is unread #22 Dec 30, 2007, 2:26 pm
Go to the top of the page
Go to the bottom of the page

Conner
Sorcerer
GroupMembers
Posts870
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...
       
Post is unread #23 Mar 27, 2009, 11:50 am
Go to the top of the page
Go to the bottom of the page

Quint
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:
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.
       
Post is unread #24 Mar 27, 2009, 11:55 am
Go to the top of the page
Go to the bottom of the page

Kayle
Off the Edge of the Map
GroupAdministrators
Posts1,195
JoinedMar 21, 2006

Did you add bank.c to your Makefile?
       
Post is unread #25 Mar 27, 2009, 11:58 am
Go to the top of the page
Go to the bottom of the page

Llarn
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
       
Post is unread #26 Mar 27, 2009, 12:04 pm
Go to the top of the page
Go to the bottom of the page

Quint
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
       
Post is unread #27 Mar 27, 2009, 12:46 pm
Go to the top of the page
Go to the bottom of the page

tphegley
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.
       
Post is unread #28 Mar 27, 2009, 12:49 pm
Go to the top of the page
Go to the bottom of the page

Quint
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 )

       
Post is unread #29 Mar 27, 2009, 12:50 pm
Go to the top of the page
Go to the bottom of the page

Kayle
Off the Edge of the Map
GroupAdministrators
Posts1,195
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 )
       
Post is unread #30 Mar 27, 2009, 1:17 pm
Go to the top of the page
Go to the bottom of the page

Quint
Fledgling
GroupMembers
Posts8
JoinedMar 27, 2009

Awesome! That did it! Much appreciated!

Can't believe I missed that!
       
Pages:<< prev 1, 2 next >>