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 Professional Discussion / What is generating this error?

Author
Message
Disrupter52
15
Years of Service
User Offline
Joined: 9th May 2011
Location:
Posted: 26th Aug 2011 22:33
What part of my code is generating an error? Im getting the error: "Runtime Error 7008 - Object does not exist at line 83. Object Number Not Found: 51"

Im trying to make a 6x2 grid of rooms where the Z rooms are rotated 180 degrees (which i got working fine) and the 'For x = 1 to 6' (when x is 2,4,6) rooms are mirrored across the X axis (no idea if it works, due to mentioned error)

Pincho Paxton
23
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 26th Aug 2011 22:40 Edited at: 26th Aug 2011 22:48
This should fix it...



Disrupter52
15
Years of Service
User Offline
Joined: 9th May 2011
Location:
Posted: 26th Aug 2011 23:19
Runtime Error 7008 - Object does not exist at line 88.
Object Number Not Found: 51

Thats the new error off of what you posted Pincho. Also im running in fulldesktop mode, would another mode be better?
Pincho Paxton
23
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 26th Aug 2011 23:43 Edited at: 26th Aug 2011 23:45
It will not make a difference to change the window.. try this..



IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 27th Aug 2011 00:10
This line is incorrect too:
if x = 2 or 4 or 6

It should be:
if x = 2 or x = 4 or x = 6

Disrupter52
15
Years of Service
User Offline
Joined: 9th May 2011
Location:
Posted: 27th Aug 2011 05:56
Ok so i fixed my code now so the if statement works and Pincho's code works. Thankyou to both of you.

Now, i want both my rows of 6 apartments (as established in my For loops) to be like this > < > < > < (where each "> or <" is 1 part of the martix. The first Z row is fine, the second Z row is bass-ackwards.



Now, to me, this code makes a 2 by 6 matrix in a (x = 1 z = 1 z = 2) then (x = 2 z = 1 z = 2) fashion. Right now all of the 6 Xs where Z = 1, they are all positioned how i want them to be. All of the 6 Xs where Z = 2 are not.

I really hope you guys can follow me, im just not sure how to code in the adjustments.
Pincho Paxton
23
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 27th Aug 2011 16:55 Edited at: 27th Aug 2011 16:59
Try this, and if it doesn't work try to figure out what I am trying to do.



Disrupter52
15
Years of Service
User Offline
Joined: 9th May 2011
Location:
Posted: 27th Aug 2011 18:50
Thanks for all of your help, finally got it working with this code

Login to post a reply

Server time is: 2026-07-11 12:03:09
Your offset time is: 2026-07-11 12:03:09