Important Message

You are browsing the archived Lancers Reactor forums. You cannot register or login.
The content may be outdated and links may not be functional.


To get the latest in Freelancer news, mods, modding and downloads, go to
The-Starport

Understanding market_commodities.ini

The general place to discuss MOD''ing Freelancer!

Post Mon Mar 10, 2003 1:49 pm

Understanding market_commodities.ini

What does the different numbers on the line in market_commodities.ini mean?

Example:
[BaseGood
base = Br01_01_base
MarketGood = commodity_gold, 0, -1, 150, 500, 0, 1.080000

From what I've read this is Bretonia system 01 base 01 (New London? Is there a complete list somewhere?)
and its pricing for gold
0 - the required player level
-1 - will sell even if hostile

What does the other numbers mean?

A related question, where do I find sell prices for those commodities that aren't listed here? Are they just taken from goods.ini (and if so, at what value?)

Post Mon Mar 10, 2003 2:22 pm


What does the different numbers on the line in market_commodities.ini mean?
Example:
[BaseGood
base = Br01_01_base
MarketGood = commodity_gold, 0, -1, 150, 500, 0, 1.080000

From what I've read this is Bretonia system 01 base 01 (New London? Is there a complete list somewhere?)
and its pricing for gold
0 - the required player level
-1 - will sell even if hostile

What does the other numbers mean?

A related question, where do I find sell prices for those commodities that aren't listed here? Are they just taken from goods.ini (and if so, at what value?)



Yes, your getting there..
This post has more detail




Edited by - beltic on 10-03-2003 14:24:39

Post Mon Mar 10, 2003 3:31 pm

Well, that thread is about ships. Commodities are not defined exactly like that, since their price varies. I guess thats what the unknown numbers do in my previous post do, but how?

Post Tue Mar 11, 2003 1:51 pm

Ok, I've done some testing and the numbers 150, 500, 0 apparently only sets wether the item is buyable at the station (as with ships) The values 150 and 500 are apparntly not specific, they can be anything larger than 0 (0, 0, 1 indicates that the item is not buyable). The last decimal value is a price modifier, haven't quite figured out how it works yet (it's most likely multiplied by the commodity base value in some way). More testing is in progress...

Edit: Just made a quick calculation on an example (Manhattan [Li_01_01_base, since it's the easiest to test in the game)

MarketGood = commodity_boron, 0, -1, 150, 500, 0, 1.300000

the 1.300000 is multiplied by the base value for Boron, which is 120, to give the buy/sell price of $156. This value is not entirely correct, Manhattan actually charges $155 (a difference of $1)

However, if we take another example from Manhattan

MarketGood = commodity_H_fuel, 0, -1, 150, 500, 0, 1.200000

and multiply the base value of H-Fuel (300) by 1.200000, we get $360, which is exactly the same as the actual price in the game (so no difference of $1 here)

So aside from a (occcasional?) $1 difference (rounding comes to mind, but rounding isn't needed above) I think I've gotten it right!

Edited by - Chaldan on 11-03-2003 14:18:41

Return to Freelancer General Editing Forum