Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

i always get this error when running on mac though wine:

Traceback (most recent call last):

  File "yawnoc.py", line 237, in <module>

  File "scripts\pygpen\misc\game.py", line 18, in run

  File "yawnoc.py", line 21, in load

  File "scripts\pygpen\__init__.py", line 28, in init

  File "scripts\pygpen\entities\entity_db.py", line 34, in __init__

  File "scripts\pygpen\entities\entity_db.py", line 38, in load

  File "scripts\pygpen\entities\entity_db.py", line 47, in generate_configs

FileNotFoundError: [WinError 3] Path not found: 'data/images/entities'

(1 edit) (+1)

MacOS has issues selecting the correct working directory. That's why I normally don't make Mac releases.

So it uses the wrong directory as data dir? Or am i not understanding something?

Yes

but can i put it somewhere or tell it to search it there, or is it not possible?

Idk. I don't use Apple products.

I actually just dealt with this after going through your platformer tutorial and trying to use PyInstaller to export an executable. There's a function you can find that basically checks the PyInstaller _MEIPASS for the path and then if it's not there grabs the abs path. Then you just throw the assets in the expected dir. It's a bit of a pain because you have to call the function on every single path string you use in the project, but it does fix the problem (when running/exporting exclusively on Mac). Not sure if it would interfere with Windows/Linux stuff.