Zero-K icon indicating copy to clipboard operation
Zero-K copied to clipboard

Technical junk commanders cause luarules errors

Open GoogleFrog opened this issue 11 months ago • 1 comments

image

A bunch of stuff crashes because a spawned clonedef commander (dyncommbla5_1001 etc) has the custom params of a commander, but lacks the unit rules params it would get from being created by the dynamic commander gadget. They don't even know which weapons they are supposed to be able to fire.

Someone made a bug report with such a commander, so they should be removed from the technical junk menu. Their creation could also be disallowed via AllowUnitCreation in the dynamic commander gadget.

GoogleFrog avatar Jan 05 '25 23:01 GoogleFrog

If disallowing them via AllowUnitCreation don't forget to let rez and zombies through. Perhaps the dynamic comm gadget needs to handle those cases anyway due to #5140.

sprunk avatar Jan 05 '25 23:01 sprunk