megamarc / Tilengine

Free 2D graphics engine with raster effects for retro/classic style game development
https://www.tilengine.org
Mozilla Public License 2.0
847 stars 95 forks source link

Just can't get the examples to load #34

Closed CyborgCabbage closed 5 years ago

CyborgCabbage commented 6 years ago

For all of the examples I get this message:

Traceback (most recent call last):
  File "mode7.py", line 6, in <module>
    from tilengine import *
  File "C:\Users\Finlay Laidlaw\Desktop\Tilengine\samples\python\tilengine.py", line 271, in <module>
    _tln = cdll.LoadLibrary("Tilengine.dll")
  File "C:\Users\Finlay Laidlaw\AppData\Local\Programs\Python\Python37\lib\ctypes\__init__.py", line 434, in LoadLibrary
    return self._dlltype(name)
  File "C:\Users\Finlay Laidlaw\AppData\Local\Programs\Python\Python37\lib\ctypes\__init__.py", line 356, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: [WinError 126] The specified module could not be found

I'm running Python 3.7 on Windows 10 64-bit Please help me out, I'm relatively new to python and not very good at debugging.

megamarc commented 6 years ago

Hi, It seems that Tilengine.dll and SDL2.dll are not located inside the "python" samples directory. They should They're not distributed as precompiled binaries in GitHub, if you want them you should grab them from itch.io page in tilengine (https://megamarc.itch.io/tilengine) and download for Windows 64-bit. Or build yourself from source, either way. Then copy Tilengine.dll and SDL2.dll to the python samples folder and they should work

megamarc commented 5 years ago

For support questions that aren't feature requests or bugs is better to go to the official forums: http://www.tilengine.org/forum/index.php