Posted: 29th May 2022 16:49
https://fascimania.itch.io/appgamekit-for-python

Windows 10 x64
Python 3.9.1

Hi! Using the example for pyinstaller from the examples folder, after transferring the appgamekit folder there beforehand, after assembly I get this message. Help with solving the problem.


adambiser, help!
Posted: 31st May 2022 4:49
Hey, I recently discovered this problem, too.

Take a look at this example:
https://github.com/adambiser/ascension/blob/master/onedir.spec
This line in particular:
+ Code Snippet
             hookspath=['_pyinstaller'],

That points to a folder where I keep my hooks and I made one for appgamekit:
https://github.com/adambiser/ascension/blob/master/_pyinstaller/hook-appgamekit.py
(file name is important!)

That hook:
1) Makes appgamekit available for import,
2) Adds the "media" folder and Plugins folder (if available) to the dist folder
3) Also adds "icon.ico" if available

Essentially, add and use that hook file and it should include everything you need for you.

EDIT:
Also, for AppGameKit for Python problems, it would be better to post at https://fascimania.itch.io/appgamekit-for-python
The TGC forum doesn't email notify me for some reason even though I have it set up to do so.
Posted: 31st May 2022 11:46
Thank you for the prompt reply and thank you very much for solving the issue. AppGameKit for python is amazing!
Posted: 31st May 2022 13:24
I'm glad that helped you solve your problem and happy that you're enjoying AppGameKit for Python.
Posted: 31st May 2022 13:25
adambiser, do you plan to update the core to a new version? Or is there no need?
Posted: 31st May 2022 14:46
I rely on the AGKTier2 code found on github.
They haven't updated it since 2021.06.14.
There are a couple of commits since then, one containing TextShader commands that aren't actually in AppGameKit yet, and a virtually empty commit adding unnecessary binary files.
I asked them about it, but haven't heard back.

EDIT:
I'd have to check, but I don't recall anything being added since 2021.06.14 that would actually be compiled into AppGameKit for Python.