Page 1 of 1

could not load texture textures/notexture (SOLVED)

PostPosted: 01 Sep 2012, 09:11
by Gallaecio
Hi,

I’ve just upgraded to 1.3 and I am getting this when I try to run the game:

{l Code}: {l Select All Code}
[gallaecio@afonsox sdl_image]$ redeclipse
loading enet..
loading game..
loading sdl..
loading video mode..
vsync is disabled
loading video misc..
loading gl..
renderer: GeForce 8800 GT/PCIe/SSE2 (NVIDIA Corporation)
driver: 3.3.0 NVIDIA 304.37
Rendering using the OpenGL assembly/GLSL shader path.
could not load texture textures/notexture
could not find core textures


I can not asure this was not the case before the upgrade, though, so it might has nothing to do with the new version.

The only relevant thing I found was a topic on the Pardus forums, http://www.pardus-linux.org/forum/pisi-atölyesi/red-eclipse-ve-unknown-horizons-paketleri (you will probably need Google Translate), which seems to suggest it might be an issue with sdl_image. I am using sdl_image 1.2.10, however neither rebuilding it nor upgrading it to 1.2.12 solved the issue.

Any help is more than welcome.

Re: could not load texture textures/notexture

PostPosted: 01 Sep 2012, 09:47
by qreeves
You need to run Red Eclipse from the directory it is stored in.

PostPosted: 01 Sep 2012, 09:52
by Gallaecio
{l Code}: {l Select All Code}
[gallaecio@afonsox aqueronte]$ cat /usr/bin/redeclipse
#!/bin/sh
for arg
do
    if [ "$arg" = --help ]
    then
       exec man redeclipse
    fi
done

RE_OPTIONS=""
cd /usr/lib/redeclipse || exit 1
exec ./redeclipse ${RE_OPTIONS} ${1+"$@"}


I am building the game for Chakra, and I had built it in a build server. I decided to try locally, using the same script to build it. The local build works. But I need to find out why the other one does not. Both have the data files in place, including the textures/notexture.png file.

Re: could not load texture textures/notexture

PostPosted: 01 Sep 2012, 10:12
by qreeves
You should probably use pushd and popd instead of cd, for starters. But I can't really help you if you use the game in a way other than how we intended.

Dependency mismatch

PostPosted: 01 Sep 2012, 10:26
by Gallaecio
It turned out to be a simple dependency mismatch. I build it in the stable repository in the build server, but I use the testing in local, and there were some packages in testing that prevented the RE build from stable from working. Fixed with a testing rebuild.

Thanks anyway, and now lets have some fun! :D