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

Won't run #1

Open
castaway429 opened this issue Jul 14, 2023 · 1 comment
Open

Won't run #1

castaway429 opened this issue Jul 14, 2023 · 1 comment

Comments

@castaway429
Copy link

When i try to run this i get the error:

source = open(source, "rb")
         ^^^^^^^^^^^^^^^^^^ 

FileNotFoundError: [Errno 2] No such file or directory: 'worlds/1-1/W11.tmx'

@Winter091
Copy link
Owner

There are several possible solutions:

  1. Try to start the game from the "Next" folder
  2. Change line
    tmx_data = load_pygame("worlds/1-1/W11.tmx")
    to use absolute path
  3. The most correct one: allow specifying "resources" folder path using command line argument, don't have hardcoded paths in source code

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

2 participants