Incbin possible?
- This topic has 6 replies, 4 voices, and was last updated 12 years ago by .
Viewing 7 posts - 1 through 7 (of 7 total)
Viewing 7 posts - 1 through 7 (of 7 total)
You must be logged in to reply to this topic.
Home › Forums › TimelineFX Module › Incbin possible?
Is it possible to Incbin the “effects” file and load the effects from the “Incbin”‘ed file?
Just wondering if it’s possible to distribute a game as a single executable without giving people the possibility to look at my effects 🙄
Incbin should work fine, I haven’t tried it myself but I can’t see any reason why it shouldn’t.
MyEffects:tleffectslib=loadeffects(incbin::MyEffects.eff)
I’m not sure if that’s the correct syntax off the top of my head but something along those lines. Or use Blides My object:
MyEffects:tleffectslib=loadeffects(my.resources.MyEffects_eff)
if you’re using a blide solution.
Something on the to do list actually is to password protect the .eff files. As they’re only zip archives and that feature is already in the zipengine mod it should be pretty easy to add.
I tried using the BLide My object and it completely crashes my app and the debugger. Are you sure it’s working?
Yes, it is working, but you need to use an alternative loader, and get koriolis’ zipstream module if you don’t already have it. All the info is over in this thread: http://www.rigzsoft.co.uk/index.php?option=com_jfusion&Itemid=13&jfile=viewtopic.php&f=9&t=92
Let me know if you have any troubles.
I already tried that but I got the error: Compile Error: Identifier ‘LoadEffects2’ not found
I assumed it was broken, but zipstreamloader.mod is not imported by default by timelinefx.mod. I added that.
I can’t get it to work using the My object:
effectsLibrary = LoadEffects2(My.Resources.img.TrappedTests_eff)
But it works when I use:
effectsLibrary = LoadEffects2(“zip::incbin::imgTrappedTests.eff”)
This is ok for me though. 😛
Yeh, originally I thought My would work ok because they’d be no problem with incbin, but then I had to implement the zipstream loader meaning it needed the more specific zip:: protocol, but you got it working fine anyway 🙂
I don’t include zipstream by default because you have to register to download it on koriolis site (this may have changed now though I think) and I thought that was too inconvenient for anyone not needing incbin.
Sorry for bringing up an old topic, but had some struggles with this one. Just wanted to add if you do want to use the My object from BLIde you can do this:
effectsLibrary = LoadEffects2("zip::" + My.Resources.img.TrappedTests_eff)
You must be logged in to reply to this topic.