Jump to content
RoyMD

Password protected Assets

Recommended Posts

Hi,

i have created a Project from the Marble Game Template for a Test in MS Visual C++ 2013, here my steps:

 

main.cpp

	 if (ext=="zip" || ext=="pak")
	 {
		 Leadwerks::Package::Load(file,"strongpassword");
	 }

 

Ok after the changes in main.cpp i have compiled the solution and the Game runs in the Projectfolder, now i have create a folder "MarbleGame" with the MarbleGame.exe, lua51.dll and the steam_api.dll from the Projectfolder, the Assets are in seperated protected ZIP Archives like this:

Fonts.zip

Maps.zip

Materials.zip

Models.zip

Scripts.zip

Shaders.zip

Sound.zip

 

In the Archives are not the Basefolders (eg in Maps.zip is only the File "start.map" without any folders).

 

And now the MarbleGame.exe doesnt run and output the Message:

e:\MarbleGame>MarbleGame.exe

Initializing Lua...

Warning: Lua sandboxing disabled.

Executing file "E:/MarbleGame/Scripts/Error.lua"

Error: Failed to read file "E:/MarbleGame/Scripts/Error.lua".

Executing file "E:/MarbleGame/Scripts/Main.lua"

Error: Failed to read file "E:/MarbleGame/Scripts/Main.lua".

Error: Failed to execute script "Scripts/Main.lua".

 

e:\MarbleGame>

 

Whats wrong, please?

Share this post


Link to post

Why not just publish the project? It will be zipped up and encrypted automatically.

Share this post


Link to post

Hi Josh,

 

I will write my own startsequence with a Video at the Gamestart, Loadingscreens on Mapchanges and other things in C++ (for my Games, this is a Test).

 

Best regards,

Roy.

Share this post


Link to post

It will still work.

 

I can confirm this. I also use C++ and load assets like model = Model::Load("./Models/model.mdl"). After publishing your game, all of your assets are in a zip and password protected.

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

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...