Hero of the Kingdom II

Hero of the Kingdom II

View Stats:
Lonely Troops  [developer] Jul 31, 2018 @ 7:03am
Limited Linux support [SOLVED]
It is strongly recommended for all Linux users to download and try the free demo version of the game before purchasing the full version.

We have confirmed that the game is not running on the latest (as of 2018) Linux distributions with Intel GPUs. Older distributions were OK.

We could not find what is wrong. As it seems, the Intel GPU driver cannot handle 32bit OpenGL calls. The same Intel GPU can handle the game flawlessly under Windows (Direct3D) and MacOS X (OpenGL). Also, we have tested different AMD GPUs under Linux, and they can handle the game without any issues.

SOLUTION: As of version 1.20, the Linux version has 64-bit executable and no longer run on 32-bit Linux. The game has now standard Linux support on 64-bit distributions.
Last edited by Lonely Troops; Jan 10, 2019 @ 5:32am
< >
Showing 1-14 of 14 comments
mrTekbar Mar 24, 2018 @ 5:42pm 
Can't play on Ubuntu
Hi everybody,
I'm on Ubuntu 17.10 and I just bought the game,
when I start, a message apears :
" Hero of the Kingdom II version 1.18
An error has occured during the game execution.
Log messages:
Access violation

Execution track:
Updating Video
Rendering"

What can I do ?
Lonely Troops  [developer] Mar 26, 2018 @ 1:44am 
What is your graphic card? We have reports that the game has problems running on the latest Intel graphic.
mrTekbar Mar 26, 2018 @ 10:40am 
I have Intel® HD Graphics 520 (Skylake GT2)
Lonely Troops  [developer] Mar 27, 2018 @ 2:47am 
That's what I was afraid of. Currently there is no solution for this incompatibility.
chriskringel Apr 7, 2018 @ 7:28pm 
This is probably libc / Steam runtime related. Or maybe libc / all mesa drivers /Steam runtime?

Played both games numerous times (all achievements on Linux!), replaying over a time span, on different distributions, and never had any problems at all. Also got this working on a friend laptop with some older Linux Mint and Ubuntu 16.04 it works also. The older Linux Mint system has Intel HD 4400 (Haswell), and the Ubuntu 16.04 xenial is on an older AMD CPU + Radeon (r600 mesa driver). On both it's working. On mine (Intel GM45) it *also* *did* work fine like all the years I have the game. Until recently (~ubuntu 17.10, ubuntu 18.04) Haven't played in a year or so, so I guess it's about newer distributions, changes to steam runtime, and etc.

But since I'm on more recent distributions (ubuntu artful 17.10, ubuntu bionic 18.04) I get the following same error (on both games, part I and part II and the demo of III also). The error message appears via an xmessage window:


Hero of the Kingdom II version 1.18 An error has occured during the game execution. Log messages: Access violation Execution track: Updating Video Rendering


LIBGL_DEBUG=verbose glxinfo | grep OpenGL
says:
LIBGL_DEBUG=verbose glxinfo | grep OpenGL libGL: OpenDriver: trying /usr/lib/x86_64-linux-gnu/dri/tls/i965_dri.so libGL: OpenDriver: trying /usr/lib/x86_64-linux-gnu/dri/i965_dri.so libGL: Using DRI2 for screen 0 OpenGL vendor string: Intel Open Source Technology Center OpenGL renderer string: Mesa DRI Mobile Intel® GM45 Express Chipset OpenGL version string: 2.1 Mesa 18.1.0-devel OpenGL shading language version string: 1.20 OpenGL extensions: OpenGL ES profile version string: OpenGL ES 2.0 Mesa 18.1.0-devel OpenGL ES profile shading language version string: OpenGL ES GLSL ES 1.0.16 OpenGL ES profile extensions:


So that's an pretty old Intel GMA (Pentium 4500 Laptop). As I said, before recently (or at least it feels recently) I never had any problems so far and that was the systems a played both games like 2-3 complete walkthroughs on.

Here's the same error from August 2017 on Fedora 26. He got it working, sadly the user didn't conclude exactly enough how he got it running. But he seemed to have it pinned down to a problem with glibc: "Unable to start game on Linux (Fedora 26 x64)" https://steamcommunity.com/app/259550/discussions/0/1470841715942279754/ (Hero of the Kingdom 1 forum)

I also tried fancy stuff with LD_PRELOAD (libstdc, libgcc1, libxcb, libgpg-error, and so on) and also STEAM_RUNTIME=0 Vs. 1 and also STEAM_RUNTIME_PREFER_HOST_LIBRARIES=0 Vs. 1. But sadly to no success but I'm really not a pro in that field. But that were some methods to get other games working.


Here's the ldd output also:
ldd $HOME/.local/share/Steam/steamapps/common/Hero\ of\ the\ Kingdom\ II/Hero\ of\ the\ Kingdom\ II linux-gate.so.1 (0xf7ee9000) libdl.so.2 => /lib/i386-linux-gnu/libdl.so.2 (0xf7e90000) libopenal.so.1 => /usr/lib/i386-linux-gnu/libopenal.so.1 (0xf7de5000) libX11.so.6 => /usr/lib/i386-linux-gnu/libX11.so.6 (0xf7c9a000) libm.so.6 => /lib/i386-linux-gnu/libm.so.6 (0xf7b98000) libXrandr.so.2 => /usr/lib/i386-linux-gnu/libXrandr.so.2 (0xf7b8b000) libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xf79af000) /lib/ld-linux.so.2 (0xf7eeb000) libsndio.so.6.1 => /usr/lib/i386-linux-gnu/libsndio.so.6.1 (0xf799d000) librt.so.1 => /lib/i386-linux-gnu/librt.so.1 (0xf7993000) libpthread.so.0 => /lib/i386-linux-gnu/libpthread.so.0 (0xf7974000) libxcb.so.1 => /usr/lib/i386-linux-gnu/libxcb.so.1 (0xf7948000) libXext.so.6 => /usr/lib/i386-linux-gnu/libXext.so.6 (0xf7931000) libXrender.so.1 => /usr/lib/i386-linux-gnu/libXrender.so.1 (0xf7925000) libasound.so.2 => /usr/lib/i386-linux-gnu/libasound.so.2 (0xf7803000) libbsd.so.0 => /lib/i386-linux-gnu/libbsd.so.0 (0xf77e8000) libXau.so.6 => /usr/lib/i386-linux-gnu/libXau.so.6 (0xf77e4000) libXdmcp.so.6 => /usr/lib/i386-linux-gnu/libXdmcp.so.6 (0xf77dd000)
Last edited by chriskringel; Apr 7, 2018 @ 7:42pm
Elmina Jul 27, 2018 @ 11:08am 
I have the same problem with Hero of the Kindom 1/2/3 with an i3-5005 on Ubuntu 18.04 x64. Are there any news?
JoZ3 Aug 11, 2018 @ 10:05am 
Any solution?, I have the same problem, HoTK I and II
Last edited by JoZ3; Aug 11, 2018 @ 10:06am
Elmina Sep 1, 2018 @ 1:54am 
I managed to start the game on Ubuntu 18.04 with the i386-driver from 16.04:

But I don't know if there are any side effects.

lev258 Sep 1, 2018 @ 6:39am 
The solution works, but everyone should create a backup of the original file. After trying some other things, this problem is definitely related to the Intel driver, it's a bug.
Lonely Troops  [developer] Jan 10, 2019 @ 5:32am 
As of version 1.20, the Linux version has 64-bit executable and no longer run on 32-bit Linux. The game has now standard Linux support on 64-bit distributions.
Jerry Jan 11, 2019 @ 12:15am 
Just to be sure, Windows 32 bit versions won't be affected by this change, right? (yes, I am aware, this is propably a dumb question)
Lonely Troops  [developer] Jan 11, 2019 @ 2:17am 
Windows version remains at 32 bit. It's working, it's stable, no special requirements from Microsoft.
mat.duf Mar 17 @ 10:35am 
Game can't start on Linux Mint 21.3 Cinnamon (linux 6.5.0, mesa, X11). The first game worked fine.

./Hero\ of\ the\ Kingdom\ II Hero of the Kingdom II: malloc.c:2617: sysmalloc: Assertion `(old_top == initial_top (av) && old_size == 0) || ((unsigned long) (old_size) >= MINSIZE && prev_inuse (old_top) && ((unsigned long) old_end & (pagesize - 1)) == 0)' failed. Aborted (core dumped)

Switching to the windows version with proton works.
Last edited by mat.duf; Mar 17 @ 10:39am
Lonely Troops  [developer] Mar 18 @ 12:18am 
Thank you for reporting the error. We will look at it.
< >
Showing 1-14 of 14 comments
Per page: 1530 50