Something is very very wrong with my game file

I was working on a custom skill set for one of my characters, except I only wanted the skill to be usable once during battle if enough (TP?) was acquired. So I stumbled onto Yanfly's skill limiter script. I installed it, and it worked. The first time I tested it, I could use the skill once, then select the skill again, but it wouldn't 'fire'. the second time, (just restarting) the skill indicated it was used after the first time and wouldn't let me use it again. backed out of the skill selection, went back to attack, and that's when everything went sideways. 

 

Enter combat.

turn 1: attack.

combat animation

turn 1 enemies: attack.

combat animation

turn 2: attack.

Game hangs. music is still playing, nothing happens.

 

Installed yanfly core engine, and yanfly battle engine scripts in a remote hope it might fix it, but it didn't. So the next thing I did was cut and paste main script over materials disabling the yanfly scripts. next test

 

Enter combat.

turn 1: attack.

combat animation

turn 1 enemies: attack.

combat animation

turn 2: attack.

Game hangs. music is still playing, nothing happens.

 

new project.

enter combat.

turn 1: attack.

combat animation

turn 1 enemies: attack.

combat animation

turn 2: attack.

combat animation

turn 2 enemies: attack

combat animation

 

So I have determined that what ever is in the yanfly scripts has irrevocably corrupted my main project, and since it locks up during combat... Nothing like having to start from scratch for some strange bug that doesn't even right itself when the scripts are disabled.

 

Does anyone have any ideas how to fix this, because lord knows I don't want to start 6 months of work all over again from scratch.

 

Archived Yanfly scripts, removed them from script list, put main where it belongs, saved, retested. same result.

 

And I have an idea how to fix it now, I just don't know how to go about it. 

Since something is very screwy with the scripts (despite removing the three yanfly scripts completely, and yes, those were the only three custom scripts) I was thinking of taking a script file from a new project, and inserting it into the data for the project that is completely borked.

 

I attempted this by unzipping the project, deleting the script data, and then pasting script data from another project, however when I attempted to rezip it, got a read permission error (which may be my computer, as I can't rule that out since Staples had their way with it recently...) But it could be the project folder? I don't know, probably just my computer... 

 

If anyone has any suggestions, I'm willing to try whatever I can, I don't want to lose the data files I've made so far, and it would really suck that all that work is locked into a project that is borked.
This is a problem with a script, not default engine, so it goes to script support.


Please provide a link to the script, anyone who wants to help you needs to check it.


I've moved this thread to Script Support. Please be sure to post your threads in the correct forum next time. Thank you.
There are several ways of resolving this...

1. Did you click on the 'New Game' when testing those things?

Maybe Yanfly's scripts screwed up, and the $game_ things stayed the same.

2. If you are using no custom scripts, copy Scripts.rvdata2/rvdata/rxdata from a blank XP/VX/VXA project and try again

I don't think your other files are corrupted.

Yanfly's scripts usually don't access .rvdata files ...
all my tests are with new game right now. 

I need to clarify, Old project, selecting new game from the menu when I launch the test.

when I test a new project, combat works as it should. I thought I was clear in my post above but I guess not.

All the scripts I had installed, were removed. deleted, wiped, slots removed in the script list, etc... 

the script I initially installed that caused the issue is: 

https://yanflychannel.wordpress.com/rmvxa/gameplay-scripts/skill-restrictions/

How do I copy the scripts.rvdata2/rvdata/rxdata from a new blank project? when I attempt to edit the compressed zip file directly, nothing happens, when I unzip it, and attempt to repackage it, I get a read access error and it fails to compress. As I've said before this could be a computer error, in which case I'm good and truly borked, since I can't afford the drive into the city to take it in to have them fix it for the 3rd time in a month.... which is a whole nuther story. 

Whatever can go wrong, will go wrong... story of my life. 

So assume nothing, and step by step instructions are appreciated, then I can tell you which step doesn't work.

😉
Ummmm.....

Compressed zip file???

Never mind.

Here we go.

I'm assuming you are using RPG Maker VX Ace, but if you are not, it is very similar in VX/XP

1. Open RPG Maker VX Ace

2. Find the "File" section in the upper part of the window, in the toolbar

3. Click on it, and select 'New Project'

4. Name your project and select a directory for it.

5. When project creates find a "Game" section very near the "File" section

6. Click on it and select "Open Game Folder"

7. In the window that opened, open the folder named "Data"

8. In that folder find the file "Scripts.rvdata2"

9. Right-click it and select "Copy"

10. Navigate to your project's (the one that has a problem) folder

11. Enter the "Data" folder

12. Paste the file

13. Close all RPG Maker windows and enter them again.

14. The scripts are now totally emptied.
ok, scripts are totally emptied, still hangs, turn 2 of combat. 

I'm going to go attempt to go the other direction, by taking my other user data from the old project and putting it into a new project,  and see if that gets it. I'll edit this with my results when I finish that, and run another test. 

ok, whatever the problem is, it is not a script issue. I made an assumption because adding the script was was the last thing that I did before it went sideways. I took the other data from the old project and moved it into a clean new project. Ran the test, and still same problem, hangs turn 2 of combat. 

I'm going to go back through my other data files, but I can't think of anything that should cause this issue.

Anyone have any thoughts of what to look for, or where to look for it?
Also, about your zipping, check this thing : http://www.w7forums.com/threads/unable-to-zip-a-file.11560/

You can also check the Database Troops, you may see something strange there
Sorry about posting this in a new post, but when I try to modify my post on my tablet it throws an error.

Is that thing happening in every battle, or just specific ones?

Also, I don't understand why are you zipping your game data.

If game data is unzipped incorrectly, it may cause something bad.

You can (but I'm still not sure) try to find out WHICH part of the database is making a problem.

Does the bug appear when casting a specific animation?

Does the bug appear on certain skill?

Does the bug appear on only one troop?

If it does, replace that file with empty one and fill the fields like in the last file.

Sorry if it is not that, because, as you can see, I'm not THAT better than you are.
ok, in my database for troops, I found the problem. (Thank you KockaAdmiralac_FINALLY for giving me a great clue!)

When I was initially attempting to muddle through setting a skill to once per battle, on the first turn only, and if the user has 100TP, I had set a battle event...

Condition Turn No. 2 Span: Moment

@>Control Switches: [0001:First Turn] = ON

By removing this and changing it back to the default settings, the game no longer hangs in combat. 

It's a setting I had made a while back, and I guess I hadn't tested beyond first turn of combat before or I would have noticed it sooner. I guess I just assumed it was the script since that was when it 'appeared' to start.

PEBKAC error FTW! (Problem Exists Between Keyboard And Chair).

I wasn't zipping my data, I was looking in the folder for steam for the data, I didn't realize that it stuck a folder on my root drive as well.
when I attempt to edit the compressed zip file directly, nothing happens, when I unzip it, and attempt to repackage it, I get a read access error and it fails to compress. As I've said before this could be a computer error, in which case I'm good and truly borked
No, it is not a computer error - and it probably explains everything else.


The zip-File is NOT your project folder - it's the local cloud storage that automatically syncs with Steam's online-cloud.


You should never and under no circumstances even touch that folder, because edits there will always be removed on next synchronisation.


You need to make all changes to your real, uncompressed project folder - then they will remain instead of being randomly resynced depending on internet connection and editor processes.


Some of the problems above might also come from this cloud sync, especially if you tried to change the zip before.

Original thread: https://forums.rpgmakerweb.com/threads/something-is-very-very-wrong-with-my-game-file.42968/