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.

Code Snippets / No Media Required

Author
Message
Chiwawa
21
Years of Service
User Offline
Joined: 13th Oct 2002
Location: Canada
Posted: 5th Jun 2003 04:17


hi
i just made a little programe who take any file.....and who make a "Rebuild.DBA" who contain in data...the file.....and then u can delete the other first .dba and the media.....and juste run the new "Rebuild.dba" ...and it "recompile" the media.........the name of the file will be "Final.txt" ...you can modifi it as you wish....
i used that to pu midi file in my game....without any external media

here the code:
Chiwawa
21
Years of Service
User Offline
Joined: 13th Oct 2002
Location: Canada
Posted: 5th Jun 2003 04:19
and here a little example of application of my prog....
music made with the above code....

just test it:
Chiwawa
21
Years of Service
User Offline
Joined: 13th Oct 2002
Location: Canada
Posted: 5th Jun 2003 04:20
.....and its made in DBC V1.13
indi
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Chiwawa
21
Years of Service
User Offline
Joined: 13th Oct 2002
Location: Canada
Posted: 5th Jun 2003 11:15
UberTuba
21
Years of Service
User Offline
Joined: 5th Oct 2002
Location: Brittania
Posted: 5th Jun 2003 11:31
unrecognised parameter

Life is a terminal disease.
You never survive it.
Chiwawa
21
Years of Service
User Offline
Joined: 13th Oct 2002
Location: Canada
Posted: 5th Jun 2003 20:26
???
no...


wich line.....wich code? first one?
...does anybody else tested it...
FieldDoc
20
Years of Service
User Offline
Joined: 30th May 2003
Location: London, UK
Posted: 5th Jun 2003 22:15
Line 289

Life is like a penis:
When it's soft you can't beat it, when it's hard you get screwed.
David T
Retired Moderator
21
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 5th Jun 2003 23:42
Wow - that challenge here is to understand the original post

Quote: "hi
i just made a little programe who take any file.....and who make a "Rebuild.DBA" who contain in data...the file.....and then u can delete the other first .dba and the media.....and juste run the new "Rebuild.dba" ...and it "recompile" the media.........the name of the file will be "Final.txt" ...you can modifi it as you wish....
i used that to pu midi file in my game....without any external media"


You are the th person to view this signature.
Programmers don't die, they just Gosub without return....
David T
Retired Moderator
21
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 5th Jun 2003 23:44
The problem with line 289 is that there is no AND... surely somebody else noticed that?!

You are the th person to view this signature.
Programmers don't die, they just Gosub without return....
Chiwawa
21
Years of Service
User Offline
Joined: 13th Oct 2002
Location: Canada
Posted: 5th Jun 2003 23:46
? line 289?

on the second prog?

this is the line 289:
if (rightkey()) and (NbTouche=1) then Direction=3
....anyway....
Chiwawa
21
Years of Service
User Offline
Joined: 13th Oct 2002
Location: Canada
Posted: 5th Jun 2003 23:48
ooooo sorry......
i see it now...just forgot a "and" sorry....

Chiwawa
21
Years of Service
User Offline
Joined: 13th Oct 2002
Location: Canada
Posted: 6th Jun 2003 02:23 Edited at: 6th Jun 2003 02:24
lol.....and if you dont understand my first post....

...ill explain it again
ok
first: my code EXTRACT the ASCII code of each caractere of a file
second: it put these ascii code in line with "DATA" and ","
third: it create you "REBUILD.dba" who will "compile" the originale file...if you execute it

i dont know if you understand now....
and the second code...is my "Medal of Dishonor"...i use my above code to put the music without any external media...

ok another example...

here a little image...juste run the prog and a "Chiwawa.jpg" will appear in the same folder that you saved the program:

(this code is made by the first post code, i just changed the first line..)

drarem
20
Years of Service
User Offline
Joined: 26th Jun 2003
Location:
Posted: 26th Jun 2003 22:29
neat.. what you ought to try, is do it in words (2 bytes) rather than a char..

for one, i would think it would be a little faster, and two.. you'd be able to pack alot more on the data statements cause every two chars would be replaced by a word

next step is compressing this data on the fly.. good luck

Ocean Runner
20
Years of Service
User Offline
Joined: 18th May 2003
Location: United States
Posted: 27th Jun 2003 07:39
final.txt has nothing in it! whart is this code supposed to do?

JetRace coming. Watch out!
Chiwawa
21
Years of Service
User Offline
Joined: 13th Oct 2002
Location: Canada
Posted: 28th Jun 2003 00:08
it suppose to take ANY FILE...and take each byte and put it in a .dba file... then you dont need the external file anymore... the "Rebuild.dba" will "rebuild" the original file...

who will be named "final.txt" but if at the begening you entered a ".exe" you should rename it final.txt ...or to be able to run it..
k0shi
21
Years of Service
User Offline
Joined: 30th Dec 2002
Location: Cyberspace
Posted: 3rd Jul 2003 23:49 Edited at: 4th Jul 2003 00:11
Thats really cool, no meadia at all ..
... heh, if u change one number it messes up the whole picure.

famous last words-
Sorry im nervous, this is my first execution.

Login to post a reply

Server time is: 2024-03-29 02:35:23
Your offset time is: 2024-03-29 02:35:23