Page 1 of 1

Crash with Moving Map out of Downloads

PostPosted: 17 Jan 2017, 02:20
by Ben
Do we still report bugs for this game? I'm not sure if anyone is maintaining this code, but I found a bug that causes a crash and will report it anyway.

The crash happens when you have a downloaded map and a "regular" (not downloaded) map with the same name in the map folder. Say you created a map named "example" and you also downloaded a map from a friend called "example." The downloaded version will have the checksum characters tagged on, such as "example_5A789EA6." If you wish to make the version downloaded from your friend the only version of the map, "example," in your folder, you first have to delete your own map. After deleting the map, you can then move the downloaded version out of downloads. This will cause a crash.

In summary:

1) Make a map, give it a name and save it
2) Download a map in mutiplayer lobby with the same name as your own created map
3) Delete your map
4) Move downloaded map out of downloads.

I understand that this is pretty easy to avoid. It also seems like it wouldn't happen a lot (Actually, I do run into this often, I won't go into detail exactly why-- unless you want-- as that's not important). Still, thought you might be interested.

Re: Crash with Moving Map out of Downloads

PostPosted: 17 Jan 2017, 03:11
by Rey
Thanks, I will check this out

Re: Crash with Moving Map out of Downloads

PostPosted: 24 Jan 2017, 06:48
by Rey
Fixed.

It was not easy to discover, but only 1 line of code was needed to fix it :)

https://github.com/Kromster80/kam_remake/pull/205

Re: Crash with Moving Map out of Downloads

PostPosted: 24 Jan 2017, 06:56
by Ben
Hey thanks. If I'm absolutely honest, I didn't think anyone would take this seriously. Very good job finding the fix.

Re: Crash with Moving Map out of Downloads

PostPosted: 24 Jan 2017, 07:28
by Rey
I hate bugs!

Btw its not often to get as a detailed description as you provided :)