pokepetter / ursina

A game engine powered by python and panda3d.
https://pokepetter.github.io/ursina/
MIT License
2.13k stars 321 forks source link

Graphics issues when converting to .exe #659

Closed Dinorigami-SLHIIDE-dev closed 3 months ago

Dinorigami-SLHIIDE-dev commented 4 months ago

I made a game using Ursina, followed this guide to convert my game to EXE format using auto-py-to-exe. This is what the game looks like when I run my script on VS Code : image

Unfortunately, the .alpha property of entities does not seem to work and the icons of button entities are flattened and are not well-positioned.

image

Also we cant change the "enabled" property in mid-game, it is only set at the beginning and does not seem to be changed.

Any ideas?

developer-1v commented 3 months ago

That's not good. I can probably help but haven't ran across these issues myself. Can you create a MRE Minimal Reproducible Example (and build it into an .exe). Then I can build the same one over here and try to diagnose.

Dinorigami-SLHIIDE-dev commented 3 months ago

I managed to solve it . The auto-py-to-exe did not use the same python version (v3.11.2) as the Visual Studio Code interpreter and some functions were probably not supported in python 3.10.