Jump to content

Leadwerks Encrypted Package & Asset Loading


martyj
 Share

Recommended Posts

I'm having a hard time deploying my game as a stand-alone project.

 

When I run the standard deploy, I get a "Bankstream overrun error"

 

I tried creating my own zipfile with my own password using Package::Load(filename, password)

 

The problem is, when I call Map::Load("Maps/grid1.map"), it appears to try to load the file from the file system instead of the asset package.

 

Any idea on how I can deploy my project with an encrypted zip?

 

Also what encryption does leadwerks use for the zip? AES or ZipCrypto?

 

Thanks,

Marty

Link to comment
Share on other sites

You provided three downloads, and I think you are saying the error only occurs in the third one. However it does not include source code so I cannot easily run the project.

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

Link to comment
Share on other sites

Sorry I guess I need to be more descriptive. I can be lazy at times and forget the details :P

 

The first file.

 

The project.

 

The second File.

 

Test Deployment with my own zip.

 

The third file. Another zip that was giving me a Bankstream error on my World Factions project.

 

The problem is at the moment mainly with the second file.

 

When I have a published file, it tries to load the asset not from the virtual file manager, but from the file system itself.

 

When I run Curves.exe I get this error

 

failed_to_read_map.png

 

You would expect this file to pull from the zip file.

 

I have two Zip files in there.

 

Data.zip uses ZipCrypto encryption format.

DataAES.zip uses AES encryption.

 

Both files don't work. Yet it says the Package::CountFIles() has a value of 154.

 

I'll continue to test some things out some more with this in a couple of hours. I would really love to get this resolved this weekend if possible.

 

I noticed the "publish" feature works with my test Curves project, but not my larger World Factions project.

 

Thanks for looking at it btw. Greatly appreciated.

Link to comment
Share on other sites

So here is what I have found out so far.

 

On the beta branch

------------------------------

If my published my game via Leadwerks:

If the zip file is larger than I believe the size of a signed integer (2GB), the data.zip file will not load.

If the project contains multiple exe files, it will make one of them a folder.

Using Package::Load with a password does not work.

If the zip file does not have a password, it works

 

Publishing as long as I maintain a small zip file works on the BETA branch.

 

 

* It would be nice to have an included folder, not by extension. I want to include everything in my UI folder such as png, jpg, but not all PNG, and JPG in my project. But I can live without

 

For me I believe this may now be a low priority issue.

Link to comment
Share on other sites

  • 2 weeks later...

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.

 Share

×
×
  • Create New...