VCMI for Android

Sorry, I don’t really have time for development recently. I try to read this topic periodically though.

Wow, that really looks strange. That definitely didn’t happen for me. At the moment I’m not sure how it’s possible, but I’ll check when I’m able to.

Hmm, okay. I might need to check what I can actually do with SDLs keyboard handling.
I think that the ability to show/hide keyboard is a feature of your keyboard app (that shows up when suggestions are displayed(?)). I don’t have anything like this in the default google keyboard.

After a quick check – I don’t get why it has problems during linking, but after adding VCMI_ANDROID define in both lib.cmake and SDL_android_main.cpp, the project complied on my side. (probably some problems with the order of file including?)

Yeah, vcmi on android generally tries to follow the same folder structure as the desktop one – mods can be copied from desktop version to /vcmi-data/Mods/ and then enabled via mods menu in launcher.

Nope. Not possible to enable mods via the launcher. I have like 5-6 mods in it. Doesn’t show up in the launcher at all

Well, in that case I need more info, because it definitely should work. Launcher checks for /vcmi-data/Mods//mod.json existence to determine if that’s a valid mod. If you confirm that mods are placed correctly on your device, then I’d love to see the launcher logs (/vcmi-data/cache/VCMI_launcher.log) after opening mods screen.

Here you go
VCMI_launcher.7z (1.28 KB)




Something is definitely wrong, because it should display vcmi essential files as an entry in mods list (even if you don’t have any actual mods added). So, as I said, launcher logs would be appreciated, because I can’t really say anything specific what goes wrong without details.

Here is a zip for the cache
cache.zip (360 KB)

According to the vcmi_launcher.log the problem is caused by the New Old Commanders mod. Try to put it away and try again. I don’t use that much mods but the same thing caused me Resourceful AI mod. You have to move away the “bad” mods and then the rest will show up. But I don’t know why is it caused.

As error shows - it is caused by invalid JSON file that belongs to particular mod.

Yeah, that mod’s mod.json is not valid (extra comma near the end; removing the mod or the comma should help). I guess vcmi itself uses some less strict json parser and ignores these errors.
On the other hand, I probably shouldn’t abort everything when single mod wasn’t parsed correctly. :stuck_out_tongue:

Yeah - VCMI JSON parser is not too strict. I think the best way would be to display mod that causes problem and mark it with some error icon or whatever. If you do not display faulty mod at all then people may think that they install it incorrectly etc.

So, the problem is with additional commas in json files? Ok, I can upload fixed version at mod wiki site. Now are two broken mods for android: New Old Commanders and Resourceful AI mod. I removed two commas from them - tell me, please, if everything is ok now.
New Old Commanders:
www102.zippyshare.com/v/7OklzkBA/file.html
Resourcefull AI mod:
www102.zippyshare.com/v/gB13xmuG/file.html

Both seem fine now. imgur.com/a/F9qFa. Thanks for the fix.

Fay,
Is it possible to make some mouse right click? Long tap for example.

I have one save that crash in Android 6 after auto-battle and manual battle, but don’t crash auto-battle and crash manual battle in Android 7 & PC (Ubuntu).
Android 6 - youtu.be/pV1LRh6ELhg
Android 7 - youtu.be/UBAIezJkn8A
Autosave_4.7z (345 KB)

Sorry for asking a question that has surely been asked before but I can’t find the answer and I really want to play D:

I can launch the game and the menus function perfectly. But whenever I attempt to start a scenario, random map, or campaign map it crashes during the loading screen. I have a Galaxy S7, Wat do?

SkyRE,
there should be right click already. At least on my device it works in touch mode (or with swipe). You have to hold two fingers (the first one on the object and the second one elsewhere).

octavion0223,
Not really sure about that. I would try to copy in the game data once again, check that core mods are allowed and that should be it. I think it could be caused by the game data. Give it a try :slight_smile:

HarryPhoon,
Thanks, it works as you described.

Fay, SXX,
no new auto builds any more? :cry:

I’ll work on restoring builds once I finish with our internal code formatting changes.

SXX,
No problem,
Thanks!

The xyz install helper page is down and in-app instructions fail to help me launch. Anyone mind helping me?
I just copied the whole game directory from pc to phone in the folder that the app suggested. App can’t find “Data”, it says.

Managed to start the app now. When choosing SD card as file location, the app search on internal storage/Android instead.
However the app now crash whenever I try to start a game. Loading screen kills the app.