Just a question to try and pick anyone's brain about bundlign resource files into the exe...
Ideally what I'm trying to do is compile a windows executable with the .x animated meshfile bundled with it so when I run my app it loads the .x mesh from within itself into an irrlicht IAnimatedMesh...
I suppose the first question would be: is this actually possible?
If so... any suggestions for the best approach, or pointers/links to references/apis etc. Im using the dev-cpp environment which has windres with it. Although again Ive never used this aspect so any good resources on this would be useful too...
Hi Doctor,
i dont know, too. But what do you want ? Maybe you want that your resources are safe from "normal" Users ? In Irrlicht its possible to open a zip-file and read the resources from there. I dont know, its a question to the engine-screwers, is it possible to open the zip-file secure with password/and or encryption ? Or to change the engine to a secure zip-file ?
I see what you mean, the secure zip file could be useful indeed. Although that's not quite what Im after here.
Rather than having a zip file as such Im making a screensaver basically and figured rather than worrying about where the resource files (meshes, textures etc) end up on the file system it would make it very easy if they were contained within the executable file itself. Then you just call some kind of "getResource(id)" function.
Which means figuring out what windoze excess to include and how to use it, then the final step of how to actually get the irrlicht engine to accept whatever format the win api gives me the data in
There is almost certainly an easier way of doing this and I'll find out after I've finished the above
well, a .x file is just text, so in theory it could just be a big string, and if you could somehow pipe it to the irrlicht file-open dealy, you might make this work...this sort of thing would be easy in PERL, but we are probably talking about a c++ app here...
My irrlicht-based projects have gone underground for now, but if you want, check out my webcomic instead! http://brokenboomerang.net
true true... it would certainly probably be much simpler doing it that way for string based data, but as soon as you start dealing with textures too it's back to square one
when I was first leanring coding I used a form of basic called RapidQ which could bundle resources into the .exe, extract them at runtime, then delete them again. I have no clue how it was done, however.
You do a lot of programming? Really? I try to get some in, but the debugging keeps me pretty busy.
Actually, the resource idea above can still be used. You can put binary file into a resource file without issues, which will result in it being embedded in your application.
Also, there are a few tools out there, that allow you to pack data after your EOF marker in your executable.