Forged Alliance Forever Forged Alliance Forever Forums 2020-01-25T21:47:32+02:00 /feed.php?f=45&t=11391 2020-01-25T21:47:32+02:00 2020-01-25T21:47:32+02:00 /viewtopic.php?t=11391&p=181504#p181504 <![CDATA[Re: Supreme Economy]]> If any of your units were unselectable, such as the BrewLAN shield drones, Supreme Economy would reset your command mode every ~3 seconds making it hard to build new units and order your existing ones.
I've tried to test this new version under various mod configurations to make sure it all works, but if you have any crashes or issues please let me know here or on discord.

Statistics: Posted by BlueAmulet — 25 Jan 2020, 21:47


]]>
2019-08-03T15:26:23+02:00 2019-08-03T15:26:23+02:00 /viewtopic.php?t=11391&p=177085#p177085 <![CDATA[Re: Supreme Economy]]>
E.g.

Code:
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


]]>
2018-02-03T00:40:23+02:00 2018-02-03T00:40:23+02:00 /viewtopic.php?t=11391&p=160320#p160320 <![CDATA[Re: Supreme Economy]]> Statistics: Posted by Morax — 03 Feb 2018, 00:40


]]>
2018-02-02T22:12:37+02:00 2018-02-02T22:12:37+02:00 /viewtopic.php?t=11391&p=160314#p160314 <![CDATA[Re: Supreme Economy]]>
JoonasTo wrote:
What do you mean with reviving exactly? I've been using it to this day and it still works.


Please tell me what to search in mod vault and you win the prize

Statistics: Posted by Morax — 02 Feb 2018, 22:12


]]>
2018-02-02T07:40:01+02:00 2018-02-02T07:40:01+02:00 /viewtopic.php?t=11391&p=160283#p160283 <![CDATA[Re: Supreme Economy]]> Statistics: Posted by JoonasTo — 02 Feb 2018, 07:40


]]>
2018-02-02T00:46:18+02:00 2018-02-02T00:46:18+02:00 /viewtopic.php?t=11391&p=160272#p160272 <![CDATA[Re: Supreme Economy]]> Statistics: Posted by Morax — 02 Feb 2018, 00:46


]]>
2016-05-13T00:42:51+02:00 2016-05-13T00:42:51+02:00 /viewtopic.php?t=11391&p=126785#p126785 <![CDATA[Re: Supreme Economy]]> viewtopic.php?f=41&t=9776&p=126783#p126782

Statistics: Posted by nine2 — 13 May 2016, 00:42


]]>
2016-01-17T23:04:42+02:00 2016-01-17T23:04:42+02:00 /viewtopic.php?t=11391&p=117887#p117887 <![CDATA[Re: Supreme Economy]]> Statistics: Posted by nine2 — 17 Jan 2016, 23:04


]]>
2016-01-17T11:44:55+02:00 2016-01-17T11:44:55+02:00 /viewtopic.php?t=11391&p=117866#p117866 <![CDATA[Re: Supreme Economy]]>
Anihilnine wrote:
2.1 (nolag) is working today and in the mod vault.

It says "Uploaded 2014-04-13"? Or does the upload date not adjust when mods are updated?

Statistics: Posted by watermelon — 17 Jan 2016, 11:44


]]>
2016-01-16T16:45:05+02:00 2016-01-16T16:45:05+02:00 /viewtopic.php?t=11391&p=117836#p117836 <![CDATA[Re: Supreme Economy]]> Statistics: Posted by nine2 — 16 Jan 2016, 16:45


]]>
2016-01-16T15:34:55+02:00 2016-01-16T15:34:55+02:00 /viewtopic.php?t=11391&p=117832#p117832 <![CDATA[Re: Supreme Economy]]> Statistics: Posted by Saxxon — 16 Jan 2016, 15:34


]]>
2016-01-03T14:00:19+02:00 2016-01-03T14:00:19+02:00 /viewtopic.php?t=11391&p=116941#p116941 <![CDATA[Re: Supreme Economy]]> Statistics: Posted by nine2 — 03 Jan 2016, 14:00


]]>
2016-01-03T11:56:31+02:00 2016-01-03T11:56:31+02:00 /viewtopic.php?t=11391&p=116934#p116934 <![CDATA[Re: Supreme Economy]]>

Statistics: Posted by IceDreamer — 03 Jan 2016, 11:56


]]>
2016-01-03T10:56:08+02:00 2016-01-03T10:56:08+02:00 /viewtopic.php?t=11391&p=116932#p116932 <![CDATA[Re: Supreme Economy]]> Statistics: Posted by nine2 — 03 Jan 2016, 10:56


]]>
2016-01-03T09:43:00+02:00 2016-01-03T09:43:00+02:00 /viewtopic.php?t=11391&p=116931#p116931 <![CDATA[Re: Supreme Economy]]>
The solution that I came up with is actually a UI-only work-around (its still not 100% accurate, but it does improve accuracy significantly). Basically the approach is to work out mass consumption by looking at energy consumption. It only gets a little hairy when you consider eg ACU upgrades and radar energy consumption. But I believe I've got it working reasonably. I want to test it a bit longer before I upload a patched version though. Anyway, relevant code below in case you're interested.

Thanks for that information about v2.1. I did noticed yesterday that I had some intolerable UI lag with the EM edition when I put it on +10 speed. I did a diff on the v2.1 and the EM edition. It looks like v2.1 is retrieving unit data a bit differently (presumably to reduce lag), whereas the EM edition looks like someone has changed it to use the Common Mod tools to retrieve unit data.

I'm looking forward to seeing your competitor mod, hopefully I can ditch Supreme Economy and use yours instead when its released! :)

Code:
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


]]>