| 09-11-2004, 11:48 AM | #1 |
My problem is quite hard to explain, but ill try Im working on an unreal tournament map based on the onslaught mode, the map is called "Ascension". If you own a powernode, all nearby powernodes will become vulnerable so you can capture them. All powernodes vulnerable to a team is in a unit group array called "LinkedNodes[1]" (that is for team 1, team 2 is "LinkedNodes[2]). Now the problem i got is that when i play the LinkedNodes[1] group suddenly disspeares. I can try refreshing the node grid by commands, i use debug messages to check and every thing, but it just is not there. I got 3 differenet commands to check stuff: One to check what team the node is in. This works fine, untill the problem... Suddenly, LinkedNodes[1] doesnt respond to the command, because its not a part of the grid for some reason! Another one is to check how many powernodes that is linked with team 1 (how many nodes in linkednodes[1]). After the problem, this one shows "0". the 3rd one is a refresher that is supposed to refresh the whole system. The triggers does this automatically when a node is captured/destroyed etc. To refresh the grid system. But when i try refreshing after the problem, the LinkedNodes[1] group is still totally gone, it doesnt add units to it. The only possible explaination i can think of is that the variable is deleted inside the game. Somebody PLEASE help, this problem is totally out of my reach! Ive worked on it for more than 3 hours row now ![]() |
| 09-11-2004, 12:39 PM | #2 |
Can you post the triggers. I would be a lot easier for us to see the problem. ![]() |
| 09-11-2004, 12:57 PM | #3 |
If your doing any memory leak cleanup (ie with DestroyGroup) it's possible your accidentely destroying it, this is easier to do than you might think because of group assignment operator behaivour. |
| 09-11-2004, 12:58 PM | #4 |
true. post the triggers |
| 09-11-2004, 02:20 PM | #5 |
Hmm oh well "THE" trigger.. The unit group is in maybe 8 complicated triggers :S And no i havent made any memoryleak cleanups (yet) so that is probably not the prob. Im in the middle of a game atm, ill try posting the important triggers later. Might the problem be with WEU or its advanced triggers? I never liked using 3rd party stuff.. thanks for feedback! EDIT: FIXED PROBLEM Code:
Node Grid Check
Events
Conditions
Actions
-------- Empty LinkedNodes --------
Unit Group - Pick every unit in PNPoweredNodes[1] and do (Actions)
Loop - Actions
Unit Group - Remove (Picked unit) from PNLinkedNodes[2]
Unit Group - Pick every unit in PNPoweredNodes[2] and do (Actions)
Loop - Actions
Unit Group - Remove (Picked unit) from PNLinkedNodes[2]as you can see here, i had messed up PNLinkedNodes with PNPoweredNodes so what it does here is picking units from powerednodes and then removing them from LINKEDNODES! :D Problem fixed |
