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 / Error on nonexistant line 299

Author
Message
TogaMario
22
Years of Service
User Offline
Joined: 30th Jan 2003
Location:
Posted: 20th Feb 2003 18:23
Anyone else having this problem? "Cannot load object on line (insert number here)" and you only have 281 lines of code...I don't know how the hell to begin to fix that kind of problem I got a new computer over the weekend and reinstalled, and transfered my code, and media. And I STILL get the error using the clone command Pleaz fix so I can have more than one tree in my level, lol. Anyone know another way to duplicate items? Thanks
TogaMario
22
Years of Service
User Offline
Joined: 30th Jan 2003
Location:
Posted: 20th Feb 2003 18:29
Pardon, it's OBJECT DOES NOT EXIST AT LINE 299. Sorry and thanks.

David T
Retired Moderator
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 20th Feb 2003 19:01
If you have more than one include file then se if the bug is in the next one along. The IDE just packs all include files into one and then executes that large chunk of code.

The error number is not file specific, but project specific, if you get what I mean

Visit [url]www.lightning-systems.co.uk[/url]
You are the th person to view this signature.
TogaMario
22
Years of Service
User Offline
Joined: 30th Jan 2003
Location:
Posted: 20th Feb 2003 23:13
Ok, i'll see if it's in my Camera include file. Thanks!

doclar1
22
Years of Service
User Offline
Joined: 4th Jan 2003
Location: United States
Posted: 20th Feb 2003 23:57
The way I understand it, or at least what works for me, is
if you include a file at the top of your main source, this
file gets inserted --> right then and there...

So, if you have a include file with 5 lines of code and
your main source has 10 lines of code, you end up with
a total of 15 lines of code.

example:

(Line# ----> line# of file)
1 ----> line 1 of include
2 ----> line 2 of include
3 ----> line 3 ...
4 ----> line 4 ...
5 ----> line 5 ...
6 ----> first line of main program
7 ----> line 2 of main program
8 ----> line 3 of main program
9 ----> line 4 .....and so on
10 ---->
11 ----> line# 11 for debug, BUT line 6 of main program file

So now you can understand why you get a line 299 error
when your main program file only has 250 lines of code.


I hope this helps to understand the line error problem.


Regards,
Lawrence D.F.Sr.
TogaMario
22
Years of Service
User Offline
Joined: 30th Jan 2003
Location:
Posted: 21st Feb 2003 00:33
Now it works! But the text that used to show my player list stopped working DBPro is very funny. I get a better computer and somehow my multiplayer test runs SLOWER...camera twitches horribly, the menu takes a while to update after i move to a selected menu item. Didn't have these problems with the old comp, but the SavagePro video card is probably killing me (only 32 megs too ... I'm working on a GeForce4 Ti4200) Thanks all

Beta1
22
Years of Service
User Offline
Joined: 28th Dec 2002
Location:
Posted: 21st Feb 2003 18:31
I got bizarre error messages like that when I had screwed up the syntax of a function (put a RETURN instead of an ENDFUNCTION) That caused an error pointing at a line that was completely blank.

Just my 2c

Login to post a reply

Server time is: 2025-05-19 05:54:11
Your offset time is: 2025-05-19 05:54:11