Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: kinan___rod on Thu 27/08/2015 11:52:05

Title: "Object reference not set to an instance of an object" problem [SOLVED]
Post by: kinan___rod on Thu 27/08/2015 11:52:05
Hi, I suddenly started having this message (topic name) when compiling my game, Here is a screenshot
http://grab.by/JW5e

The message started occurring after I added a GUI button, looks like it is something similar to this post:
http://www.adventuregamestudio.co.uk/forums/index.php?topic=47488.0

AGS did not crash though, but I still can't compile my game, should I panic because of this old post?

What can I do now? I don't have any recent backup for the game, recreating the entire game will take two weeks of work, it is not a total disaster but I surely prefer another solution.
Title: Re: "Object reference not set to an instance of an object" problem
Post by: Khris on Thu 27/08/2015 12:20:16
Try removing the button, does that fix it?
Also, make regular backups!
Title: Re: "Object reference not set to an instance of an object" problem
Post by: Crimson Wizard on Thu 27/08/2015 12:32:41
E: Sorry, nevermind, misunderstood something.

What AGS version are you using?
Does it display only that error, or any other on-screen messages?

The thread you referenced does not seem related; your error does not look like fatal Editor error, but rather some compiler bug. Cannot be more precise without having more details.
Better not to panic, but make a backup right now, and experiment, like Khris mentioned, to find out under which conditions this occurs.
Title: Re: "Object reference not set to an instance of an object" problem
Post by: kinan___rod on Thu 27/08/2015 12:35:59
It is a beta version 3.402, it only displays the message.

No Khris, I removed the entire GUI, the problems is still there.
Title: Re: "Object reference not set to an instance of an object" problem
Post by: Crimson Wizard on Thu 27/08/2015 12:38:18
Quote from: kinan___rod on Thu 27/08/2015 12:35:59
It is a beta version 3.402, it only displays the message.
3.4.0.2 was a rather unstable WIP version; can you try upgrading to latest 3.4.0.6 (make backup prior to this)?
Title: Re: "Object reference not set to an instance of an object" problem
Post by: kinan___rod on Thu 27/08/2015 12:45:57
Oh god, thank you man You saved my life, the new version worked!
Title: Re: "Object reference not set to an instance of an object" problem [SOLVED]
Post by: Crimson Wizard on Thu 27/08/2015 13:10:31
We have posted a warning that 3.4 may still be buggy, and it is recommended to do backups regularily when using it.