Useful batch lua unitdef editor which has been around for a long time yet noone has explained how to use it. Licho made it so I don't know anything technical, I will just explain how I use it.
To do a batch edit 1. Start CaEdit.exe in /bin 2. Click "Mod" -> "Load", browse to select .sdd folder of required mod and click load. 3. Load a procedure 4. Click execute 5. "Mod" -> "Save"
Note that when saving it will use a certain format, not necessarily the one you had originally.
Procedures are placed in /Procedures and are simple lua scripts. There are plenty of procedures in that folder already so anyone who knows a bit of lua should be able to learn the commands and make their scripts.
Many of the examples have doPreviewOnly. For the batch edit to change anything doPreviewOnly needs to be false.
Thanks, i got it. Apparently i had to click 'View raw file' to download.
The tool doesn't work well with my mod, though. I like to put my units in sub folders named after their faction. Spring still finds them. But it seems the mod editor doesn't. Not sure if I should sacrifice my personal tidiness preferences and ensuing oversight.
(edit: Also not sure why the post attempting to answer my question is gone. Kinda makes me look like I'm talking to my self.)
Users browsing this forum: No registered users and 0 guests
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum