Error with loading ( and maybe saving ) maps

yoplalala

  • *
  • Posts: 1632
I did a simple example to explain the problem.
In the when created, the lists of keys and values print correctly.
In the second version (maps have been loaded), there is a "impossible to convert to imap"

captaincomic

  • *
  • Posts: 6108
Should be fixed now in build 8370.

captaincomic

  • *
  • Posts: 6108
The fix was not well thought through and was causing other issues, so I had to revert it.

designpeg

  • *
  • Posts: 731
hi, I've been having the same issue, and been waiting for this fix. what other issues does it have?

captaincomic

  • *
  • Posts: 6108
If you load a Map game attribute, it may error out with a ClassCastException "impossible to convert to IMap", because it saves it as a dictionary instead of a map.

I attempted to fix this by serializing all game attributes, but didn't work out well.

designpeg

  • *
  • Posts: 731
Does this mean I should abandon maps for saving between games? I was planning to heavily rely on saving them as game attributes, but if they don't work I'll need to look at another method of saving between  game sessions. Or  will  it get fixed eventually? I'm not planning to launch for a couple of months, so if I know it's getting worked on I can live with it not working at the moment.

enoch34

  • Posts: 2
I'm having the same problem. An answer (any) to this problem would be great. Should we stop using maps for saving data?

captaincomic

  • *
  • Posts: 6108
I can take another look at it and attempt to fix it, but I cannot promise anything.

yoplalala

  • *
  • Posts: 1632
I'm having the same problem. An answer (any) to this problem would be great. Should we stop using maps for saving data?
I think maps don't work on flash but it works elsewhere.

I can take another look at it and attempt to fix it, but I cannot promise anything.
That would be awesome

enoch34

  • Posts: 2
Wow, this community is awesome. Thank you so much for the support and your time. ^^

captaincomic

  • *
  • Posts: 6108
Should be fixed now. @designpeg, please try build 8417.

designpeg

  • *
  • Posts: 731
fantastic - I'm working away for a few days, but  i'll give it a try as soon as I get back.

thiagojabur

  • Posts: 48
Hello guys,

Same problem here.
Did it work for anyone? I'm working with build 8471 and it's not working =(

yoplalala

  • *
  • Posts: 1632
ut works perfectly now. Are you using the saving attribute extension ?