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 / command/line limit?

Author
Message
demons breath
21
Years of Service
User Offline
Joined: 4th Oct 2003
Location: Surrey, UK
Posted: 14th Sep 2007 23:44
What are the limits on the numbers of commands, lines and commands per line in a DarkBASIC program?

http://jamesmason01.googlepages.com/index.htm
TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 15th Sep 2007 00:35
There isn't any max number of lines limit really - there's just a line limit length of 256 characters - or at least it always used to be...

TK_Man

Sinani201
18
Years of Service
User Offline
Joined: 16th Apr 2007
Location: Aperture Science Enrichment Center
Posted: 15th Sep 2007 02:43
for the demo I think there is... not sure, though

how do you make a sig?
Insert Name Here
18
Years of Service
User Offline
Joined: 20th Mar 2007
Location: Worcester, England
Posted: 15th Sep 2007 11:17
Quote: "WARNING - SYNTAX ERROR - Line exceeds 255 characters in length."

Yep, there's a character limit.

............................
demons breath
21
Years of Service
User Offline
Joined: 4th Oct 2003
Location: Surrey, UK
Posted: 15th Sep 2007 13:11
@TDK: I thought there was a line limit as well (in the basic editor for DBC... Maybe DarkEDIT's different)

it was while I was doing a lazy workaround for not being allowed to import media into programmes to enter your DBC Challenge thing on this forum actually...


I just created a DBA file and put code to read, pixel-by-pixel, the colour value and coordinate of each pixel of an imported texture, export the commands for recreation to an external text file, and then manually copy them back into my main file


the code is now



which seems to work as it produces 16 commands per line. However, when each command was on it's own line with a 256*256 pixel image, it seemed to have some difficulty with pasting the whole 130-odd thousand extra lines of code that I tried to put in at the end into the editor

I suppose that is quite a lot, come to think of it. I resized my textures to a fraction of the size and put more commands on one line so the problem's sorted now but still... be interested to know just how much the editor can take.

http://jamesmason01.googlepages.com/index.htm
Sinani201
18
Years of Service
User Offline
Joined: 16th Apr 2007
Location: Aperture Science Enrichment Center
Posted: 15th Sep 2007 19:33
In the demo there is a line limit... it was soooo annoying when I had the demo... lol

how do you make a sig?
demons breath
21
Years of Service
User Offline
Joined: 4th Oct 2003
Location: Surrey, UK
Posted: 15th Sep 2007 19:42
well it brought it to a grand total of about 132000 lines which would be quite excessive for a programme anyway

and i just found out you're not allowed to convert external media for TDK's challenge... which means I gotta do YET ANOTHER rethink.

http://jamesmason01.googlepages.com/index.htm

Login to post a reply

Server time is: 2025-06-02 07:21:07
Your offset time is: 2025-06-02 07:21:07