Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

luaerror in unit_proximity_targetting #4704

Closed
Arch-Shaman opened this issue May 30, 2022 · 4 comments · Fixed by #4716
Closed

luaerror in unit_proximity_targetting #4704

Arch-Shaman opened this issue May 30, 2022 · 4 comments · Fixed by #4716

Comments

@Arch-Shaman
Copy link
Contributor

[t=00:32:35.715537][f=0063510] [Game::ClientReadNet][LOGMSG] sender="hoaqhieu08" string="[Internal Lua error: Call failure] [string "LuaRules/Gadgets/unit_proximity_targetting...."]:55: attempt to perform arithmetic on local 'x2' (a nil value)
stack traceback:
[string "LuaRules/Gadgets/unit_proximity_targetting...."]:55: in function 'DistanceSq'
[string "LuaRules/Gadgets/unit_proximity_targetting...."]:79: in function 'GetTargetToClosest'
[string "LuaRules/Gadgets/unit_proximity_targetting...."]:122: in function 'funcToApply'
[string "LuaRules/Gadgets/Include/IterableMap.lua"]:131: in function 'Apply'
[string "LuaRules/Gadgets/unit_proximity_targetting...."]:169: in function 'GameFrame'
[string "LuaRules/gadgets.lua"]:967: in function <[string "LuaRules/gadgets.lua"]:965>
(tail call): ?"

See: https://zero-k.info/Battles/Detail/1376633 (I believe this is related to the recent starlight targeting pr)

@danfireman
Copy link
Contributor

So there's a unit which is in line of sight but has a nil position coordinate? 🤯

@johnsonjsyuen
Copy link

image

@mushroomraider
Copy link

here is the error from my log:

[t=02:28:47.772173][f=0046596] [Game::ClientReadNet][LOGMSG] sender="Xamoguitar" string="[Internal Lua error: Call failure] [string "LuaRules/Gadgets/unit_proximity_targetting...."]:55: attempt to perform arithmetic on local 'x2' (a nil value)
stack traceback:
[string "LuaRules/Gadgets/unit_proximity_targetting...."]:55: in function 'DistanceSq'
[string "LuaRules/Gadgets/unit_proximity_targetting...."]:79: in function 'GetTargetToClosest'
[string "LuaRules/Gadgets/unit_proximity_targetting...."]:122: in function 'funcToApply'
[string "LuaRules/Gadgets/Include/IterableMap.lua"]:131: in function 'Apply'
[string "LuaRules/Gadgets/unit_proximity_targetting...."]:169: in function 'GameFrame'
[string "LuaRules/gadgets.lua"]:967: in function <[string "LuaRules/gadgets.lua"]:965>

@danfireman
Copy link
Contributor

The error occurs around 35:13 when the starlight reaches a random force fire point:
image

I suspect this bertha on the plains to be the culprit instead:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants