UPBGE / upbge

UPBGE, the best integrated game engine in Blender
https://upbge.org
Other
1.41k stars 179 forks source link

“Start Game from file” does not work after exporting Game as a standalone with the UPBGE 3.0.0 #1729

Open BenjaminB1991 opened 2 years ago

BenjaminB1991 commented 2 years ago

Hey, you can see from the title what my problem is (on Mac). I’m sure that if you double click on the exported standalone app the CWD changes to a temporary directory beginning with " /private/var/folders/" where the “start”-blend-file (from which I want to start the game using the game actuator “start game from file”) lies temporarily. The problem is, that from this CWD I can’t make a relative path to the external blend-file (the actual game), which lies outside of the standalone app (this is important because of the licensing). I have no idea, but is there a possibility to change the CWD while running the “start”-blend-file to the directory where the “start”-blend-file is originally located (not as a temporary file)? Then I could construct the relative path to the external blend-file (the actual game)...

lordloki commented 2 years ago

I confirm the issue. Another marvellous "security" feature from Apple: https://eclecticlight.co/2021/04/19/ios-apps-are-translocated-when-run-in-macos/ I will see how we can bypass.

BenjaminB1991 commented 2 years ago

Ohh shit, I understand... Please let me know if there is a solution in the future ;-)

HHCF8 commented 1 year ago

it is true