Freelancer Community Network
Reminder: Internet Explorer 6 or below are NOT supported.
HomeHome
ForumForum
WikiWiki
DownloadsDownloads
ForgeForge
Multiplayer Connection Tutorial
Collapse/Expand Random Image
Collapse/Expand Login
Username:

Password:

Remember me



Lost Password?

Register now!
Collapse/Expand Chat
Collapse/Expand Who's Online
31 user(s) are online (17 user(s) are browsing Forum)

Members: 0
Guests: 31

more...
Collapse/Expand Donations
Monthly costs: -30€
Income (ads): +5€
Donations (last month): +30€

Current balance: -35€
(last updated 05/2019)

Please make a donation if you want to help keeping The-Starport online:

Bitcoin address:
Thanks!
Collapse/Expand Links
Collapse/Expand Advertisement
There are currently 49 users playing Freelancer on 40 servers.
June. 17, 2019

Browsing this Thread:   1 Anonymous Users



 Bottom   Previous Topic   Next Topic  Register To Post



MarketGood
Home away from home
Joined:
2009/8/16 2:58
From Qld, Aus.
Group:
Registered Users
FLServer Admins
Trusted Speciality Developers
Senior Members
Posts: 1905
Offline
A bug report from the new FLStat caused me to have another look at marketgood. All these years we've had it wrong...

min is only used once (at least in a quick SP test) - if zero, the item will not be sold. (I believe already known, just clarifying.)

max is similar - if zero, the item will not be sold; otherwise, "Base sells this item". A patch is available to make this partially work (it will restrict what you can buy at one time, but a simple launch/dock will restore it).

nosell is just plain wrong - the above two values control whether an item is sold or not. It turns out it's what I've called preserve or full value - it controls the depreciation of equipment (ignored for commodities & ships).

(The eighth value used in market_ships.ini is tested for its presence, read as a float and discarded.)

For example, change

MarketGood = li_gun01_mark01, 0, -1, 10, 10, 0, 1

to

MarketGood = li_gun01_mark01, 0, -1, 10, 10, 1, 1

and now selling the Justice Mk I on that base will give you the full $500.

Posted on: 2014/4/3 17:01
Top
Re: MarketGood
Just can't stay away
Joined:
2008/2/17 19:44
From Virginia
Group:
Registered Users
FLServer Admins
Senior Members
Posts: 369
Offline
Are you sure the depreciation isn't the amount of damage the equipment got while you were wresting it from the owner in a firefight? I.E. when you land and get the 'repair' symbol and it is actually the goods you picked up that need repair before selling.
A 0 to calculate this and a 1 to ignore it?

Posted on: 2014/4/3 18:01
http://UnderVerse.us
http://FreelancerCommunity.net
Top
Re: MarketGood
Starport Staff
Joined:
2008/10/25 17:58
From On my way back
Group:
Registered Users
Starport Staff
FLServer Admins
Posts: 331
Offline
Quote:

adoxa wrote:
For example, change

MarketGood = li_gun01_mark01, 0, -1, 10, 10, 0, 1

to

MarketGood = li_gun01_mark01, 0, -1, 10, 10, 1, 1

and now selling the Justice Mk I on that base will give you the full $500.


nice catch, confirmed

Posted on: 2014/4/3 19:33
Top
Re: MarketGood
Home away from home
Joined:
2009/8/16 2:58
From Qld, Aus.
Group:
Registered Users
FLServer Admins
Trusted Speciality Developers
Senior Members
Posts: 1905
Offline
Damage is in addition to depreciation - iirc it's a straight ratio, so if the item has 90% health, the price is reduced by 10%. Looking at the 101 list, it's called resale there, so I'll call it full_resale in the FLStat SQL database (I won't add it to FLStat itself, as I doubt anyone will use it, but it'd be easy to change my mind; same with max).

Posted on: 2014/4/4 15:23
Top