| 12-25-2003, 03:11 AM | #1 |
Ok these are the two problems. 1) at a point that is seemingly random in the game, the trigger that gives you gold stops finishing iteself. I have NO IDEA y. It goes about half way through, then stops, i know because i put game-display text message to players BLAH BLAH BLAH in it... but i got no idea y it stops. Sometimes it stops on the thirt turn, sometimes it stops on the 50th turn. 2) this has happeed on both the maps that i have made. After a lot of units have come onto the screen, a deselct bug happens. At least this one goes away and comes back sporatically throughout the game, but the bug is that u cant do ANYTHING with buildings, + if u select multiple buildings, it will deslect all but 1.... go figure. this bug isn't as prevelent in the map im working on now, but it still exists. Any help would be appricated. This is the trigger that the first bug applies to.Taxes Events Time - time2 expires Conditions Actions For each (Integer A) from 1 to 12, do (Actions) Loop - Actions Set y = (Number of living |c00008040M|r|c0000ab2bi|r|c0000d516n|r|c0000ff00e|r units owned by Players[(Integer A)]) Game - Display to (All players) the text: Part1 Multiboard - Set the text for Player_Resorce_Boards[(Integer A)] item in column 2, row 3 to (String(y)) Multiboard - Set the text for Player_Resorce_Boards[(Integer A)] item in column 3, row 3 to (String(Player_Gold_Per_Turn[(Integer A)])) Multiboard - Set the text for Player_Resorce_Boards[(Integer A)] item in column 2, row 2 to (String(Player_Population[(Integer A)])) Game - Display to (All players) the text: Part2 Set x = (Integer(((Real(Player_Population[(Integer A)])) x (((Real(Player_Happiness[(Integer A)])) + 0.25) / (10.00 x (Real(Player_Empire_Size[(Integer A)]))))))) Set Player_Year_Positive[(Integer A)] = (x + Player_Gold_Per_Turn[(Integer A)]) Multiboard - Set the text for Player_Resorce_Boards[(Integer A)] item in column 3, row 2 to (String(x)) Game - Display to (All players) the text: Part3 Set Player_Year_Negative[(Integer A)] = (Player_Army_Size[(Integer A)] x 5) Set Player_Year_Negative[(Integer A)] = (Player_Year_Negative[(Integer A)] + (Player_Resorce_Facilitys[(Integer A)] x 50)) Set Player_Year_Negative[(Integer A)] = (Player_Year_Negative[(Integer A)] + Player_Empire_Cost[(Integer A)]) Set Player_Year_Negative[(Integer A)] = (Player_Year_Negative[(Integer A)] + (Player_Defence_Size[(Integer A)] x 15)) Multiboard - Set the text for Player_Resorce_Boards[(Integer A)] item in column 2, row 4 to (|c0000ff00 + ((String(Player_Year_Positive[(Integer A)])) + |r)) Multiboard - Set the text for Player_Resorce_Boards[(Integer A)] item in column 2, row 10 to (|c00ff0000 + ((String(Player_Year_Negative[(Integer A)])) + |r)) Game - Display to (All players) the text: Part4 Set Player_Total_Income[(Integer A)] = (Player_Year_Positive[(Integer A)] - Player_Year_Negative[(Integer A)]) Game - Display to (All players) the text: part5 If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions Player_Year_Positive[(Integer A)] Greater than or equal to Player_Year_Negative[(Integer A)] Then - Actions Multiboard - Set the text for Player_Resorce_Boards[(Integer A)] item in column 2, row 11 to (|c0000ff00 + ((String(Player_Total_Income[(Integer A)])) + |r)) Else - Actions Multiboard - Set the text for Player_Resorce_Boards[(Integer A)] item in column 2, row 11 to (|c00ff0000 + ((String(Player_Total_Income[(Integer A)])) + |r)) Game - Display to (All players) the text: Part6 Player - Add Player_Total_Income[(Integer A)] to Players[(Integer A)] Current gold for anyone wondering why i go through 1-12 instead of 0-11, its cause i dislike adding or subtracting 1s so much that i made all my arrays 13, and just leave the first spot blank. That isn't the reason this screwes up. |
| 12-25-2003, 06:09 PM | #2 |
come on guys.. plz help!!! i am sooooo done with this map, everything works fine but the gold bug makes it unplayable....... any ideas at all, if it helps, i belive it has something to do with waits... (i posted previously on this) becaues there are a few triggers which require quite lengthy pick every unit and do x=x+number of units doing _ kinda funktions..... anyway PLEASE HELP, btw map name is Land & Sea, if u ever go on bnet play it, its coo. |
| 12-25-2003, 07:14 PM | #3 |
Well, without reading your trigger I can see that you're using a lot of non-entered values which the program needs to get itself (Wherever from it may be)... It's also extremly long, which WC3 always has a problem with... So, to me I think your trigger is too long or too complicated for WC3 to perform. It works most of the time, but suddenly it drops it because WC3 has other things to do and can not carry on with your trigger... This is just my own thougth, tho, but judging from how long it is, this is probably the case. If it is not, then I'll need to read it furally.. Regards Dead-Inside |
| 12-25-2003, 09:20 PM | #4 |
if your theory is right, which i actually belive it is.. what should i do? break it up into smaller triggers that fire in an order via time delays.. or call one another or what.... this wasn't supposed to be that complecated but if it is id like 2 fix. |
