Statistics: Posted by BlueAmulet — 25 Jan 2020, 21:47
Unhandled exception:
state->m_rootState == m_state
Program : C:\ProgramData\FAForever\bin\ForgedAlliance.exe
Cmd line arguments :
Callstack:
Unknown symbol (address 0x008d462c)
Last 100 lines of log...
warning: ...alliance\gamedata\mohodata.scd\lua\system\import.lua(48): in function `import'
warning: ...alliance\gamedata\mohodata.scd\lua\system\import.lua(37): in function `import'
warning: ...\faforever\gamedata\lua.nx2\lua\ui\game\gamemain.lua(1005): in main chunk
warning: [C]: in function `doscript'
warning: [C]: in function `pcall'
warning: ...alliance\gamedata\mohodata.scd\lua\system\import.lua(48): in function `import'
warning: ...alliance\gamedata\mohodata.scd\lua\system\import.lua(37): in function `import'
warning: ...a\faforever\gamedata\lua.nx2\lua\ui\game\economy.lua(16): in main chunk
warning: [C]: in function `doscript'
warning: [C]: in function `pcall'
warning: ...alliance\gamedata\mohodata.scd\lua\system\import.lua(48): in function `import'
warning: ...alliance\gamedata\mohodata.scd\lua\system\import.lua(37): in function `import'
warning: ...forever\gamedata\lua.nx2\lua\ui\game\missiontext.lua(19): in main chunk
warning: [C]: in function `doscript'
warning: [C]: in function `pcall'
warning: ...alliance\gamedata\mohodata.scd\lua\system\import.lua(48): in function `import'
warning: ...gramdata\faforever\gamedata\lua.nx2\lua\usersync.lua(150): in function <...gramdata\faforever\gamedata\lua.nx2\lua\usersync.lua:112>
warning: ...gramdata\faforever\gamedata\lua.nx2\lua\usersync.lua(391): in function `OnSync'
warning: [string "OnSync()"](1): in main chunk
warning: ...alliance\gamedata\mohodata.scd\lua\system\import.lua(37): Error importing '/mods/supremeeconomy/modules/mciallunits.lua'
warning: stack traceback:
warning: [C]: in function `error'
warning: ...alliance\gamedata\mohodata.scd\lua\system\import.lua(52): in function `import'
warning: ...alliance\gamedata\mohodata.scd\lua\system\import.lua(37): in function `import'
warning: ...\faforever\gamedata\lua.nx2\lua\ui\game\gamemain.lua(1005): in main chunk
warning: [C]: in function `doscript'
warning: [C]: in function `pcall'
warning: ...alliance\gamedata\mohodata.scd\lua\system\import.lua(48): in function `import'
warning: ...alliance\gamedata\mohodata.scd\lua\system\import.lua(37): in function `import'
warning: ...a\faforever\gamedata\lua.nx2\lua\ui\game\economy.lua(16): in main chunk
warning: [C]: in function `doscript'
warning: [C]: in function `pcall'
warning: ...alliance\gamedata\mohodata.scd\lua\system\import.lua(48): in function `import'
warning: ...alliance\gamedata\mohodata.scd\lua\system\import.lua(37): in function `import'
warning: ...forever\gamedata\lua.nx2\lua\ui\game\missiontext.lua(19): in main chunk
warning: [C]: in function `doscript'
warning: [C]: in function `pcall'
warning: ...alliance\gamedata\mohodata.scd\lua\system\import.lua(48): in function `import'
warning: ...gramdata\faforever\gamedata\lua.nx2\lua\usersync.lua(150): in function <...gramdata\faforever\gamedata\lua.nx2\lua\usersync.lua:112>
warning: ...gramdata\faforever\gamedata\lua.nx2\lua\usersync.lua(391): in function `OnSync'
warning: [string "OnSync()"](1): in main chunk
warning: ...alliance\gamedata\mohodata.scd\lua\system\import.lua(37): Error importing '/lua/ui/game/gamemain.lua'
warning: stack traceback:
warning: [C]: in function `error'
warning: ...alliance\gamedata\mohodata.scd\lua\system\import.lua(52): in function `import'
warning: ...alliance\gamedata\mohodata.scd\lua\system\import.lua(37): in function `import'
warning: ...a\faforever\gamedata\lua.nx2\lua\ui\game\economy.lua(16): in main chunk
warning: [C]: in function `doscript'
warning: [C]: in function `pcall'
warning: ...alliance\gamedata\mohodata.scd\lua\system\import.lua(48): in function `import'
warning: ...alliance\gamedata\mohodata.scd\lua\system\import.lua(37): in function `import'
warning: ...forever\gamedata\lua.nx2\lua\ui\game\missiontext.lua(19): in main chunk
warning: [C]: in function `doscript'
warning: [C]: in function `pcall'
warning: ...alliance\gamedata\mohodata.scd\lua\system\import.lua(48): in function `import'
warning: ...gramdata\faforever\gamedata\lua.nx2\lua\usersync.lua(150): in function <...gramdata\faforever\gamedata\lua.nx2\lua\usersync.lua:112>
warning: ...gramdata\faforever\gamedata\lua.nx2\lua\usersync.lua(391): in function `OnSync'
warning: [string "OnSync()"](1): in main chunk
warning: ...alliance\gamedata\mohodata.scd\lua\system\import.lua(37): Error importing '/lua/ui/game/economy.lua'
warning: stack traceback:
warning: [C]: in function `error'
warning: ...alliance\gamedata\mohodata.scd\lua\system\import.lua(52): in function `import'
warning: ...alliance\gamedata\mohodata.scd\lua\system\import.lua(37): in function `import'
warning: ...forever\gamedata\lua.nx2\lua\ui\game\missiontext.lua(19): in main chunk
warning: [C]: in function `doscript'
warning: [C]: in function `pcall'
warning: ...alliance\gamedata\mohodata.scd\lua\system\import.lua(48): in function `import'
warning: ...gramdata\faforever\gamedata\lua.nx2\lua\usersync.lua(150): in function <...gramdata\faforever\gamedata\lua.nx2\lua\usersync.lua:112>
warning: ...gramdata\faforever\gamedata\lua.nx2\lua\usersync.lua(391): in function `OnSync'
warning: [string "OnSync()"](1): in main chunk
warning: Error running lua command: ...gramdata\faforever\gamedata\lua.nx2\lua\usersync.lua(150): Error importing '/lua/ui/game/missiontext.lua'
stack traceback:
[C]: in function `error'
...alliance\gamedata\mohodata.scd\lua\system\import.lua(52): in function `import'
...gramdata\faforever\gamedata\lua.nx2\lua\usersync.lua(150): in function <...gramdata\faforever\gamedata\lua.nx2\lua\usersync.lua:112>
...gramdata\faforever\gamedata\lua.nx2\lua\usersync.lua(391): in function `OnSync'
[string "OnSync()"](1): in main chunk
debug: Loading module '\000/lua/ui/game/gamemain.lua\000'
info: Hooked /lua/ui/game/gamemain.lua with /mods/noshake/hook/lua/ui/game/gamemain.lua
info: Hooked /lua/ui/game/gamemain.lua with /mods/pausereplayattime/hook/lua/ui/game/gamemain.lua
info: Hooked /lua/ui/game/gamemain.lua with /mods/supreme economy 2.2.v0002/supremeeconomy/hook/lua/ui/game/gamemain.lua
info: Hooked /lua/ui/game/gamemain.lua with /mods/supremescoreboard/hook/lua/ui/game/gamemain.lua
info: Hooked /lua/ui/game/gamemain.lua with /mods/[e] please/hook/lua/ui/game/gamemain.lua
info: Hooked /lua/ui/game/gamemain.lua with /mods/common mod tools.v0001/common/hook/lua/ui/game/gamemain.lua
debug: Loading module '\000/mods/supremeeconomy/modules/mciallunits.lua\000'
warning: Unable to find file /mods/supremeeconomy/modules/mciallunits.lua
warning: stack traceback:
warning: [C]: in function `doscript'
warning: [C]: in function `pcall'
warning: ...alliance\gamedata\mohodata.scd\lua\system\import.lua(48): in function `import'
warning: ...alliance\gamedata\mohodata.scd\lua\system\import.lua(37): in function `import'
warning: ...\faforever\gamedata\lua.nx2\lua\ui\game\gamemain.lua(1005): in main chunk
warning: [C]: in function `doscript'
warning: [C]: in function `pcall'
warning: ...alliance\gamedata\mohodata.scd\lua\system\import.lua(48): in function `import'
warning: ...alliance\gamedata\mohodata.scd\lua\system\import.lua(37): Error importing '/mods/supremeeconomy/modules/mciallunits.lua'
warning: stack traceback:
warning: [C]: in function `error'
warning: ...alliance\gamedata\mohodata.scd\lua\system\import.lua(52): in function `import'
warning: ...alliance\gamedata\mohodata.scd\lua\system\import.lua(37): in function `import'
warning: ...\faforever\gamedata\lua.nx2\lua\ui\game\gamemain.lua(1005): in main chunk
warning: [C]: in function `doscript'
warning: [C]: in function `pcall'
warning: ...alliance\gamedata\mohodata.scd\lua\system\import.lua(48): in function `import'
warning: Error importing /lua/ui/game/gamemain.lua:
Error importing '/lua/ui/game/gamemain.lua'
stack traceback:
[C]: in function `error'
...alliance\gamedata\mohodata.scd\lua\system\import.lua(52): in function `import'
warning: Error running '/lua/ui/game/gamemain.lua:OnBeat': attempt to index a nil value
stack traceback:
Statistics: Posted by Wizek — 03 Aug 2019, 15:26
Statistics: Posted by Morax — 02 Feb 2018, 22:12
Statistics: Posted by nine2 — 13 May 2016, 00:42
Statistics: Posted by watermelon — 17 Jan 2016, 11:44
Statistics: Posted by IceDreamer — 03 Jan 2016, 11:56
econData = unit:GetEconData()
...
local blueprint = unitToGetDataFrom:GetBlueprint()
-- econData.energyConsumed generally has more significant figures than econData.massConsumed
-- so here we use energyConsumed to work out a more precise massConsumed
local energyAdjusted = 0.5+econData.energyConsumed
local massAdjusted = 0.5+econData.massConsumed
local candidateMassCosts = { }
candidateMassCosts["upkeep"] = 0
candidateMassCosts["unit"] = energyAdjusted*blueprint.Economy.BuildCostMass/blueprint.Economy.BuildCostEnergy
if blueprint.Enhancements then
for k,v in pairs(blueprint.Enhancements) do
if v.BuildCostEnergy > 0 then
candidateMassCosts[k] = energyAdjusted*v.BuildCostMass/v.BuildCostEnergy
end
end
end
local bestFitDesc = false
local bestFitMass = false
for k,v in pairs(candidateMassCosts) do
if (not bestFitMass) or math.abs(v-massAdjusted) < math.abs(bestFitMass-massAdjusted) then
bestFitDesc = k
bestFitMass = v
end
end
if bestFitMass then
econData = { energyConsumed=energyAdjusted, massConsumed=bestFitMass }
end
Statistics: Posted by Axle — 03 Jan 2016, 09:43