Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
parse description bug
Dec 15, 2017, 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, Yandex, Yahoo!, DotBot, Sogou

Members: 0
Guests: 5
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 » SmaugFUSS » object 'main description' add...
Forum Rules | Mark all | Recent Posts

object 'main description' addition
< Newer Topic :: Older Topic > musings -- laughter appropriate heh

Pages:<< prev 1 next >>
Post is unread #1 Jan 9, 2011, 8:57 pm
Go to the top of the page
Go to the bottom of the page

Aurin
Magician
GroupMembers
Posts189
JoinedSep 5, 2010

Because it was brought up, I see that obj->description does not equate to what mob->description does, but what mob->long_descr does. I don't know if this was an oversight for the smaugfuss project, but I'm currently working on adding support for obj->description to work like mob->description.

assume the following for example purposes:
mob->name = Testmob
mob->description = This is a description
mob->long_descr = Testmob stands here.

obj->name = dagger
obj->description = This is a description. (read as non-existent in current smaugfuss 1.9)
obj->long_descr = A dagger lies here. (read as obj->description for current smaugfuss 1.9)
obj->short_descr = an enchanted dagger
obj->extra_descr = NULL (will return: You see nothing special.)


If you're confused, I'm basically referring to this:
look <obj>
returns: You see nothing special. (obj->extra_descr)
look (to room): A dagger lies here. (obj->description)
inventory: an enchanted dagger (obj->short_descr)

look <mob>
returns: This is a description (mob->description)
look (to room): Testmob stands here. (mob->long_descr)

what I want is this:
look <obj>: This is a description. (obj->description, even if there are other extra_descr, they need a keyword in order to work properly--currently, and for the future)
look (to room): A dagger lies here. (obj->long_descr)
inventory: an enchanted dagger (obj->short_descr)

I've currently updated 18 different files on my localhost in order to update this to what I want. I've successfully converted obj->description to obj->long_descr--which is what it should have been named in the first place, just having difficulties successfully displaying obj->description upon "look <obj>".

Anyways, just wanted to post this to see how much interest there really is for something like this. If there IS interest, I'll work on getting a snippet together so that everyone can update to this, if they haven't already done a fix like this of some sort for themselves.

Cheers
       
Post is unread #2 Jan 10, 2011, 3:20 am   Last edited Jan 10, 2011, 3:44 am by Aurin
Go to the top of the page
Go to the bottom of the page

Aurin
Magician
GroupMembers
Posts189
JoinedSep 5, 2010

woohoo! got it done and works as expected. :D Who's the baddest noob^11 coder ever? me, that's who! :devil:


oooo...I just realized this is gonna play havoc with previously made objects. :headbang: not so much as breaking things, just that all previously set obj->description (read as obj->long_descr) will be left as the obj->description after the update. will have to go through and manually set all the obj->long_descr if I'm to port this over. drat...better talk to my building team to see if they want to do that, in order to support this. heh ...all those THOUSANDS of objects will have to be adjusted... :facepalm:

and correction to the above:
mob->name = Testmob
mob->description = This is a description
mob->long_descr = Testmob stands here.

obj->name = dagger
obj->description = This is a description. (read as long description in current smaugfuss 1.9)
obj->long_descr = A dagger lies here. (read as non-existent in current smaugfuss 1.9)
obj->short_descr = an enchanted dagger
obj->extra_descr = NULL (will return: You see nothing special.)
       
Post is unread #3 Jan 10, 2011, 4:55 am
Go to the top of the page
Go to the bottom of the page

Aurin
Magician
GroupMembers
Posts189
JoinedSep 5, 2010

bah...does everything I want...but doesn't save to area files. :( and learned how to get the long descs to read properly so I won't have to do anything with the objects, beyond adding a main description. heh --thanks Dace. :D
       
Pages:<< prev 1 next >>