Hello,
today I got confronted with a peculiar bug, for which a workaround is pretty easy to find, but which I don't understand.
There are two triggers basically:
T: army
C: Timer 30 Seconds
C: Player Unit Count P4 Shade of Hades == 0
C: Is Alive Something
E: Army Convert X to P1
E: Army Deploy 4 times Shade of Hades
E: Army Convert X to P4
E: Modify Protounit Absolute P4 Shade of Hades LOS 150 (because they act like they have their P1 LOS somehow)
E: Fire Event army_
The second trigger is the same one as the first and both keep firing each other. The easy workaround is to just use theArmy Deploy for comps online (looking at that code I have no idea why that effect works by just putting two numbers together for an army name, but it works).
However, doing it with convert-deploy allows to change the name of the units deployed. I haven't tried to write an effect for the comps-online-effect yet to change the name of the deployed units.
So the scary thing is the bug of course. It happened in some games (not all of them), maybe in laggy ones. P1 gets the shades. And then P1 gets more shades. Looped shade spawn, they never convert to P4.
This presumes that the convert to P4 fails and the trigger just continues to fire the next one, which does the same. The same trigger combination using the same army works before for a single unit instead of groups and that never bugged. On this unit a "Add Counter" refires the respawn-trigger.
- Is it important not to convert armies from P4 to P4?
I had the same issue with another P4-Army which converted to P1 for spawn and oscillated between to states, a 3 unit group and a 6 unit group. The same error occurred there. All Einherja spawned for P1 forever.
Azarath Metrion Zinthos
Steam: Order of Azarath
Twitch: twitch.tv/orderofazarath
Discord: Azarath @ https://discord.gg/3ENKJeb
today I got confronted with a peculiar bug, for which a workaround is pretty easy to find, but which I don't understand.
There are two triggers basically:
T: army
C: Timer 30 Seconds
C: Player Unit Count P4 Shade of Hades == 0
C: Is Alive Something
E: Army Convert X to P1
E: Army Deploy 4 times Shade of Hades
E: Army Convert X to P4
E: Modify Protounit Absolute P4 Shade of Hades LOS 150 (because they act like they have their P1 LOS somehow)
E: Fire Event army_
The second trigger is the same one as the first and both keep firing each other. The easy workaround is to just use the
However, doing it with convert-deploy allows to change the name of the units deployed. I haven't tried to write an effect for the comps-online-effect yet to change the name of the deployed units.
So the scary thing is the bug of course. It happened in some games (not all of them), maybe in laggy ones. P1 gets the shades. And then P1 gets more shades. Looped shade spawn, they never convert to P4.
This presumes that the convert to P4 fails and the trigger just continues to fire the next one, which does the same. The same trigger combination using the same army works before for a single unit instead of groups and that never bugged. On this unit a "Add Counter" refires the respawn-trigger.
- Is it important not to convert armies from P4 to P4?
I had the same issue with another P4-Army which converted to P1 for spawn and oscillated between to states, a 3 unit group and a 6 unit group. The same error occurred there. All Einherja spawned for P1 forever.
Steam: Order of Azarath
Twitch: twitch.tv/orderofazarath
Discord: Azarath @ https://discord.gg/3ENKJeb