object limit

This is a discussion / support forum for the Hugo programming language by Kent Tessman. Hugo is a powerful programming language for making text games / interactive fiction with multimedia support.

Hugo download links: https://www.generalcoffee.com/hugo
Roody Yogurt's Hugo Blog: https://notdeadhugo.blogspot.com
The Hugor interpreter by RealNC: http://ifwiki.org/index.php/Hugor

Moderators: Ice Cream Jonsey, joltcountry

mercurycs
Posts: 8
Joined: Mon Jan 31, 2005 8:13 pm
Location: Vermont

object limit

Post 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?

User avatar
pinback
Posts: 17927
Joined: Sat Apr 27, 2002 3:00 pm
Contact:

Post by pinback »

33, that looks like to me.

33 objects.
When you need my help because I'm ruining everything, don't look at me.

Guest

Post by Guest »

Just pop a

$MAXOBJECTS=1500

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

mercurycs
Posts: 8
Joined: Mon Jan 31, 2005 8:13 pm
Location: Vermont

Post 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?

Kent
Posts: 119
Joined: Fri Jun 27, 2003 12:10 pm

Post 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.)

User avatar
Ice Cream Jonsey
Posts: 30193
Joined: Sat Apr 27, 2002 2:44 pm
Location: Colorado
Contact:

Post 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!
the dark and gritty...Ice Cream Jonsey!

User avatar
pinback
Posts: 17927
Joined: Sat Apr 27, 2002 3:00 pm
Contact:

Post by pinback »

As long as three of them are not monkeys and 1497 of them are not bananas.
When you need my help because I'm ruining everything, don't look at me.

User avatar
Ice Cream Jonsey
Posts: 30193
Joined: Sat Apr 27, 2002 2:44 pm
Location: Colorado
Contact:

Post by Ice Cream Jonsey »

And as long as there isn't a big acronym in front of an impassable door.
the dark and gritty...Ice Cream Jonsey!

User avatar
pinback
Posts: 17927
Joined: Sat Apr 27, 2002 3:00 pm
Contact:

Post by pinback »

You're trackin' with me, man! We're totally tracking!
When you need my help because I'm ruining everything, don't look at me.

Post Reply