Playtest only yields black screen

I'm not sure if this is the right place to post this, but I'm new to forums and can't find a more suitable place. :/ Anyways, the problem-
So I was messing around in the files of a game I downloaded a while ago (Your Turn to Die) and everything has been working fine. (If it matters, I made a blank project and pasted the data, img, etc. files from the YTTD files into the blank ones.) But recently I've been having a problem where whenever I attempt to playtest it, it only gives me a black screen. At first I thought it was a result of my modifications, so I made a new file and placed the YTTD files into it again, and I tried playtesting it without making any changes. However, it gave me a black screen again.
I've tried following advice from other threads, restarting my PC, playing in Firefox, deploying the project, even disabling plugins, etc. but to no avail. I'm really not sure what went wrong.
I went into inspect element and found two errors, but I haven't been able to find any solutions to fix them.
1586880318639.png

$datafolder is not defined, and PluginManager.setup is not a function. I don't know what they mean and I haven't found any help online.
The $datafolder is not defined error is from rpg managers.js, and here's some of that code if it helps (I haven't edited any of it):
1586880378418.png

Here's a similar screenshot for PluginManager.setup is not a function, this one's from main.js:
1586880446567.png

I'm on Windows 10, and it was working just fine up until recently. I'm not sure what the problem is.
Also, this game uses a lot of plugins, so those could possibly be a problem? But everything's been working fine until recently, so I don't know...
(I might be missing something important in this post, I'm new to forums. If I am, let me know what I need to send, thank you.)

Edit: This is only a problem with the projects I put YTTD files into; new, blank projects work fine.
Sounds like the YTTD project you're using has an older version of core files than your new project, or you're not copying all the js files across.

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

Original thread: https://forums.rpgmakerweb.com/threads/playtest-only-yields-black-screen.120178/