0
Not Reproducible

On Import, Game Creator Breaks Things

Cr4shBarcode 6 months ago in Game Creator updated by Marti (Lead Developer) 5 months ago 12

I am always afraid to update or re-import GC because more often than not, it will create a cascade of problems that takes days or weeks to fix, if they are fixable at all. I downloaded GC about 7 months ago and was really excited about it. I spent several months building my game with it. 


Then GC updated itself and each and every one of my triggers, actions, etc ceased to function. Some disappeared entirely. Discord was no help, because no one believed me when I said that the only change that had taken place from when things were working to when they were not, was the GC update. I got hundreds of console errors that weren't there before the update. I was so frustrated that I quit working on my game for 6 months. 


A month ago, I started again with an entirely new project, starting from scratch. I imported GC because when it works, it's awesome, but already the problems were beginning. On import, GC doesn't display the standard options. Clicking on the toolbar at the top of the screen shows 'Check for Updates' and 'Reinstall Game Creator' and that's it. You can't do anything but wait for it to fix itself, which may take minutes, hours, or days. 


So that brings us to the present. I was having some trouble with the Dialog Module, and in trying to fix things, updated GC to version 9.9 against my better judgement. I shouldn't have done it, because I got hit with hundreds of compile errors about missing assembly references (as if I know how to fix that). So, again against my better judgement, I deleted GC and reinstalled it fresh, and now we are back at problem #1: the options don't show up when I try to use the program, only listing 'Check for Updates' and 'Reinstall Game Creator'. I paid good money for this asset and I'm going to use it-- but has anyone figured out how to get around these problems? I'm using Unity 2018.4.5f1 and always use the latest stable update.

Unity version:
2018.4.5f1
Game Creator version:
9.9

Answer

Answer
Not Reproducible

The best would be to report the problem, but don't don't delete the project or the GC Data folder afterwards. Otherwise, we won't be able to ask you for the Console logs, and we'll learn nothing from the report.

Unless stated otherwise, Game Creator updates shouldn't carry any more breaking changes. Of course we can't assure it, that's why we always recommend first making a backup. If things go sideways, you can always revert it back and let us figure out how to correctly update your project.

Each Unity version also comes with engine changes, which need to be taken into account. We currently support 2018.4, 2019.1 and 2019.2, but of course, some quirks my escape our internal tests.

TL;DR: Next time you encounter an issue, open a ticket and try providing as much information as possible so we can narrow down the problem as fast as possible (Console logs, windows that break, ...). And don't delete the project or we won't be able to ask for more info and provide a solution

This was fixed with discussions on the Discord channel. Modules were deleted without being removed, and deleting/recreating the GC Database fixed this issue.

Noooot necessarily... I haven't updated this post because I was waiting to go through and see if everything worked properly. Today, I discovered that I can't add actions. When I click the "Add Action" button, I get an error. So, the problems continue...

Under review

Have you tried closing and opening Unity? Seems like the assembly files (which could be seen as group of scripts) haven't been correctly loaded. Closing and opening Unity again should fix the issue.

Unity recently had some issues when we automatically imported a package. That's why now, when updating Game Creator, it appears a list of scripts to choose from.

I haven't forgotten about this post... It just takes awhile to go through everything. The moment I think everything is fixed, I discover something else doesn't work.

So, I fixed the above issue by Googling the error and following the advice I found. I thought I was all set... but today, I discover that the camera motors don't work properly. With no camera motors, everything works fine. When I add an adventure camera motor, it shakes violently, and the player floats off the ground. It's totally unusable. I get a NullReferenceException error, even after deleting the camera motor. If I double-click the error it opens up the C# script, which I'm not going to mess with.

Make sure the Adventure Camera motor is not inside the Player game object, but at the root of the scene. If this is correct, would you mind attaching the whole error message?

There was no error message. I ended up having to create a new scene and copy-paste everything into it. Then the camera worked correctly.

But like I said, there is always, always some other problem. I noticed that my inventory module wasn't working correctly, so I went to re-import and noticed that GC had an update. I had a strong feeling that something would break if I updated, as it always does, but I crossed my fingers and updated anyway. And of course, something broke. All the characters in all of the scenes, even the example scenes, are locked into this weird sitting position and will not move when directional keys are pressed. Deleting the GC Data Folder may fix everything, but it will also delete all of my variables, which will destroy all of the actions that depend on them, which will break my game. I'm not sure what to do here, or why problems keep happening.

And now, after restarting Unity, the Player characters have disappeared completely.

Hi. Sorry to hear you're having issues. If you read the warnings on the script you'll see it says you need to fix compile errors. This means that in your Console you'll probably have an error (or multiple) messages that are preventing Game Creator from getting compiled.

Since this may seem strange to you, let me give you a quick overview on how Game Creator works. Because we want to allow users to extend it, we ship it with the full source code available. This means that every time you open Unity or change a script, it will automatically get compiled. However, if you have an error somewhere in a script, Unity will stop compiling and show you the error. At this point, whether the error comes from Game Creator or somewhere else, all scripts from Game Creator will be unavailable until you can correctly compile the whole project.

So, in order for us to help you fix this issue, we'd need to know what this error message says.

PS: Always, always make a backup before updating. In fact, try using a versioning system such as SVN or Git so you can make daily backup copies of your project, not just when you update.

I ended up deleting the GC Data Folder (the nuclear option) and re-installing GC. This, of course, erased all of my Global Variables and my custom states as well, and God knows what else. Inventory still doesn't work correctly, which is what started this most recent problem. Errors are attached below.

If I back up my game before every update, and every update crashes my game in some way, then I will have to choose between having a working game with an outdated version of GC or starting from scratch every time I want the benefits of a new version of GC. :-(

The backup is just in case anything goes terribly wrong. You hard-disk can die, your computer might break... It's just a precaution and a good practice to use a repository backup system.

Nonetheless, the errors you posted should not prevent from Game Creator to being compiled. Are these from a previous project? Does the character work fine now? Does everything work a expected (apart from the Inventory's merchant UI)?

Yes, things always pretty much go back to normal when you delete the GC Data Folder and re-install. The problem is all of the collateral damage it causes.

So what do I do the next time I need to re-install GC? This whole thing started because my Dialogue module wasn't working correctly. Now that that's working, my Inventory isn't working correctly, and chances are I'll be forced to re-install at some point to get it working again. When that happens, everything will break, and this whole thing will begin again.

How can I find a way to keep GC from breaking? Why is this happening at all? Why can some people update with no problems, and some people like me get a crashed project every time?

Answer
Not Reproducible

The best would be to report the problem, but don't don't delete the project or the GC Data folder afterwards. Otherwise, we won't be able to ask you for the Console logs, and we'll learn nothing from the report.

Unless stated otherwise, Game Creator updates shouldn't carry any more breaking changes. Of course we can't assure it, that's why we always recommend first making a backup. If things go sideways, you can always revert it back and let us figure out how to correctly update your project.

Each Unity version also comes with engine changes, which need to be taken into account. We currently support 2018.4, 2019.1 and 2019.2, but of course, some quirks my escape our internal tests.

TL;DR: Next time you encounter an issue, open a ticket and try providing as much information as possible so we can narrow down the problem as fast as possible (Console logs, windows that break, ...). And don't delete the project or we won't be able to ask for more info and provide a solution