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 / Unocumented Commands List

Author
Message
Xolatron old
20
Years of Service
User Offline
Joined: 25th Jan 2004
Location: The Star Forge Language: DBpro
Posted: 31st Jul 2005 23:40 Edited at: 3rd Aug 2005 04:39
Here is an unnofficial list of DBpro undocumented commands. Note: there might be a reason as to why they are undocumented, ex: they might have bugs, etc. Some may not even do anything

Some of these have been very useful to me, and I'm sure others will find them useful also Others, I just found from this post and would have been very helpful if I had known about them earlier .

Here is the current list:


Everyone is welcome to add to these if they know of more.

-Xol

Benjamin
21
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 1st Aug 2005 01:45


I think there are some others, but I forget what they are.


"Lets migrate like bricks" - Me
Kohaku
20
Years of Service
User Offline
Joined: 3rd May 2004
Location: The not very United Kingdom
Posted: 1st Aug 2005 02:06 Edited at: 1st Aug 2005 02:08
A much faster alternative for deleting a load of objects.




You are not alone.
Xolatron old
20
Years of Service
User Offline
Joined: 25th Jan 2004
Location: The Star Forge Language: DBpro
Posted: 1st Aug 2005 02:17
Thanks, I've edited the first post and put in tha parameters.

-Xol

Ric
19
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 1st Aug 2005 12:14
What is meant by 'token'?

dark coder
21
Years of Service
User Offline
Joined: 6th Oct 2002
Location: Japan
Posted: 1st Aug 2005 13:14
i think its the first instance of the given char, for example

FIRST TOKEN$("hello ! goodbye", "!")

that should return 7 because thats how many chars it goes across unntill it fins !


spooky
21
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 1st Aug 2005 13:45
LOL!

Token commands are way of splitting a string by a delimeter. Useful for extracting words out of a sentence or values from a comma delimeted list



Boo!
Drew Cameron
20
Years of Service
User Offline
Joined: 30th Jan 2004
Location: Scotland
Posted: 1st Aug 2005 14:17
Is that true Aura?
Thanks alot if it works!


Katie Holmes does not endorse D&C or Drew Cameron.
PowerSoft
19
Years of Service
User Offline
Joined: 10th Oct 2004
Location: United Kingdom
Posted: 1st Aug 2005 14:40
Indeed Aura, I hope it is




OffTopic:
(Drew, Can you change the release date to the 14th September? Its my birthday you see?)

Always available to help
Drew Cameron
20
Years of Service
User Offline
Joined: 30th Jan 2004
Location: Scotland
Posted: 1st Aug 2005 14:47 Edited at: 1st Aug 2005 14:48
Quote: "(Drew, Can you change the release date to the 14th September? Its my birthday you see?)"


Well... sure, I don't see why not!

14th of September it is. (Banner changed)


Katie Holmes does not endorse D&C or Drew Cameron.
PowerSoft
19
Years of Service
User Offline
Joined: 10th Oct 2004
Location: United Kingdom
Posted: 1st Aug 2005 15:14
(Drew, it stills says 15th :S)

Always available to help
Benjamin
21
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 1st Aug 2005 15:48 Edited at: 1st Aug 2005 15:50
Quote: " Is that true Aura?"

Yes.




"Lets migrate like bricks" - Me
PowerSoft
19
Years of Service
User Offline
Joined: 10th Oct 2004
Location: United Kingdom
Posted: 1st Aug 2005 16:01
Woah, excellent

Always available to help
Xolatron old
20
Years of Service
User Offline
Joined: 25th Jan 2004
Location: The Star Forge Language: DBpro
Posted: 1st Aug 2005 18:54
Note, for the token$ commands, that they will remove and null strings from the list, and will only return a null string when there are no more tokens left, signifying the end of the string.

-Xol

re faze
19
Years of Service
User Offline
Joined: 24th Sep 2004
Location: The shores of hell.
Posted: 1st Aug 2005 19:27 Edited at: 1st Aug 2005 19:33
dont forget
free string()
usage - frees memory held by or for a string
*edit*

window to front
window to back
window exist
save object
?stop executable?
Benjamin
21
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 1st Aug 2005 20:49 Edited at: 2nd Aug 2005 00:47
[Post removed by popular demand]


"Lets migrate like bricks" - Me
David R
20
Years of Service
User Offline
Joined: 9th Sep 2003
Location: 3.14
Posted: 1st Aug 2005 21:21 Edited at: 1st Aug 2005 21:21
Return Value=STAB BANJOMAN(CurrentLocation$,PainLevel)

[url=www.lightningstudios.co.uk][/url]
Grog Grueslayer
Valued Member
18
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 1st Aug 2005 21:38 Edited at: 1st Aug 2005 21:42
Quote: "Token commands are way of splitting a string by a delimeter. Useful for extracting words out of a sentence or values from a comma delimeted list"


Woah... that's a LOT better than what i've been using for my text adventure... thanks Spooky, Dark Coder, and Ric!

What i've been using:



Thank God for undocumented commands!
Scraggle
Moderator
20
Years of Service
User Offline
Joined: 10th Jul 2003
Location: Yorkshire
Posted: 1st Aug 2005 21:40
Quote: "Unocumented Commands List"


Those damn ocuments get get in the way all the time lol

re faze
19
Years of Service
User Offline
Joined: 24th Sep 2004
Location: The shores of hell.
Posted: 1st Aug 2005 22:17
@david r and benjamin

please stop fooling around, were not playing games here
Benjamin
21
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 1st Aug 2005 22:21
Quote: "please stop fooling around, were not playing games here"

Some of us apparently are.


"Lets migrate like bricks" - Me
Xolatron old
20
Years of Service
User Offline
Joined: 25th Jan 2004
Location: The Star Forge Language: DBpro
Posted: 2nd Aug 2005 00:34 Edited at: 2nd Aug 2005 00:39
Benjamin, the compiler didn't recognize:
free string()
window exist
stop executable

I've added
window to front
window to back
to the list

Please stop posting joke commands - these make it more difficult for people to go through the thread to find more documentation for any undocumented commands (no pun intended )

-Xol

dark coder
21
Years of Service
User Offline
Joined: 6th Oct 2002
Location: Japan
Posted: 2nd Aug 2005 00:39
save object is a command tho, maybe its save x object or something i know it exists tho


Xolatron old
20
Years of Service
User Offline
Joined: 25th Jan 2004
Location: The Star Forge Language: DBpro
Posted: 2nd Aug 2005 00:41
dark coder, yes, I just forgot to take that out - it was one of the commands I didn't add to the list, because it is documented by TGC. The editor doesn't highlight it, but that's because the keywords files haven't been updated for any u5.8 commands.

-Xol

Benjamin
21
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 2nd Aug 2005 01:03 Edited at: 2nd Aug 2005 01:04
Yeah, sorry. Anyway, was looking through a thread I posted ages ago about these commands, and found other things that are in the string tables, except all but 1 of the commands will be useful here(they have either already been covered or are non-functioning).

returnValue = load icon(filename$)

I'm not entirely sure what it can be used for and even if it works properly. If the icon loads then the function returns what appears the icon handle, which can then be used to delete it again using delete icon.


"Lets migrate like bricks" - Me
Hamish McHaggis
21
Years of Service
User Offline
Joined: 13th Dec 2002
Location: Modgnik Detinu
Posted: 2nd Aug 2005 01:04 Edited at: 2nd Aug 2005 01:09
bool = WINDOW EXIST(windowName$) is a command. You probably didn't include the brackets.

And not forgetting the ellusive MAKE GAME command .

More tea Vicar?
Benjamin
21
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 2nd Aug 2005 01:25
A few I've found just now:

PRINTC
Outputs strings to the screen without going
onto a new line.

FIND FIRST CHAR$(source, char)
Returns the position of the first occurance
of a char in source.

FIND LAST CHAR$(source, char)
Returns the position of the last occurance
of a char in source.

FIND SUB STRING$(source, substring)
Returns the position of a substring in
the string specified in source.

COMPARE CASE$(stringA, stringB)
Returns 1 if the case of each character in
both strings match.


"Lets migrate like bricks" - Me
Xolatron old
20
Years of Service
User Offline
Joined: 25th Jan 2004
Location: The Star Forge Language: DBpro
Posted: 2nd Aug 2005 01:47
Thanks for all the good repies - I've added the commands to the first post. Benjamin, those string commands are very useful, many people use ones coded in DBpro, but those are surely faster!

-Xol

Hamish McHaggis
21
Years of Service
User Offline
Joined: 13th Dec 2002
Location: Modgnik Detinu
Posted: 2nd Aug 2005 01:51 Edited at: 2nd Aug 2005 01:51
MAKE GAME! It may not be all that useful but it is an actual undocumented command . And nice one Ben, where were all those commands when I needed them?

More tea Vicar?
Xolatron old
20
Years of Service
User Offline
Joined: 25th Jan 2004
Location: The Star Forge Language: DBpro
Posted: 2nd Aug 2005 01:53
Wow, you're right:

type 'MAKE GAME' into the IDE and press compile. It will tell you that the syntax should be:
MAKE GAME style$,hero$,enemy$,plot$



-Xol

Xolatron old
20
Years of Service
User Offline
Joined: 25th Jan 2004
Location: The Star Forge Language: DBpro
Posted: 2nd Aug 2005 01:57
Really, it works - this is hilarious:


-Xol

Gamefreak
19
Years of Service
User Offline
Joined: 20th Jun 2004
Location: Cyberspace
Posted: 2nd Aug 2005 02:06
Make Game "???", "???", "???", "???"
Play Game
End Game
Xolatron old
20
Years of Service
User Offline
Joined: 25th Jan 2004
Location: The Star Forge Language: DBpro
Posted: 2nd Aug 2005 02:13 Edited at: 2nd Aug 2005 02:14
Nice Gamefreak , I'll be adding those!

Only read this if you've tried make game... already:


-Xol

Ric
19
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 2nd Aug 2005 03:34
@xolatron/spooky: Thanks for the info on token$ - came in pretty useful for the latest coding challenge.

Can't believe those string parsing commands aren't documented - trying to work out the time they would have saved me had I known about them!

Xolatron old
20
Years of Service
User Offline
Joined: 25th Jan 2004
Location: The Star Forge Language: DBpro
Posted: 2nd Aug 2005 04:35
It's weird - I made my own commands to do those things, and just find out ones already exist.

I wonder why the 'MAKE GAME' commands exist .

-Xol

RiiDii
19
Years of Service
User Offline
Joined: 20th Jan 2005
Location: Inatincan
Posted: 2nd Aug 2005 05:01
That is hilarious!!!



"Droids don't rip your arms off when they lose." -H. Solo
REALITY II
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 2nd Aug 2005 05:52
I posted about these a long time ago.
http://forum.thegamecreators.com/?m=forum_view&t=42653&b=1

PETA - People for the Eating of Tasty Animals
re faze
19
Years of Service
User Offline
Joined: 24th Sep 2004
Location: The shores of hell.
Posted: 2nd Aug 2005 09:42 Edited at: 2nd Aug 2005 09:43
also there is save icon from image

and for those of you who have db classic try thes:

malcolmbamber
christopherbamber
leebamber

------

executable hacking. its a beautiful art.

ps anyone find out how dbc works
David R
20
Years of Service
User Offline
Joined: 9th Sep 2003
Location: 3.14
Posted: 2nd Aug 2005 13:59
He he!

malcolmbamber;
Quote: "We are the knights who say... NI! NI! NOO!"


christopherbamber;
Quote: "
Thick jack plot, sits in the stocks, getting pelted with rancid tomatoes"


leebamber
Quote: "What the smegging smeg have you smegging done? "




, lol

(I have DBP & DBC by the way)

[url=www.lightningstudios.co.uk][/url]
Scraggle
Moderator
20
Years of Service
User Offline
Joined: 10th Jul 2003
Location: Yorkshire
Posted: 2nd Aug 2005 14:17
I have written an ini file for these commands so that they will turn blue when entered into the IDE. You will also get the usage help in the status bar.

I haven't written a help file though ... that is way too much work when there is still no confirmation if these commands actually work or not!

Click on the download link and put the file in the DarkBASIC/Editor/Keywords folder

Attachments

Login to view attachments
Xolatron old
20
Years of Service
User Offline
Joined: 25th Jan 2004
Location: The Star Forge Language: DBpro
Posted: 2nd Aug 2005 16:49
Added the commands that still work from Phaelax's thread.

Thanks, Sgraggle

-Xol

HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 2nd Aug 2005 20:25 Edited at: 2nd Aug 2005 20:29
found this one, havn't work out how to use it yet but there a clue in the text box at the bottom of the IDE


it say
Quote: "
String String Type
"


I'm not getting you down am I, Ho Look! another fancy Door?
Benjamin
21
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 2nd Aug 2005 20:34
Thats a variable type


"Lets migrate like bricks" - Me
that dude
20
Years of Service
User Offline
Joined: 1st Jan 2004
Location: USA
Posted: 2nd Aug 2005 20:59
that dbc one, if you put those three names in a for/next loop it will say different things some of the times.

http://www.nuclearglory.com/?u=fearik = sweet as hell collision system. easy on that leather thing in your back pocket too.
the left side of my head isn't bigger, the right side is just smaller
Gamefreak
19
Years of Service
User Offline
Joined: 20th Jun 2004
Location: Cyberspace
Posted: 3rd Aug 2005 01:24
When I tried to use SAVE ICON FROM IMAGE, it compiled fine, and then complained it couldn't find the command in the ImageDebug DLL. Maybe it has been partially removed?
Xolatron old
20
Years of Service
User Offline
Joined: 25th Jan 2004
Location: The Star Forge Language: DBpro
Posted: 3rd Aug 2005 04:39
Perhaps - I'll put a note in the list.

-Xol

re faze
19
Years of Service
User Offline
Joined: 24th Sep 2004
Location: The shores of hell.
Posted: 3rd Aug 2005 11:07
also in dbc there are
3ds2x(3dsname,xname) = convert 3ds to x
rotate image(image#)= rotate an image
lock cli = ???
unlock cli = ???
lock editor = ???
unlock editor = ???
and for dbp there is
write filemap value
read filemap value
write filemap string
read filemap string
stop executable
Nicholas Thompson
19
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 3rd Aug 2005 13:43
what the smeg is a filemap?!

My Website:
re faze
19
Years of Service
User Offline
Joined: 24th Sep 2004
Location: The shores of hell.
Posted: 4th Aug 2005 05:52
Ask someone else, i just found these with reshack
Xolatron old
20
Years of Service
User Offline
Joined: 25th Jan 2004
Location: The Star Forge Language: DBpro
Posted: 7th Aug 2005 17:55
Filemaps are how programs communicate with each other.

I just tested those and all of them have been taken out of DBpro, probably so they could be put in the expansion pack.

-Xol

Login to post a reply

Server time is: 2024-05-05 17:15:56
Your offset time is: 2024-05-05 17:15:56