TheEnbyWitch / LunarViewer

A model viewer for Quake 1 and Hexen 2
BSD 3-Clause "New" or "Revised" License
49 stars 5 forks source link

LoadColormap() error on Linux #13

Open hemebond opened 2 years ago

hemebond commented 2 years ago

Compiled from latest source on Debian Linux but get a variation of this error for every model I try to view:

$ ./bin/Release/LunarViewer path/to/armour.mdl 
Host machine is little endian
WARNING: IMAGE: Data is not valid to load texture
WARNING: GLFW: Window icon image must be in R8G8B8A8 pixel format
ERROR: Main.cpp:133 -> LoadColormap()
Failed to load palette! Not enough entries!
Trace/breakpoint trap
ArgonianAccount commented 1 year ago

I also ran into this issue. It appears that the program expects its working directory to be game, and with that set everything seems to work correctly.

hemebond commented 1 year ago

Thank you @ArgonianAccount, you're right. Running from the LunarViewer/game/ directory worked.

 $ ../bin/Release/LunarViewer ~/.darkplaces/ad/progs/mon_boil.mdl 
Host machine is little endian
Compiling shaders 1/10
Loading shaders_src/model_quake1_mdl.glsl, working dir is /home/.../.../LunarViewer/game.