frequency values

Post ideas & suggestions you have pertaining to the game here.
Post Reply
User avatar
digdug
Fleet Admiral
Fleet Admiral
Posts: 2620
Joined: Mon Oct 29, 2007 9:23 pm
Location: Decoding hieroglyphics on Tan-Ru-Dorem

Hi George,
just a quick question, are the frequency values still as in this table ?
* Common 20%
* Uncommon 10%
* Rare 5%
* VeryRare 3%
* Notrandom

I'm asking because I don't know how to test it in a simple way.
Last edited by digdug on Sun Jan 24, 2010 3:33 am, edited 1 time in total.
schilcote
Militia Captain
Militia Captain
Posts: 726
Joined: Sat Feb 02, 2008 7:22 pm

frquency values?

Image
[schilcote] It doesn't have to be good, it just has to not be "wow is that the only thing you could think of" bad
george moromisato
Developer
Developer
Posts: 2998
Joined: Thu Jul 24, 2003 9:53 pm
Contact:

digdug wrote:Hi George,
just a quick question, are the frequency values still as in this table ?
* Common 20%
* Uncommon 10%
* Rare 5%
* VeryRare 3%
* Notrandom

I'm asking because I don't know how to test it in a simple way.
They are (and, I believe, have been for a while):

Common: 20
Uncommon: 10
Rare: 4
VeryRare: 1

[Technically, they are not % values--they simply relative values: "common" is twice a frequent as "uncommon".]
User avatar
Arisaya
Fleet Admiral
Fleet Admiral
Posts: 5535
Joined: Tue Feb 05, 2008 1:10 am
Location: At the VSS Shipyards in the frontier, designing new ships.

:D
Thanks george!
So it's like:
(this-rarity/sum(all-rarities))=chance <- like that?
(shpOrder gPlayership 'barrelRoll)

<New tutorials, modding resources, and official extension stuff coming to this space soon!>
User avatar
Prophet
Militia Captain
Militia Captain
Posts: 826
Joined: Tue Nov 18, 2008 6:09 pm

Code: Select all

Common: 20 
Uncommon: 10 
Rare: 4 
VeryRare: 1

Common: 20/35=	57%
Uncommon: 10/35=29%
Rare: 4/35=		11%
VeryRare: 1/35=	3%
One further question: what would be the effect of creating 1000 new items, all with veryRare frequency? would that skew the curve or would those 1000 items all be competing for that 3% chance of some screen time?

Just out of curiosity, can transdata output a summary of the number of items in each frequency?
eg:
Common: 200 items
Uncommon: 100 items
Rare: 40 items
VeryRare: 10 items
Coming soon: The Syrtian War adventure mod!
A Turret defense genre mod exploring the worst era in Earth's history.
Can you defend the Earth from the Syrtian invaders?
Stay tuned for updates!
george moromisato
Developer
Developer
Posts: 2998
Joined: Thu Jul 24, 2003 9:53 pm
Contact:

Wolfy wrote::D
Thanks george!
So it's like:
(this-rarity/sum(all-rarities))=chance <- like that?
Yes, that's right.
george moromisato
Developer
Developer
Posts: 2998
Joined: Thu Jul 24, 2003 9:53 pm
Contact:

Prophet wrote:

Code: Select all

Common: 20 
Uncommon: 10 
Rare: 4 
VeryRare: 1

Common: 20/35=	57%
Uncommon: 10/35=29%
Rare: 4/35=		11%
VeryRare: 1/35=	3%
One further question: what would be the effect of creating 1000 new items, all with veryRare frequency? would that skew the curve or would those 1000 items all be competing for that 3% chance of some screen time?

Just out of curiosity, can transdata output a summary of the number of items in each frequency?
eg:
Common: 200 items
Uncommon: 100 items
Rare: 40 items
VeryRare: 10 items
Yeah, that looks right.

Creating 1000 very rare item types would skew the curve.

The frequency is used most commonly in <RandomItem> (which generates random items for stations). The algorithm iterates over selected item types and adds up their total frequency value. The percent chance of any one item type is its frequency value divided by the total frequency value.

So, imagine that the criteria selected 1 common item and 80 very rare items. The total frequency value is (1 * 20) + (80 * 1) = 100. The chance of getting the common item is (20/100) = 20%. The chance of getting a specific very rare is (1/100) = 1%. The chance of getting any very rare is 80%.

The best way to get stats on anything is to have TransData output a full table and use Excel to slice the data.
Post Reply