WIP : PowerPacker

Community Forums/Showcase/WIP : PowerPacker

Filax(Posted 2004) [#1]
I'm making a tool and a DLL for create compressed pack for
using with blitz, you can simply use your packed data with
some command like :

PPK_LoadTerrain(Name$,Parent=0)
PPK_LoadImage(Name$)
PPK_LoadSprite(Name$,Flags=0,Parent=0)
PPK_LoadBrush(Name$,Flags=0,U_Scale=1,V_Scale=1)
PPK_LoadTexture(Name$,Flags=1)
PPK_LoadMD2(Name$,Parent=0)
PPK_LoadMesh(Name$,Parent=0)

I'm making a little tool for create PPK files for using
with the Powerpacker.dll (with very fast decompression !)

A big adventage is that you are not obliged to modify your
path in your code ! powerpacker reconize long path+filename
you must only put PPK_ before each load media command...

for exemple a 3DS file (745 ko => 64 Ko) after compression

Example of code :
-----------------

Include "Inc_PowerPacker.bb"

Graphics3D 800,600,32,2
SetBuffer BackBuffer()

; -----------------
; PPK File init
; ------------------

Camera=CreateCamera()
PositionEntity Camera,0,0,-10

Light=CreateLight()
PositionEntity Light,10,10,-10

PPK_OpenPak("DATAS.PPK")
;Music=PPK_LoadSound("Sound.mp3")
;Image=PPK_LoadImage("Image.bmp")
Mesh=PPK_LoadMesh("Level.3DS")
PPK_ClosePack()

;PlaySound Music

While Not KeyHit(1)
RenderWorld

TurnEntity Mesh,0,1,0
;DrawImage Image,0,0
Flip
Wend

End


Try a little demo :
http://www.blitz3dfr.com/powerpacker_projet/powerpacker.zip




Red Ocktober(Posted 2004) [#2]
hey Philippe... can i borrow your machine...

... you know,

your time machine...

where do you get the time to do all the stuff you've been pumping out lately :)

--Mike


Filax(Posted 2004) [#3]
Lol :) like love ! my dear , all the time :)


Kuron(Posted 2004) [#4]
kewl another packer :c)


Boiled Sweets(Posted 2004) [#5]
Does it unpack to disk first?

WOuld be nicer if it unpacked to memory so no-one can get hold of the source object file.

Also could you allow it to save the pak list so that you can simply load the pack util and pull in your current project.


Filax(Posted 2004) [#6]
Hum ?? the depacking in memory is possible with blitz but
i'm obliged to put file on disk for loading data !

But with powerpacker you can unpack your data in the
directory of your choice, the data are deleted in realtime
after loading.

You can merge compressed pack under exe.


cermit(Posted 2004) [#7]
That sounds safe enough Filax ;)
This looks like good alternative amongst other blitz data packers.


Filax(Posted 2004) [#8]
I have added a new function :) you can make an UPX
compression before adding pak in the exe file.


StOrM3(Posted 2004) [#9]
Great, where can I snag it ? I'd like to give it a go, for my current projeckt.. ;')


Filax(Posted 2004) [#10]
I think release powerpacker soon as possible.