Android Question B4XObject: why not readable straight out of the assets folder in readonly mode?

sorex

Expert
Licensed User
Longtime User
What is the reason that the reading of such object doesn't work straight out of the assets folder when using read only mode only ?

Instead of an access denied it spits out a file not found error.
 

sorex

Expert
Licensed User
Longtime User
well, my B4J based level editor stores levelfiles as a B4XObject based file.

does this serializer support full maps aswell?

Edit: with the copy trick to dirinternal it (B4XObject read) works fine tho
 
Upvote 0

sorex

Expert
Licensed User
Longtime User
Well that's what I'm using now but I need to copy it first or it won't work.
 
Upvote 0

sorex

Expert
Licensed User
Longtime User
Use B4XSerializator instead. It will work with the assets folder.

raf.WriteB4XObject / ReadB4XObject is based on B4XSerializator.

then there is a contradiction in these quotes, not?
 
Upvote 0

sorex

Expert
Licensed User
Longtime User
ok, now I get it. I thought you meant B4XO was based on the serializer so it should fail in both case but it's an additional class.

working with a pre-load into a buffer and then using ra.initialize3 makes it work straight out of the assets.

thanks for the hint!
 
Upvote 0
Top