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, Yandex, Exalead, Google

Members: 0
Guests: 4
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 » SWFOTE FUSS » Sellhome does not delete play...
Forum Rules | Mark all | Recent Posts

Sellhome does not delete playername.home file.
< Newer Topic :: Older Topic >

Pages:<< prev 1 next >>
Post is unread #1 Dec 23, 2008, 4:15 pm   Last edited Dec 23, 2008, 4:19 pm by ayuri
Go to the top of the page
Go to the bottom of the page

ayuri
Magician
GroupMembers
Posts239
JoinedJun 13, 2008

Sellhome does not delete playername.home file. Only when they buy another home does it get recreated with no objects.
Don't know how big of a problem this is, but thought you'd all like to know.
**EDIT**
On reboot/player quit-login it looks like the data isn't getting loaded into that room, so the objects shouldn't respawn.

Also, should there be a check to force the player to empty out their home in order to sell it? Or charge them extra to have a cleaning droid pick up after them?

One more thing, some of the stock areas (ex rvnum 1079) seem to have extra rflags. -=( An Empty Apartment )=- {1079[ indoors no_drive safe silence empty_home hotel factory ] - As a mortal I'd love to just have all that preset for myself :)

If anyone wishes I'd be willing to go though the areas and check room flags.
Ayuri
       
Post is unread #2 Dec 23, 2008, 4:25 pm
Go to the top of the page
Go to the bottom of the page

Samson
Black Hand
GroupAdministrators
Posts3,639
JoinedJan 1, 2002

Speaking strictly from a realism perspective, I think if the player wants to sell a furnished home, the items should remain there and only change ownership to the new player. If they don't want to sell with furnishings inside then offer them an option to have droids come by to get the stuff, or just pick up the loose items and leave.
       
Post is unread #3 Dec 24, 2008, 12:31 pm   Last edited Dec 24, 2008, 12:33 pm by Keberus
Go to the top of the page
Go to the bottom of the page

Keberus
Conjurer
GroupFUSS Project Team
Posts341
JoinedJun 4, 2005

Heres the fix to make it remove the .home file.

misc.c, do_sellhome

Find:
   AREA_DATA *pArea;


After that add:
   char hbuf[MSL];


Then locate:
   ch->plr_home = NULL;
   do_save( ch, "" );


After that add:
   snprintf( hbuf, MSL, "%s%c/%s.home", PLAYER_DIR, LOWER(ch->name[0]), ch->name );
   if( remove( hbuf ) == -1 )
       bug( "There was an error removing %s's home file", ch->name );


This code will remove the .home file from the player directory when someone sells thier home, and leave a bug message if the file wasn't found or successfully removed.



As an aside:

Also, should there be a check to force the player to empty out their home in order to sell it? Or charge them extra to have a cleaning droid pick up after them?


I think that thats really just optional, and should be left up to an individual game, as far as if they want to do that.
       
Pages:<< prev 1 next >>