Installation instructions on Wiki:
Current build scripts:
Installation instructions on Wiki:
Current build scripts:
That’s great, many people looked for this for quite a long time . Runs sloooooow but without any problems on my galaxy S (i9000). I hope you will keep an eye on it for longer period of time than pelya did on his port . Actually I think someone should ask pelya to remove his old port from play store, just for visiblity of this one.
Great work once again!
New towns, arts and creatures support is also working?
I need to try it then on my Samsung Galaxy S. Or even go and buy more modern model
That’s actually working Android port? That would be great.
xyz, I hope that this is the latest version? There was quite serious bug with saving AI state that was fixed only few days ago. Anyway would be great if you’ll update build as soon as next release is out (scheduled for March, 1)
That’s 0.94e (r3749), is it affected? I’ll update it as soon as the next version is released.
I also don’t think it’s a good idea to packge the latest SVN version (maybe in a separate “vcmi nightly” package though?), it seems that there was something about savegame format not being compatible between latest revisions(?).
Fix came out after 0.94e, in rev 3762. So there may be some problems with loading saves.
Yes - packaging current svn is not the best idea but that’s what our “dev builds” are - builds from latest svn for testers. So there won’t be much difference between dev build and current svn stability-wise. Only our “full” releases can be considered to be stable.
As for saves compatibility - usually there is no guarantee that saves from different revisions will work but actual format changes are relatively rare.
Just installed this, seems to work very nicely. Big thanks for this!!
Ivan, right, this makes sense. I think I’ll follow this and after 0.95 release switch this package to stable version and create a new one (“VCMI for Android Beta”) which will follow your dev versions releases.
edit: just tried 0.94 stable and it seems AI works a lot faster there, is that expected behavior?
From what I know there was a major progress in AI since 0.94
I really appreciate what you’re doing ,thanks veryyyyyyyy much
two questions
FYI:sorry for my english,i’m not good at that
Looked through your patch, some notes:
BTW - any chance to make vcmilauncher work on Android? This is Qt5 application used as mod manager and settings editor (for options that can’t be changed from in-game UI)
Something like “VCMI daily/weekly/monthly build” would make more sense - our dev builds are more like preparation work before release and Win-only. Archlinux user-provided repo (aur) has vcmi-svn package, Ubuntu has daily builds from svn on launchpad.
Likely yes. I can’t say much about AI but it definitely got some improvements since 0.95. So less speed actually means better AI
This shouldn’t cause issues because client tries to reconnect to server every 2 seconds.
This is true, I’ll try to fix it in the next update (got too lazy for that )
Not sure, maybe I’ll look into it.
On some devices there’s a very weird issue with shared libraries and unaligned access (which is strange since unaligned access should kill all ARM devices, shouldn’t it?)
Using shared libraries (libvcmi.so, various AIs) makes it segfault at random places (in calls between them I guess?), this is not too hard to solve and just statically linking everything and hacking CGameInterface.cpp’s to not use dlopen/dlsym seems to solve this one.
And then there’s unaligned access, i.e. at CDefHandler::getSprite,
SSpriteDef sd = * reinterpret_cast<const SSpriteDef *>(FDef + BaseOffset);
BaseOffset % 4 != 0
and maybe in some other places?
Doing
echo 2 > /proc/cpu/alignment
makes it run but that’s a really bad solution to this problem.
VCMI should work with unaligned access. AFAIK vcmi runs without issues on Android devices inside Linux chroot.
There is define that enables code for unaligned access:
github.com/vcmi/vcmi/blob/maste … dian.h#L22
This should results in:
Yes, you’re right, it seems it’s not triggered because #if defined(linux) is false (wtf)
Wow, the android finally got some love.
But I don’t have anything with that system.
Still, your nick should be written in some sort of hall of fame. Is there anything like that on this forum?
Hello,
I was so happy to hear the news about VCMI for Android and I installed it following those directives, vcmi.xyz.is/installation.html, but when I launch it I only get black screen after some config menu and then back to phone desktop… =(((
(Samsung Galaxy SIII Gt-i9300 on 4.1.2)
i have same problem until switch on wi-fi. If i understodd correctly, SDL need to download something from internet.
Great work!
I am very happy particularly to see that the actual patch is quite small.
So it is.
Reportedly Qt 5 does support Android so it should be possible.
Not quite… Perhaps I could create a group for accomplished contributors and then add some visual sign of membership. But… I’m too lazy.
I made the thread sticky and I’ll mention it in the next release announcement.
Hosting provided by DigitalOcean