Jump to content

Recommended Posts

Posted

I had no issues with using it in 2.31 - i dont remember if i had to set the default path to where the pak file actually is ...

 

i have it setup like this :

 

Initialize();


// RegisterAbstractPath("C:/Leadwerks Engine SDK/");

// Standalone :
// copy archive of shaders/data into main and set values as needed.
RegisterAbstractPath("./Data");
RegisterAbstractPath("./Media");

SetZipStreamPassword("Shaders.pak", "schlumperdingeryohoho");

TFramework fw = CreateFramework();

if( fw == NULL ) return FALSE; 

// Set Lua framework object	   
SetGlobalObject( "fw", fw );			   

// Set Lua framework variable
BP lua = GetLuaState();

// ....

AMD 64 X2 Dual 5k - 4GB - XFX GForce9800GT - nv196.21 - WinXP Sp3

zBrush4R2 - Silo2Pro - Unwrap3DPro - Gile - MaPZone2.5

 

adv_banner-april2012_720x150_tex01.png

 

Xxploration FPS in progress ...

Posted

iirc i couldnt stream the video and had to use a "media" folder for the .ogg but the "Data" bit is actually the data.pak while the "Shaders.pak" is where the exe is. I have that sample "boxed" and not all media in the folder e.g. cant simply rebuild and test it atm.

AMD 64 X2 Dual 5k - 4GB - XFX GForce9800GT - nv196.21 - WinXP Sp3

zBrush4R2 - Silo2Pro - Unwrap3DPro - Gile - MaPZone2.5

 

adv_banner-april2012_720x150_tex01.png

 

Xxploration FPS in progress ...

Posted

I am trying to set the ZipstreamPassword but it keeps crashing.

SetZipStreamPassword("assets.pak","2012");

 

I have made a zip file with password of the assets folders using winrar.

Renamed the .zip to .pak.

http://www.leadwerks..._hl__encryption

 

Anything else I should add or change?

 

Try using Winzip.

Make sure .zip format is selected in Winrar

Make sure the URL for the .pak is correct in relation to the .exe

 

http://www.leadwerks.com/werkspace/topic/4488-pak-files-relative-to-exe/page__hl__setzipstream#entry39257

 

http://www.leadwerks.com/werkspace/topic/3435-exploring-of-setzipstreampassword/page__hl__setzipstream

AMD Bulldozer FX-4 Quad Core 4100 Black Edition

2 x 4GB DDR3 1333Mhz Memory

Gigabyte GeForce GTX 550 Ti OC 1024MB GDDR5

Windows 7 Home 64 bit

 

BlitzMax 1.50 • Lua 5.1 MaxGUI 1.41 • UU3D Pro • MessiahStudio Pro • Silo Pro

3D Coat • ShaderMap Pro • Hexagon 2 • Photoshop, Gimp & Paint.NET

 

LE 2.5/3.4 • Skyline UE4 • CE3 SDK • Unity 5 • Esenthel Engine 2.0

 

Marleys Ghost's YouTube Channel Marleys Ghost's Blog

 

"I used to be alive like you .... then I took an arrow to the head"

Posted

Aggror jut to check, does the pak work without any pw (just to rule that out)

LE crashes hard if doesn't find a soundfile etc..

 

I was unable to create the asset.pak due to missing abstract in paths etc.. (lecp)

HP Omen - 16GB - i7 - Nvidia GTX 1060 6GB

Posted

Lets see without password

 

- The assets.pak resides in the root like the exe.

- I created a zip and then renamed it to pak.

- Assets like textures get loaded correctly.

 

When I try it again, only this time with a password, it crashes as soon as I reach SetStreaMPassword. And not just the game, visual studio also hangs itself.

Posted

Looks like a bug. It should work.

 

Try to use simple password like "123" without special symbols.

Try to use short project path like "c:\myproject".

May be you use some custom version of engine DLL?

Try to run engine.exe with start.lua with single command:

SetZipStreamPassword("assets.pak","123")
Posted

I have used it in both Blitzmax and C++ (http://www.leadwerks.com/werkspace/topic/5185-leadwerks-25x-darkbasics-dark-ai/) recently and experienced no issues.

AMD Bulldozer FX-4 Quad Core 4100 Black Edition

2 x 4GB DDR3 1333Mhz Memory

Gigabyte GeForce GTX 550 Ti OC 1024MB GDDR5

Windows 7 Home 64 bit

 

BlitzMax 1.50 • Lua 5.1 MaxGUI 1.41 • UU3D Pro • MessiahStudio Pro • Silo Pro

3D Coat • ShaderMap Pro • Hexagon 2 • Photoshop, Gimp & Paint.NET

 

LE 2.5/3.4 • Skyline UE4 • CE3 SDK • Unity 5 • Esenthel Engine 2.0

 

Marleys Ghost's YouTube Channel Marleys Ghost's Blog

 

"I used to be alive like you .... then I took an arrow to the head"

Posted

Looks like a bug. It should work.

 

Try to use simple password like "123" without special symbols.

Try to use short project path like "c:\myproject".

May be you use some custom version of engine DLL?

Try to run engine.exe with start.lua with single command:

SetZipStreamPassword("assets.pak","123")

 

Tried all of that, but doesn't seem to work. Thanks for the help though.

Posted

This worked for me in the r316 lecp build : (use after camera is created..)

 

...
// get framework main camera
_camera = GetLayerCamera(GetFrameworkLayer(0));
PositionEntity(_camera, Vec3(0, 0, -2));

//Loading the assets.pak
SetZipStreamPassword("Assets.pak","lol99");

// add the first state and switch to it
_stateMgr.AddState(new LogoState("logo", &_stateMgr));
_stateMgr.Switch("logo");
...

HP Omen - 16GB - i7 - Nvidia GTX 1060 6GB

Posted

There is no correlation between those functions, and no reason it should matter.

My job is to make tools you love, with the features you want, and performance you can't live without.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...