Jump to content


Photo

Too Many Objects?


  • Please log in to reply
6 replies to this topic

#1 BoronBananez

BoronBananez

    GMC Member

  • New Member
  • 65 posts
  • Version:GM8

Posted 25 January 2012 - 08:47 PM

Hey, hi. My game consists of a huge room, with the view following the character. I've made it so that objects outside the view are deactivated, so that I can theoretically place as many objects as I want in the game without any problems.

Well I'm having a problem. I get an error message (the general "unexpected error occurred") now when I start my game. I've played around with it and it seems that this happens whenever I try to add more objects after a certain point (certain amount of objects). Can anyone think what I'm doing wrong? I haven't even changed any code recently, at all.
  • 0

#2 BattleRifle BR55

BattleRifle BR55

    Moo

  • GMC Member
  • 8296 posts
  • Version:GM7

Posted 25 January 2012 - 08:51 PM

Could be a number of things, but to your title specifically, how mane objects have you created?
  • 0

#3 thegame

thegame

    Flying Penguin

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

Posted 25 January 2012 - 08:53 PM

I had this error from so many things...
1. A sprite was 640 px wide
2. Something had an M in it
... and probably more that I don't remember
Just go change a bunch of random things until it works is how I fix it...
  • 0

#4 Lightang3l

Lightang3l

    GMC Member

  • GMC Member
  • 855 posts

Posted 25 January 2012 - 09:30 PM

I had this error from so many things...
1. A sprite was 640 px wide
2. Something had an M in it
... and probably more that I don't remember
Just go change a bunch of random things until it works is how I fix it...


Seriously? Something had an M in it.... :mellow: is GM that broken? :unsure:
  • 0

#5 thegame

thegame

    Flying Penguin

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

Posted 25 January 2012 - 10:02 PM

Well... maybe it wasn't an M in it... I think it had something to do with a M or R... I also think I just changed the capitalization... It was a long time ago, so I don't remember exactly but it was totally weird.
Yes. GM is that broken sometimes.
  • 0

#6 lierinwait

lierinwait

    GMC Member

  • New Member
  • 11 posts

Posted 26 January 2012 - 04:23 AM

Well... maybe it wasn't an M in it... I think it had something to do with a M or R... I also think I just changed the capitalization... It was a long time ago, so I don't remember exactly but it was totally weird.
Yes. GM is that broken sometimes.


This error only happens to me in one circumstance: I have a graphic somewhere that's too large for my computer to work with. Usually, this is a background I'm using as a tileset, or a massive sprite or something. You say you have a huge room. Do you have a huge background to go with it? If so that might be your problem. You could remake it from tiles or break it into sections (in a sprite maybe) and only draw those that are within your view.
  • 0

#7 BoronBananez

BoronBananez

    GMC Member

  • New Member
  • 65 posts
  • Version:GM8

Posted 26 January 2012 - 03:43 PM

Wow, lots of ideas. As for how many objects I've created... probably at least a thousand, including blocks. I'd think the deactivation outside the view would help, but nope. As I said though it does seem to have something to do with the objects. It happens even if I add too many more simple things, like ladder objects and blocks.

For a background I'm using 320x240 tiles, which perfectly fit each screen. I just put one at a depth of like 100000 in every view.

I really don't know what else to say. Any ideas, given that it seems object related? I haven't changed the code in the objects i've been using for a while, either.
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users