Hi everyone,
I tried to search on the forum but I didnt find a good solution (using code::blocks) about how to integrate my media files in my exe and load them using irrlicht.
Does anyone have a working code for this?
Thanks for your suggestions.
Packing up ressources
Packing up ressources
#include <Iyad.h>
-
- Posts: 1215
- Joined: Tue Jan 09, 2007 7:03 pm
- Location: Leuven, Belgium
Irrlicht is not only for games you know, I need my project in only 1 exe, ready to be distributed.Unless you have a very minimalistic game I wouldn't integrate any assets in an executable
Thx hybrid, i may use this, and if I have some questions ill post them there.For other purposes we have the binary to header converter somewhere in the Irrlicht repository. bitplane added it some month ago. Probably under tools/
Thanks for your answers.
#include <Iyad.h>
-
- Posts: 1215
- Joined: Tue Jan 09, 2007 7:03 pm
- Location: Leuven, Belgium
I am fully aware of that, since I use irrlicht mostly for prototyping these daysIyad wrote:Irrlicht is not only for games you know, I need my project in only 1 exe, ready to be distributed.Unless you have a very minimalistic game I wouldn't integrate any assets in an executable
I'm just of the opinion that packing everything in a monolithic file is rarely a good approach
I tried the file to header converter, and its seems ok. I got my archive file in a header, but I have a problem when I try to load it :
Errors (in irrstring.h) :
I really dont know why im getting this error, i compiled about 20 times irrlicht in a static lib, and I even added cheshirekow patch (http://irrlicht.sourceforge.net/phpBB2/ ... =ireadfile).
Does anyone know how to solve this and why it is appearing?
Thanks for your patience
Code: Select all
IReadFile *f = createEmbeddedFile(Device->getFileSystem(), "test.zip");
Device->getFileSystem()->addFileArchive(f);
Code: Select all
..\include\irrlicht/irrString.h:282: error: could not convert '*(p ++)' to 'bool'
..\include\irrlicht/irrString.h:297: error: invalid cast from type 'const irr::io::IReadFile' to type 'char'
Does anyone know how to solve this and why it is appearing?
Thanks for your patience
#include <Iyad.h>
Its ok, I fixed this up... I recompiled irrlicht and added cheshirekow code in filesystem, the problem was that I was calling Instead of It was an overloaded function and without arguments it was calling the bad one...
Thanks for the help
Code: Select all
Device->getFileSystem()->addFileArchive(f);
Code: Select all
Device->getFileSystem()->addFileArchive(f, true, true, true, "");
Thanks for the help
#include <Iyad.h>