My map (simply called 'Critter Hunters' for now) crashes a few seconds after loading. Actually, the entire game crashes. My computer is not too good but it did not have problems running this map until now. I did not really make any substantial changes, except some minor ones on Data and a few variables which I don't think caused the crashes. However, it is frustrating because I don't think I've made any errors.
I also can not find anything in the triggers that may cause the crash, except perhaps that it loads a lot of units. However, that is unlikely the cause because I could run the map before when an equal amount of units loaded.
Could I perhaps send this map to someone and they could see if they understand why it crashes?
Might not actually be an Editor bug, but yea, attach the map to a post of yours (when making a new reply, you can find the "Add attachment" option below the edit box).
I'd take a look at it and try to figure out what's wrong.
Thanks s3rius, but I think I figured out why the map crashed my game. Which lead me to another problem/question.
Eventually, I find out that it is this line (a Condition belonging to a trigger with event 'Any Unit Dies'), that caused the crash:
(TriggeringUnit)==(RandomAnyunitfromBeastsP1)
Where 'Beasts P1' is a variable of the Unit Group type. I knew that it was a stretch, but I thought that maybe this condition would work as I did not find anything else fitting exactly. I needed simply to have a condition saying that the triggering unit must be a unit from the unit group called Beasts P1.
Obviously, it didn't work (causes the game to crash apparently). So, does anyone know how to set a condition saying that the triggering unit must belong to a specific unit group? Not that it necessarily has to be done with a condition, if same results can be produced otherwise.
Edit:
I'm a dumbass. :)
I always think in the opposite way of the triggers. To set the condition that a unit has to be in a unit group, this works:
((Triggering unit) is in Beasts P1) == true
So, I think I solved my problems for now. If anything else pops up, I guess I'll post it here.
It'd be better to post any editor questions in the Development section.
Galaxy Editor Bugs and Feedback should only be used for what the name says^ ^
However, after some testing I can specify that bug:
RandomAnyunitfrom(xxx)
This will crash the game. The exact cause of that is the "Any unit". Specifying Dead or Living units work (or at least it doesn't crash). But Any unit will kill the game.
Hello everyone,
My map (simply called 'Critter Hunters' for now) crashes a few seconds after loading. Actually, the entire game crashes. My computer is not too good but it did not have problems running this map until now. I did not really make any substantial changes, except some minor ones on Data and a few variables which I don't think caused the crashes. However, it is frustrating because I don't think I've made any errors.
I also can not find anything in the triggers that may cause the crash, except perhaps that it loads a lot of units. However, that is unlikely the cause because I could run the map before when an equal amount of units loaded.
Could I perhaps send this map to someone and they could see if they understand why it crashes?
Might not actually be an Editor bug, but yea, attach the map to a post of yours (when making a new reply, you can find the "Add attachment" option below the edit box).
I'd take a look at it and try to figure out what's wrong.
Thanks s3rius, but I think I figured out why the map crashed my game. Which lead me to another problem/question.
Eventually, I find out that it is this line (a Condition belonging to a trigger with event 'Any Unit Dies'), that caused the crash:
Where 'Beasts P1' is a variable of the Unit Group type. I knew that it was a stretch, but I thought that maybe this condition would work as I did not find anything else fitting exactly. I needed simply to have a condition saying that the triggering unit must be a unit from the unit group called Beasts P1.
Obviously, it didn't work (causes the game to crash apparently). So, does anyone know how to set a condition saying that the triggering unit must belong to a specific unit group? Not that it necessarily has to be done with a condition, if same results can be produced otherwise.
Edit: I'm a dumbass. :)
I always think in the opposite way of the triggers. To set the condition that a unit has to be in a unit group, this works: ((Triggering unit) is in Beasts P1) == true
So, I think I solved my problems for now. If anything else pops up, I guess I'll post it here.
It'd be better to post any editor questions in the Development section.
Galaxy Editor Bugs and Feedback should only be used for what the name says^ ^
However, after some testing I can specify that bug:
This will crash the game. The exact cause of that is the "Any unit". Specifying Dead or Living units work (or at least it doesn't crash). But Any unit will kill the game.
@s3rius: Go
Thank you so much! I changed "Any units" to "living units" and it worked!