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

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

Discuss Lua based Spring scripts (LuaUI widgets, mission scripts, gaia scripts, mod-rules scripts, scripted keybindings, etc...)

Moderator: Moderators

Post Reply
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

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

Post 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?
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

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

Post 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.
User avatar
PicassoCT
Journeywar Developer & Mapper
Posts: 10450
Joined: 24 Jan 2006, 21:12

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

Post 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.
Post Reply

Return to “Lua Scripts”