I have made a couple of mods throughout the years, and I have reused some triggers by copying+pasting them between files. It has always worked fine.
I started a new mod about 6 months ago that I have been working on up to this day. Now when I copy+paste triggers into this mod file, they refuse to work ingame.
The triggers themselves work perfectly fine in old mod files, when I test them with test maps. The triggers also work perfectly fine when I add them directly into a new test map, without using any mod file.
But when I copy+paste triggers into this current mod file and try the mod file in a test map, no trigger at all works ingame... : /
Any idea what the problem might be? Has there been some change in the trigger editor that I am unaware of? O_o
Nope, no error messages.. It is the same problem if I create new super simple triggers... They never work when I save them in the mod file, but work fine when I create them directly in the test map : (
Oh, yeah, of course. You need to add the library to (Basic) UI: Trigger Libraries + in Default SC2 Gameplay Settings (under 'Edit Advanced Game Data' --> 'Gameplay Data' in the data module). Leave the 'Include Path' blank.
It's supposed to automatically do this for you if you check the option 'Auto Load Library In Game' in the 'Change Library ID' dialog, but I believe it's buggy and doesn't always work.
I will update the answer how to get triggers working in the Mod for Maps as I recently needed to do that:
Thanks to Rommper on Discord for the screenshots and explaining how it works:
1. Import Library or copy+paste Library or paste/create triggers within the Mod in a New Library.
Make sure they are not Internal, else, you won't see them listed in the triggers when you open the map that uses the mod.
2. Create a trigger within your Mod's custom library that runs any trigger you have in that library, can be a harmless or bogus trigger run. (library 1 image)
3. Create a trigger in every map that will use the mod in which you run the trigger you created in the Mod's library. That should make your library work in game, not having the triggers internal should make them visible in maps. (images library2 and library3)
I have made a couple of mods throughout the years, and I have reused some triggers by copying+pasting them between files. It has always worked fine.
I started a new mod about 6 months ago that I have been working on up to this day. Now when I copy+paste triggers into this mod file, they refuse to work ingame.
The triggers themselves work perfectly fine in old mod files, when I test them with test maps. The triggers also work perfectly fine when I add them directly into a new test map, without using any mod file.
But when I copy+paste triggers into this current mod file and try the mod file in a test map, no trigger at all works ingame... : /
Any idea what the problem might be? Has there been some change in the trigger editor that I am unaware of? O_o
Are there any error messages in the editor or during a test game?
Nope, no error messages.. It is the same problem if I create new super simple triggers... They never work when I save them in the mod file, but work fine when I create them directly in the test map : (
Oh, yeah, of course. You need to add the library to (Basic) UI: Trigger Libraries + in Default SC2 Gameplay Settings (under 'Edit Advanced Game Data' --> 'Gameplay Data' in the data module). Leave the 'Include Path' blank.
It's supposed to automatically do this for you if you check the option 'Auto Load Library In Game' in the 'Change Library ID' dialog, but I believe it's buggy and doesn't always work.
Thanks, I will try it!
I will update the answer how to get triggers working in the Mod for Maps as I recently needed to do that:
Thanks to Rommper on Discord for the screenshots and explaining how it works:
1. Import Library or copy+paste Library or paste/create triggers within the Mod in a New Library.
Make sure they are not Internal, else, you won't see them listed in the triggers when you open the map that uses the mod.
2. Create a trigger within your Mod's custom library that runs any trigger you have in that library, can be a harmless or bogus trigger run. (library 1 image)
3. Create a trigger in every map that will use the mod in which you run the trigger you created in the Mod's library. That should make your library work in game, not having the triggers internal should make them visible in maps. (images library2 and library3)
Great! Thanks!