TheEnbyWitch / LunarViewer

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

Missing font file #12

Closed aggsol closed 3 years ago

aggsol commented 3 years ago

I build the current main branch on Ubuntu with premake-linux.sh. It build successfully but on startup the follwoign error appears.

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
LunarViewer: imgui/imgui_draw.cpp:2150: ImFont* ImFontAtlas::AddFontFromFileTTF(const char*, float, const ImFontConfig*, const ImWchar*): Assertion `(0) && "Could not load font file!"' failed.
Aborted (core dumped)

What font do I need for running the viewer?

TheEnbyWitch commented 3 years ago

So the way I set this up is that its supposed to run in the same working directory as the "game" folder in the root of the repository.

You could straight up just copy the contents of that folder to where the EXE is built, but I honestly have no idea how to set it up automatically, especially for Linux (I develop on Windows).

This is how the file hierarchy is supposed to look. image

I might be able to pack the required assets into the executable itself, but I'll have to find out how to do that (and possibly automate it) and I want the shaders to be moddable, so I'll need to plan out how to do that stuff. Maybe after the first milestone is done, but no promises.

PS Sorry I haven't responded sooner, I'm currently busy with other stuff and I haven't been able to focus on development of this that much.

aggsol commented 3 years ago

Ah thank you; i can copy that myself.