Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

try to run game failed #41

Closed
ChrisChou-freeman opened this issue Sep 20, 2021 · 0 comments
Closed

try to run game failed #41

ChrisChou-freeman opened this issue Sep 20, 2021 · 0 comments

Comments

@ChrisChou-freeman
Copy link

error message

Traceback (most recent call last):
  File "/Users/chrischou/GameStudio/pickles-fetch-quest/pickles-fetch-quest.py", line 78, in <module>
    entry_room_loader = tiled_editor.TmxLoader('rooms/entry-room.tmx', tmx_factory)
  File "/Users/chrischou/GameStudio/pickles-fetch-quest/engine/tiled_editor/tmx_loader.py", line 57, in __init__
    self._parse_node(node)
  File "/Users/chrischou/GameStudio/pickles-fetch-quest/engine/tiled_editor/tmx_loader.py", line 72, in _parse_node
    layer_loader = TmxLayerLoader(
  File "/Users/chrischou/GameStudio/pickles-fetch-quest/engine/tiled_editor/tmx_layer_loader.py", line 48, in __init__
    self._load()
  File "/Users/chrischou/GameStudio/pickles-fetch-quest/engine/tiled_editor/tmx_layer_loader.py", line 55, in _load
    self._load_object_layer()
  File "/Users/chrischou/GameStudio/pickles-fetch-quest/engine/tiled_editor/tmx_layer_loader.py", line 85, in _load_object_layer
    for obj in filtered_objects:
  File "/Users/chrischou/GameStudio/pickles-fetch-quest/engine/tiled_editor/tmx_object_layer.py", line 29, in load_tmx_object_layer
    object_type = _get_type(object_node.attrib, tile_objects)
  File "/Users/chrischou/GameStudio/pickles-fetch-quest/engine/tiled_editor/tmx_object_layer.py", line 56, in _get_type
    return object_attributes['type']
KeyError: 'type'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant