Statistics: Posted by nine2 — 05 Dec 2017, 20:56
Statistics: Posted by Franck83 — 19 Nov 2017, 17:57
Statistics: Posted by crispweed — 19 Nov 2017, 17:51
import("/lua/lazyvar.lua").ExtendedErrorMessages = true
Statistics: Posted by crispweed — 19 Nov 2017, 17:34
Statistics: Posted by JJ173 — 15 Nov 2017, 13:31
Statistics: Posted by nine2 — 15 Nov 2017, 10:15
Statistics: Posted by Myxir — 13 Nov 2017, 20:43
Statistics: Posted by crispweed — 13 Nov 2017, 20:38
Statistics: Posted by crispweed — 13 Nov 2017, 20:30
Statistics: Posted by Myxir — 13 Nov 2017, 20:14
WARNING: Evaluating LazyVar failed: error evaluating lazy variable: ... alliance\gamedata\mohodata.scd\lua\maui\control.lua(37): error evaluating lazy variable: ... alliance\gamedata\mohodata.scd\lua\maui\control.lua(35): circular dependency in lazy evaluation for variable set from:
stack traceback:
...orged alliance\gamedata\mohodata.scd\lua\lazyvar.lua(64): in function `SetFunction'
...orged alliance\gamedata\mohodata.scd\lua\lazyvar.lua(95): in function `Set'
... alliance\gamedata\mohodata.scd\lua\maui\control.lua(37): in function `ResetLayout'
...d alliance\gamedata\mohodata.scd\lua\maui\bitmap.lua(68): in function `ResetLayout'
... alliance\gamedata\mohodata.scd\lua\maui\control.lua(43): in function `OnInit'
...d alliance\gamedata\mohodata.scd\lua\maui\bitmap.lua(74): in function <...d alliance\gamedata\mohodata.scd\lua\maui\bitmap.lua:73>
[C]: in function `InternalCreateBitmap'
...d alliance\gamedata\mohodata.scd\lua\maui\bitmap.lua(35): in function `initfn'
...data\faforever\gamedata\lua.nx2\lua\system\class.lua(258): in function <...data\faforever\gamedata\lua.nx2\lua\system\class.lua:246>
...ommander forged alliance\mods\adornmenttest\main.lua(9): in function `CreateOverlay'
...ommander forged alliance\mods\adornmenttest\main.lua(34): in function `ToggleFor'
...ommander forged alliance\mods\adornmenttest\main.lua(44): in function `ToggleForSelection'
[string "import("/mods/AdornmentTest/main.lua").Togg..."](1): in main chunk
[C]: in function `ConExecuteSave'
...alliance\gamedata\lua.scd\lua\ui\dialogs\console.lua(159): in function <...alliance\gamedata\lua.scd\lua\ui\dialogs\console.lua:158>
stack traceback:
[C]: in function `error'
...orged alliance\gamedata\mohodata.scd\lua\lazyvar.lua(21): in function `Bottom'
... alliance\gamedata\mohodata.scd\lua\maui\control.lua(35): in function <... alliance\gamedata\mohodata.scd\lua\maui\control.lua:35>
[C]: in function `pcall'
...orged alliance\gamedata\mohodata.scd\lua\lazyvar.lua(31): in function `Top'
... alliance\gamedata\mohodata.scd\lua\maui\control.lua(37): in function <... alliance\gamedata\mohodata.scd\lua\maui\control.lua:37>
[C]: in function `pcall'
...orged alliance\gamedata\mohodata.scd\lua\lazyvar.lua(31): in function <...orged alliance\gamedata\mohodata.scd\lua\lazyvar.lua:18>
Stack trace from definition: set from:
stack traceback:
...orged alliance\gamedata\mohodata.scd\lua\lazyvar.lua(64): in function `SetFunction'
...orged alliance\gamedata\mohodata.scd\lua\lazyvar.lua(95): in function `Set'
... alliance\gamedata\mohodata.scd\lua\maui\control.lua(35): in function `ResetLayout'
...d alliance\gamedata\mohodata.scd\lua\maui\bitmap.lua(68): in function `ResetLayout'
... alliance\gamedata\mohodata.scd\lua\maui\control.lua(43): in function `OnInit'
...d alliance\gamedata\mohodata.scd\lua\maui\bitmap.lua(74): in function <...d alliance\gamedata\mohodata.scd\lua\maui\bitmap.lua:73>
[C]: in function `InternalCreateBitmap'
...d alliance\gamedata\mohodata.scd\lua\maui\bitmap.lua(35): in function `initfn'
...data\faforever\gamedata\lua.nx2\lua\system\class.lua(258): in function <...data\faforever\gamedata\lua.nx2\lua\system\class.lua:246>
...ommander forged alliance\mods\adornmenttest\main.lua(9): in function `CreateOverlay'
...ommander forged alliance\mods\adornmenttest\main.lua(34): in function `ToggleFor'
...ommander forged alliance\mods\adornmenttest\main.lua(44): in function `ToggleForSelection'
[string "import("/mods/AdornmentTest/main.lua").Togg..."](1): in main chunk
[C]: in function `ConExecuteSave'
...alliance\gamedata\lua.scd\lua\ui\dialogs\console.lua(159): in function <...alliance\gamedata\lua.scd\lua\ui\dialogs\console.lua:158>
stack traceback:
[C]: in function `error'
...orged alliance\gamedata\mohodata.scd\lua\lazyvar.lua(37): in function `Top'
... alliance\gamedata\mohodata.scd\lua\maui\control.lua(37): in function <... alliance\gamedata\mohodata.scd\lua\maui\control.lua:37>
[C]: in function `pcall'
...orged alliance\gamedata\mohodata.scd\lua\lazyvar.lua(31): in function <...orged alliance\gamedata\mohodata.scd\lua\lazyvar.lua:18>
Stack trace from definition: set from:
stack traceback:
...orged alliance\gamedata\mohodata.scd\lua\lazyvar.lua(64): in function `SetFunction'
...orged alliance\gamedata\mohodata.scd\lua\lazyvar.lua(95): in function `Set'
... alliance\gamedata\mohodata.scd\lua\maui\control.lua(37): in function `ResetLayout'
...d alliance\gamedata\mohodata.scd\lua\maui\bitmap.lua(68): in function `ResetLayout'
... alliance\gamedata\mohodata.scd\lua\maui\control.lua(43): in function `OnInit'
...d alliance\gamedata\mohodata.scd\lua\maui\bitmap.lua(74): in function <...d alliance\gamedata\mohodata.scd\lua\maui\bitmap.lua:73>
[C]: in function `InternalCreateBitmap'
...d alliance\gamedata\mohodata.scd\lua\maui\bitmap.lua(35): in function `initfn'
...data\faforever\gamedata\lua.nx2\lua\system\class.lua(258): in function <...data\faforever\gamedata\lua.nx2\lua\system\class.lua:246>
...ommander forged alliance\mods\adornmenttest\main.lua(9): in function `CreateOverlay'
...ommander forged alliance\mods\adornmenttest\main.lua(34): in function `ToggleFor'
...ommander forged alliance\mods\adornmenttest\main.lua(44): in function `ToggleForSelection'
[string "import("/mods/AdornmentTest/main.lua").Togg..."](1): in main chunk
[C]: in function `ConExecuteSave'
...alliance\gamedata\lua.scd\lua\ui\dialogs\console.lua(159): in function <...alliance\gamedata\lua.scd\lua\ui\dialogs\console.lua:158>
stack traceback:
[C]: in function `error'
...orged alliance\gamedata\mohodata.scd\lua\lazyvar.lua(37): in function <...orged alliance\gamedata\mohodata.scd\
Statistics: Posted by crispweed — 13 Nov 2017, 20:14
local LayoutHelpers = import('/lua/maui/layouthelpers.lua')
local Bitmap = import('/lua/maui/bitmap.lua').Bitmap
local overlays = {}
function CreateOverlay(unit)
local overlay = Bitmap(GetFrame(0))
overlay:SetTexture('/mods/SelectionHelper/textures/busy.dds', 0)
overlay.Width:Set(26)
overlay.Height:Set(26)
overlay:SetNeedsFrameUpdate(true)
overlay.OnFrame = function(self, delta)
if not (overlay.Width() == 26) then
LOG("overlay width is:", overlay.Width())
end
if unit:IsDead() then
local id = unit:GetEntityId()
overlays[id] = nil
overlay:Destroy()
else
local worldView = import('/lua/ui/game/worldview.lua').viewLeft
local pos = worldView:Project(unit:GetPosition())
LayoutHelpers.AtLeftTopIn(overlay, worldView, pos.x - overlay.Width() / 2, pos.y - overlay.Height() - 9)
end
end
return overlay
end
function ToggleFor(u)
local id = u:GetEntityId()
if overlays[id] == nil then
overlays[id] = CreateOverlay(u)
else
overlays[id]:Destroy()
overlays[id] = nil
end
end
function ToggleForSelection()
for _, u in GetSelectedUnits() or {} do
ToggleFor(u)
end
end
WARNING: Evaluating LazyVar failed: error evaluating lazy variable: ... alliance\gamedata\mohodata.scd\lua\maui\control.lua(37): error evaluating lazy variable: ... alliance\gamedata\mohodata.scd\lua\maui\control.lua(35): circular dependency in lazy evaluation for variable [Set lazyvar.ExtendedErrorMessages for extra trace info]
stack traceback:
[C]: in function `error'
...orged alliance\gamedata\mohodata.scd\lua\lazyvar.lua(21): in function `Bottom'
... alliance\gamedata\mohodata.scd\lua\maui\control.lua(35): in function <... alliance\gamedata\mohodata.scd\lua\maui\control.lua:35>
[C]: in function `pcall'
...orged alliance\gamedata\mohodata.scd\lua\lazyvar.lua(31): in function `Top'
... alliance\gamedata\mohodata.scd\lua\maui\control.lua(37): in function <... alliance\gamedata\mohodata.scd\lua\maui\control.lua:37>
[C]: in function `pcall'
...orged alliance\gamedata\mohodata.scd\lua\lazyvar.lua(31): in function <...orged alliance\gamedata\mohodata.scd\lua\lazyvar.lua:18>
Stack trace from definition: [Set lazyvar.ExtendedErrorMessages for extra trace info]
stack traceback:
[C]: in function `error'
...orged alliance\gamedata\mohodata.scd\lua\lazyvar.lua(37): in function `Top'
... alliance\gamedata\mohodata.scd\lua\maui\control.lua(37): in function <... alliance\gamedata\mohodata.scd\lua\maui\control.lua:37>
[C]: in function `pcall'
...orged alliance\gamedata\mohodata.scd\lua\lazyvar.lua(31): in function <...orged alliance\gamedata\mohodata.scd\lua\lazyvar.lua:18>
Stack trace from definition: [Set lazyvar.ExtendedErrorMessages for extra trace info]
stack traceback:
[C]: in function `error'
...orged alliance\gamedata\mohodata.scd\lua\lazyvar.lua(37): in function <...orged alliance\gamedata\mohodata.scd\lua\lazyvar.lua:18>
UI_Lua import("/mods/AdornmentTest/main.lua").ToggleForSelection()
Statistics: Posted by crispweed — 13 Nov 2017, 19:57