Enemies Getting Stuck

Vonpuppin

New Member
Reaction score
0
Hello everyone, I'm new here. I've been getting back into Warcraft III (and still play SC2). I enjoy using the World Editor, but I'm not amazing. At all. I do have enough knowledge, however, to create a Tower Defense/Survival game. Now, I have a problem. The units that spawn use a code I made that spawns them in the middle of a region at the start of the lanes. The code also tells units who enter this region to attack move to the center of the player base. This works, but after enemies start spawning in groups larger than 10, more than half of the group just stop in the region, or even halfway along the path. Even Bosses get stuck.


triggera.jpg


Any ideas on what's wrong?
Just got back to WC3 so I'm going to be a bit slow at this, sorry..
 

bajaist

Member
Reaction score
4
That is leaking, and for TD it is bad, use Action:
Trigger:
  • ActionsUntitled Trigger 001
    • Actions
    • Set Temp_Point[1] = Center of region 004 <ge>
    • Unit - Order (Entering unit) to Attack-Move To (Center of Temp_Point[1])
    • Custom script: call RemoveLocation (udg_Temp_Point[1])


And maybe your path is to small for all of them. You could try sending units 1 by 1.
 

Evil Seal

Member
Reaction score
2
When you create the units mabey you could order them as a unit group to move to "Temp_Point". Do as bajaist said, otherwise your trigger will leak and your game will run slow.

Trigger:
  • Spawn
    • Events
    • Time - Every 30.00 seconds of game time
    • Conditions
    • Actions
    • -------- You have to set the point as an variable or it will leak. --------
    • Set Temp_Point = (Center of Spawn <gen>)
    • Unit - Create 10 Footman for Player 10 (Light Blue) at Temp_Point facing Default building facing degrees
    • -------- Now we destroy the Temp_Point so that it won't leak. --------
    • Custom script: call RemoveLocation (udg_Temp_Point)
    • -------- Sets the point as an variable again <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /> --------
    • Set Temp_Point = (Center of Point 1 &lt;gen&gt;)
    • -------- Im ordering the units as an group so that im sure that no unit will stay. --------
    • Unit Group - Order (Last created unit group) to Attack-Move To Temp_Point
    • -------- And destroys the Temp_Point so that it won&#039;t leak. --------
    • Custom script: call RemoveLocation (udg_Temp_Point)


Trigger:
  • Move
    • Events
    • Unit - A unit enters Point 1 &lt;gen&gt;
    • Conditions
    • (Owner of (Triggering unit)) Equal to Player 10 (Light Blue)
    • Actions
    • Set Temp_Point = (Center of Point 2 &lt;gen&gt;)
    • -------- Im only ordering one unit now. --------
    • Unit - Order (Triggering unit) to Attack-Move To Temp_Point
    • Custom script: call RemoveLocation (udg_Temp_Point)


Try this ;)
 

Vonpuppin

New Member
Reaction score
0
So, I tried these, and the situation just got worse. Enemies would start piling up even further. I just let it run for awhile and after so many ghouls spawned, the graphics completely glitched out and large black, brown, and yellow lines were spurting and spazzing out across the map. I'm going to redesign the map with thicker lanes.
 

jig7c

Stop reading me...-statement
Reaction score
123
thicker lane, less units(make them more powerful instead), and make them walk through each other... like those boots in dota... not sure whats it called
 

Tharius

Occasionally Around
Reaction score
39
It sounds like the problem isn't actually the lane width. If you're creating a group of units all at once, at a single point, and immediately ordering each of them to move somewhere else, the units spawned in the center of the group (assuming all the units have collision) won't have any available path because they're completely blocked in by other units. The best thing for you would probably be to spread out the spawn points enough for each unit to find an initial path in between every other spawned unit in that wave. Alternatively, you could stagger the spawns by a couple seconds, and only create 6 or so units at a time.
 

KaerfNomekop

Swim, fishies. Swim through the veil of steel.
Reaction score
613
Usually units will get stuck if you order a large group of them to move at once. I believe any number larger than 12 is liable to this problem.
 

Imp Midna

Active Member
Reaction score
52
Summing up:

Usually units will get stuck if you order a large group of them to move at once. I believe any number larger than 12 is liable to this problem.
True. You might want to pick every unit in the group and give it the order, which will improve the situation, but not solve it.
If you're creating a group of units all at once, at a single point, and immediately ordering each of them to move somewhere else, the units spawned in the center of the group (assuming all the units have collision) won't have any available path because they're completely blocked in by other units. [...] Alternatively, you could stagger the spawns by a couple seconds, and only create 6 or so units at a time.
Also True.
Give all your creeps the unit ability Ghost (Visible), or try lowering the amount of creeps.
Quoting ftw. Ghost will make the units capable of walking INTO each other reducing the block-problem and is commonly used for TD's. May be a stupid solution if this is a survival game though.
make an unstuck trigger
Thats the most useless quote if made so far and the system he described was for TDs only anyways, but i started the other 3 thingys with a quote, so...
anyways, if you tell a unit to move somewhere it doesnt neccessarily mean that it reaches this point. Many weird things can happen. Making some kind of system (maybe every x seconds, when its attacked, when someone writes -unstuck, when new creeps spawn (which would again be periodic (hurray bracket stack (ok, im gonna stop))) etc)
The graphics completely glitched out and large black, brown, and yellow lines were spurting and spazzing out across the map.
Hurray for more quote. That, btw, is warcraft specific, common, and happens when too many (i dont have a clue, maybe 100 or 300) units are drawn at the same time. You can NOT prevent this, it's HELL DAMN of annoying and i want to write ONE MORE THING in caps. So, think about putting your units in a unitgroup and limiting the spawn.
 

Vonpuppin

New Member
Reaction score
0
I fixed it by creating a trigger that told every unit owned by the undead player to attack move to a temp_point I made in the center of the players base - this happens every 10 seconds.
I was so fed up at that point that I named it "move you pieces a' shit" and to my great pleasure, it works extremely well. I did have to take collision off crypt fiends because they blocked melee units, but other than that, thanks a lot everyone consider the problem SOLVED.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Ghan Ghan:
    Still lurking
    +3
  • The Helper The Helper:
    I am great and it is fantastic to see you my friend!
    +1
  • The Helper The Helper:
    If you are new to the site please check out the Recipe and Food Forum https://www.thehelper.net/forums/recipes-and-food.220/
  • Monovertex Monovertex:
    How come you're so into recipes lately? Never saw this much interest in this topic in the old days of TH.net
  • Monovertex Monovertex:
    Hmm, how do I change my signature?
  • tom_mai78101 tom_mai78101:
    Signatures can be edit in your account profile. As for the old stuffs, I'm thinking it's because Blizzard is now under Microsoft, and because of Microsoft Xbox going the way it is, it's dreadful.
  • The Helper The Helper:
    I am not big on the recipes I am just promoting them - I use the site as a practice place promoting stuff
    +2
  • Monovertex Monovertex:
    @tom_mai78101 I must be blind. If I go on my profile I don't see any area to edit the signature; If I go to account details (settings) I don't see any signature area either.
  • The Helper The Helper:
    You can get there if you click the bell icon (alerts) and choose preferences from the bottom, signature will be in the menu on the left there https://www.thehelper.net/account/preferences
  • The Helper The Helper:
    I think I need to split the Sci/Tech news forum into 2 one for Science and one for Tech but I am hating all the moving of posts I would have to do
  • The Helper The Helper:
    What is up Old Mountain Shadow?
  • The Helper The Helper:
    Happy Thursday!
    +1
  • Varine Varine:
    Crazy how much 3d printing has come in the last few years. Sad that it's not as easily modifiable though
  • Varine Varine:
    I bought an Ender 3 during the pandemic and tinkered with it all the time. Just bought a Sovol, not as easy. I'm trying to make it use a different nozzle because I have a fuck ton of Volcanos, and they use what is basically a modified volcano that is just a smidge longer, and almost every part on this thing needs to be redone to make it work
  • Varine Varine:
    Luckily I have a 3d printer for that, I guess. But it's ridiculous. The regular volcanos are 21mm, these Sovol versions are about 23.5mm
  • Varine Varine:
    So, 2.5mm longer. But the thing that measures the bed is about 1.5mm above the nozzle, so if I swap it with a volcano then I'm 1mm behind it. So cool, new bracket to swap that, but THEN the fan shroud to direct air at the part is ALSO going to be .5mm to low, and so I need to redo that, but by doing that it is a little bit off where it should be blowing and it's throwing it at the heating block instead of the part, and fuck man
  • Varine Varine:
    I didn't realize they designed this entire thing to NOT be modded. I would have just got a fucking Bambu if I knew that, the whole point was I could fuck with this. And no one else makes shit for Sovol so I have to go through them, and they have... interesting pricing models. So I have a new extruder altogether that I'm taking apart and going to just design a whole new one to use my nozzles. Dumb design.
  • Varine Varine:
    Can't just buy a new heatblock, you need to get a whole hotend - so block, heater cartridge, thermistor, heatbreak, and nozzle. And they put this fucking paste in there so I can't take the thermistor or cartridge out with any ease, that's 30 dollars. Or you can get the whole extrudor with the direct driver AND that heatblock for like 50, but you still can't get any of it to come apart
  • Varine Varine:
    Partsbuilt has individual parts I found but they're expensive. I think I can get bits swapped around and make this work with generic shit though
  • Ghan Ghan:
    Heard Houston got hit pretty bad by storms last night. Hope all is well with TH.
  • The Helper The Helper:
    Power back on finally - all is good here no damage
    +2
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    New recipe is another summer dessert Berry and Peach Cheesecake - https://www.thehelper.net/threads/recipe-berry-and-peach-cheesecake.194169/

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top