minib3d enabled version: loading from zip protected files
BlitzMax Forums/MiniB3D Module/minib3d enabled version: loading from zip protected files
| ||
Hi I was working on minib3d module and I modified 4 files to enable loading from zip password protected files. It uses module pub.zipengine witch is part of the blitzmax installation exemple how to use : '------------------------------------------------------------------------------------------- import pub.zipengine import sidesign.minib3d ' here we prepare the zip archive for reading local PAK:Zipreader = New Zipreader local pass$="somepassword" PAK.OPENzip("somearchive.zip") ' to load a texture directly from zip or from any url structure Tex = LoadTexture:TTexture(PAK.ExtractFile(name$,,pass$)) ' to load a mesh with its textures directly from zip Local Mesh:Tmesh=New Tmesh Mesh.LoadAnimMesh(namemesh$,,"somearchive.zip",pass$) ' to load an image local IM:TImage = LoadImage(PAK.ExtractFile("someimage.png",,pass$)) ' to load a fontmachine bitmap font (a wonderful bitmapfont maker from blide) Global fnt1:TBitmapFont = LoadBitmapFont(PAK.ExtractFile("samplefont.fmf",,pass$ )) '-------------------------------------------------------------------------------------- You can download the enhanced version from here : http://www.filehosting.org/file/details/632754/sidesign.mod.rar install it in your blitzmax mod folder (a compiled version ready to use) Tested with Blitzmax v1.108 on windows 8 system Any feedback is welcome |