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.

Newcomers DBPro Corner / enemy fire Runtime Error 7007 - Object already exists at line...

Author
Message
GreenDixy
16
Years of Service
User Offline
Joined: 24th Jul 2008
Location: Toronto
Posted: 25th May 2011 06:02
I need some help please i am probally missing something but hope it aint to bad i have my enemys loaded no problem animations etc now onto the fire part



So when i run the code and the enemys try and fire at me i get the error

Object already exists how may i get around this? sorry for sloppy code its a work in progress

======================================
My software never has bugs. It just develops random features.
Hodgey
15
Years of Service
User Offline
Joined: 10th Oct 2009
Location: Australia
Posted: 25th May 2011 10:01
That might not be the piece of code which is causing the error as the "object already exists" error generally appears when make/loading objects. There aren't any creation commands in your snippet that I'm aware of. Try looking where you load/make your objects.

A clever person solves a problem, a wise person avoids it - Albert Einstein
Quel
15
Years of Service
User Offline
Joined: 13th Mar 2009
Location:
Posted: 25th May 2011 10:03
You don't create object in this piece, so the problem may be not here...

-In.Dev.X: A unique heavy story based shoot'em ~25%
-CoreFleet: An underground commander unit based RTS ~15%
-TailsVSEggman: An Sonic themed RTS under development for idea presentation to Sega ~15%
GreenDixy
16
Years of Service
User Offline
Joined: 24th Jul 2008
Location: Toronto
Posted: 25th May 2011 19:39
here is the other part of the code i have make object bullet,etc,etc in the main part for running it here is my code witch does work




the problem is that i have 7 enemies on my first level im working on they are all trying to shoot the same bullet should i have the bullets say from 20 to 30 for an example and use getfreeobject to find witch is free for the enemie thats what seems to be giving me the error they are all trying to shoot the same bullet

======================================
My software never has bugs. It just develops random features.
cochran2904
13
Years of Service
User Offline
Joined: 28th Mar 2011
Location: at my computer
Posted: 19th Jul 2011 08:19
It cant happen in either of those area's. This error usually occurs whenever u load or create an object. Example: "Make Object Cube"
or "Load Object "File.x", 1"
Hodgey
15
Years of Service
User Offline
Joined: 10th Oct 2009
Location: Australia
Posted: 19th Jul 2011 14:23
Yes, we are looking for a "Load Object" command or something similar. The error message should give you a line number so that would be a good place to start.

GreenDixy
16
Years of Service
User Offline
Joined: 24th Jul 2008
Location: Toronto
Posted: 21st Jul 2011 10:37
this thread is old was over a month ago i think i got passed my problem lol thanks for the reply anyways

======================================
My software never has bugs. It just develops random features.
Hodgey
15
Years of Service
User Offline
Joined: 10th Oct 2009
Location: Australia
Posted: 21st Jul 2011 10:49
Quote: "this thread is old was over a month ago i think i got passed my problem lol thanks for the reply anyways"

I always like closure to the threads I respond to and good to know that you fixed it.

Login to post a reply

Server time is: 2024-11-22 18:27:01
Your offset time is: 2024-11-22 18:27:01