Why do my footies keep timing out and going back to spawn spot?

BlowingKush

I hit the blunt but the blunt hit me.
Reaction score
188
OK Guys,

I made this game where a line of footies is created for each team on the top of the map, and on the bottom.

The Top footies are for Computer(Yellow)
And the Bottoms footies are Computer(Light Blue)

I then command each footie to attack/move to a point that has the same x coordinate, but 5300 points in the opposite direction (other end of the map)



That works..... The 2 Lines of footies run toward each other and slam together in a massive battle. I LOVE IT.....!!!

Heres my problem.. If someone can solve this I will be forever in your debt.


For some reason after longer battles build and the foots fight for awhile, Around 50% of the footies time-out or for some strange reason after the battle is over, lose the command they have been issued, and run back to thier starting point. I dont know why? Do unit orders time out? and default by telling the unit to return to its original spot?

Please play my game a couple times to witness this first hand !!!!.
 

Attachments

  • Hero Line Tactics.w3x
    257.3 KB · Views: 182

skyblader

You're living only because it's illegal killing.
Reaction score
159
lol 5300? Maybe thats not far enough. Try order them to attack-move to a region.(create a region, at opponent's base)
 

Beetlebomb

New Member
Reaction score
43
ok, just tried your game out and I witness what happened.

Because of the size of your map, and the distance you're telling these units to move, It's very difficult to tell them to do that order. I know this might sound strange, but units tend to be very hard to manage when given far away orders.

If you were to have given control to neutral hostile footmen that went south and north, you'd have an even worse problem because it has a miniature built-in AI.

The way to fix it? Well I honestly don't know, having the style of your map requiring that far distance to be moved.

I couldn't quite tell where you were telling them to move. If you tell them to move in small increments that might fix the problem. Or you can simply make a region at the top and bottom of the map that moves units of the same team back down so that the "lazy" ones go back to join the battle.

I hope i've helped,

Beetlebomb
 

DiFm

New Member
Reaction score
35
Order them to attack move to a region and make a few of those of the real stretch then when unit enters that region and unit = west team creep attack move to next region.
 

BlowingKush

I hit the blunt but the blunt hit me.
Reaction score
188
Ill try that.. You mean make multiple regions, maybe 4 or 5 that reissue the command as the footy moves north or south
 

Tythoid

New Member
Reaction score
23
Go to Game play constants tick the box saying use custom game play contants then scroll down to -creep -return distance and change this to 999999 :)
 

BlowingKush

I hit the blunt but the blunt hit me.
Reaction score
188
Go to Game play constants tick the box saying use custom game play contants then scroll down to -creep -return distance and change this to 999999 :)

Ill try it although they arent creeps....
 

BlowingKush

I hit the blunt but the blunt hit me.
Reaction score
188
OMG none of these work!!!!

I ordered the footies to attack/move to a spot that was <1000 points away....
I tried telling them to go to the center of a region that I called Test..
and I set the creep return to 999999

On all 3 trys the footies walk to the spot, turn around and walk right back to the spawn point....... It is freaking rediculous. :(

I know I saw a solution to this or some custom script like a year ago but I have no clue..
 

Beetlebomb

New Member
Reaction score
43
It's not something that easily fixed, I'm afraid.

If you've tried everything then the best thing to do is either #1. Expand around it. Make your map adjust according to this problem. Or #2. Do a deep site search and look through google for any answers on this subject.

I hope I've helped!

Beetlebomb
 

BlowingKush

I hit the blunt but the blunt hit me.
Reaction score
188
Yeah, I am going to try the region thing next and keep reissueing the commands.

I do know for a fact though that i have seen an answer to this a year or 2 ago....i might get lucky.
 

WolfieeifloW

WEHZ Helper
Reaction score
372
Did you set both "Creeps - Guard Distance" and "Creeps - Guard Return Distance" to "100000.01"?
 

WolfieeifloW

WEHZ Helper
Reaction score
372
Do the footies do anything besides just attack?
Doing anything [casting a spell, moving, stopping, hold position, patrol, etc] will cause them to lose their Attack-Move command.

Why not just order them to Attack-Move to a region, instead of dealing with '5300' or whatever?
 

Beetlebomb

New Member
Reaction score
43
Because on his map he needs them to move directly south or north of where they spawn since he's trying to get a wide area filled with a line of units at the same time. His map looks like a football field.

Beetlebomb
 

WolfieeifloW

WEHZ Helper
Reaction score
372
I've looked at the map, and he could just make ~4 regions per side.
Then group spawns into 4 groups, and order each group to go to their respective region.
The map is long enough that they would go in a line pretty much.
And if not, just make 8 regions per side or something.
 

BlowingKush

I hit the blunt but the blunt hit me.
Reaction score
188
sentess read post number 4 first.... (in case you have not)
That solved a similar but totally unrelated problems.


As for the problem faced.

This happens when there is a computer controlled player.
If you create a unit owned by a Computer Player, gives it a move command, it will move out, however when the command expires (Example: End of a TD or random running.) it will run back towards its spawn point.
I term it as the Homing Pigeon Effect :D

This is how the AI works,

Given: Where-ever the unit is spawn, it is assumed to guard that position.
So when the unit doesn't need to be anywhere else, it will automatically go back and stand guard.

To solve the problem,
Just play with the AI triggers :D
Try a map with Player 12 (Brown) as Computer
The Red part is the key, have to set it after Unit Creation
Code:
Untitled Trigger 001
    Events
        Player - Player 1 (Red) skips a cinematic sequence
    Conditions
    Actions
        Unit - Create 1 Footman for Player 12 (Brown) at (Center of Region 001 <gen>) facing Default building facing degrees
[COLOR="Red"]        AI - Ignore (Last created unit)'s guard position[/COLOR]
        Unit - Order (Last created unit) to Attack-Move To (Center of Region 000 <gen>)


HERE IS THE ANSWER!!!! And YES this does work.!!!!!
 

Beetlebomb

New Member
Reaction score
43
Glad you found it. I'm happy to know the solution to this as well, now.

Good luck with your map, it's a great idea!

Be sure to post it in the members projects when you're done ^^


Or PM me when it's finished :p

-Beetlebomb
 
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

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top