range in file help

Blitz3D Forums/Blitz3D Programming/range in file help

Caton(Posted 2015) [#1]
file define data
file = openfile("data1.dat")
seek=readint(file)
closefile(file)
-----------
files packed in one file
file = openfile("data2.dat")
seek=readint(file)
closefile(file)
-----
how do I use seek with Loadimage,loadsound and other commands?


steve_ancell(Posted 2015) [#2]
You can't seek through LoadImage of LoadSound as far as I remember.


Caton(Posted 2015) [#3]
then how did midnight synergy\patrick do it with wonderland\wonderland secret worlds\return to wonderlandf
if you don't know what these games are here is the link to his website.
midnightsynergy.com


TomToad(Posted 2015) [#4]
probably uses something like this http://www.blitzbasic.com/toolbox/toolbox.php?tool=256


steve_ancell(Posted 2015) [#5]
They are ways of doing it Caton, just not by using LoadImage/LoadSound. You would need to store pixel data in a .dat file, or something similar, and search through that. If you want to do the same with sound then you would need to learn how to play around with sound DLLs and stuff.

Or you could obtain some sort of packer software. If hiding your assets is what this is all about then sorry but that's more trouble than it's worth. There's probably always methods of ripping graphics and stuff, if an asset thief really wanted to get their hands on it then they would do so no matter how good the packaging tool is.