deployment error

recently ive been trying to get my friends to be able to playtest my game, but when they tried to open it, it showed the loading screen after the title (and of course, it didnt load) and after attempting to play the game as the deployment myself, it gave me the same loading screen. the index showed this error:
1700179099793.png

as someone who understands pretty much nothing about javascript, id like to know what any of this means and/or how to fix it😔
has nothing to do with javascript at all - it is either missing a file or cannot load said file due to folder problems.

please give the full folderpath from drive letter to Actors.json inside your data directory.

that way you both check if the file is there, and we can check the folderpath for restrictions or problems of the other case.
please give the full folderpath from drive letter to Actors.json inside your data directory.
sorry if this is bothering, but i dont quite understand how to do that😢 id like to have direct instructions on what to do... ive tried a couple things already but im pretty stumped 😔 thank you very much!
You go to your game project's directory. Go into the data folder. Click into the folder path on the top of the Explorer window:
1709528415181.png


Copy it and paste here:
D:\Sword_of_dusk\Secret\data

Making sure that Actors.json actually exists, which is what the error message is claiming it doesn't.


You could also right-click on Actors.json and select Properties.

Click after the word Location: and drag right to select the entire row. Copy that and paste it here:
1709528354530.png


D:\Sword_of_dusk\Secret\data
right, i think i found the problem.
i have all of the files but for some reason they werent in the 'games' folder in my desktop, which is why it couldnt get the location of the file.
so now that im pretty sure it'll work, would i need to deploy the game into that folder? or would it be okay to keep it somewhere else? also, would it work if the game folder itself was also not in that folder?
thank you very much for helping me ^_^
edit: it appears to still not be working, so heres the folderpath for actors.json (in the deployed version) as asked:
C:\deployment\test\www\data
as well as the non deployed version which is in my downloads folder:
C:\Users\(account name, censoring for privacy)\Downloads\test\data
So, dumb question, but are you opening the "Game.exe" or are you opening the "index.html" directly with your browser (or are you using web deployment?)
Because normally Actors.json is the first file to he loaded and when files generally can't be loaded you will get this error. And that will oftentimes be the case if you open the index.html with your browser.
i open the game.exe file, and it stays on the loading screen. the 'index.html' has the same message whether or not game.exe is open or not.
ive tried to open it with and without index.html open (in web browser), but yea
i open the game.exe file, and it stays on the loading screen. the 'index.html' has the same message whether or not game.exe is open or not.
ive tried to open it with and without index.html open (in web browser), but yea
Okay...to clarify, you should not be doing anything with the index.html.

The way you run the deployed game is via the Game.exe.

If your problem is that you're seeing the error screen in your first post because you're trying to open index.html, that is what everyone would see, and you've run your thread around in circles for 7 posts.

If your actual problem is that trying to run the deployed Game.exe results in a black loading screen, that is a loading error but likely has nothing to do with Actors.json.

When you get loading errors trying to run the game but you don't get them in your playtest, that indicates errors in filenames. Go through any files you've added to your project and make sure they don't have any non-HTML-compliant characters. They should not have spaces or special characters (other than $ or ! for character sheets).
so ive checked the filenames. some of them did have spaces and other special characters, but i changed them (and updated the file as used in the project) and im still getting the loading error. every asset has no special characters or spaces, im so confused 😢
I think it also says that error if you try opening the game in a zipped folder without unzipping it first
yep, it doesn't work even when the folder is unzipped.
I think it also says that error if you try opening the game in a zipped folder without unzipping it first
To clarify (and the OP should do this with a fresh explanation), I believe there is no error shown.

The problem is that after selecting New Game from the title it gets stuck at the loading screen.

Is that correct?
The problem is that after selecting New Game from the title it gets stuck at the loading screen.
yep, thats what seems to be happening here
I'm not sure what to do if it doesn't give you the error during a playtest (where you can press F8 and go to the Console tab).
well... i playtested it and there was an error, but i did fix them (the errors dont show up anymore) and it still wont make it past the loading screen.
the error was from the party manager plugin. i dont quite remember what the error was, but i guess i did something and its gone now?
so the console is clear now. the loading error is still there, ive updated the distribution package and it wont work.
edit: i checked again, there was one thing in the console, im doubting it means anything. the message was [Violation] 'requestAnimationFrame' handler took 53ms
just mentioning this in case
OK, then let's try to approach this from other sides.

If I remember correctly one of the more common causes for loading screen without error happens with a problem when trying to load the main font. Did you change anything with the base font?

can you give us screenshots of your plugin manager so that we can see the entire list of your plugins and their order?
I don't think it's a font problem, the font is different from the base one but it loads the title screen, and the font is fine there.
here is every plugin im using:
Spoiler
1709690593277.png
If it's not a game with sensitive content, try uploading it to a sharer so someone can review the implementation itself. I recommend:
OneDrive, Google or MediaFire
I'd like to read the full contents of the console up to the point it gets stuck.
You see, somebody else reported a slightly similar issue with VN regarding the call to requestAnimationFrame function. There might be a chance that here it will include a clue on what type of stuff it's trying to load to no avail.
BTW, are you using the default NW.js version? Or did you upgrade it? Just asking.
okay its been a while since ive replied here.
i made a new, clean project and tried to remake the old one to pinpoint where the problem was. i deployed it every now and then to see if it worked, and it did, but then it just stopped working.
after removing some things, im pretty sure the problem is tiled.
i deleted it (and nothing else) and deployed again, it worked just fine. i just need to find out what about tiled is causing the problem. :kaomad2:
im using version 1.20. im not sure if its incompatible with any of my other plugins, but this is what i have.
1723507217899.png
1723507280123.png

i only had one map when the error occured, and one .json tileset in tiled. there were no in-game tilesets, and renaming the .png files in tilesets to the same name as the one in tiled/maps folder didnt do anything.
EDIT: i am also using tiled version 1.0.3. ive tried using other versions, but i recall not being able to use up to a certain version because it didnt work. its possible this is the problem, though, so im actually going to look into that.👋

Original thread: https://forums.rpgmakerweb.com/threads/deployment-error.163002/