| 08-19-2006, 03:40 PM | #2 |
Holy Cow. JASS:call TriggerRegisterTimerEventPeriodic( gg_trg_End, 7,00 ) It has to be 7.00. (Not Comma) Oh yea, and you leak a location (Position) each time you change the terrain. JASS:call SetTerrainTypeBJ( GetRectCenter(gg_rct_q152), 'Osmb', 1, 1, 1 ) Trigger: ![]() ...
![]() Set q_center = (Center of (q1))
![]() Environment - Change terrain type at q_center to Fremdland - Dirt using variation -1 in an area of size 1 and shape Circle
![]() Custom script: call RemoveLocation(q_center)
![]() Set q_center = (Center of (q2))
![]() Environment - Change terrain type at q_center to Fremdland - Dirt using variation -1 in an area of size 1 and shape Circle
![]() Custom script: call RemoveLocation(q_center)
![]() ... |
| 08-19-2006, 03:47 PM | #3 |
You are creating locations with the GetRectCentre, which leaks. |
| 08-19-2006, 03:56 PM | #4 | |||
Quote:
Guess what, I would never changed the 7 seconds. Vielen Danke Quote:
Well, I am going to change the terrain more than one times on different ways, so I do not need it, if this would be the only trigger, you would have been right. Quote:
Here is something more I may to know, as you can see I manually changed the place of changings from q1 to q 150 and of course backwards so more then 300 times manually changed changing place, is there an easier way to change it ? |
| 08-19-2006, 04:09 PM | #5 | ||
Quote:
(Wie haelst du diese haesslichen deutschen Stimmen ueberhaupt aus? oO) Quote:
But, I recommand using JASS, since you have Wait's between them. Firstly, you have to initialize the global rect array to save your 154 rects. (In a trigger with "Map Initialization" as Event) JASS:set udg_q_rect[0] = gg_rct_q1 set udg_q_rect[1] = gg_rct_q2 ... ... set udg_q_rect[153] = gg_rct_q154 JASS:local integer q_index = 0 local location q_loc call TriggerSleepAction( 0.50 ) loop exitwhen (q_index == 150) set q_loc = GetRectCenter(udg_q_rect[q_index]) call SetTerrainTypeBJ( q_loc, 'Osmb', 1, 1, 1 ) call RemoveLocation(q_loc) call TriggerSleepAction( 0.50 ) set q_index = q_index + 1 endloop ... |
| 08-19-2006, 04:17 PM | #6 | ||
Quote:
JASS, no I can´t "JASS" anything, as you saw upper earlier, I failed on 7,00 / 7.00 ^^ Quote:
-------------- Sorry, I got more trouble as I thought ^^ I have made a simple Trigger combination, but it leaks sometimes :/ PartOne: Trigger: PartTwo: Trigger: Well, my problem ? Sometimes the unit of player 12 (brown) won´t be removed from game, it holds on in a random point of place 2 :/ so it should be removed, but it won´t, first thougth of any Doodads in way, causse the Triggers are correct, right ? And maybe the last question ^^ Is there any Trigger avaible for a wheel of units, cause I am unable to create it and I saw it a lot of times in other maps, but they are protected, so I can not look it up, how it is done :/ --- no comments to map protection please ! |
| 08-19-2006, 04:27 PM | #7 |
Du kennst ja wohl eMule oder sowas... Now the initializing trigger, which stores all your rects in an global rect array. Trigger: JASS:function Trig_End_Actions takes nothing returns nothing local integer q_index = 0 local location q_loc call TriggerSleepAction( 0.50 ) loop exitwhen (q_index == 150) set q_loc = GetRectCenter(udg_q_rects[q_index]) call SetTerrainTypeBJ( q_loc, 'Osmb', 1, 1, 1 ) call RemoveLocation(q_loc) call TriggerSleepAction( 0.50 ) set q_index = q_index + 1 endloop endfunction //=========================================================================== function InitTrig_End takes nothing returns nothing set gg_trg_End = CreateTrigger( ) call TriggerRegisterTimerEventPeriodic( gg_trg_End, 7.00 ) call TriggerAddAction( gg_trg_End, function Trig_End_Actions ) endfunction |
| 08-19-2006, 05:20 PM | #8 |
Weźcie przestańcie pierdolić po niemiecku bo nikt was nie rozumie... =.= |
| 08-19-2006, 06:21 PM | #9 | |
Quote:
What do you mean ? ^^ Btw, Thanks for Help UnMi ! |
| 08-20-2006, 01:50 PM | #10 | ||
Quote:
Quote:
It is an english speaking forum here, so we also all should speak in english, otherwise proberly most users won't be able to understand and stop looking for helping in the respectively threads... But now, Jacek, can you translate to english what you said, I'm just interested in. ![]() |
| 08-20-2006, 04:07 PM | #11 |
Obviously, that's must be what he said, because we spoke German all the way! ... -_-... If you don't count the 90% rest. Let's say, the very little part where we spoke in German was not supposed to be understood and had nothing to do with the topic anyway. |
| 08-20-2006, 04:20 PM | #12 |
then pm eachother about it |
| 08-21-2006, 09:53 AM | #13 | |
Quote:
I think he means, I should stop writing german stuff, cause I am the only one who can understand it ![]() |
| 08-21-2006, 11:10 PM | #14 |
I've had this problem myself, it turned out to be a bug related to having an OS in a language that uses a comma as a seperator for decimals instead of a dot. Restarting WE solved it for me :o |
