VCMI for Android

Wow, a lot has changed on the forums.

Do you want me to look into failing android builds?

If you have time - of course. I heavily changed our CMake configuration and obviously it’s break.
Though for Android itself changes very minor and shouldn’t affect actual compatibility with Android.

I really wish to integrate all android-related CMake code into upstream repository, but so far I can’t even successfully built it in VM. But might be I’ll eventually manage to simplify the way this build system works.

I should be able to handle the scripts. I managed to build it locally with one extra hack needed to build fuzzylite (previously there were some changes in FL’s cmakelists and now they need to be made dynamically).

I’m not going to attempt the full, non-hacky integration though.

That’s sad, but hopefully we won’t have massive changes anytime soon.

Okay, the build passed.

So fyi, the hack with fuzzylite is preventing hardcoding of the output paths in the lib ( https://github.com/fuzzylite/fuzzylite/blob/release/fuzzylite/CMakeLists.txt#L71 ), because during the build we need the output in arch-based folders (armeabi-v7a etc). This could be probably done using cmake custom commands and copying the lib manually but I don’t know how to use cmake properly.

1 Like

Latest build works fine. Thanks Fay!!

Hello everyone, im experiensing some problem with VCMI for android. On my old phone, oneplus one, with 4.4 kitkat the program worked fine.
Now i own a leeco le max 2 with 6.0.1 droid. Everything starts normally, i can click on any single player and campaign start, but suddenly when the loading screen comes in either single or champaign, the game drops me out to main screen and closes. Allowed all allowance what the program asked.
Anyone had similar problem and found a solution for it?
Thank you for any help or sugestions you all might can tell me.
Sincerely
Zak

Edit:
I read further more and find out that the google play vcmi is outdated and not works properly. I found the desceiption on the currently working android project. Now the game works, thank you for eveyone and all the dev team for making this wonderful port.
Best wishes and good bless you all.
Sincerely
Zak

Hello everyone i have a problem with vcmi for android . if i started vcmi app they show me message ‘"Could not save vcmi config; reason: Attempt to invoke virtual method ‘org.json.JSONObject org.json.JSONObject.optJSONObject(java.langString)’ on a null object reference’ and i cant start game , anyone know what happen ?

I have android v. 6.0.1 and Heroes from Gog.com

I found the cause of crash at the end of the battle and at the tavern. The whole problem is in .bik files.
Solution:
Open any file manager. Go to the “/vcmi-data/Data” folder and delete VIDEO.VID. Instead of video there will be a black screen, but the game does not crash!

P.S. Is it possible to replace .bik files with a different format using mods? I’m ready to spend my time and convert all files.

1 Like

I have a tool to convert bik files into smk files (smk files are played by h3). Unfortunatelly I don’t have enough space on my phone to test them. But I can make a mod with converted files…

I already checked.
Crash occurs regardless of the file format. I was able to run mpg video in the tavern on windows bild, but on the phone I catch an error.

I leave it here…

How??? Teach us!

Im found a file format that does not crash. But still need to test. Im understand how make a mod and Ill do it. But i need more time.

I do not understand anything. I have crash in the tavern again with any type of video (even that used to work). But instead of the 3DO logo, any file is played, though slowly and without sound. I think this is a lack of phone resources and it is necessary to optimize the stream of video in the source code.

Is there anyway to use cheats on the latest build? On the play store version there was a ‘tab’ button that I could press and then the keyboard would pop up but I see no such option on the latest builds.

Any help would be appreciated.

I guess there is no way, new android version is not based on old one, and is delivered “as is” for now. VCMI team is working hard on actual gameplay features.

The only way for cheats on android now is to connect it to a keyboard

So from wha I understand only the SDL versions of VCMI had that cheat support…

Do you know what the latest version of VCMI android was based on SDL? I DON’T think it was 0.97 (The playstore version) and where I could find it?

Also unrelated but where did the google play version go? Was it taken down? It’s not there anymore: https://play.google.com/store/apps/details?id=is.xyz.vcmi

There are now only dailies for android. For now at least. Can be downloaded here: https://builds.vcmi.download/branch/develop/Android/