Quake3-iOS
Quake3-iOS copied to clipboard
Copies pak0 files to user's documents directory (updates for Xcode 16 / iOS 18).
The Journey
- Kept getting errors re:
baseq3being inaccessible from the engine on Xcode 16 / iOS 18.5. I tried adding it per instructions (by reference at the root), but then tried everything else (copying files into the bundle, folders vs. groups, putting it in various folders within the project…), which of course didn't work 😆. - Added debugging and saw the files were present on device, but the engine was unable to find the
baseq3folder (& reported 0 paks). - Had an idea that maybe files in the bundle can't be read from the engine, so copied them into
~/Documents& 💥 .
🎉
Other notes
-
The documents setup loop is pretty simple, only checking if the pak file already exists in documents before copying = updated paks won't copy over (but how often do these change? ¯_(ツ)_/¯). It also happens upon first arena load, which can be slow-ish (20-30 sec) if you brought over a
baseq3folder w/ a lot of maps. -
I tried to make as minimal changes to the project as possible. You'll note there are still some warnings:
Moving the baseq3 folder to documents alongside the other mods is a great idea. Makes for a more lightweight core app, and people can just sideload the ipa and add the baseq3 folder without needing to compile anything. I implemented this on my fork.