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 / Using .dat files in DBCe

Author
Message
Sinani201
18
Years of Service
User Offline
Joined: 16th Apr 2007
Location: Aperture Science Enrichment Center
Posted: 23rd Sep 2007 00:47
Is there a possible way to load media from data files? I have tried many things, except none of them have worked.

how do you make a sig?
Dark Dragon
17
Years of Service
User Offline
Joined: 22nd Jun 2007
Location: In the ring, Kickin\' *donkeybutt*.
Posted: 23rd Sep 2007 03:52
good question. only i dont have a very good awnser..
luke810
18
Years of Service
User Offline
Joined: 4th Sep 2006
Location: United States
Posted: 23rd Sep 2007 04:18
How do you mean? That doesn't make much sense.
Dark Dragon
17
Years of Service
User Offline
Joined: 22nd Jun 2007
Location: In the ring, Kickin\' *donkeybutt*.
Posted: 23rd Sep 2007 04:19 Edited at: 23rd Sep 2007 04:20
well i know you can load dats as an array and use e'm.....but thats not what he ment....right?
Sinani201
18
Years of Service
User Offline
Joined: 16th Apr 2007
Location: Aperture Science Enrichment Center
Posted: 23rd Sep 2007 06:33
Quote: "How do you mean? That doesn't make much sense. "


I meant files that end with .dat.

how do you make a sig?
luke810
18
Years of Service
User Offline
Joined: 4th Sep 2006
Location: United States
Posted: 23rd Sep 2007 07:39
Well you can open .dat files and extract information that could be used to generate media using memblocks if thats what you mean.
Latch
18
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 23rd Sep 2007 14:34
@Sinani201

You have to know what the format of the data is inside the file. The extension doesn't really matter so when you say a .dat file, that doesn't necessarily mean only string information. You could have pixel information stored in a file ending with .dat in which case (depending on the color depth) you might read back each pixel as a long integer (or DWORD) - 4 bytes at a time.

Enjoy your day.
Sinani201
18
Years of Service
User Offline
Joined: 16th Apr 2007
Location: Aperture Science Enrichment Center
Posted: 23rd Sep 2007 21:28 Edited at: 23rd Sep 2007 21:29
I'm trying to read bitmaps. Although, I'm not very good with memblocks . Here's an example data file. It's got an image in it called image.bmp.

Quote: "Well you can open .dat files and extract information that could be used to generate media using memblocks if thats what you mean."


Erm... yeah, I'm trying to extract media with memblocks.

how do you make a sig?

Attachments

Login to view attachments
Sinani201
18
Years of Service
User Offline
Joined: 16th Apr 2007
Location: Aperture Science Enrichment Center
Posted: 30th Sep 2007 04:45
If I'm using memblocks... should I use make image from memblock or make bitmap from memblock? Or does it matter at all?????

how do you make a sig?
Pixelator
17
Years of Service
User Offline
Joined: 8th Jul 2007
Location: here
Posted: 1st Oct 2007 02:27
if you are saving the bitmap then make bitmap from memblock, if you are using it in a game then make image from memblock.


Maryville Game Developers
Visit our website at http://www.freewebs.com/maryville-game-developers/index.htm
Latch
18
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 2nd Oct 2007 04:23
@Sinani201

This might help you with some structure info:

http://forum.thegamecreators.com/?m=forum_view&t=107807&b=10

Enjoy your day.

Login to post a reply

Server time is: 2025-05-31 21:03:52
Your offset time is: 2025-05-31 21:03:52