[lugaru] Texture files missing?

Ryan C. Gordon icculus at icculus.org
Wed May 12 14:21:37 EDT 2010

> Many of the PNGs in Data/Textures/ in the hg repo are zero-length.
> Is that intentional?  Perhaps as a result, I'm getting a segfault in
> Terrain::UpdateVertexArray() (Terrain.cpp:268) when entering the game.

No one had slept before we through the data together. It's possible that 
we got this wrong. We'll correct it shortly.

Use the data from the Humble Indie Bundle for now.

> -        chdir(dir);
> +        //chdir(dir);

We probably need this chdir to remain in. Otherwise, it will cause 
problems if you launch the game from a different directory.

>  static bool save_image(const char *file_name)
>  {
> -    char *ptr = strrchr(file_name, '.');
> +    const char *ptr = strrchr(file_name, '.');

Good catch. Newer glibc and gcc needs that.

> -	CXX := /opt/crosstool/gcc-4.1.2-glibc-2.3.6/i686-unknown-linux-gnu/i686-unknown-linux-gnu/bin/g++
> -	CC := /opt/crosstool/gcc-4.1.2-glibc-2.3.6/i686-unknown-linux-gnu/i686-unknown-linux-gnu/bin/gcc
> -	LD := /opt/crosstool/gcc-4.1.2-glibc-2.3.6/i686-unknown-linux-gnu/i686-unknown-linux-gnu/bin/g++
> +	CXX := g++
> +	CC := gcc
> +	LD := g++

Whoops. The crosstool stuff was so we could build a Linux binary with 
the widest reach of glibc compatibility. This fix is correct.

Eventually, this entire Makefile should be replaced by CMake or 
something else. Obviously, Linux systems should use the zlib (etc) 
supplied by the package manager.


More information about the lugaru mailing list