Hello, thanks to all the great minds we've figured out how to deploy MZ/MV project to iOS devices.
I especially would like to thank
- MiltonSSR for kicking off the discussion
- BreakerZero for giving me hints on initial steps
- HoofedEar for many many many tests with me
- yymess for solving the...
Took Cordova/Ionic approach, didn't work (plays music, blank screen - same as our method) ;_;
Step-by-step instruction (for MacOS) source
You need to install node.js and npm first. If you get error with below command, google and install these two
This looks really interesting... There are certainly more layers in my project than the example...
I will try to find some time and try things out for sure.
My MZ demo license is expiring in like 20 days.. Hope we can figure it out before it expires!
Thanks for sharing the code - its the same code as I tried but did not solve the problem ;_;
However, it seems to load a tad more than previously (shows the error before tapping the screen).
As for MV, it loads just fine. It is MZ that is causing a problem...
Interestingly, when I added...
Yeah I tried it before but didn't seem to help ... but let me try again too.
Updated the code above to reflect changes. Looks like it loaded a bit (the error shows up without tapping) but I still need to tap to finish loading.....
Alright... so it could be a bug with WebView around Audio Playback but not sure. As xcode returns this error in the opening.
I made a few updates to my swift code that I can
1. Use alert() in WebView to debug-track all JS files
I've tried Cordova / IONIC CAPACITOR before with MV, but I had to change things here and there, and I had no idea what I was "fixing" (and it still gave lots of warnings...)
I would try it again (and maybe write step-by-step) but I prefer to stay away from Cordova/Capacitor as it just adds more...
As you figured it out, XCode simulator doesn't work well with MZ (MV works but slow). Needs to test this on actual device.
I haven't had time to...
Hey I got it working mostly, but I still need to "tap" the iphone before it gets loaded (but loading is super fast on my iphone)
Just add this line after webViewCofig declaration
webViewCofig.mediaTypesRequiringUserActionForPlayback = 
My iPhone 11 Pro is running 13.6.1
Maybe its something to do with WKWebView and WebGL? I can run the game just fine if I host it on a web server and play it over Safari.
Memo to myself:
Try inline media playback setting...
Something is not quite working for MZ.
I have created a vanilla MZ project to my iPhone 11 Pro (using steps above)
It builds with no errors, and I can open the app in iPhone, but it stays blank (black screen) forever.
I then have tried this plugin suggested here to see if it would work, but...
Glad it worked! But credit goes to BreakerZero :guffaw:
I haven't tried on MZ (will download the trial and test).
Even on MV, iOS simulator is super super slow - unplayable. It works much faster when done on actual device via test flight.
I will experiment more and let you...
Hey MiltonSSR I had the same issue, but got it working!
I am totally new to XCODE (first time opening it) so there maybe some inefficiency here and there, but I will share exact steps for reference.
Please note I only have MV, but in theory, it should work with MZ.
Here are the steps I took...
This battle victory screen has been pretty fun to work on. Not only can party members set new personal records for their contributions to the fight, but when they do, the party remarks on the accomplishment!