| 06-02-2006, 06:22 PM | #1 |
Ok, the only way units are created on my map are through variables, ie create 1 enemies[1] or something like that... however, this wierd behaviour I get is very very wierd. It creates Troll With Doctors at the initial spawn points, sometimes randomly creates rats, it will also place troll witch doctors at other random points in the map. Also, it creates random neutral buildings in random places on the map, and then they usually dissapear... The only way I know that they show up is because some of the map isnt visible to me and all of a sudden these nuetral building icons show up.... so I type iseedeadpeople to see the map, and the icon goes away and theres nothing there! Im not so much worried about the nuetral buildings, but those witch doctors randomly creating around the map mess with my triggers, because my triggers rely on a certain player having 0 food for something to trigger, but when those things just randomly show up it messes that up. So what im going to do to fix it, is if it detects that troll witch doctor anywhere on the map itll just destroy it (for now) but I cant figure out where its coming from! |
| 06-02-2006, 06:44 PM | #2 |
There is no way units (witch doctors or neutral buildings or anything else) can 'spontaneously' appear on your map without a custom trigger. Nothing else in the game can make that happen. |
| 06-02-2006, 06:50 PM | #3 |
And I had a trigger that detected if a unit entered a rect (entire map) checked if it was a troll witch doctor then destroyed it, pinging the map where it was and setting a location to a variable where it was (so I can type -errors and itll ping where it was before, so I can figure this out) and the game crashes all the time... 20secs into it Post 2: Yeah thats what I thought too, no trigger says to create a troll witch doctor or any random nuetral unit for that matter... wtf Edited by Blade.dk. Reason: Please do not double post. |
| 06-02-2006, 06:54 PM | #4 |
Do you use raw codes anywhere in your map? It's possible when trying to spawn one thing you used the incorrect raw. If you posted the map to look at it might help clarify what's going on. However, I can understand if you chose not to. :P |
| 06-02-2006, 06:55 PM | #5 |
Here, it happened at the very begginning and this is a before and after I entered cheat. As soon as the map loaded they were placed like that Post 2: sorry, raw codes? Edited by Blade.dk. Reason: Double posting. |
| 06-02-2006, 06:57 PM | #6 |
That's a Walrus so far as I can see. And if you're sure you don't spawn those units ever, then possibly make a trigger that runs when elapsed time == 1 second to remove all units of that type from the map? This seems like a very weird case scenario, units don't randomly appear for no reason. And if they are, I would blame some kind of corrupted mechanism in the map; even then it's still out of place. EDIT: Raw codes are the 4 digit integer values that differentiate between units in a map. For example 'u213' might be a unit somewhere in some map. |
| 06-02-2006, 07:03 PM | #7 |
That walrus is the tower builder, but look on the minimap... oh right, theres no raw unit codes on the map anywhere (well besides object editor) but nothing to spawn units... I dont need a trigger that runs at 1 second to remove them, because they happen whenever they want to Post 2: Why does this trigger crash (hang) my game? This trigger isnt initially on either, if it is then the game hangs at the very beginning, it gets turned on after the multiboard is created Edited by Blade.dk. Reason: Double posting. |
| 06-02-2006, 07:03 PM | #8 |
..They happen whenever they want to? You're saying they happen at random times during the game AND at random places? See, that just screams that something is just WRONG with triggers or something. When you use the cheat, are there ANY units where the neutral building icons were? Or is there nothing? |
| 06-02-2006, 07:07 PM | #9 | |
Quote:
nothing at all. It *seems* to have happened (witch doctor problem) near the end of the td level, when they started going through the "end portal". Because I noticed all the guys that leaked were gone but the trigger didnt fire, so I looked around, and all players had a troll witch doctor at the initial spawn point. And in the AOS part of my map, each team got 1 or 2 witch doctors Post 2: im restarting the map with all players as computers, and this time I didnt have any crazy building icons all over the map edit: and 2 td levels have passed, no witch doctors yet Edited by Blade.dk. Reason: Double posting. |
| 06-02-2006, 07:17 PM | #10 |
The trigger you posted appears fine, make sure your variables aree of the proper type (I don't think GUI allows incorrect types, though). I really don't know what to say though. If they spawn randomly at random times caused by random things and you can't post the map nor isolate the problem... Well I don't think anyone can really offer up some kind of a solution. That removal trigger SHOULD work though. EDIT: Well good to hear it's working. God knows what caused it though. |
| 06-02-2006, 11:52 PM | #11 |
have you checked your variables to make sure that they are all set correctly. Because I know that when I was setting up my tower defense map certain units wouldn't spawn after a level and after checking a few things I realized that they weren't setting properly. Also check to see if all of your units have food values. An are you using comps or Neutral hostile/passive. That may be your problem as well. Oh and one final question did you institute a wait time in your level spawning trigger. |
| 06-03-2006, 04:45 AM | #12 |
None of those are relevant to the case, I use food values as a flag for certain units, s that wouldnt matter, yes all vars are good because it was working fine before, and comps are player 9 and 10. The only "wait" in the game is to decrease the amount of spawn lag for 160 units when they spawn, itll do 2 at a time for each player (so up to 16 at a time) 10 times and thats not a problem either. Thanks though, problem is solved |
