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 / Check out these hidden commands. there hillarius!!!!

Author
Message
Caleb1994
16
Years of Service
User Offline
Joined: 10th Oct 2008
Location: The Internet you idiot!
Posted: 12th Apr 2009 05:06 Edited at: 12th Apr 2009 06:50
ok i was randomly going through the db.exe in a txt file and found a hole list of all the commands for dbc. well if you scroll to the bottum you see this:

LEEBAMBER%9801%0
MALCOLMBAMBER%9802%0
CHRISTOPHERBAMBER%9803%0

Type in those commands(in the db editor. darkedit will probly say they don't exist) and see what happens it's hillarius(Without the numbers at the end). try it a few times it comes out with different stuff.

oh and heres some other ones i odn't know, that i saw:


DRAW AT SYNC OFF%7646%0
DRAW AT SYNC ON%7647%0
CLEAR RENDER AREA%7648%0
RENDER CAMERA%7649%0

and

LOCK EDITOR%9993%0
UNLOCK EDITOR%9994%0

Not sure what they do. any ideas?



NOTE!!!!

do not change ANYTHING in the db exe if you do the exe will not run and you will have to reinstall it!

New Site! Check it out \/
Libervurto
19
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 12th Apr 2009 08:42 Edited at: 12th Apr 2009 08:47
the hidden functions surface again!
well at least you found them on your own, I only heard about them through the forums

havent heard of those rendering ones or the editor locking ones, could be useful.
im guessing that editor lock is for preventing the code being changed as it is interpreted.

can't read?
Robert The Robot
18
Years of Service
User Offline
Joined: 8th Jan 2007
Location: Fireball XL5
Posted: 12th Apr 2009 17:29
Ah, yes, the hidden commands - those first three are very funny. I think Lock/Unlock editor have been mentioned before - I'm not entirely certain but I think they disable the CLI so that when you run your code from the editor you see it as it will be in the final exe.

As for these:
DRAW AT SYNC OFF%7646%0
DRAW AT SYNC ON%7647%0
CLEAR RENDER AREA%7648%0
RENDER CAMERA%7649%0

Well, I haven't really any idea but I'd hazzard a guess that the first two will trigger a "Sync" screen update whenever Sync On or Sync Off are called. Clear Render Area will probably clear the portion of the screen where 3d has been drawn - you can set the region of screen where the camera draws to using Set camera viewport, and add 2d sprites around it. You can possibly choose to clear just this area. And Render Camera probably simply draws the current 3d data to the bitmap, as happens in Sync - but minus any 2d in the scene.

I'll have to play about with these....

"I wish I was a spaceman, the fastest guy alive. I'd fly you round the universe, in Fireball XL5..."
Caleb1994
16
Years of Service
User Offline
Joined: 10th Oct 2008
Location: The Internet you idiot!
Posted: 12th Apr 2009 22:37
OBese:

Ya i don't know why but i just wanted to look through it for some reason lol and found em.


Robert:

When i herd draw at sync off/on i was thinking that it was turning of drawing when you call sync but that would render sync useless lol.
your idea makes more sense. as for the render commands thats probably it.
Lock/Unlock editor doesn't Lock the cli. thats "Lock CLI" a different hidden command.

New Site! Check it out \/
Latch
19
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 12th Apr 2009 23:04
Be aware that there may be debugging and testing commands in the db.exe that are simply for testing purposes as "real" commands are added. Using these in execution may not provide any results that you can see unless you are in a debugging environment or are looking for specific return values that can indicate what is going on. Also be careful as commands may access your harddrive and even wipe out things you may not intend.

Also be careful about publicly posting code out of the DB.exe . Those numbers and letters following the commands have a purpose, and the posting of that information may be construed as reverse engineering or hacking. The strings have no real meaning except to help the user when they are creating a program... but the numbers and letters following the strings do have a meaning.

Enjoy your day.
Caleb1994
16
Years of Service
User Offline
Joined: 10th Oct 2008
Location: The Internet you idiot!
Posted: 12th Apr 2009 23:30 Edited at: 12th Apr 2009 23:31
Oh I didn't know that sorry

it can delete things off your hard drive?

i thought the numbers after just had something to do with the parameters for that command. i didn't know that they were something else

New Site! Check it out \/
Latch
19
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 12th Apr 2009 23:51
Quote: "it can delete things off your hard drive?"


Who knows? If the particular command isn't documented or openly supported by TGC, who knows if it is a broken command that has some consequences or bugs that were never fixed, or if it's meant to blow things up, or if it's just for testing purposes. Though, the bamber commands are documented.

Quote: "i thought the numbers after just had something to do with the parameters for that command. i didn't know that they were something else"

I'm just saying be careful when posting code directly out of the exe. Those numbers are most likely byte code that identifies the real command that DB uses internally followed by the data type, the parameters and the return type. That small bit you posted isn't going to undo anything, but I suppose if TGC thought it was some breach of security they may tell you to cease and desist.

Enjoy your day.
Caleb1994
16
Years of Service
User Offline
Joined: 10th Oct 2008
Location: The Internet you idiot!
Posted: 12th Apr 2009 23:57
oh ok i see what you mean. i'll be more careful now lol

New Site! Check it out \/

Login to post a reply

Server time is: 2025-08-08 20:38:17
Your offset time is: 2025-08-08 20:38:17