Jump to content


Photo

GM8 to GM:S Conversion Error


  • Please log in to reply
6 replies to this topic

#1 RonnSama

RonnSama

    GMC Member

  • New Member
  • 11 posts
  • Version:GM:Studio

Posted 03 August 2012 - 06:59 PM

Hi, I read recently on another topic that if I was getting (for lack of a better term) "compile" errors for NullReferenceExceptions from GMAssets, that I need to send the project to someone privately so they can determine the cause. Which moderator/admin/dev_team person would be appropriate for that?

Just a quick "Things I have done" list:

1. Check the codes for errors recognized by GM:S and myself (I had to remove two "show_message_ext" because they are obsolete)
2. Double check the entire code for negative array's or odd math that would cause definite errors.
3. Read over it numerous times attempting to solve this before bothering the community.

So thanks ahead of time for any help I can receive :3

For perhaps easiness' sake here is a paste of the error:

Error : Exception : System.NullReferenceException: Object reference not set to an instance of an object.
   at GMAssetCompiler.IFFSaver.Save(GMAssets _assets, String _name)
   at GMAssetCompiler.Program.Main(String[] _args)

Perhaps this is just a common error and I'm too foolish to spot what's wrong or didn't spend enough time lurking the forums lol

EDIT: Can't spell or remember details worth a monkey's patoot

Edited by RonnSama, 03 August 2012 - 11:29 PM.

  • 0

#2 free_napalm

free_napalm

    GMC Member

  • New Member
  • 22 posts
  • Version:GM8

Posted 09 August 2012 - 06:16 PM

Exact the same thing here. I converted my game from GM8 to GM:S, and now I get the same error message.
Did this problem get solved already?
  • 0

#3 RonnSama

RonnSama

    GMC Member

  • New Member
  • 11 posts
  • Version:GM:Studio

Posted 09 August 2012 - 06:23 PM

I've started filtering through all the files (quite a lot) that I have for my game, and started checking all the instance references for something that is no longer there, but I haven't had any luck so far. I come to figure that's what the error was referring to, but still no info yet.
  • 0

#4 wdalphin2

wdalphin2

    GMC Member

  • New Member
  • 83 posts

Posted 15 August 2012 - 03:34 AM

I'm having the same issue. I imported a game I worked on in GM8 into GM Studio, and when I try to compile it, I get this error:

Error : Exception : System.NullReferenceException: Object reference not set to an instance of an object.
   at GMAssetCompiler.IFFSaver.Save(GMAssets _assets, String _name)
   at GMAssetCompiler.Program.Main(String[] _args)

Strangely, I imported a version of the game I had from two months prior to the current one, and it compiles fine. There's significant changes between the two though, and I'd rather have the newer version working. Any help would be appreciated.
  • 0

#5 jabbyjim

jabbyjim

    GMC Member

  • GMC Member
  • 131 posts
  • Version:Unknown

Posted 15 August 2012 - 02:02 PM

This may be an annoying suggestion, but with a generic error like this I remove one object at a time from a game (remembering the last one removed) until the game works again. Then at least I know which object has an issue, and then start pawing through that object for what may be wrong. I have never come across this one before though, so my idea might not be the most helpful.
  • 0

#6 wdalphin2

wdalphin2

    GMC Member

  • New Member
  • 83 posts

Posted 16 August 2012 - 06:13 PM

I'm not sure what exactly changed, but I did as you suggested last night, jabby, and I found that my control object was the source of my error. I then tried to figure out which line of code it was exactly that was causing it, but instead what happened was that after reloading the project, the code compiled. I'd reloaded it multiple times with this error coming up, and the moment I removed my control object and then put it back, the game started working. I grumbled at your suggestion, but I guess in the end it worked, so thanks. :)
  • 0

#7 Follomania

Follomania

    Unum Mirabile

  • GMC Member
  • 445 posts
  • Version:GM:Studio

Posted 19 August 2012 - 07:42 PM

I had this error today and it sorted itself out. If it throws the error after you import an 8.x file, save it and exit. When you load the project from studio format it seems to work fine.
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users