Campaign freeze and save conversion

  1. I try to play the first campaign and when I finish the first game(lose or win doesn’t matter) the game freezes. I’m using Manjaro Linux and I tried the snap version and vcmi-git from aur.
  2. Is possible to convert a save file from windows to vcmi and the other way around?
  3. If I use a save file from android to linux is working fine, but if is the other way around is no longer visible on android.

Campaigns broken now

Not only campaings. After winning single map, game also freezes :frowning:

can someone tell me if there any tools for save file conversion from windows to vcmi and the other way around?

There is no need to convert saves, they should work on any platform.

I think the question was to convert original saves to vcmi format. As far as I know there is no way for this.

yes, I was referring to convert from original saves to vcmi format. Thanks for answer.
@AVS I tried a save file from linux to android and is not visible on load screen on android.
I also put a save file from android to linux and is working fine.

The freeze problem on victory seems to go away by commenting out this part from CPlayerInterface.cpp:

            if(CSH->howManyPlayerInterfaces() == 1 && !settings["session"]["spectate"].Bool()) //all human players eliminated
			if (GH.topInt() == adventureInt)

It doesn’t seem to break anything else too badly either… Someone who actually knows how things work should have a closer look.

Sorry, but… where is CPlayer Interface.cpp?
Thanks in advanced

It should be in the /vcmi/client/ folder when compiling from source. (/vcmi/client/CPlayerInterface.cpp)

Do note that while this dirty fix solves the freeze on victory, there still seem to be some shenanigans going on in the background.

I think the real issue is more on the vcmiserver side, and this workaround just ensures that the player client doesn’t stay stuck while waiting for some interaction with the server.

Still, at least like this I was able to progress from one campaign scenario to the next. Though in one of the campaigns, I did get some weird behaviour relating to which heroes were carried over from one scenario to the next. I don’t know if it’s related.

Finally, I haven’t touched VCMI in the last two months, so I don’t know if I’m still up to date.

Have fun :slight_smile:

Hello everybody. I’ve installed a last version of VCMI on my Debian 10 buster and have the same problem with any map or campaign (when finish map game is freeze). Is somebody solved this problem on latest version of VCMI under linux? Please respond.
PS: Previous solution does not works for me, there are not present any *.cpp files in vcmi folder.

hello, Im not a linux user, but I will share my knowledge “as is”.
According to our wikipedia, we dont really release recent builds for debian. Which means you probably use a very outdated version.
To have a new version, you need to compile it by yourself, there are following articles:

Please note that these are expert level guides, and I cannot vouch for them, as I havent tried them myself.
1 Like

Hosting provided by DigitalOcean