dzoba / gptrpg

A demo of an GPT-based agent existing in an RPG-like environment

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Freezes whenever I go to use the S or D key

aodrasa opened this issue · comments

Firstly super cool idea, this is going to get real interesting with the upcoming features, however noticed it constantly freezes whenever I try to plant or harvest. Any ideas why that could be?

+1

+1

When you press those keys, you get the following error:

Uncaught Error: Character unknown: player

https://github.com/dzoba/gptrpg/blob/main/ui-admin/src/create.js#L23
This is because in the above file the character is registered with id agent1, instead of player, which is referenced in the plant/harvest actions.

Changing the agent id to player prevents the freezing, but it doesn't seem to fix the planting/harvesting, as it doesn't appear any of the tiles are plantable. Not sure how to fix that issue though, maybe a question for @dzoba

The tiles at the bottom of the map are plantable, or should be. The ones across the bridge with the holes in the grass.