gptrpg icon indicating copy to clipboard operation
gptrpg copied to clipboard

Freezes whenever I go to use the S or D key

Open aodrasa opened this issue 2 years ago • 6 comments
trafficstars

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?

aodrasa avatar Apr 21 '23 05:04 aodrasa

+1

zwhe99 avatar Apr 21 '23 12:04 zwhe99

+1

Skytliang avatar Apr 22 '23 07:04 Skytliang

+1

alexdeploy avatar Apr 22 '23 20:04 alexdeploy

+1

xbwtyz avatar Apr 23 '23 00:04 xbwtyz

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

joshuafsharp avatar Apr 28 '23 13:04 joshuafsharp

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

dzoba avatar May 02 '23 00:05 dzoba