Check the package.json in the folder with nw.js. Does it point to the index.html properly?
Open Console after deployment
RPG Maker MV SupportYou're still missing the point.
If the index.html doesn't load properly and it's not a problem with your own web browser then by definition it doesn't work fine, at least not for a web deployment. And if it didn't work in your backups, it doesn't mean it's fine, it means the problem was there in your backups as well.
If the camera is broken on your smartphone, your smartphone is not completely fine even if you can still run apps and make calls with it. And if the phone camera was broken since the day you bought it, your phone is still not fine, it just means you got sold a defective phone and didn't know about it. Even if you never use the camera, your phone is still not fine.
So it won't be a problem if i don't have a plan to publish my game on web browser, right?
The problem behind the index.html not working could well be the same thing causing many of your other problems.
It's like you wonder why you can't play Pokemon Go on your smartphone and then find out it's because your camera is broken.
If you know it is an isolated issue, maybe you can afford to ignore it. But if you don't even know why it's happening, you really should find out.
It's like you wonder why you can't play Pokemon Go on your smartphone and then find out it's because your camera is broken.
If you know it is an isolated issue, maybe you can afford to ignore it. But if you don't even know why it's happening, you really should find out.
The index.html will not work unless you open it in Firefox(built in server) or you're running a local server or its uploaded to your own web server. Last I checked chrome and Microsoft edge does not allow loading of local files which is why you got an error attempting to load it.
So that's the reason. I'm using Chrome so it did not allow me to load the local files of the game.
I think it does not have a problem.
I successfully did this just about a month ago to make my game worked with Steam via this tutorial from Hudell. However, this times it is so weird.
@LTN Games Actually, it's a bit more complicated than that.
Edge does allow you to load files in localhost. Chrome does as well, just not all of them. For example images from different folders will not be loaded. But scripts will run without issue. The game would have crashed with the error - failed to load image file. But it would load all scripts and plugins. I dealt with this exact thing when I was experimenting with three.js; it was the only time I'd use edge xD
@JamesRyan Hmm, package.json is fine as well from the looks of it. Is the index.html corrupted then?
Edge does allow you to load files in localhost. Chrome does as well, just not all of them. For example images from different folders will not be loaded. But scripts will run without issue. The game would have crashed with the error - failed to load image file. But it would load all scripts and plugins. I dealt with this exact thing when I was experimenting with three.js; it was the only time I'd use edge xD
@JamesRyan Hmm, package.json is fine as well from the looks of it. Is the index.html corrupted then?
@pyorg If it's static they'll load no problem but because MV uses XHR to load their data files you need a server because chrome disallows xhr requests locally. I haven no idea about edge i never use it I just know it don't run my games locally.
I don't believe it is corrupted. My deployment was still working fine before i replaced everything with another nwjs.
EDIT: Somehow it is working now. Really weird :dizzy: Well, thank you for your help @Poryg 😀
Original thread: https://forums.rpgmakerweb.com/threads/open-console-after-deployment.99531/