#Issues with cbor encoding
33 messages · Page 1 of 1 (latest)
it was the first thing that popped up when i looked to encode an array with cbor
that is the only way to get the rl.color field to load
It should work without the tag
It should work without the tag
In save_game, do you get an error from cbor.marshal I don't see you even print it let alone handle it
I haven't ever gotten a exception from marshal
Odin does not have exceptions
durring debugging
Try handling the error from cbor.marshal
And from os.open
If something doesn't work as expected that is the first thing you should be doing, checking all returned errors
So I have removed the tags from the fields, and it works to an extent, if change line 86 on start screen it to init_world_space(world, 5,5) then all the behavior works as expected ie the world.world array is len 25, but when i change it init_wolrd_space(world, 10,10) it crashes
Also try -sanitize:address
I orginally wanted to use c/libc but I got the same error
It's an issue with raylib I believe
I may try to use the raylib file loading
Did you look at the errors the various things return?
You should generally always handle them somehow
Even if it's just an assert
here is an error that I am getting and the call stack that goes with it
I just ended up implementing https://github.com/jakubtomsu/odin-lbp-serialization
Ultimately, this was not enough info to really offer help. Would have to see code, etc.
I had checked for the errors you suggested for and it yielded nothing (inserted asserts, and nothing happened as a result) I posted though the errors I got, with no response for a while, hence the deleted post