So the behaviors tab was hidden deep under the + . Your screenshot revealed that there is such a thing. But yes i could use that to increase resources to 90000 or more.
It doesn't solve the problem though that triggers aren't working at all. I don't really care if it's a trigger that sets all minerals to 1 or create 1 mutalisk above one or all of the players start locations, any signs that triggers work in mods would be welcome. A "Hello world!" example. The topic isn't only about setting amount of resources.
I doublechecked that "Disable trigger preloading" is not enabled.
In data their max resources are on a behavior that's on the unit. Not on the unit itself.
I did suspect that but i still don't know how to dig up the behavior details. I tried it too earlier.
And it doesn't answer the other question on why triggers of any sort aren't working with mods. Or if you know of a single one that works, let me see and try it.
Feel free to test. This is super simple trigger, and it works in the map (not as mod). Also note that after 2 seconds the trigger will be destroyed by other trigger to not cause performance issues during game:
Resource_Enters
Events
Unit -Any Unit Enters (Entire map)
Local Variables
Conditions
Or
Conditions
(Unit type of (Triggering unit)) == Mineral Field
(Unit type of (Triggering unit)) == Mineral Field (900)
(Unit type of (Triggering unit)) == Rich Mineral Field
(Unit type of (Triggering unit)) == Rich Mineral Field (900)
(Unit type of (Triggering unit)) == Vespene Geyser
(Unit type of (Triggering unit)) == Rich Vespene Geyser
Actions
Unit -Set (Triggering unit) Resources to 10000.0
I don't think my triggers are loading at all. I tried even the UI - Error Message, but nothing showed up, and i also did changes you suggested with Unit Enters event.
For zombies script i tried adding Game attributes, with idea being that i wanted to make sure there is a player 15. That turned out quite different, now in start loggy every player and AI had zombies attribute to them... That doesn't mean anything, other than that game does load "something" about my mod, or everything else but triggers.
I mean how about just something simple that shows a text on screen? I'm using wrong command for that too or it's disabled for mods... I don't get it, why would they go as far as disable mod features, when they allow drastic unit changes like making zerglings unkillable.
I didn't edit anything in data editor, they should be defaults. The 524287 was maximum that the trigger editor allowed me to type. I tested it in the custom map, using the test document from SC2 editor. Not sure if it's ingame feature now, but i wasn't able to see how much minerals was left in the field. I forfeit and watched replay and then i saw the modded value was applied right, also to vespene.
I can't find any data about mineral fields or vespene default or max values. They have max and starting life 10000 but i don't think that's the value we are looking for, and it's invulnerable anyway. Minerals generally start at around 1500 or so.
I hope that explains. Either that or you have hit a maximum as described by Imposter.
Also, did you enable triggers for your mod?
How do i enable triggers? They are only enabled as shown in the screenshot. In the Mod Properties window i have "Disable Trigger Preloading" not toggled. I don't have a clue what it means, but my mod has to load only after game is ready to be played, not pre-anything.
Title ^, and i can't figure out why that is. I'm tired of making minor changes, publishing to SC2 and test in melee that none of the mineral fields are affected. I am able to select my mod when starting the game, and version number matches the published one. When i add the same library to some other custom made map, it works well. But that's obviously not a solution, i want it to work as mod in all maps, not just that 1.
I have other trigger library i want to add as well, not looking to change this from data behaviors or something.
And first thing i thought was that i'm comparing specifically "Mineral Field" object, when it's possible that map has them customized under other internal name. But that doesn't explain why my Zombie script didn't work either, when it doesn't rely on any specific value from map. Just revives units based on unit data it gets in the death event, which also works in custom map, not as mod.
So the behaviors tab was hidden deep under the + . Your screenshot revealed that there is such a thing. But yes i could use that to increase resources to 90000 or more.
It doesn't solve the problem though that triggers aren't working at all. I don't really care if it's a trigger that sets all minerals to 1 or create 1 mutalisk above one or all of the players start locations, any signs that triggers work in mods would be welcome. A "Hello world!" example. The topic isn't only about setting amount of resources.
I doublechecked that "Disable trigger preloading" is not enabled.
It has to be something else wrong, something basic maybe... Here's just to show that it still works in custom saved map:
Also the map file with scripts included:
https://www.dropbox.com/s/gcnvfw9h5eat6e1/HighPlates_test.zip?dl=0
Feel free to test. This is super simple trigger, and it works in the map (not as mod). Also note that after 2 seconds the trigger will be destroyed by other trigger to not cause performance issues during game:
I don't think my triggers are loading at all. I tried even the UI - Error Message, but nothing showed up, and i also did changes you suggested with Unit Enters event.
For zombies script i tried adding Game attributes, with idea being that i wanted to make sure there is a player 15. That turned out quite different, now in start loggy every player and AI had zombies attribute to them... That doesn't mean anything, other than that game does load "something" about my mod, or everything else but triggers.
I mean how about just something simple that shows a text on screen? I'm using wrong command for that too or it's disabled for mods... I don't get it, why would they go as far as disable mod features, when they allow drastic unit changes like making zerglings unkillable.
I didn't edit anything in data editor, they should be defaults. The 524287 was maximum that the trigger editor allowed me to type. I tested it in the custom map, using the test document from SC2 editor. Not sure if it's ingame feature now, but i wasn't able to see how much minerals was left in the field. I forfeit and watched replay and then i saw the modded value was applied right, also to vespene.
I can't find any data about mineral fields or vespene default or max values. They have max and starting life 10000 but i don't think that's the value we are looking for, and it's invulnerable anyway. Minerals generally start at around 1500 or so.
Title ^, and i can't figure out why that is. I'm tired of making minor changes, publishing to SC2 and test in melee that none of the mineral fields are affected. I am able to select my mod when starting the game, and version number matches the published one. When i add the same library to some other custom made map, it works well. But that's obviously not a solution, i want it to work as mod in all maps, not just that 1.
I have other trigger library i want to add as well, not looking to change this from data behaviors or something.
And first thing i thought was that i'm comparing specifically "Mineral Field" object, when it's possible that map has them customized under other internal name. But that doesn't explain why my Zombie script didn't work either, when it doesn't rely on any specific value from map. Just revives units based on unit data it gets in the death event, which also works in custom map, not as mod.