TD Spawn Trigger Issue

Steve

Member
Reaction score
3
I have 4 spawn points in my map and for some reason there is an extra group of creeps that spawns in the corner of the map. I have no idea why seeing how there is no region over there nor did I make a trigger to spawn them there. When I get home ill post the map and if someone could look at it for me it would help me out a great deal, seeing how I cant really test my map unitl that problem is solved. Thanks.
 

Steve

Member
Reaction score
3
Ok here is the map, all triggers included, feel free to test the map to see what im talking about. They spawn in the top right corner.

Also some units move in the wrong direction and im not sure why it seems all my pathing triggers are correct.

One last thing for some reason the pathing blockers do not work, if someone could tell me why that would be awsome thanks.
 

Attachments

Steve

Member
Reaction score
3
for some reason the creeps are getting jammed even though the collision size is zero.
 

Insane!

Shh I didn't edit this, go away.
Reaction score
121
try unchecking in the object editor "can flee"

or use in the trigger editor: right click>copy as text
 

Steve

Member
Reaction score
3
well to fix the extra creeps that spawn for no reason that I can see, I added a remove trigger when they enter the region I created, for now its just a bandaid unless it doesnt lag the game to much.
 

Alphabet

New Member
Reaction score
12
The problem with extra creeps probably is in here:
JASS:
function SpawnForAll takes nothing returns nothing
    local rect array Spawn
    local integer spawnnumber = 20
    local integer curindexnumber = 1
    set Spawn[1] = gg_rct_Red_Spawn
    set Spawn[2] = gg_rct_Blue_Spawn
    set Spawn[3] = gg_rct_Teal_Spawn
    set Spawn[4] = gg_rct_Purple_Spawn
loop
    exitwhen curindexnumber == 9
    call CreateNUnitsAtLoc( spawnnumber, udg_creepArray[udg_levelCount], Player(11), GetRectCenter(Spawn[curindexnumber]), 0.00 )
    set curindexnumber = ( curindexnumber + 1 )
endloop 
endfunction
You are spawning creeps at Spawn[5], Spawn[6], Spawn[7], and Spawn[8], even though they aren't declared. Maybe edit that 'exitwhen' line's number to 5.
 

Steve

Member
Reaction score
3
ok thanks ill change the number to 5 and see what happens, the reason why I wouldnt catch something like that is because I dont understand jass.
 

Steve

Member
Reaction score
3
ok changing the value to 5 fixed the spawn problems, thanks for the help. I also redid the pathing so the jams are less frequent, but some still do occur.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • jonas jonas:
    Oh, I see. I thought Chinese version of A-levels :D
  • jonas jonas:
    I've been using the translate app a lot on my phone. take a photo, translate. take another photo, translate again :D
  • jonas jonas:
    it also has voice translation, my colleagues sometimes use that
  • jonas jonas:
    You came during the 0 covid policy right? How'd you get through quarantine? Did you have some help with the apps and green codes?
  • tom_mai78101 tom_mai78101:
    If you have any Chinese you need help with, let me know.
    +1
  • vypur85 vypur85:
    @jonas Those were the things I did too. Translate app and VPN are always the most important things to have to survive. Lol.
  • vypur85 vypur85:
    Yea I came last year. I was quarantined for about 30 days. Fml. The first day of my quarantine was the eve of Chinese new year last year. Fml again... Lol.
  • vypur85 vypur85:
    @tom_mai78101 IIRC you're from Taiwan right.
  • The Helper The Helper:
    I thought China had cracked down on having any foreign teachers?
  • vypur85 vypur85:
    Yeah I've heard of the news before. My school is still actively hiring foreign teachers. Not sure how things work now.
  • The Helper The Helper:
    yeah it is hard to get reliable information about that kind of stuff
  • The Helper The Helper:
    but you are doing it so it is still doable
  • vypur85 vypur85:
    I think it doesn't affect existing foreign teachers. Then again, its still weird that my school is hiring.
  • The Helper The Helper:
    Happy Monday people hope everyone has a fantastic week!
  • Ghan Ghan:
    Happy Monday?! That's a contradiction.
  • jonas jonas:
  • jonas jonas:
    please put this in the news section, it's crazy
  • tom_mai78101 tom_mai78101:
    Technically, you can post in the Headline News. Just posted your news there.
  • tom_mai78101 tom_mai78101:
    I'm not aware of you not being able to post news.
  • jonas jonas:
    I think technically I can I just forget how
    +1
  • The Helper The Helper:
    Happy Thursday!
  • The Helper The Helper:
    Happy Friday Night!
    +1
  • V-SNES V-SNES:
    Happy Friday night!
    +1
  • vypur85 vypur85:
    Happy Sunday. Sigh. Work day tomorrow.
    +1

    The Helper Discord

    Members online

    Affiliates

    Hive Workshop NUON Dome World Editor Tutorials

    Network Sponsors

    Apex Steel Pipe - Buys and sells Steel Pipe.
    Top