Top sellers


Product Code: jppackloader
Availability: In Stock
Built for: Tool to load the packs made by JPierron into your games
Product Version: 1.6
Online Demo: http://www.julien-pierron.com/sample?sample=jpdemo
Forum Link: http://www.shiva-engine.com/forum/viewtopic.php?f=82&t=29258
Req. ShiVa Version: ShiVa 1.9.2 Engines
Plugin Platform Compatibility: iOS, Android, WinRT ARM/Phone 8, WinRT x86/_64, Windows Legacy, Mac OS X, Linux, Flash, Web Browser, Palm, Marmalade, BlackBerry, Windows Phone 7, Playstation 3, Playstation 4, Xbox 360, Xbox One, Wii, tvOS
Price: FREE $0
Seller information: Julien Pierron
Country: France, Metropolitan
Company: Julien Pierron
Qty:     - OR -   Wish List
JPPackLoader is an AIModel that will allow you to load .stk files in your games. It will be useful for all packages offered below.

Once the AIModel is added to your game, the process to add a pack to your game is as follows:
- Add the .stk files you want to load to the root directory of your ShiVa project.
- Send an event to JPPackLoader.
- Activate your packs

Here is an example of loading and activation, with the JPAnimation pack (who must have been placed in your project root directory):

local hUser = application.getCurrentUser ( )
user.sendEventImmediate ( hUser, "JPPackLoader", "onLoadLocalPacks" )
JPAnimation.activate ( "<email>", "<activation_key>" )

Note that if the pack is stored locally, you can use the pack directly because it is loaded instantly when "onLoadLocalPacks" is called. However, some games may require to store the pack on a distant server, so the pack has to be downloaded and this process may take several frames. JPPackLoader is able to do it, and this is now a 2 steps process: download request made by you to JPPackLoader, and callback event sent to you by JPPackLoader when all the packs have been downloaded and are ready to be used. Here are the steps to follow:

local hUser = application.getCurrentUser ( )
user.sendEventImmediate ( hUser, "JPPackLoader", "onLoadPack", "JPAnimation", sUrl ) --Parameters are <pack_name> and <pack_uri>
--Do the same to request the download of any other pack here

user.sendEventImmediate ( hUser, "JPPackLoader", "onLoadPacksEnd" ) --Tell JPPackLoader that all the download requests have been made to allow it to send the callback event when they all are downloaded

Simply send the "onLoadPacksEnd" event to inform JPPackLoader that all the pack requests have been made. JPPackLoader will notify you when they are all downloaded and ready to use with the "onPacksLoadingDidEnd" handler. You can start using your packs in this handler, starting with the activation:

function MyAIModel.onPacksLoadingDidEnd ( )

JPAnimation.activate ( "<email>", "<activation_key>" )


General information :
- This product is compatible with both ShiVa 1.9.2 and 2.0.

- ShiVa 1.9.2 or greater
- LUA project (not compatible with full c++ projects, compatible with LUA projects that use c++ plugins)

API & Instructions


Sample projects that use my packs

Write a review

Your Name:

Your Review: Note: HTML is not translated!

Rating: Bad           Good

Enter the code in the box below:

ShiVa Store © 2019 - Powered By OpenCart