All door graphics display open state...

Hello!

I am using RPG Maker VX Ace, and I have run into an odd situation where EVERY door on all my maps displays the open state. The main event graphic I am using is definitely the closed state image.

I am using Lunarea's Modern Day Tileset, but this issue occurs even if I choose doors from the RTP.

Here is what the map looks like when game is running, with open doors:

Spoiler
Doors open example.png
Here is the event, and the chosen sprite:

Spoiler
door sprite.pngdoor sprite 2.png

Another really odd dimension to this problem is that if I choose any state other than closed, that graphic is displayed properly.

See the image below:

Spoiler
door samples.png
1 is the closed state in the sprite sheet (top most image) and then straight down the sprite sheet for:

2

3

4 (blank for RTP door)

 

If I start a new project, this issue doesn't occur.

I am using some Yanfly scripts - Battle, Menu, and Shop Engines, and the Theolized Battle System. I have tried searching through those scripts for anything related, but haven't been able to isolate the issue to those scripts. 

So...any suggestions on what might be causing this?

Thanks so much!
I bet you've got a script that sets events to initially face UP.
I bet you've got a script that sets events to initially face UP.
That is a good point, I will investigate that.

However, wouldn't that effect every event - chests, characters, etc? This is only happening for me with door graphics - when creating them from scratch AND when using the Quick Event creation.

But chests display the proper graphic every time.
Actually it looks like it's the left-facing graphic, not the up one.


Yes, if it was a script affecting ALL events, then ALL events would do this. It could also set direction for selected events only, based on anything like event id, name, graphic (though it'd be strange to do this to a door graphic).


You don't have a parallel process on the map (or in common events) that changes direction of other events, do you?


Start a new project without any additional scripts and see if the same thing happens. It's got to be a script or an event, I think.
I created a copy of the game file and deleted every extra script, and deleted every event in the game, and it still has the same issue.

The only thing I can find consistent in all this is the string "door", so I even tried renaming the sprite sheet to "!MDGateS" instead of "!MDDoorS" just on a whim. That didn't solve the issue either.

 

But if I create a completely new project I don't have the issue.

I did a small work-around by giving the door event a "Turn Down" movement that will make it shut when the game loads - but obviously that won't work for an entire game full of doors.

I think I may just have to try rebuilding the game in a new project, piece by piece.
I created a copy of the game file and deleted every extra script, and deleted every event in the game, and it still has the same issue.

The only thing I can find consistent in all this is the string "door", so I even tried renaming the sprite sheet to "!MDGateS" instead of "!MDDoorS" just on a whim. That didn't solve the issue either.

 

But if I create a completely new project I don't have the issue.

I did a small work-around by giving the door event a "Turn Down" movement that will make it shut when the game loads - but obviously that won't work for an entire game full of doors.

I think I may just have to try rebuilding the game in a new project, piece by piece.
Have you edited your default scripts before? maybe it can be that. You could try replacing the default scripts that you think you edited with a new default one from a new project. If that doesn't work, then it could be something else, but I don't know of something else aside from file corruption.
I took an old backup and copied the scripts.rvdata2 file into the problem file and it fixed the issue. I don't recall editing any of the core RPG Maker scripts, but it seems that somewhere along the line I must have changed something in there. (Probably just one errant keystroke while running Find or something.

I have no clue how to isolate it, but at least I can piece together a working project file on my newest version.
Have you edited your default scripts before? maybe it can be that. You could try replacing the default scripts that you think you edited with a new default one from a new project. If that doesn't work, then it could be something else, but I don't know of something else aside from file corruption.
Hah, that was your suggestion just as I posted that. 

Thanks for the help everyone!

I really wish we could have figured out specifically what the issue was, but I should be able to keep making progress.

** EDIT **

I actually figured out specifically what it was (I started running Diffs on every script). Somewhere along the line I edited Game_CharacterBase line 61:

@direction = 2

I had changed to @direction = 4

No idea why. But problem solved!

Thanks again for the feedback, it put me on the track towards solving it.
Gortsmith, please avoid double posting, as it is against the forum rules. You can review our forum rules here. Thank you.


It's got to be in one of your scripts somewhere. Deleting scripts you've added isn't the same as starting a new project, as you discovered. What if you had changed the default script? What if you had a script in an unnamed slot and didn't realise it was there, so didn't delete it?


If you're now going to go and add back in your scripts, do them one at a time, and play the game at that map and see if the doors go weird again. If they do, it'll be something in the script you just added.

Original thread: https://forums.rpgmakerweb.com/threads/all-door-graphics-display-open-state.44191/