• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

Army Memory Leaks

Status
Not open for further replies.
Level 5
Joined
Jun 21, 2004
Messages
129
Ok here is my question
Which way is best from creating the army spawns in an AOS map
1- Order the barracks to make units and set its rally point to where you want them to go
-or-
2- Create the units at a point then destroy the point

or any other that are better than my 2

Right now i can't tell what is leaking my map like crazy. Jumps up to about 250,000k in about 30 mins.

Also another Q if any one is good at fixing memory leaks, could i send you my map(although its only about 30% done) and you could take a look at the trigger and stuff and help me out by telling me what i am doing wrong to fix the leaks, what is causeing the crazy leaks and the best way to fix.

Its made in WEU.
 
Level 8
Joined
Jul 9, 2004
Messages
405
well im not so sure this would help u but in my rpg i made the other base attack you and it was all regions and spawning with conditions (this was for mine so times and units are different)

Event: every 240 seconds of the game
Actions: Spawn 2 knights (priests footman etc) at center of attackspawnpoint[gen]

and then i had this to make them attack:

Event: unit enters attackspawnpoint[gen]
condition: owner of entering unit equal to (player dark green)
Action: (somewhat like this-) unit: make unit attack-move to attackpoint[gen]

that worked for it but they got all lost on there way alot so i put more regions so they went around corners and stuff but that worked so try it (just watch out for other units on that team entering O_O)
 
Level 13
Joined
May 5, 2004
Messages
1,330
Concerning if you have problems seeing the units available for construction in the barracks or not, I would use the training-option

-> you can use your rally-point to move the units
-> don't need an extra-trigger for stopping spawning when barracks is killed
-> imo looks cooler with that build-effect
-> don't need regions/temporary regions (thx to Raptors post, plz correct me if this is wrong)

Of course there can be disadvantages, but I have no idea what. Perhaps someone can tell.
 
Level 7
Joined
Jul 30, 2004
Messages
451
it doesn't matter what you do if you're concerned about memory leaks as long as everytime you let warcraft create a temporary location (IE "center of regionX" or "position of unitY") you destroy that location as soon as ur done with it

so like
Code:
set temppoint = center of region
for x to y
        create units are temppoint
        order or blah blah, whatever
call destroylocation( temppoint )
 
Status
Not open for further replies.
Top