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 / Help Please..."Object doesn't exist..."

Author
Message
BigCat
18
Years of Service
User Offline
Joined: 25th Mar 2006
Location: Just off the centre of nowhere
Posted: 26th Mar 2006 00:47
I am studying the Binary Moon tutorial, as an evaluation before purchasing DB classic. I am trying to go through the game example. From Lesson 02 onward, I get an error " Runtime error: Object doesn't exist at line 111" when I try to run the code from the source pack. The problem stops if I disable all commands relating to the files Arena.3ds and Arena_light.3ds. I have tried to have the files in the same folder or in the original media folder. I have opened the files using MilkShape to check whether they were corrupted. No dice I am used to work with Visual Basic and I can only say that debugging in DB, even with the DBEdit program isn't friendly at all. So PLEASE anyone with a clue could you help me, Thanks.

BigCat
Big Man
19
Years of Service
User Offline
Joined: 4th Feb 2005
Location: BEHIND YOU!!!! (but I live in England)
Posted: 26th Mar 2006 14:41
Have you made sure that the object is in the game folder and that you have loaded the object with the correct name and file type.

I would personaly suggest buying dark basic pro. I own both (Classic and pro) an I can safely say that although it may take a little while longer (still not that long ) to get used to dark basic pro, in the end it makes the job a lot easier and you can do a lot more with it. Plus upgrades are constantly coming out whereas dark basic classic stopped at 1.13.

I hope this helps.

BM

Our aim is to keep the loo's clean, your aim can help.
BigCat
18
Years of Service
User Offline
Joined: 25th Mar 2006
Location: Just off the centre of nowhere
Posted: 26th Mar 2006 15:19
Thank you for replying. Yes, I did make sure of the syntax, even so I just pasted the tut's code. I am tending to agree with you about DB Pro. But as a hobbyist programmer, I was used to do everything the hard way in VB. When I discovered DB it blew my mind (and yes, I live on this planet, simply not too curious, I am) However, I am slowly realising that DB Pro is even better. Tantalizing new possiblities....
Still, I'd like to know what's wrong with the Binary Moon tutorial and why it won't work correctly. When you learn a new language it is difficult to decide whether you have made a mistake or the author has or else. Thanks again

BigCat
RUCCUS
19
Years of Service
User Offline
Joined: 11th Dec 2004
Location: Canada
Posted: 26th Mar 2006 16:28
The reason its telling you the object doesnt exist is because, it doesnt exist. Unless DBC uses the "Object Doest Not Exist" error for unfound files - which I dont think it does - then you're calling for an object you've not created/defined. If we could see your code we could probably pinpoint it in a few seconds but if you're leniant on showing it, you'll have to go through each section of your code that utilizes objects and rem out each section or - sometimes the easier way - look for an irregular object number, maybe you type 22 instead of 2 by accident or something. The Find/Replace program in the IDE can help with this - though Im not sure if DBC has it.

Then again, it should be returning a line number for where the error occured, so theres a good chance that your culprates in there somewhere.

Like I said, if we could see the code it'd be a lot easier to sort this out.

- RUC'

BigCat
18
Years of Service
User Offline
Joined: 25th Mar 2006
Location: Just off the centre of nowhere
Posted: 26th Mar 2006 21:36
Thank you Ruccus.
I didn't include the code because it's a lesson from the tutorial, as I said in my first post. But never mind here it is. I didn't change a comma to the lesson... still it will give you an runtime error "Obj doesn't exist" at line 111. Which is where the loop statement is... Any insight why the lesson won't run would be appreciated. Thank you.

BigCat

Login to post a reply

Server time is: 2024-11-27 23:39:28
Your offset time is: 2024-11-27 23:39:28