Can't open index.html to edit?

I want to use Yanfly and TheGreenKel's DragonBones integration plugin, which for installation requires opening and editing my game's index.html file. However, when I open it in TextEdit I only see a solid black screen, and when I open it in a web browser it's an error message that says "Failed to load: data/Actors.json".

How do I fix this?

(I'm using macOS Sierra v10.12.6 if that's relevant)

I've moved this thread to Plugin Support. Thank you.

I haven't used these plugins, but I suspect you need to edit index.html so that it recognizes the new Yanfly/GreenKel files?
Opening in a web browser is not correct, if they want you to edit the file you have to open it in a text editor.

Any windows computer comes with Notepad, so you can use that. If you want a better program that's still super light you can try Notepad++
I haven't used these plugins, but I suspect you need to edit index.html so that it recognizes the new Yanfly/GreenKel files?
Opening in a web browser is not correct, if they want you to edit the file you have to open it in a text editor.

Any windows computer comes with Notepad, so you can use that. If you want a better program that's still super light you can try Notepad++

I opened it in TextEdit before (which is essentially the Mac version of Notepad, as I'm on Mac) and it just came up as a black screen. The problem is that I can't edit the file at all.
The OP is on a Mac, not Windows.

On Windows, you'd just be able to right-click and choose Edit.

Try creating a brand new project and copy the index.html file from it over your existing one, then see if you can edit that.
The OP is on a Mac, not Windows.

On Windows, you'd just be able to right-click and choose Edit.

Try creating a brand new project and copy the index.html file from it over your existing one, then see if you can edit that.

That was a good idea but I'm still getting the same problems, so I think something may be wrong with the file itself.
not the file if you're getting the same issue on two different versions of it. Try a different editor, perhaps?
Are there any online ones where I can import files? I did a couple of searches but I can't find any.
I found this Youtube clip showing someone opening an HTML file in TextEdit, if it helps: 😅
@not-the-hawkguy
you should be able to open the index.html with any text editor on Mac. And the file can't be damaged if you can still playtest your project, because the playtest will need that file.

I can think of three possibilities what might have happened here:

1) if the project is open in RMMV, then the index.html file is probably also open and any access to it is blocked. Try opening the file when RMMV is NOT running.

2) MacOS works a bit differently when assigning programs, it does not use the extension of the filename. So your try might be redirected to the wrong program.
To check and correct that problem, open notepad first (without a file), then go to the menu - open and navigate to the index.html you want to open. That should prevent any redirect to another program.

3) it might be an interfering cloud service or the MacOS time machine.
RMMV opens files like a database, not like 99% of all other programs as local access files. I won't go into the technical differences, but the result of that is that any program trying to sync those files with another place while the editor is open runs a high risk of destroying that file.
That is why the project folder should never be placed inside a folder that has a cloudservice enabled.
@caethyril Thank you, it did help! The problem was apparently that TextEdit was set to display the HTML file as it would appear on a webpage, rather than HTML code. Everything's all set now :LZSproud:

Original thread: https://forums.rpgmakerweb.com/threads/cant-open-index-html-to-edit.94844/