The Worst Troubleshooting Experience in my Life.

TLDR I did something stupid in RPG maker that took me two days to fix.

So I wanted to try switching up some fonts for the game that I'm working on. As someone who is obsessed with typography, this was very important. After downloading the font and putting the name of it in the .CSS file, I went to playtest my game only to find that it was stuck on the loading screen for some reason. The game just didn't cut to the title. Confused, I decided to rename the .TTF file to see if I could fix it but the title screen still wouldn't load. After a little bit of tinkering, I decided to say “F it” and go back to the original font that worked before. It was soon that I realized that the same problem was still prevalent regardless of what font I used. At this point I was baffled, I had no idea what I did to cause this error to occur but I needed to fix it and let me tell you… It drove me mad.

It also didn't help that I wasn't getting an error message. Usually error messages give you a rough Idea what's wrong with your game or what file is bugged. So that was out of the question. I also couldn't find anyone who had the same problem I was having after an hour of looking it up online. I tried everything....

  • I tried resetting my laptop, didn't work
  • Tried to edit my loading screen graphic to see if it update and fix it, didn't work
  • Switched back to the default RPG Maker font, didn't work
  • I removed the code to the title screen to see if maybe the problem lied there, didn't work.
  • Turned off all of my plugins to see if that was the problem, didn't work
  • I scanned through all of the code to see if something got corrupted or something, didn't work
  • Verifying my steam files since I heard that can fix these issues, didn't work
  • Turned off my computer and see if it would fix itself in the morning, surprisingly didn't work

It got to the point where I created a new project as well as a copy of my current one and slowly replaced one file at a time and playtested just to see what the issue was and even that didn't work. I also compared the .CSS file with that copy and new project and they were the exact same. My limit was reaching my breaking point and I was contemplating on just starting a new project and throwing away hours of my hard work. But I tried one more thing. I switched the .CSS files between projects and that somehow fixed everything. Even though they were LITERALLY exactly the same with no alterations of text, one just worked and one didn't.

But whatever, my project was saved and I could playtest it again… for exactly two seconds until another problem arise. All of the commands that appeared on the title screen were just gone. No New game, Continue, or Option command was visible, giving me another bud to fix.

So you know what I did. That's right, I did the exact same thing where I made a copy of my game and a new project and replaced every file to see if I could find the issue. Luckly, this method actually works since I found that the issue was caused by something in the RPG_Windows file. So I found an online Javascript comparer and put both the RPG_Windows in my game and the one in the new project to find the differences between them.

Do you remember when I said that I removed the code from the title screen during my troubleshooting of the font bug. Well I never put the code back and now the commands won’t load as a result of it. But that's great, all I need to do is copy the code of the new project back into my game and the problem will be fixed. And after playtesting it was finally fixed. HOORAY!

While the whole experience was annoying, It's kinda funny in retrospect how much of a domino effect it really was with how many things were going wrong. Moral of the story, if you're a small indie developer, don't be sad if you mess up when coding, mistakes happen and you can fix them and improve as a result.
Haha! I'm glad you got it working, but that is a wild ride of troubleshooting, and I'm glad you shared it! That makes me want to start a TIFU thread in the spirit of r/tifu for the ways we've messed up our RPG Maker games. I'm sure we all have stories; I deleted my project once like a big dumb dummy head, for instance.
Excellent anecdote. I'm so sorry for your suffering! I'm sure we've all done something crazy at some point like that.

My screw up only took me an hour to fix, but I'll share it here anyway. This is a message I sent to my friend back on the 24th of Feb:

The last hour has driven me mad. I recently installed a plugin to change the default battle transition animation from a boring fade to a screen shatter effect, like in Final Fantasy X. I had to tinker with it to get it exactly as I wanted it, including removing white outlines from the randomly sized vectors so they looked more like an actual break. Also had to download a sample from freesounds and edit its speed etc in Audacity so it sounded cool and fitting. Very happy, and it works, and it's good!

I also spent two days creating icons for 260 different weapons, shrinking each weapon image in GIMP to fit a tiny 32x32 grid, and realigning them one by one, because each image was a different size and alignment to begin with so I couldn't do a batch edit (of course).

Then today I'm doing a quick playtest, making sure all these things work, and they do and they look great.

I open my quest journal... And all the text is black.

It's supposed to be white with a black outline of 3 pixels. It's like that everywhere. But in the description window of my quests, everything's black.

I think... Is it the weapon images? Have I overwritten something somewhere which affects the text colour? I disable all 260 images and all their associated icons.

Still black.

Ah, in that case it must be a plugin conflict between my quest journal and the screen shatter effect, as I edited the outlines to be black instead of white! I bet that's had some weird effect on the text colour too. So I reset back to white.

The journal is still black, and now my battle transition looks horrid again.

I disable the plugin and the colour edits, completely restoring the original battle transitions.

The journal is still black.

So, I go through the RPG Maker menus and check everything - it all seems fine.

Finally, I go through the files in img/system, which is where you keep pictures to use on your HUD, menus etc.

I find my custom text box images, which also contain a small thread of pixels which determine the text colours used in your game. They're all fine.

So I go back to the journal and look at it. I go through each section, one by one, and then I notice something... For some reason, just the data window (separate from the title window and category window in the journal) has been set to use "Window 3", which is the name of a text box that's built in which I don't use, because I have my custom ones.

I check the others... They're all using the right "window" number file. It doesn't matter anyway, because I have the opacity turned off, as I'm using a custom image as the journal background.

I go back to the img/system folder, and check Window 3, even though it's invisible in game...

The small thread of single pixels which the game uses for text colours I mentioned before?

on that Window 3 file only, the first pixel is BLACK instead of WHITE.

All that troubleshooting because at some point I've accidentally hit "cursor down" with the window skin box highlighted and selected a different invisible window skin when editing my journal, which happened to be the only one with a black pixel instead of a white one.

Changed it back to "Window"... Everything works.
I have a depressing story that turned out to be really funny about this situation.

It was about an undergraduate research thesis. I wanted to prove an algorithm (using RPG Maker code because it is the only game engine I was familiar with). The thing was, the formula I discovered and researched from several papers did not match with the actual result data I gathered myself. I have already written a lot of dissertations, now I had to throw them away and started from scratch than use a different problem because it did not match with my hypothesis? I thought.

I got depressed for like a week. I didn't want to look at my thesis. I questioned my skill. I questioned my life. For some reason, I managed to gather enough courage to look back at my work, only to find out I was missing parenthesis in the formula I wrote. Then everything worked exactly as I hope. Right, it took me a week.

At that time, I wasn't sure what to feel. Was I supposed to be happy, stupid, or both?
A week for a bracket; love it 😀

One misplaced colon is all it takes.
Words to live by.

Original thread: https://forums.rpgmakerweb.com/threads/the-worst-troubleshooting-experience-in-my-life.146577/