*Error: Object reference not set to an instance of an object

I think I messed up with the codes, and now I can't open my quest project.
Every time I do, there will be a notification like:
"Failed to load game due to the following errors:
*Error: Object reference not set to an instance of an object"

Help me. I don't want to redo my project from scratch


Io

It's probably a typo. This is basically the game going "Hey, you told us to move WhateverObjec to a room, but there's no WhateverObjec! There's only WhateverObject!"


That's a quick reply. Didn't expect that. Thanks :D

Probably :/
But then I can't open it with Quest. I don't know what I should do now and I can't edit my game (T - T)


Io

That... doesn't make sense. The error should only happen when you actually try to play-test it. There should be no problem actually editing the game itself.

If there is, it's above my knowledge and you should get in contact with someone like mrangel or thepixie.


Thanks tho :0
I appreciate your help .^ ^.


for off-line/desktop version of quest:

simply right click on your 'xxx.aslx' game file itself, choose to 'open' and select a text editor software: notepad, wordpad, Apple: text editor, notepad++, etc, to get at your entire game code, then it's just a matter of finding the issue with your code

if you don't mind people seeing your game code, then just highlight all of it, copy it, and then paste it in a post like so:

m```
(paste your entire game code here)
m```

but without the m's in front, which will produce this:

(paste your entire game code here)

as this keeps the formatting of it (makes it easier for us)


if you don't want people to see your entire game code, then see if someone will be willing to troubleshoot your game code for you and that you can trust, and pm it to them


for on-line/web version, you'll have to download your 'XXX.quest' published (bundled: your 'XXX.aslx' game file + whatever other files) file, and then you'll have to unzip (winrar, 7zip, etc) it, to get at your 'XXX.aslx' game file, and then do the same as the above section on off-line/desktop version, to get at your entire game code


That... doesn't make sense. The error should only happen when you actually try to play-test it.

That error message is a VB/C# error, not one of the Quest error messages. Quest doesn't have references.

In the online version, I believe this can sometimes be caused by enabling DevMode on the features tab. I can't remember for sure what the error message was when that happens, but I think it's similar. The online editor can sometimes fail to open games due to issues with DevMode. If this happens, there's nothing you can do about it. You'll have to download the game and either continue in the the desktop editor, or open it in Notepad or similar and copy the code piece by piece into a new game.


@hegemonkhan
My laptop doesn't show the file type :/
I can only see something as simple as Quest Game Source on the file type...
Is it the file in Quest Games folder or Program Files (x86)?


Also, when I try to open the files there are no options to open it with notepad etc


Io
Also, when I try to open the files there are no options to open it with notepad etc

Right click the file, look for Open With, and from there search for Notepad or Microsoft Word or what-have-you.


nvm found it :P


thanks! It solved now :DDD


Io

Yippee! I've lost a few projects myself - in a different way - and I know how frustrating it is. Glad you were spared that!


This topic is now closed. Topics are closed after 60 days of inactivity.

Support

Forums