ChessBerry / EcoManager

Fixes changes and additions to the FAF EcoManager mod
1 stars 2 forks source link

Crashed on v12 #2

Open frollog opened 2 months ago

frollog commented 2 months ago

Hi! I have crashed using v12 before i found this version. Here is a log: .....

warning: Error running lua script: p:\gms\faf\mapsmods\mods\em\modules\throttle.lua(228): attempt to perform arithmetic on field `income' (a nil value)
         stack traceback:
            p:\gms\faf\mapsmods\mods\em\modules\throttle.lua(228): in function `callback'
            p:\gms\faf\mapsmods\mods\em\modules\init.lua(24): in function <p:\gms\faf\mapsmods\mods\em\modules\init.lua:18>
debug: Loading module: /units/ura0107/ura0107_script.lua
debug: Loading module: /units/xsb1202/xsb1202_script.lua
warning: Error running lua script: p:\gms\faf\mapsmods\mods\em\modules\throttle.lua(228): attempt to perform arithmetic on field `income' (a nil value)
         stack traceback:
            p:\gms\faf\mapsmods\mods\em\modules\throttle.lua(228): in function `callback'
            p:\gms\faf\mapsmods\mods\em\modules\init.lua(24): in function <p:\gms\faf\mapsmods\mods\em\modules\init.lua:18>
warning: Error running lua script: p:\gms\faf\mapsmods\mods\em\modules\throttlemass.lua(293): attempt to perform arithmetic on field `net_income' (a nil value)
         stack traceback:
            p:\gms\faf\mapsmods\mods\em\modules\throttlemass.lua(293): in function `detectProblem'
            p:\gms\faf\mapsmods\mods\em\modules\throttlemass.lua(253): in function `optimizeECO'
            p:\gms\faf\mapsmods\mods\em\modules\throttlemass.lua(244): in function `callback'
            p:\gms\faf\mapsmods\mods\em\modules\init.lua(24): in function <p:\gms\faf\mapsmods\mods\em\modules\init.lua:18>
debug: Current gametime: 00:02:00
debug: Loading module: /units/uab0102/uab0102_script.lua
warning: Error running lua script: p:\gms\faf\mapsmods\mods\em\modules\throttlemass.lua(293): attempt to perform arithmetic on field `net_income' (a nil value)
         stack traceback:
            p:\gms\faf\mapsmods\mods\em\modules\throttlemass.lua(293): in function `detectProblem'
            p:\gms\faf\mapsmods\mods\em\modules\throttlemass.lua(253): in function `optimizeECO'
            p:\gms\faf\mapsmods\mods\em\modules\throttlemass.lua(244): in function `callback'
            p:\gms\faf\mapsmods\mods\em\modules\init.lua(24): in function <p:\gms\faf\mapsmods\mods\em\modules\init.lua:18>

full log: game_22669046.log

and so on in endless cycle. Is it known problem? Any advice with it? Thank you in advance

ChessBerry commented 2 months ago

Hi, it looks like this is a problem with the old ecomanager, not my adjusted ecomanagercbt version.

The mod folder for ecomanagercbt should be \mods\ecomanagercbt\, whereas the mod path for the old version is \mods\em\, which is what is shown for you.

The base version is bugged in a lot of ways, though this specific one I haven't seen before.

If you wanna use the cbt version, it's probably best to just delete the old version of ecomanager from your system entirely.