Page 1 of 1

CUS... It's been months and months guys... Come on.

Posted: 19 Jul 2016, 22:04
by Forboding Angel
https://github.com/jk3064/Custom-Unit-S ... /issues/10

Giant bunch of errors thrown on ActiveMaterial/spActivateMaterial in spring 103.0

Code: Select all

stack traceback:
	[string "luarules/utilities/unitrendering.lua"]:65: in function 'ActivateMaterial'
	[string "luarules/utilities/unitrendering.lua"]:122: in function 'spActivateMaterial'
	[string "LuaRules/Gadgets/api_custom_unit_shaders.lu..."]:436: in function 'ObjectFinished'
	[string "LuaRules/Gadgets/api_custom_unit_shaders.lu..."]:460: in function 'FeatureCreated'
	[string "LuaRules/Gadgets/api_custom_unit_shaders.lu..."]:532: in function 'GameFrame'
	[string "LuaRules/Gadgets/hotfixes.lua"]:32: in function <[string "LuaRules/Gadgets/hotfixes.lua"]:29>
	(tail call): ?
[f=0003580] Error: LuaRules::RunCallIn: error = 2, GameFrame, [Internal Lua error: Call failure] [string "luarules/utilities/unitrendering.lua"]:65: attempt to index local 'activeMats' (a boolean value)

This causes teamcolor to not be rendered:
Teamcolor is orange: https://i.imgur.com/JLwgtlN.png

Apparently JK has zero interest in ever fixing it, so perhaps someone here could help?

Re: CUS... It's been months and months guys... Come on.

Posted: 20 Jul 2016, 03:17
by Forboding Angel
FWIW, in evo I cobbled together a fix.It throws some warnings on init, but everything works properly, which is a step in the right direction. I would like to see a proper fix. It looks like zk/bar may have already fixed it, but didn't commit changes upstream, which is very frustrating.

Re: CUS... It's been months and months guys... Come on.

Posted: 20 Jul 2016, 19:18
by PicassoCT
I agree - the whole JK-Api is horrifically broken.
If i do call it in lua with jk.DoWork(Task, RantString) i get Nil or even a function does not exist.