Hello iv got a massive problem and its pissing me off
So i go into my map to test the new money system i put in where you gather the mineral feilds to gain gas, but i couldnt gather from them. There where red, an enemy or hostile. And its not just that resource, every other resource iv tried also cant get gathered. Its sopost to be a neutral unit, and when i try to gather from it, it says cannot gather that resource. Iv looked into the unit flags it should be automatically neutral.
Here are the things iv tried:
Using Trigger, when it enters the map after 10 seconds change owner of player to neutral. Doesnt work
Iv tried making neutral allies with all players and myself with triggers no luck
Iv gone into the unit and reset the flags and passives and stuff no luck
Iv gone into the high yeild incase it can only be used by itsself or something weird like that no luck
iv gone into all the workers gather abilties and checked to see if there are filter, there are none**
I have NO idea whats going on! And what pisses me off even more is that it was working before then bam i cant do anything to the stupid things!
Hey man lol seems I may be able to help try just changeing they minerals to neutral they have to be in player properties the trigger may be bugged and if that doesn't work did the behavior that was linked to the minerals get up linked and it has to be set in unit or actor that it is a mineral base when you created these minerals fields.
To me it really sounds like conflicting triggers.
Here's what I would do in your situation.
1. BACKUP your map.
2. Open the triggers, delete everything.
3. Also go to Player Properties and make sure the Neutral player is in fact Neutral and every setting about his player is how its supposed to be by default.
4. Now create an SCV for Player 1, create a mineral crystal for Player 0, run the map and see if it can be gathered.
If it doesn't work I'd go to the Data Editor, abilities, turn on the XML view and search within the code FROM YOUR MAP anything related to gathering and the abilities it uses. If there's any code about that - delete it.
Then go to the Unit section and search for XML code for the mineral crystals. If there is something - delete it.
That will revert them back to what they were in the original dependencies you've imported.
Also check if you've imported a dependency that might've done this.
Since its happening to all minerals, and they stay hostile EVEN when you tried to change their owner with a trigger, I am almost sure that it's another trigger that is doing this.
I feel like you might've had the Hostile player set when you placed them using the Unit Palette. If that's not the case, go into Data > Units/Structures > Mineral Field > look up "neutral" or "hostile" and get back to me. You might have an error in the default AI response for this object, since all resources default to neutral.
I feel like you might've had the Hostile player set when you placed them using the Unit Palette. If that's not the case, go into Data > Units/Structures > Mineral Field > look up "neutral" or "hostile" and get back to me. You might have an error in the default AI response for this object, since all resources default to neutral.
Quote. I did this mistake once when developing my AI. I wondered for a while why it didn't work... till I found this :P
Rollback Post to RevisionRollBack
Battle.net wants to call me InsaneMst, Insane... but you should call me InsaneMonster!
I feel like you might've had the Hostile player set when you placed them using the Unit Palette. If that's not the case, go into Data > Units/Structures > Mineral Field > look up "neutral" or "hostile" and get back to me. You might have an error in the default AI response for this object, since all resources default to neutral.
Quote. I did this mistake once when developing my AI. I wondered for a while why it didn't work... till I found this :P
Glad I could help ^^
Anyways BozoOvermind try what DOOMEDEARTH, breakthewind, and I suggested. Honestly, they're pretty much different ways to tackle the same problem. Whichever works for you mate.
Hello iv got a massive problem and its pissing me off
So i go into my map to test the new money system i put in where you gather the mineral feilds to gain gas, but i couldnt gather from them. There where red, an enemy or hostile. And its not just that resource, every other resource iv tried also cant get gathered. Its sopost to be a neutral unit, and when i try to gather from it, it says cannot gather that resource. Iv looked into the unit flags it should be automatically neutral.
Here are the things iv tried:
Using Trigger, when it enters the map after 10 seconds change owner of player to neutral. Doesnt work
Iv tried making neutral allies with all players and myself with triggers no luck
Iv gone into the unit and reset the flags and passives and stuff no luck
Iv gone into the high yeild incase it can only be used by itsself or something weird like that no luck
iv gone into all the workers gather abilties and checked to see if there are filter, there are none**
I have NO idea whats going on! And what pisses me off even more is that it was working before then bam i cant do anything to the stupid things!
ANY HELP IS GREATLY APRECIATED!!!
Hey man lol seems I may be able to help try just changeing they minerals to neutral they have to be in player properties the trigger may be bugged and if that doesn't work did the behavior that was linked to the minerals get up linked and it has to be set in unit or actor that it is a mineral base when you created these minerals fields.
To me it really sounds like conflicting triggers.
Here's what I would do in your situation.
1. BACKUP your map.
2. Open the triggers, delete everything.
3. Also go to Player Properties and make sure the Neutral player is in fact Neutral and every setting about his player is how its supposed to be by default.
4. Now create an SCV for Player 1, create a mineral crystal for Player 0, run the map and see if it can be gathered.
If it doesn't work I'd go to the Data Editor, abilities, turn on the XML view and search within the code FROM YOUR MAP anything related to gathering and the abilities it uses. If there's any code about that - delete it.
Then go to the Unit section and search for XML code for the mineral crystals. If there is something - delete it.
That will revert them back to what they were in the original dependencies you've imported.
Also check if you've imported a dependency that might've done this.
Since its happening to all minerals, and they stay hostile EVEN when you tried to change their owner with a trigger, I am almost sure that it's another trigger that is doing this.
I feel like you might've had the Hostile player set when you placed them using the Unit Palette. If that's not the case, go into Data > Units/Structures > Mineral Field > look up "neutral" or "hostile" and get back to me. You might have an error in the default AI response for this object, since all resources default to neutral.
KSNumedia's Assets: Custom Models for campaigns and mods!
Battle.net wants to call me InsaneMst, Insane... but you should call me InsaneMonster!
Author of InsaneAI library, InsaneCredits library, InsaneDebug library, InsaneTransmission library, InsaneUI library and InsaneBriefing library.
Author of Mercenary Business - Top 10 Rock The Cabinet 2017: Co-op edition.
KSNumedia's Assets: Custom Models for campaigns and mods!