Running Python helper scripts in bundled game
Posted: Sat Jul 16, 2022 6:15 pm
I finished my game. It works on my computer. But my attempts to bundle it in Xcode fail. This isn't surprising because I haven't put in the time to learn Xcode yet. So go learn Xcode. I thought I'd ask for help first because I'm concerned that the file design I've chosen for my game is a fatal flaw, and that I would be better off taking a different path to deployment, whether that means rewriting code and changing the file design or abandoning Xcode altogether and trying instead to deploy my game as a web app.
I'd really appreciate any advice or suggestions.
The basic problem with my file design is that the LOVE game relies on data provided by two Python helper scripts. The LOVE game and the Python files must be able to communicate while the game is running. This works when the game is unzipped via io.popen. It fails when the game is zipped.
The solutions seem to be either finding a way to enable Python-Love communication in a bundle or to rewrite the Python files (and, unfortunately, the functions in third-party libraries the Python files rely on) into Lua. That kind of translation seems beyond me right now. But if it is the way to go, I could certainly try to learn and figure it out. So any perspective would be great on what my simplest path forward is.
I posted the game on github. I think the game runs if it's cloned. If you try it and it doesn't, please let me know. The Readme has the same description of my problem with a little more detail.
https://github.com/delightfuldonut/FirstPersonFranz
I'd really appreciate any advice or suggestions.
The basic problem with my file design is that the LOVE game relies on data provided by two Python helper scripts. The LOVE game and the Python files must be able to communicate while the game is running. This works when the game is unzipped via io.popen. It fails when the game is zipped.
The solutions seem to be either finding a way to enable Python-Love communication in a bundle or to rewrite the Python files (and, unfortunately, the functions in third-party libraries the Python files rely on) into Lua. That kind of translation seems beyond me right now. But if it is the way to go, I could certainly try to learn and figure it out. So any perspective would be great on what my simplest path forward is.
I posted the game on github. I think the game runs if it's cloned. If you try it and it doesn't, please let me know. The Readme has the same description of my problem with a little more detail.
https://github.com/delightfuldonut/FirstPersonFranz