i've been attempting to send a friend of mine a game but when he attempts opening it he gets the message:
cant read Actors.json while i am still able to work on my game, does this mean my file is corrupted? and if so how do i restore it?
Do you send him the game project or the deployed file?
what files did you send and how?
This error message can mean one of three things:
1) the file is damaged or missing
(Which is why I asked how you send the files)
2) the directory path where the project is stored does not follow networking rules
For example if there is a space in the filepath or a non-latin letter, the files can't be loaded correctly
3) you send a project that hasn't been correctly deployed.
For example, deploying a project into the working directory will damage the working version and prevent correct launch of playtests and plays.
Did you also send him the Actors.json file? you get that error message when opening a project if that file is not present.
I think you mixed up several things.
First we need to check if your project is still intact.
Please open your project directory. does that directory contain a folder named WWW? I hope not, because that would mean that you made the mistake of deploying the game into the project directory. If that folder is there, then we need to repair your project. In that case just tell us that that folder exists and we go from there.
If it does not contain that folder, then we can create a correct deployment.
For that, start the editor and select deployment, and select an empty directory as the deployment target.
EVERYTHING that is in that folder after deployment needs to be send to your friend, because everything there is then needed to play the game.
You might decide to create an archive with everything to make transfer easier.
As for your json - there is no need to ever open the json files manually - those are the data files created by the editor.
Your windows probably asked you for which program to open with because they had no file association - and the reason why they had none is because they were not intended to be opened by regular users (only programmers might be interested in reading them).
But basically they can be opened with any text editor if you are a programmer.
When you sent it to him did you send it in a zip file? If so, did he unzip it into its own folder first? if he just opened the zip file in windows. Windows treats zip files like folders in most cases now, so its possible to just open it and try and open the project file, doing it that way would cause this error to pop up. If he doesnt already have a program for working with compressed archives, like winzip/winrar or 7zip. Make sure your friend gets that and unzips the files to their own folder before trying to use them.
Just wondering.. When you deploy your game. Are you clicking on exclude unused files ? I've had that problem, then found out that option is buggy. Try deploying it as is.
sorry for the late reaction, i checked and yeah sadly it does contain a file called WWW
No i didnt send it in a zip file no.
and i dont do exclude unused files
1) delete the www folder from the project folder (it should only be in the deployed version, not in the project)
2) create a new project somewhere (doesn't matter where and can be deleted later, we only need one file from it)
3) search for a file named "package.json" in the new project, and copy it over the same file in your project folder (this file was damaged by the wrong deployment).
4) deploy into an empty output folder somewhere (this will become your game to send to your friend, and never deploy into your project folder again)
5) zip the deployed folder (either with windows-rightclick or with whatever archive program you prefer)
6) send the archive to your friend
7) ask your friend to unzip it before testing, never test in an archive.
i by accident opened my file with winrar Archiver and now has the wrong format.
but with what do you need to open Json's again, since i cant find it.
(i sound like the most chaotic person and i am.)
i did step 1 and 2 but at step 3 it still says its a JSON but opens with Winrar Archiver automatically
and when attempting to open it with rpg maker mv it says unexpected file format
Thank you so much!!
I've managed to recover my game and send the file to my friend
Thanks alot!!