Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
 Couple bugs
Yesterday, 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
Bug in get_exp_worth( )
Oct 10, 2017, 1:26 am
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, Google, Yahoo!

Members: 0
Guests: 10
Stats
Files
Topics
Posts
Members
Newest Member
477
3,705
19,232
608
LAntorcha
Today's Birthdays
There are no member birthdays today.
Related Links
» SmaugMuds.org » Codebases » SWFOTE FUSS » Clan and characters not saved...
Forum Rules | Mark all | Recent Posts

Clan and characters not saved in space.c and ships.c
< Newer Topic :: Older Topic >

Pages:<< prev 1 next >>
Post is unread #1 Oct 28, 2009, 1:39 pm   Last edited Oct 28, 2009, 1:54 pm by ayuri
Go to the top of the page
Go to the bottom of the page

ayuri
Magician
GroupMembers
Posts239
JoinedJun 13, 2008

I was just digging about in the code today and noticed that these functions don't save clan/char data.
do_orderclanship (ships.c)
do_ordership (ships.c)
do_salvage (space.c)
do_clansalvage (space.c)


Also, since sellship and buyship in-game commands call do_salvage and do_ordership, it would be a safe bet to remove the unused do_sellship and do_buyship code. The same goes with do_clanbuyship.

**Edit: Guess I should say why saving clan/char data is needed - Since we are dealing with a lot of situations where gold is getting used up, I think its best to save the character/clan in case there is a crash.

ayuri
       
Post is unread #2 Oct 29, 2009, 9:07 am
Go to the top of the page
Go to the bottom of the page

Keirath
Magician
GroupMembers
Posts144
JoinedJan 24, 2008

I wouldn't dump sellship and buyship. I know several FotE admin that still use those commands. What I did on my MUD was this:
I took the ship prices and made them a lot higher. Then added sellship and buyship in. Then I set a limit to how many ships a player could own. So instead of salvaging the ship, they could sell it. And then another player could come along and pick it up at a discounted price.

Sellship and buyship still have their functions. But thats just me.
       
Post is unread #3 Oct 29, 2009, 2:36 pm   Last edited Oct 29, 2009, 2:43 pm by ayuri
Go to the top of the page
Go to the bottom of the page

ayuri
Magician
GroupMembers
Posts239
JoinedJun 13, 2008

Fair enough. I was just pointing out that for the most part its dead code that sitting there not being used from a FUSS point of view. Just taking up extra space.

**Edit Keirath, good to see you around again? Whats new? Have to hit you up some time and catch up.

ayuri
       
Pages:<< prev 1 next >>