Problem with a packer script

BlitzMax Forums/BlitzMax Programming/Problem with a packer script

Josepho(Posted 2008) [#1]
Hi all

I am making some tests with this script
http://www.blitzbasic.com/codearcs/codearcs.php?code=2061

And when i pack resources everything goes well, but problem is when I make a pack with more than one ogg. When I try to load any ogg of the pack always load the first one that i packed.

Anybody can help me to fix this?
Thank you


Josepho(Posted 2008) [#2]
No body can help? :/

I suspect that is a bug because it works with wav files


plash(Posted 2008) [#3]
Have you looked at this: http://www.blitzbasic.com/codearcs/codearcs.php?code=2249 ??

It's OOP and a lot better code-form.

P.S. BlitzMax is not a scripting language (we don't use scripts! :P).


Josepho(Posted 2008) [#4]
Oh Thanks a lot! I think i will finnally use this one, but the problem is that i was working with the other for a long time a now i have to change a lot of things ._.


Helios(Posted 2008) [#5]
Well that pak script is remarkably simple, it shouldn't be to difficult to use. Its pretty much just load the pak file at the start of your game, then whenever you open a stream/load an asset just prefix "pak::" to the url.