Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
parse description bug
Yesterday, 10:08 pm
By Remcon
Couple bugs
Dec 12, 2017, 5:42 pm
By Remcon
Bug in disarm( )
Nov 12, 2017, 6:54 pm
By GatewaySysop
Bug in will_fall( )
Oct 23, 2017, 1:35 am
By GatewaySysop
Bug in do_zap( ), do_brandish( )
Oct 18, 2017, 1:52 pm
By GatewaySysop
LOP 1.45
Author: Remcon
Submitted by: Remcon
LOP Heroes Edition
Author: Vladaar
Submitted by: Vladaar
Heroes sound extras
Author: Vladaar
Submitted by: Vladaar
6Dragons 4.3
Author: Vladaar
Submitted by: Vladaar
Memwatch
Author: Johan Lindh
Submitted by: Vladaar
Users Online
CommonCrawl, Yahoo!, Yandex

Members: 0
Guests: 13
Stats
Files
Topics
Posts
Members
Newest Member
477
3,706
19,240
608
LAntorcha
Today's Birthdays
There are no member birthdays today.
Related Links
» SmaugMuds.org » Codebases » AFKMud Support & Development » Adding a new Object Type
Forum Rules | Mark all | Recent Posts

Adding a new Object Type
< Newer Topic :: Older Topic > Bugs galore.

Pages:<< prev 1 next >>
Post is unread #1 Feb 5, 2004, 2:58 pm   Last edited Nov 24, 2007, 3:14 pm by Samson
Go to the top of the page
Go to the bottom of the page

Tavon

GroupMembers
Posts3
JoinedFeb 5, 2004

Well, I'm a new coder on Xorith's Shards... and, as a new coder, I don't know very much. Like what's happening in this error, which I get when I try to load an object:

Log: [*****] BUG: Read_object: vnum 3201 bad type.
Log: Obtained 9 stack frames.
Log: ../src/afkmud(_Z3bugPKcz+0xe9) [0x80de799]
Log: ../src/afkmud(_Z13create_objectP14obj_index_datai+0x1d1) [0x80dc911]
Log: ../src/afkmud(do_oinvoke+0x94) [0x8092366]
Log: ../src/afkmud(do_load+0xae) [0x8092604]
Log: ../src/afkmud(_Z9interpretP9char_dataPc+0x37b) [0x8103933]
Log: ../src/afkmud(_Z9game_loopv+0x49f) [0x80d0e83]
Log: ../src/afkmud(main+0x189) [0x80d198b]
Log: /lib/libc.so.6(__libc_start_main+0xc7) [0x4014ea47]
Log: ../src/afkmud(dlopen+0x41) [0x80695b1]
Log: [*****] BUG: ------------------------>    11
Log: Obtained 9 stack frames.
Log: ../src/afkmud(_Z3bugPKcz+0xe9) [0x80de799]
Log: ../src/afkmud(_Z13create_objectP14obj_index_datai+0x1e0) [0x80dc920]
Log: ../src/afkmud(do_oinvoke+0x94) [0x8092366]
Log: ../src/afkmud(do_load+0xae) [0x8092604]
Log: ../src/afkmud(_Z9interpretP9char_dataPc+0x37b) [0x8103933]
Log: ../src/afkmud(_Z9game_loopv+0x49f) [0x80d0e83]
Log: ../src/afkmud(main+0x189) [0x80d198b]
Log: /lib/libc.so.6(__libc_start_main+0xc7) [0x4014ea47]
Log: ../src/afkmud(dlopen+0x41) [0x80695b1]


What I did was add a new object type, dice. I changed TYPE_unused3 to TYPE_DICE in olc.h, and updated build.c to reflect this. What did I forget to do?
       
Post is unread #2 Feb 5, 2004, 3:13 pm
Go to the top of the page
Go to the bottom of the page

Greven
Magician
GroupMembers
Posts204
JoinedMar 5, 2005

In db.c, there is a list of object type. You need to add a case for your new object type. Just do a search for another type that already exists.
       
Post is unread #3 Feb 5, 2004, 3:21 pm
Go to the top of the page
Go to the bottom of the page

Tavon

GroupMembers
Posts3
JoinedFeb 5, 2004

Yep, found it just before I checked the forums again. I figured that I should grep for the "bad type" part of the error message, and... yeah. Thanks though!
       
Pages:<< prev 1 next >>