I was trying to make an edit to the SV battler positions rpg_sprites.js and made sure to make a backup for my file. When I saved and tried to playtest, it wouldn't even show the title screen. I was like "Okay, I'll just plug the backup back into my files" But it didn't fix it? I have no idea why this is happening, is there anyone that could help me? I know next to nothing about javascript. (In the picture, I tried to change the 'this.anchor.x = 0.5;' code to 1)
Playtesting only ends up at a black screen
RPG Maker MV Supporthave you made a complete backup (better) or only copied a few files?
If you have made a complete backup, does that still work?
how have you written back the backup? which files have you copied?
what is the full folderpath to your project (from drive letter to index.html)?
If you have made a complete backup, does that still work?
how have you written back the backup? which files have you copied?
what is the full folderpath to your project (from drive letter to index.html)?
I wont recommend changing anchor.x if that is set in a plugin,
or if its in a code, as that is just center the image .
set it to 1 will x be center and 1 on bottom.
I'm also not sure about the offsetX = NaN part as it should be a number
like 0 or something else as it might throw an error.
what plugin are you using that has that code and what are you
trying to achieve?
(path to index. html Andar mentioned check for space there,
which mine has 1-3 spaces without a problem). but if its on the cloud
server (oneDrive) it can bring ALOT of issues there though.
or if its in a code, as that is just center the image .
set it to 1 will x be center and 1 on bottom.
I'm also not sure about the offsetX = NaN part as it should be a number
like 0 or something else as it might throw an error.
what plugin are you using that has that code and what are you
trying to achieve?
(path to index. html Andar mentioned check for space there,
which mine has 1-3 spaces without a problem). but if its on the cloud
server (oneDrive) it can bring ALOT of issues there though.
most modern OS have an override to enable the letters that were forbidden under the original networking conventions.
In a lot of cases those overrides work correctly, but unfortunately they are not guaranteed to work, and the space was originally the divider between commands and to break up sequences.
The override breaks especially often if you deploy to different variants like mobile or webserver.
However if you look carefully you'll see that the playtest actually uses a virtual directory to prevent those problems - in the original versions before that virtual path was implemented the spaces were much more problematic. Now it mostly becomes problematic on deployment.
the only thing I know is that folder and everything inside must be
space-free and replace spaces with _ underscore.
furthermore, it shouldn't be cause issues on project alone so far I know.
I know deployed and webbased change spaces to %20 which will crash
or throw error of missing files, but all my files inside the project are space free.
as I saw many problems regarding that or use lowercase letters where the
first is a uppercase which is also different and return null/undefined.
space-free and replace spaces with _ underscore.
furthermore, it shouldn't be cause issues on project alone so far I know.
I know deployed and webbased change spaces to %20 which will crash
or throw error of missing files, but all my files inside the project are space free.
as I saw many problems regarding that or use lowercase letters where the
first is a uppercase which is also different and return null/undefined.
Okay, we're gonna get this sorted. As a side tip:
In order:
For example, in your screenshot, there's no close brace at the end of the function. That could be because you've cropped the screenshot, but it could also be the cause of your problem.
So!
To fix this, you're going to go to your RPG Maker MV installation directory\NewData\js, copy that rpg_sprites.js file, and paste it over the one in your project. Restore the default.
Then, go back to your MV installation directory\dlc\KadokawaPlugins and copy SVActorPosition.js into your project's js\plugins folder.
Then load that plugin in the editor and edit its plugin parameters to set where you want the battlers to be (that's presuming you're not already using something like Yanfly's Battle Engine Core which supplies you with plugin parameters for this).
That means it's a bad idea for you to be editing code without guidance. If you knew next to nothing about cars, would you try to disassemble your car's engine and tweak its performance? No, because the chances are overwhelming that you're break it, right?
In order:
You should never edit the rpg_ files in your js folder. Copy any changes into a new file and include it as a plugin. There are a number of reasons for this, but saliently if you'd done that, none of this would be a problem 😉
That means there's something fundamentally wrong with the file itself. You changing a number inside of the function wouldn't have any effect on the game loading because it's not trying to execute this code (which happens at the beginning of battle) while starting up the game.
For example, in your screenshot, there's no close brace at the end of the function. That could be because you've cropped the screenshot, but it could also be the cause of your problem.
So!
To fix this, you're going to go to your RPG Maker MV installation directory\NewData\js, copy that rpg_sprites.js file, and paste it over the one in your project. Restore the default.
Then, go back to your MV installation directory\dlc\KadokawaPlugins and copy SVActorPosition.js into your project's js\plugins folder.
Then load that plugin in the editor and edit its plugin parameters to set where you want the battlers to be (that's presuming you're not already using something like Yanfly's Battle Engine Core which supplies you with plugin parameters for this).
Original thread: https://forums.rpgmakerweb.com/threads/playtesting-only-ends-up-at-a-black-screen.162440/