• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Trigger] Unknown Problem

Status
Not open for further replies.
Level 2
Joined
Dec 16, 2012
Messages
12
RESOLVED

I'm making a map that has a heavy trigger load and I went to make a trigger for purposes of testing another one. The problem is that this trigger isn't firing; or at least isn't doing what it's supposed to and I honestly have no bloody clue as to why.

  • Events
    • Time - Elapsed game time is 0.5 seconds.
  • Actions
    • Multiboard - Create Multiboard with 2 columns and 2 rows named Selected Unit Orders.
    • Set AAATESTER = Last created Multiboard.
    • Multiboard - Multiboard show last created Multiboard.
    • Unit - Create 50 Footman at center of playable map area.
The reason for the footman is to test whether or not this trigger was actually working and yet I've yet to see a single unit. What's going on?
 
Last edited:
Level 2
Joined
Dec 16, 2012
Messages
12
Yeah it is. I just made another one that fires every 0.25 seconds and creates random footman around the map but that ones not working either. Not to mention I just noticed that all of the triggers I've made up to this point aren't working anymore either.

I thought that the system might be overloaded or something due to my heavy trigger usage so I shut off all triggers except for this one but it still didn't work. Nothing's working anymore.
 
Last edited by a moderator:
Level 2
Joined
Dec 16, 2012
Messages
12
I've shut off all triggers except for Initialization and found that Initialization is no longer functional either.

Is my map dead from the mysterious trigger-boogie-man?
 
Level 2
Joined
Dec 16, 2012
Messages
12
I tried your suggestion The blood to find that the triggers did, indeed, not work on the new map.

I loaded up another map believing that it might be a problem with wc3 or windows to find that the triggers on that map did work. So something is wrong with my map's current triggers which is causing unknown problems. I'm going to try deleting all of my triggers except for one.

Update: That did not work.
Update: Nor did deleting ALL triggers and creating new ones.

So I just tried something very odd. After I had deleted all triggers I decided to, just for the giggles, load up triggers from another map and found that they suddenly work.

Does anyone have any idea as to why my map died?
 
Last edited by a moderator:
Level 2
Joined
Dec 16, 2012
Messages
12
I don't know how to put maps on pastebin.

I just discovered something VERY interesting. While I was investigating to find out what went wrong I stumbled across something that I should've checked much sooner: Variables. I mean; it makes sense: when you delete all the triggers yet the problem still occurs than it has to be something that remains despite this. If you import new triggers it also rewrites the variables.

This train of thought led me to investigate the Variables; which of course was still pack full. Then I noticed something odd: after deleting just a few of them my map suddenly began to function.

I think I discovered the problem: there is a maximum limit to how many variables can be in a map. I had roughly 6 variables with 8192 arrays each; all I had to do was delete two of them for the map to function.

I tallied the total number of variables I currently have; assuming that arrays count as individual variables which they do seem to, to find that I currently have 49454 variables. The equation is as follows: 30+254+24+8191+8191+8191+8191+8191+8191. That is 30 variables, an array of 255, an array of 25, and the remaining are arrays of 8192. I'm now looking for the maximum number of variables that you can have in a map; this could take some time.
 
Last edited by a moderator:
Level 2
Joined
Dec 16, 2012
Messages
12
The maximum number of variables you can have while a map will still function is roughly: 40793. I have also tested to see whether or not triggers and quality of triggers seem to have any impact on this number since it's not divisible by 2 (most things in computers are) to find that they do.

Every action you add to a trigger counts as 1 variable for the limit; however, this only applies to Pick every unit in Unit Group and For Each Integer functions. After deleting all triggers except for the spawn Footman trigger I found that the max variable count is 40795.

You havent applied the multiboard style.
I have encountered this many times,but only worked when i put multiboard styles

Hope that helped

Really? I've never encounter a problem like that. The other map I loaded up earlier to check whether or not it was my WC3 or windows that was screwing up I found that the multiboard on that map still worked despite not having a style. Yours is a very interesting problem.
 
Last edited:
Level 2
Joined
Dec 16, 2012
Messages
12
Sorry for spamming it was not my intention. As for your problem I'll keep it in mind when making multiboards and something goes wrong. I'm done with thinking for today and thank you all for your help.
 
Level 2
Joined
Dec 16, 2012
Messages
12
Sorry for not commenting earlier: My problem has been resolved and everything is now working as intended. Thank you.

As for the bit for loading times: Thank you; my maps been plagued with bad loading times for a while now and now I know why.

I have a final question, however: how do you change a thread's tag to "SOLVED"?
 
Status
Not open for further replies.
Top