Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / maximum amount of object?

Author
Message
freak
23
Years of Service
User Offline
Joined: 20th Jan 2003
Location:
Posted: 24th Mar 2003 18:01
I'm working at a little game for the retro contest (a combination between pipe dream/oil cap and tetris).

When the 991th object is created, there's an error: 'object already exists'
it seems there's a maximum object number, and when this is exeeded, it starts counting from one again.... Is this true?

Is there a way to avoid this?
John H
Retired Moderator
23
Years of Service
User Offline
Joined: 14th Oct 2002
Location: Burlington, VT
Posted: 25th Mar 2003 00:01
Id try just combining objects

Current - RPG: Eternal Destiny
http://www.halbrosproductions.netfirms.com
Dont ask those questions! Read the help files lazy! Oh ya, and Tat has a plugin for that!
freak
23
Years of Service
User Offline
Joined: 20th Jan 2003
Location:
Posted: 25th Mar 2003 18:24
I have 4 collision objects which will be removed: I'll remove all colision checks and replace it by an array system which will be much faster (I hope).

But I still think its quite a limitation that you can only have about 990 objects.

I thought there was somsething like static objects, which don't have a specific object number or something like that... I don't know very much about it but I wonder if it should be solvable this way?
Dr DooMer
23
Years of Service
User Offline
Joined: 22nd Dec 2002
Location: United Kingdom
Posted: 26th Mar 2003 01:49
That can't be right - you should be able to have more than sixty-thousand objects, according to the help file.

Static objects might help a bit, it all depends what you're using them for, really. You see, once a static object has been created from a standard object, you can safely delete the standard object, which frees up the object number. However, static objects are exacly how they sound - completely unchanging and non-interactive. Once placed down, they don't animate, move, rotate, scale, ghost, etc and, under normal circumstances, cannot be removed individually.

I'll try writing a little program later to test your '990 object' predicament...

"I am a living, thinking entity who was created in the sea of information."
QuothTheRaven
23
Years of Service
User Offline
Joined: 2nd Oct 2002
Location: United States
Posted: 26th Mar 2003 03:51
65,000 is closer. you get the error because object 991 already exists...duh. You've already made it somewhere else in the program, but havent realized it. try making 992 or 993, you're just not seeing your old object. If you put the command
delete object 991
before you made it, it would assure you aren't trying to make an object that already exists. You haven't reached the limit, you just tried to make object 991 more than once.

Darken the skies, we are god
freak
23
Years of Service
User Offline
Joined: 20th Jan 2003
Location:
Posted: 26th Mar 2003 18:05
problem solved... the object for the environement had object number 1000

after having made more than 990 blocks in my game it gave this problem... now I just changed that 1000 to 10 000 and problem's solved

Login to post a reply

Server time is: 2026-06-11 13:13:59
Your offset time is: 2026-06-11 13:13:59