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 / How can I make a .pak file

Author
Message
Jack
21
Years of Service
User Offline
Joined: 4th Oct 2004
Location: [Germany]
Posted: 7th Oct 2005 22:56
Yes I'll make a pak file with all my media but how?
I know it is possible but I dont know the command
can anyone help me?

[href][/href]
TDK
Retired Moderator
23
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Jack
21
Years of Service
User Offline
Joined: 4th Oct 2004
Location: [Germany]
Posted: 8th Oct 2005 00:57
no I mean how can I load pak files in DB

[href][/href]
TDK
Retired Moderator
23
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 8th Oct 2005 03:44
Oh I see!

It's news to me if you can...

TDK_Man

SimSmall
21
Years of Service
User Offline
Joined: 7th Aug 2004
Location: United Kingdom
Posted: 8th Oct 2005 16:00
This is all in the help pages under "input" and "memblock" you've just got to mix them together...

open to read <File Num>,<FileName.xxx>
open to write <File Num2>,<FileName.pak>
make memblock from file <File Num>,<Memblock Num> (memblock must be identical size (in bytes) as the file)
write memblock <File Num2>,<Memblock Num>

basic compressed file - Don't expect things like quake to be able to read it though...
if a quake style pak is what you're after try the Swat 3 way - make a standard zip and rename the extension to .res (or in this .pak)

for writing other things into pak files, look at the memblock section of the help page...
make memblock from... (whatever you're trying to convert into a memblock)
then
write memblock (as above)

to take the things out again

read memblock (same order as write memblock)
make ... (whatever) from memblock
unfortunately you can't make a file from a memblock. You've got to read an individual byte from a memblock then write that byte into your new file, I haven't found a more effective way of doing that yet...

hope this helps in some way...

...maybe one day I'll finish a project
Jack
21
Years of Service
User Offline
Joined: 4th Oct 2004
Location: [Germany]
Posted: 8th Oct 2005 18:02
Yes is helps thx SimSmall

[href][/href]

Login to post a reply

Server time is: 2026-07-08 10:16:13
Your offset time is: 2026-07-08 10:16:13