#Issues with cbor encoding

33 messages · Page 1 of 1 (latest)

oak chasm
#

What is the toarray cbor tag?

#

And why is a bunch of the fields annotated with the raw tag?

brave owl
brave owl
oak chasm
oak chasm
#

In save_game, do you get an error from cbor.marshal I don't see you even print it let alone handle it

brave owl
oak chasm
#

Odin does not have exceptions

brave owl
oak chasm
#

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

brave owl
#

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

oak chasm
#

Also try -sanitize:address

brave owl
oak chasm
#

Lovely, windows

#

Not sure how to fix that

brave owl
#

I orginally wanted to use c/libc but I got the same error

oak chasm
#

It's an issue with raylib I believe

brave owl
#

I may try to use the raylib file loading

oak chasm
#

Did you look at the errors the various things return?

#

You should generally always handle them somehow

#

Even if it's just an assert

brave owl
#

thats a fun error

brave owl
#

here is an error that I am getting and the call stack that goes with it

brave owl
wild blaze
#

Ultimately, this was not enough info to really offer help. Would have to see code, etc.

oak chasm
#

Yeah

#

I asked you to check errors and no response so I didn't see this going anywhere

brave owl