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 / Create Own Container Format/Packfile

Author
Message
Liopriwo
14
Years of Service
User Offline
Joined: 2nd Dec 2009
Location:
Posted: 16th Jan 2010 22:31
I was wondering if creating an own container format or an packfile would be possible with memblocks or banks, so that I can store several media files in just one file.
Maybe somone has a general idea on how to realize this.

Thanks in advance
IanM
Retired Moderator
21
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 17th Jan 2010 00:16
Yes it would be possible for everything except for Music, Animation and Shaders (because there's no way to create any of these from anything except a file on disk or possibly using file-blocks from the enhancement packs).

It'd be slightly easier to use banks for this purpose:
1. You can map a whole file into a bank with a single command
2. You can copy whole sections of a bank into a memblock with a single command.

Beyond that, you could store the 'memblock' format of the media for images and sounds, and objects can either be stored in DBO format or your own custom format - there are enough commands in my plug-ins that you can quite literally build an object from scratch, as long as it's not animated - if you want animation, use DBO.

... Or you could buy the enhancements pack

Liopriwo
14
Years of Service
User Offline
Joined: 2nd Dec 2009
Location:
Posted: 17th Jan 2010 12:06
Thank you very much IanM, the idea to copy sections from a bank into a memblock and than make the media from this memblock is great.

Login to post a reply

Server time is: 2024-03-28 12:28:03
Your offset time is: 2024-03-28 12:28:03