It seems that you're using an outdated browser. Some things may not work as they should (or don't work at all).
We suggest you upgrade newer and better browser like: Chrome, Firefox, Internet Explorer or Opera

×
Hello.
I have Anomaly Warzone Earth from HIB.
When I launch the game it shows me intro movie then I see spinning loading circle in the right lower corner and nothing happens. Even if I wait much longer. But it loaded once. But stuck at the same position on loading second mission. I see no errors in terminal. Does anyone have any clue?
I'm using Ubuntu 17.10
avatar
MRZA: When I launch the game it shows me intro movie then I see spinning loading circle in the right lower corner and nothing happens. Even if I wait much longer. But it loaded once. But stuck at the same position on loading second mission. I see no errors in terminal. Does anyone have any clue?
I'm using Ubuntu 17.10
For me helped this.
1. Save the text below for example as a game/test.c:

#define _GNU_SOURCE
#include <dlfcn.h>
#include <semaphore.h>
#include <stdio.h>
#include <time.h>
#include <unistd.h>

static int (*_realSemTimedWait)(sem_t *, const struct timespec *) = NULL;

int sem_timedwait(sem_t *sem, const struct timespec *abs_timeout)
{
if (abs_timeout->tv_nsec >= 1000000000)
{
//fprintf(stderr, "to: %lu:%lu\n", abs_timeout->tv_sec, abs_timeout->tv_nsec);
((struct timespec *)abs_timeout)->tv_nsec -= 1000000000;
((struct timespec *)abs_timeout)->tv_sec++;
}
return _realSemTimedWait(sem, abs_timeout);
}

__attribute__((constructor)) void init(void)
{
_realSemTimedWait = dlsym(RTLD_NEXT, "sem_timedwait");
}


2. Compile it (requires gcc installed):

gcc -m32 -o test.so test.c -ldl -shared -fPIC -Wall -Wextra

3. Replace in start.sh line

./"AnomalyWarzoneEarth"

with the line

env LD_PRELOAD=./test.so ./"AnomalyWarzoneEarth"
Post edited December 22, 2017 by EugVVl
Thank you! Your hack works.
That works for me too. :)
Thanks
Works for Anomaly2
It also worked for me in an Ubuntu 20.04 x86_64 environment, just needed to install libc6-dev-i386 as well. Thanks to the author of the solution!
Post edited February 13, 2022 by fomichartem