diff --git a/include/savegame/Commodities.class.php b/include/savegame/Commodities.class.php index fb40934..a95c20c 100644 --- a/include/savegame/Commodities.class.php +++ b/include/savegame/Commodities.class.php @@ -57,6 +57,16 @@ private static function analyzeItems() { foreach ( self::$xml ['items'] as $item ) { $location = cleanFileName ( $item ['filename'] ); switch ($item ['className']) { + case 'FS19_GlobalCompany.GC_ProductionFactoryPlaceable' : + if (isset ( $item->productionFactory->outputProducts )) { + $location = $item ['modName']; + foreach ( $item->productionFactory->outputProducts->outputProduct as $product ) { + $fillType = $product ['name']; + $fillLevel = intval ( $product ['fillLevel'] ); + self::addCommodity ( $fillType, $fillLevel, $location ); + } + } + break; case 'Bale' : if ($item ['farmId'] == $_SESSION ['farmId']) { $location = getLocation ( $item ['position'] ); diff --git a/index.php b/index.php index b958a02..c6c3bef 100755 --- a/index.php +++ b/index.php @@ -16,7 +16,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -$webStatsVersion = '0.9.6'; +$webStatsVersion = '0.9.7'; ini_set ( 'error_reporting', E_ALL ); ini_set ( 'display_errors', 1 ); ini_set ( 'log_errors', 1 ); diff --git a/language/de/global.lng b/language/de/global.lng index 39a8ebc..55a28ef 100755 --- a/language/de/global.lng +++ b/language/de/global.lng @@ -22,6 +22,8 @@ SATURDAY=Samstag SUNDAY=Sonntag ON=An OFF=Aus +ONMAP=Landschaft +OUTOFMAP=Außerhalb der Karte //install.tpl WEBSTATS_DESCRIPTON=Auf dieser Webseite für Dedicated Server und lokale Spielstände von Farming Simulator 19 können Spieler, Fahrzeuge, Lagerbestände und Produktionsanlagen angezeigt werden. Fehlende Rohstoffe sowie volle Produktlager werden kenntlich gemacht.