reepblue Posted July 5 Posted July 5 I'm noticing that the editor will take the liberty and clear json files on the stock components as they don't have their variables commented. The editor has made me have to redo a few scripts. I was under the impression that the editor would leave these alone if autogenerated was false or not defined. I'd like to be able to turn this off if possible. 1 Quote Cyclone - Ultra Game System - Component Preprocessor - Tex2TGA - Darkness Awaits Template (Leadwerks) If you like my work, consider supporting me on Patreon!
Dreikblack Posted July 5 Posted July 5 Same, auto gen is just making extra files that i don't need and messes my files sometimes Quote Check out Slipgate Tactics demo, which is made with Ultra Engine/Leadwerks 5: https://www.leadwerks.com/community/topic/61480-slipgate-tactics-demo/
Josh Posted July 5 Posted July 5 If the JSON file contains the value "autogenerated" and it is set to true, the editor will automatically update and overwrite these files whenever the code file changes. You can remove this value or set it to false, but the auto-generation of the component properties will no longer work. 5 hours ago, Dreikblack said: Same, auto gen is just making extra files that i don't need and messes my files sometimes The editor loads the properties the component uses from the JSON files. Quote Let's build cool stuff and have fun.
Dreikblack Posted July 5 Posted July 5 19 minutes ago, Josh said: The editor loads the properties the component uses from the JSON files. Not all components are used it in the Editor. Some of them only via game code. Quote Check out Slipgate Tactics demo, which is made with Ultra Engine/Leadwerks 5: https://www.leadwerks.com/community/topic/61480-slipgate-tactics-demo/
Josh Posted July 5 Posted July 5 9 minutes ago, Dreikblack said: Not all components are used it in the Editor. Some of them only via game code. You can control which ones get exposed with the comments you add: https://www.leadwerks.com/learn/components Quote Let's build cool stuff and have fun.
reepblue Posted July 5 Author Posted July 5 It will still generate a json file like so. { "autogenerated": true, "component": { "inputs": {} , "outputs": {} , "properties": {} } } 1 Quote Cyclone - Ultra Game System - Component Preprocessor - Tex2TGA - Darkness Awaits Template (Leadwerks) If you like my work, consider supporting me on Patreon!
Josh Posted July 15 Posted July 15 On 7/5/2025 at 9:48 AM, reepblue said: It will still generate a json file like so. { "autogenerated": true, "component": { "inputs": {} , "outputs": {} , "properties": {} } } Was the JSON file missing when this was created? If the file does not already exist, then this is the correct behavior. Quote Let's build cool stuff and have fun.
Solution Josh Posted July 27 Solution Posted July 27 CLosing due to lack of response... Quote Let's build cool stuff and have fun.
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.