Page 1 of 1

object limit

Posted: Mon Feb 06, 2006 8:41 pm
by mercurycs
I was wondering what the limit was for number of objects. My friend is making a game and he has 950 objects so far and he says he is limited to 1024 objects and is worried about the limit. anyone know?

Posted: Tue Feb 07, 2006 12:52 am
by pinback
33, that looks like to me.

33 objects.

Posted: Tue Feb 07, 2006 6:38 am
by Guest
Just pop a

$MAXOBJECTS=1500

at the top of the source code or in the compiler command-line.

Posted: Tue Feb 07, 2006 6:37 pm
by mercurycs
Ok, that seems to work. Thanks alot.

but out of curiosity now, is there an actual ceiling to the number of objects and other things?

Posted: Tue Feb 07, 2006 11:54 pm
by Kent
It depends. Certain things are static, but the things you're likely to need to increase (like objects, routines, etc.) can be increased into the tens of thousands, if you actually need that many.

Invoking the compiler with:

hc $list

will give you a rundown of all the modifiable limits.

(The reason they're limited by default is for cross-platform compatibility, so that even limited-memory platforms can compile a moderately large game.)

Posted: Wed Feb 08, 2006 8:11 pm
by Ice Cream Jonsey
I can't wait to see this Hugo game with all these objects, personally. I always dig the sizeable Hugo games!

Posted: Wed Feb 08, 2006 8:12 pm
by pinback
As long as three of them are not monkeys and 1497 of them are not bananas.

Posted: Wed Feb 08, 2006 8:14 pm
by Ice Cream Jonsey
And as long as there isn't a big acronym in front of an impassable door.

Posted: Wed Feb 08, 2006 8:21 pm
by pinback
You're trackin' with me, man! We're totally tracking!