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

Add optional includes to aid modding

Open GoogleFrog opened this issue 6 years ago • 3 comments

For example, unitsdefs_posts could include a file that mutators can include so that modders can use unitsdefs_posts without overriding the base ZK version (risking mod breakage if ZK updates unitdefs_posts). There are probably more things to do, but I cannot think of them at the moment.

GoogleFrog avatar Oct 14 '20 05:10 GoogleFrog

Support for mod-side weapondefs_mod and explosions_mod files was added in #4526.

CarabusX avatar Oct 05 '21 23:10 CarabusX

This issue asks for optional files that let mods add definition changes. c46a5f277 completes the unit definition hook; 0eb953f65 adds weapon and explosion hooks. No test was run; this is from the code and history. This looks resolved; it can be closed if the reporter agrees.

Found with help from OpenAI Codex and Claude Code.

moss-orbit-9f339e avatar Oct 23 '26 18:10 moss-orbit-9f339e

Sometime along the way we have discovered that it would be good to have folders with snippets rather than a single mod_posts file, so that multiple mutators can add their own hooks simultaneously. It might have been written into another ticket though.

sprunk avatar Oct 23 '26 23:10 sprunk