EvanatorM / ScuffedMinecraft

A Minecraft Clone in C++
MIT License
70 stars 14 forks source link

Game fails to render on Linux #9

Closed Luna-devv closed 8 hours ago

Luna-devv commented 8 hours ago

I pretty much doubt that Linux is supposed to work in any way shape or form, but hey, Linux is epic 👍🏼

image

I compiled the game with cmake successfully but when launching I just get a black screen with the following errors:

Error reading shader source files
Error compiling vertex shader!
0:1(1): error: syntax error, unexpected end of file

Error compiling fragment shader!
0:1(1): error: syntax error, unexpected end of file

Error linking shader program!
error: linking with uncompiled/unspecialized shadererror: linking with uncompiled/unspecialized shader
Error reading shader source files
Error compiling vertex shader!
0:1(1): error: syntax error, unexpected end of file

Error compiling fragment shader!
0:1(1): error: syntax error, unexpected end of file

Error linking shader program!
error: linking with uncompiled/unspecialized shadererror: linking with uncompiled/unspecialized shader
Error reading shader source files
Error compiling vertex shader!
0:1(1): error: syntax error, unexpected end of file

... and so on ...

Here is my system information: image

FoxMoss commented 8 hours ago

It runs properly on Linux, your working directory just needs to contain the resources/ directory.

Luna-devv commented 8 hours ago

In the time I set up a windows vm it auto-magically fixed itself, even though the assets dir was in the same folder as the binary the whole time, scuffed image

FoxMoss commented 8 hours ago

scuffed

it does what it says on the tin

fintmc commented 7 hours ago

as already said, it does what its supposed to. in the readme it says that you need to run it from the directory that the scuffed_mc binary is so cd into the bin directory and run it from there. or run it from file explorer

Luna-devv commented 7 hours ago

It's a bit weird that it searches the asset dir in the directory I executed from, rather than from where the binary is