HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Compiling Error

08-12-2007, 11:22 AM#1
BOESERTEDDY
Hi,

I have a problem with one of my maps. I wanted to go over it and fix the memory leaks...
But when I tried to save I got some errors (compiling errors) and some triggers got disactivated...







I don't really know how to fix it, and actually I don't know why something is wrong...
But it's eye-catching that it's a problem with a playergroupe ( "GetPlayersAll" )

(arg! and the stupid thing is that I changed a lot at once...)

Thanks in advance for your help :-)



Edit:

If I delete the three lines:






It works...


If I delete: call DestroyGroup(udg_Gobains)
Then I can activate the trigger....
What's wrong with it?
08-12-2007, 05:45 PM#2
BOESERTEDDY
Does anyone actually see my posts? Or Am I the only one who sees my posts? oO

Edit: ... ? What's the sense of this forum if other people don't see the posts? oO And why do I see certain posts... Are theire owners, all special privileged people...?
08-12-2007, 08:36 PM#3
Vexorian
maybe it is a ghost forum!

or maybe you need to wait a little sometimes...

Or perhaps it is that the compile errors are in german so we don't really know what's wrong there...
08-12-2007, 10:56 PM#4
Pytho
There is indeed an error with DestroyGroup, because it's argument has to be a group of units, you have to use the command DestroyForce to destroy your group of players. The line after the one in which the error actually occurs is marked as wrong, because there is a bug in the editor.
08-13-2007, 10:22 AM#5
BOESERTEDDY
Quote:
maybe it is a ghost forum!



Quote:
or maybe you need to wait a little sometimes...

Sorry, I didn't want to seem impatient. I know that normally nobody is going to give you already an answer just 15 minutes after you've posted...
It's just that I don't understand why I don't see my own posts if I'm not logged in...
And when I had a look at the script/triggers fourm, i saw posts above my one which had been made after mine but had already more views... so I thought maybe nobody sees my post...

Quote:
Or perhaps it is that the compile errors are in german so we don't really know what's wrong there...

Actually somebody already solved my problem. He said that "all players" don't leak, so I don't have to remove it...
But actually I still don't understand why then the error appears... i mean it should work, it should just be superfluous, but work...
08-13-2007, 11:07 AM#6
Fireeye
I might be able to explain it though (if i'm wrony anyone might correct me), however you're using All Players which is "bj_FORCE_ALL_PLAYERS" in JASS, due this is a predefined constant Force used by Warcraft 3 you shouldn't destroy it or you'll get an error (well, you got one ^^).
But if you use something like "All Allies of Player X" it creates a new force which you're allowed to destroy without having to fear any error.
I hope i got the problem correctly and explained it well enough
08-13-2007, 11:21 AM#7
BOESERTEDDY
Hm

But here I have the same problem. And this time there is a leak if I don't fix it. (or at least the leak checker says so...)
And I mean this time it's something different...isn't it?



Well but actually those leaks aren't that worse, since the triggers just run once... So I think i'll just let them live ;-D

Edit: and here too:

08-13-2007, 11:49 AM#8
Thunder_Eye
You shouldn't use DestroyGroup.
In GUI - In JASS
Unit Group - Group
Player Group - Force
08-13-2007, 05:18 PM#9
BOESERTEDDY
THX, that was my mistake

08-13-2007, 06:06 PM#10
Vexorian
and yes: - use fewer smilies.
- Try using the trigger tag.

http://www.wc3campaigns.net/misc.php?do=bbcode#trigger
08-13-2007, 10:43 PM#11
botanic
All Players is declared by wc3 so it doesn't leak persay because it is just a single declared player group. However it does use memory just like any other player group. The main difference is that since it is only declared once it only uses the memory from one instance like any cleaned variable. Also destroying All players group will have it run once.. then since it is destroyed it has no value and since it is only declared once it is not possible to use it again.

Humm writing this i was thinking if you destroy all the preset variables that you dont use what would happen... i bet you could free some extra memory...
08-14-2007, 10:56 AM#12
BOESERTEDDY
Quote:
- Try using the trigger tag.

Ok, didn't know about that.

Quote:
and yes: - use fewer smilies.

I can't help using them ;-)