Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Can't run Python Platformer sample
#1
How can I run the Python Platformer sample please? I tried and I have some errors

Do I need a specific version of Python?

Thanks for your answer!
#2
Hi,
You must install Tilengine shared library separately, depending on your OS. The PythonPlatformer project doesn't include it. Please post here what errors are you getting, to confirm that this is the problem.
#3
(02-01-2021, 05:06 AM)megamarc Wrote: Hi,
You must install Tilengine shared library separately, depending on your OS. The PythonPlatformer project doesn't include it. Please post here what errors are you getting, to confirm that this is the problem.

Here is a screen that shows the errors
The library was already here


Attached Files Thumbnail(s)
   
#4
Hi,
Reading the error messages you can realize that Tilengine.dll is not found and can't be loaded. The file explorer tree highlights it with a question mark, meaning that the file is referenced but cannot be found. You must provide it separately, either downloading the correct version from itch.io, or building it yourself and providing additional dependencies (SDL2.dll)
#5
I think the icon with the question mark next to the .dll files in the explorer just means the PyCharm doesn't recognise the file type.

I'm not very familiar with these kinds of issues on Windows, but it may be related to the DLL searching order on your system. Take a look here and see if it helps:

https://docs.microsoft.com/en-us/windows...arch-order
#6
I tried to load by getting the current directory and concatenate with the file name to get the absolute path, I still have errors about Tilengine's methods
Is it normal?


Attached Files Thumbnail(s)
   
#7
Bug 
Sorry, it was my fault.

In release 2.8.5 I removed some unused functions, but the binding was still trying to find them. I updated the binding in PythonPlatformer, just update your working copy and let me know if it works now.
#8
(02-02-2021, 05:05 AM)megamarc Wrote: Sorry, it was my fault.

In release 2.8.5 I removed some unused functions, but the binding was still trying to find them. I updated the binding in PythonPlatformer, just update your working copy and let me know if it works now.

Thanks! It works fine now!
#9
Perfect!
Let me know if you get stuck somewhere else, can be something wrong on my side


Forum Jump:


Users browsing this thread: 2 Guest(s)