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: 184

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.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top