AI choose always same start position with free selection

AI choose always same start position with free selection

Discuss your problems with the latest release of the engine here. Problems with games, maps or other utilities belong in their respective forums.

Moderator: Moderators

Post Reply
User avatar
BrainDamage
Lobby Developer
Posts: 1164
Joined: 25 Sep 2006, 13:56

AI choose always same start position with free selection

Post by BrainDamage »

hello, i'm using lastest version of TA (windows), i've also updated the AI plugins to version (0.70 for AAI and XE9RC22 for NTai).

i've choosed to fight against the AI (this bug appears with all the ai types i have, all the mods and all the maps)

i choose the starting position for the commander: select in game

when i start the game the AI will always start in the top left corner of the map

to try to solve it i've tried to draw team boxes on the minimap, but the bot ignores them and still starts from the same position

i've also experimetied with different maps, it happens an all maps that they have the top left corner with ground, if the top left corner is impassable for the commander, then it will be spawn to the closest point with ground

anyone else experienced this bug?

should i post it elsewhere too?

thanks for any feedback
pheldens
Posts: 191
Joined: 12 Aug 2006, 21:35

Post by pheldens »

try random placement
User avatar
BrainDamage
Lobby Developer
Posts: 1164
Joined: 25 Sep 2006, 13:56

Post by BrainDamage »

random placement & fixed placement works, but that doesn't solve my problem.

i still want the postion selection, expecially since i wanted to make a team game with a friend against all the bots, with bases close (most of the maps it puts me & my friend at opposite sides of the map with fixed position)

what it really bugs me is that the team boxes should work at least, the bot may but his start postion where he wants inside that box, i don't care if it's in the top left, right or middle of the box, at least i can prevent him to start always in the top left corner of the map
pheldens
Posts: 191
Joined: 12 Aug 2006, 21:35

Post by pheldens »

it's not wrong when it wants to start there, which it appears to.
User avatar
rattle
Damned Developer
Posts: 8278
Joined: 01 Jun 2006, 13:15

Post by rattle »

Use springsp to play with bots, the order in which they "join" is how they get placed. Player1 gets top left, player two lower right, player three top right (and so on, differs from map to map). Random placement sorta takes care of that but I had my doubts it's really random at times (same locations 10 times in a row).

In order to play a map with your friend online through the lobby against some bots is to change the starting locations. Open the map sdz/sd7 (they're zip/7zip files) and get the mapname.smd out of there and put them straigth in the maps folder. Then edit them and look for lines saying [TEAM1] StarPosX = ... StartPosZ = ... and switch the locations for TEAM2 and TEAM3 (if it's map designed for four players).

That's what I did with one map in order to play coop games with a friend. Just remember to move the smd out of there after you're done, may cause trouble when that map with other people... Oh and your friend needs to have the same .smd in his map folder, just remember to (re)move them afterwards.
User avatar
BrainDamage
Lobby Developer
Posts: 1164
Joined: 25 Sep 2006, 13:56

Post by BrainDamage »

pheldens wrote:it's not wrong when it wants to start there, which it appears to.
the team boxes limits the choice to place your commander at the start from all the map to the delimited area, the AI simply ignores them, so what you wrote had no sence at all.
rattle wrote:the order in which they "join" is how they get placed.
when i use AIs they always gets put in the bottom of the player's list (either if my friend joins before/after i add them), that's why i need custom start postion, otherwise in 90% percent of the maps i will be placed besides the AIs.
rattle wrote: Open the map ..... Then edit them
thanks for that suggestion, i will try, i belive i will just make a copy of the map and rename it like (custom team positions) to avoid troubles when i play with other players.

trying to not being too much insistent, i still belive that the AIs ignoring the team boxes is a bug that should be fixed, at least would provide a way to play against the AIs using free start selection
User avatar
rattle
Damned Developer
Posts: 8278
Joined: 01 Jun 2006, 13:15

Post by rattle »

Brain Damage wrote:
rattle wrote:the order in which they "join" is how they get placed.
when i use AIs they always gets put in the bottom of the player's list (either if my friend joins before/after i add them), that's why i need custom start postion, otherwise in 90% percent of the maps i will be placed besides the AIs.
That's one of the limitations TASClient has. That's why I mentioned the change the starting location method by editing the map definition file...
User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

Post by KDR_11k »

AIs cannot choose their starting location since Spring won't start the AI before the match has already begun.
User avatar
rattle
Damned Developer
Posts: 8278
Joined: 01 Jun 2006, 13:15

Post by rattle »

However you can still use .cheat and then .team 0-9, (in a two-player game everything onward from team 2 are the AIs) to set the starting location for the AI players. Don't forget to switch back to team 0 or 1, depending whether you're player 1 or 2 (or what ever).
Post Reply

Return to “Help & Bugs”