afshin.jafari Posted August 6, 2014 Share Posted August 6, 2014 loading packages using C++ API returns NULL: const char *packageName = "D:\\packages\\package.zip"; Package *package = Unigine::FileSystem::getPackage(packageName); if (package != NULL){ } //alwyas skips this block Link to comment
ulf.schroeter Posted August 6, 2014 Share Posted August 6, 2014 Maybe package must be stored somewhere in the UNIGINE data folder Link to comment
afshin.jafari Posted August 6, 2014 Author Share Posted August 6, 2014 Hi Ulf, Thanks for the reply. I've tried putting the package in different locations with no luck. I had implemented load package using Unigine script and works fine no matter where the package actually reside, just stocked in c++ version. again thanks Link to comment
silent Posted August 8, 2014 Share Posted August 8, 2014 Hi Afshin, Unfortunately, there is no analog of engine.filesystemLoadPackage() function in C++ API. But, you always can easily call UnigineScript functions from C++ application (please, check the callbacks usage example). Thanks! How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN Link to comment
Recommended Posts