EssexUniversityMCTS / gvgai

This is the framework for the General Video Game Competition - http://www.gvgai.net/
Other
140 stars 69 forks source link

A problem with the position lists in SerializableStateObservation (Python client) #98

Closed ercumentilhan closed 7 years ago

ercumentilhan commented 7 years ago

SerializableStateObservation object in the Python client seem to hold wrong information in some of the observation lists such as fromAvatarSpritesPositions.

For example, in the game 0 (Aliens), size of the fromAvatarSpritesPositions in SerializableStateObservations you receive at every game step is 0 until you shoot a missile, then it becomes 1 (no problem until here). However, even after the missile leaves the game, the size of the list remains 1 (with a fixed, wrong(?) position) just as if there is an actual missile present in the game.

There may be a problem unless I am missing something.

ercumentilhan commented 7 years ago

Executing self.sso = SerializableStateObservation() line every time a valid message is received in processLine(self, msg) function of ClientComm.py seem to resolve this issue.

ljialin commented 7 years ago

Thank you! This is fixed according to your comment.