Blitz3D - BlitzMax Bank Compatibility?

BlitzMax Forums/BlitzMax Beginners Area/Blitz3D - BlitzMax Bank Compatibility?

Fry Crayola(Posted 2005) [#1]
Hi,

Can banks saved using Blitz3D be read by BlitzMax's LoadBank function?

Cheers.


N(Posted 2005) [#2]
I don't understand.


Sarge(Posted 2005) [#3]
Yes there are possible ways. But you would need to save it as a file.

Edit}

You could create a blitz3d function to save a bank look in the mod folder under brl.bank might help you out


Fry Crayola(Posted 2005) [#4]
Noel - if I use CreateBank() in Blitz3D to create a memory bank for storing data, and save it to a file using WriteBytes(), is it possible to then read that created file into BlitzMax without any loss of data?


Perturbatio(Posted 2005) [#5]
test it, try writing a text file via a bank and load it with BMax and see if it's the same.


Fry Crayola(Posted 2005) [#6]
I would if I had BlitzMax...


tonyg(Posted 2005) [#7]
Yes it can.
The TEST.bnk created from the WriteBytes example in B3D is loaded into BMax using the bmx Openfile example (changed to ReadBytes.


Drago(Posted 2005) [#8]
why wouldn't it really loading a file into memory is the same on all OS's you just have to make sure if the OS uses Little or Big eridan.


Fry Crayola(Posted 2005) [#9]
Cheers.

I know nothing of file formats and stuff like that. I just wanted to cover my bases - my current project has a 49MB data file created which needs to be loaded into a bank, and I would like to port it to BlitzMax when it is released for Windows.