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....
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.
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.