dartharnold / mining-buddy-plus

Automatically exported from code.google.com/p/mining-buddy-plus
3 stars 0 forks source link

Mineral Calculations out of date as of Oddesy #40

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.fresh install.
2.
3.

What is the expected output? What do you see instead?
Expected:
Arkonor: 10000 Tritanium, 166 Zydrine, 333 Megacyte
Bistot: 12000 Pyerite, 341 Zydrine, 170 Megacyte
Crokite: 38000 Tritanium, 331 Nocxium, 663 Zydrine
Dark Ochre: 25500 Tritanium, 500 Nocxium, 250 Zydrine
Gneiss: 3700 Tritanium, 3700 Mexallon, 700 Isogen, 171 Zydrine
Spodumain: 71000 Tritanium, 9000 Pyerite, 140 Megacyte

Actual:
Arkonor: 300 Tritanium, 166 Zydrine, 333 Megacyte
Bistot: 170 Pyerite, 341 Zydrine, 170 Megacyte
Crokite: 331 Tritanium, 331 Nocxium, 663 Zydrine
Dark Ochre: 250 Tritanium, 500 Nocxium, 250 Zydrine
Gneiss: 171 Tritanium, 171 Mexallon, 343 Isogen, 171 Zydrine
Spodumain: 3190 Tritanium, 410 Pyerite, 140 Megacyte

What version of the product are you using? On what operating system?
8.8.62, linux

Was this an upgrade or new install?
New Install

Please provide any additional information below.

Issue lies in \Functions\Runs\MineralCalculations.php

Solution:
Change:
//Mineral Refinement Calculations

    //Tritanium
$Tritanium = ((($Veldspar + $ConcentratedVeldspar + $DenseVeldspar) * 1000) + 
(($Scordite + $CondensedScordite + $MassiveScordite) * 833) + (($Pyroxeres + 
        $SolidPyroxeres + $ViscousPyroxeres) * 844) + (($Plagioclase + 
$AzurePlagioclase + $RichPlagioclase) * 256) + (($Omber + $SilveryOmber + 
$GoldenOmber) * 307) + (($Kernite + $LuminousKernite + $FieryKernite) * 386) + 
(($Jaspet + $PureJaspet + $PristineJaspet) * 259) + (($Hemorphite + 
$VividHemorphite + $RadiantHemorphite) * 212) + (($Gneiss + $IridescentGneiss + 
$PrismaticGneiss) * 171) + (($DarkOchre + $OnyxOchre + $ObsidianOchre) * 250) + 
(($Crokite + $SharpCrokite + $CrystallineCrokite) * 331) + (($Spodumain + 
$BrightSpodumain + $GleamingSpodumain) * 700) + (($Arkonor + $CrimsonArkonor + 
$PrimeArkonor) * 300) + ($CondensedAlloy[0] * 88) + ($SheenCompound[0] * 124) + 
($GleamingAlloy[0] * 299) + ($PlushCompound[0] * 3200));

    //Pyerite
$Pyerite = ((($Scordite + $CondensedScordite + $MassiveScordite) * 416) + 
(($Pyroxeres + $SolidPyroxeres + $ViscousPyroxeres) * 59) + (($Plagioclase + 
$AzurePlagioclase + $RichPlagioclase) * 512) + (($Omber + $SilveryOmber + 
$GoldenOmber) * 123) + (($Jaspet + $PureJaspet + $PristineJaspet) * 259) + 
(($Spodumain + $BrightSpodumain + $GleamingSpodumain) * 140) + (($Bistot + 
$TriclinicBistot + $MonoclinicBistot) * 170) + ($CondensedAlloy[0] * 44) + 
($PreciousAlloy[0] * 7) + ($SheenCompound[0] * 44) + ($LucentCompound[0] * 174) 
+ ($PlushCompound[0] * 800));

    //Mexallon
$Mexallon = ((($Pyroxeres + $SolidPyroxeres + $ViscousPyroxeres) * 120) + 
(($Plagioclase + $AzurePlagioclase + $RichPlagioclase) * 256) + (($Kernite + 
$LuminousKernite + $FieryKernite) * 773) + (($Jaspet + $PureJaspet + 
$PristineJaspet) * 518) + (($Gneiss + $IridescentGneiss + $PrismaticGneiss) * 
171) + ($CondensedAlloy[0] * 11) + ($CrystalCompound[0] * 39) + 
($LucentCompound[0] * 2) + ($LusteringAlloy[0] * 88) + ($GlossyCompound[0] * 
210));

    //Isogen
$Isogen = ((($Omber + $SilveryOmber + $GoldenOmber) * 307) + (($Kernite + 
$LuminousKernite + $FieryKernite) * 386) + (($Hemorphite + $VividHemorphite + 
$RadiantHemorphite) * 212) + (($Hedbergite + $VitricHedbergite + 
$GlazedHedbergite) * 708) + (($Gneiss + $IridescentGneiss + $PrismaticGneiss) * 
343) + ($CrystalCompound[0] * 2) + ($PreciousAlloy[0] * 18) + 
($SheenCompound[0] * 23) + ($LucentCompound[0] * 11) + ($DarkCompound[0] * 23) 
+ ($MotleyCompound[0] * 28) + ($LusteringAlloy[0] * 32) + ($PlushCompound[0] * 
20));

    //Nocxium
$Nocxium = ((($Pyroxeres + $SolidPyroxeres + $ViscousPyroxeres) * 11) + 
(($Jaspet + $PureJaspet + $PristineJaspet) * 259) + (($Hemorphite + 
$VividHemorphite + $RadiantHemorphite) * 424) + (($Hedbergite + 
$VitricHedbergite + $GlazedHedbergite) * 354) + (($DarkOchre + $OnyxOchre + 
$ObsidianOchre) * 500) + (($Crokite + $SharpCrokite + $CrystallineCrokite) * 
331) + ($SheenCompound[0] * 1) + ($GleamingAlloy[0] * 5) + ($LucentCompound[0] 
* 5) + ($DarkCompound[0] * 10) + ($MotleyCompound[0] * 13) + 
($LusteringAlloy[0] * 35) + ($GlossyCompound[0] * 4));

    //Zydrine
$Zydrine = ((($Jaspet + $PureJaspet + $PristineJaspet) * 8) + (($Hemorphite + 
$VividHemorphite + $RadiantHemorphite) * 28) + (($Hedbergite + 
$VitricHedbergite + $GlazedHedbergite) * 32) + (($Gneiss + $IridescentGneiss + 
$PrismaticGneiss) * 171) + (($DarkOchre + $OnyxOchre + $ObsidianOchre) * 250) + 
(($Crokite + $SharpCrokite + $CrystallineCrokite) * 663) + (($Bistot + 
$TriclinicBistot + $MonoclinicBistot) * 341) + (($Arkonor + $CrimsonArkonor + 
$PrimeArkonor) * 166) + ($LusteringAlloy[0] * 1) + ($PlushCompound[0] * 9));

    //Megacyte
$Megacyte = ((($Spodumain + $BrightSpodumain + $GleamingSpodumain) * 140) + 
(($Bistot + $TriclinicBistot + $MonoclinicBistot) * 170) + (($Arkonor + 
$CrimsonArkonor + $PrimeArkonor) * 333) + ($GlossyCompound[0] * 3));

    //Morphite
$Morphite = ((($Mercoxit + $MagmaMercoxit + $VitreousMercoxit) * 530) + 
($OpulentCompound[0] * 2));

Replace with:

//Mineral Refinement Calculations

    //Tritanium
$Tritanium = ((($Veldspar + $ConcentratedVeldspar + $DenseVeldspar) * 1000) + 
(($Scordite + $CondensedScordite + $MassiveScordite) * 833) + (($Pyroxeres + 
        $SolidPyroxeres + $ViscousPyroxeres) * 844) + (($Plagioclase + 
$AzurePlagioclase + $RichPlagioclase) * 256) + (($Omber + $SilveryOmber + 
$GoldenOmber) * 307) + (($Kernite + $LuminousKernite + $FieryKernite) * 386) + 
(($Jaspet + $PureJaspet + $PristineJaspet) * 259) + (($Hemorphite + 
$VividHemorphite + $RadiantHemorphite) * 650) + (($Gneiss + $IridescentGneiss + 
$PrismaticGneiss) * 3700) + (($DarkOchre + $OnyxOchre + $ObsidianOchre) * 
25500) + (($Crokite + $SharpCrokite + $CrystallineCrokite) * 38000) + 
(($Spodumain + $BrightSpodumain + $GleamingSpodumain) * 71000) + (($Arkonor + 
$CrimsonArkonor + $PrimeArkonor) * 10000) + ($CondensedAlloy[0] * 88) + 
($SheenCompound[0] * 124) + ($GleamingAlloy[0] * 299) + ($PlushCompound[0] * 
3200));

    //Pyerite
$Pyerite = ((($Scordite + $CondensedScordite + $MassiveScordite) * 416) + 
(($Pyroxeres + $SolidPyroxeres + $ViscousPyroxeres) * 59) + (($Plagioclase + 
$AzurePlagioclase + $RichPlagioclase) * 512) + (($Omber + $SilveryOmber + 
$GoldenOmber) * 123) + (($Jaspet + $PureJaspet + $PristineJaspet) * 437) + 
(($Spodumain + $BrightSpodumain + $GleamingSpodumain) * 9000) + (($Bistot + 
$TriclinicBistot + $MonoclinicBistot) * 12000)+ (($Hemorphite + 
$VividHemorphite + $RadiantHemorphite) * 260) + ($CondensedAlloy[0] * 44) + 
($PreciousAlloy[0] * 7) + ($SheenCompound[0] * 44) + ($LucentCompound[0] * 174) 
+ ($PlushCompound[0] * 800));

    //Mexallon
$Mexallon = ((($Pyroxeres + $SolidPyroxeres + $ViscousPyroxeres) * 120) + 
(($Plagioclase + $AzurePlagioclase + $RichPlagioclase) * 256) + (($Kernite + 
$LuminousKernite + $FieryKernite) * 773) + (($Jaspet + $PureJaspet + 
$PristineJaspet) * 518) + (($Gneiss + $IridescentGneiss + $PrismaticGneiss) * 
3700)+ (($Hemorphite + $VividHemorphite + $RadiantHemorphite) * 60) + 
($CondensedAlloy[0] * 11) + ($CrystalCompound[0] * 39) + ($LucentCompound[0] * 
2) + ($LusteringAlloy[0] * 88) + ($GlossyCompound[0] * 210));

    //Isogen
$Isogen = ((($Omber + $SilveryOmber + $GoldenOmber) * 307) + (($Kernite + 
$LuminousKernite + $FieryKernite) * 386) + (($Hemorphite + $VividHemorphite + 
$RadiantHemorphite) * 212) + (($Hedbergite + $VitricHedbergite + 
$GlazedHedbergite) * 708) + (($Gneiss + $IridescentGneiss + $PrismaticGneiss) * 
700) + ($CrystalCompound[0] * 2) + ($PreciousAlloy[0] * 18) + 
($SheenCompound[0] * 23) + ($LucentCompound[0] * 11) + ($DarkCompound[0] * 23) 
+ ($MotleyCompound[0] * 28) + ($LusteringAlloy[0] * 32) + ($PlushCompound[0] * 
20));

    //Nocxium
$Nocxium = ((($Pyroxeres + $SolidPyroxeres + $ViscousPyroxeres) * 11) + 
(($Jaspet + $PureJaspet + $PristineJaspet) * 259) + (($Hemorphite + 
$VividHemorphite + $RadiantHemorphite) * 424) + (($Hedbergite + 
$VitricHedbergite + $GlazedHedbergite) * 354) + (($DarkOchre + $OnyxOchre + 
$ObsidianOchre) * 500) + (($Crokite + $SharpCrokite + $CrystallineCrokite) * 
331) + ($SheenCompound[0] * 1) + ($GleamingAlloy[0] * 5) + ($LucentCompound[0] 
* 5) + ($DarkCompound[0] * 10) + ($MotleyCompound[0] * 13) + 
($LusteringAlloy[0] * 35) + ($GlossyCompound[0] * 4));

    //Zydrine
$Zydrine = ((($Jaspet + $PureJaspet + $PristineJaspet) * 8) + (($Hemorphite + 
$VividHemorphite + $RadiantHemorphite) * 28) + (($Hedbergite + 
$VitricHedbergite + $GlazedHedbergite) * 32) + (($Gneiss + $IridescentGneiss + 
$PrismaticGneiss) * 171) + (($DarkOchre + $OnyxOchre + $ObsidianOchre) * 250) + 
(($Crokite + $SharpCrokite + $CrystallineCrokite) * 663) + (($Bistot + 
$TriclinicBistot + $MonoclinicBistot) * 341) + (($Arkonor + $CrimsonArkonor + 
$PrimeArkonor) * 166) + ($LusteringAlloy[0] * 1) + ($PlushCompound[0] * 9));

    //Megacyte
$Megacyte = ((($Spodumain + $BrightSpodumain + $GleamingSpodumain) * 140) + 
(($Bistot + $TriclinicBistot + $MonoclinicBistot) * 170) + (($Arkonor + 
$CrimsonArkonor + $PrimeArkonor) * 333) + ($GlossyCompound[0] * 3));

    //Morphite
$Morphite = ((($Mercoxit + $MagmaMercoxit + $VitreousMercoxit) * 530) + 
($OpulentCompound[0] * 2));

Original issue reported on code.google.com by EamonoBr...@gmail.com on 9 Mar 2014 at 5:53