Mime Ai
by Carolyn Anderson · in Technical Issues · 06/20/2006 (9:21 am) · 5 replies
I want to make it so an the Ai mimics the exact motions and movements a player performs in sequence. The Player is going to move from one point to a trigger point and once he reaches that point I want the ai to perform all his past actions up til the trigger point. How would I do this?
#2
06/20/2006 (9:53 am)
Maybe record process tick based on position rotation of player data in an array. what kind of file should i record this as?
#3
06/20/2006 (10:26 am)
Maybe record process tick based on position rotation of player data in an array. what kind of file should i record this as?
#4
06/20/2006 (1:27 pm)
XML is great. Thats your generic, all-use file format.
#5
negative. big bloated .. this is a Game not an Enterprise application.
lets have some nice and simple csv files.
www.creativyst.com/Doc/Articles/CSV/CSV01.htm
but more importantly let's look at what the journal has for you already.
the game can already record all the player input.
so you need to maybe consider making use of that for this feature.
06/20/2006 (1:51 pm)
Yuck.. XML??negative. big bloated .. this is a Game not an Enterprise application.
lets have some nice and simple csv files.
www.creativyst.com/Doc/Articles/CSV/CSV01.htm
but more importantly let's look at what the journal has for you already.
the game can already record all the player input.
so you need to maybe consider making use of that for this feature.
Associate Manoel Neto
Default Studio Name
If you want perfect accuracy, and want to be able to playback the movement on any AI , you could implement some sort of recording support to the player class. You could make a copy of the move recieved in the processTick() call and pile it into a stream or an array/vector. If you use a stream you can easily switch to a fileStream and record to a file.