Quote:I have not set the VDRIFT_DATA_DIRECTORY environment variable and the installer has not set it.
That's good, it doesn't need to be set for normal users and is nothing to worry about.
Quote:When you say it checks for what the compiled prefix is does that mean it checks for the prefix that you used when you ran scons? Because I did not set any prefix there which would cause this to fail.
If you don't specify anything when running scons, it defaults to /usr/share/games/vdrift
nzadlithium Wrote:on further investigation of the paths issue, I have found that if I run from the /usr/share/games/vdrift/bin directory and type ./vdrift I can also type vdrift (which runs using the symlink that i created in /usr/bin), this works fine.
However if I then change directory to my home directory and type
vdrift
(which will cause it to run using the symlink just as before), the game gives me
Code:
ERROR: Shader file not found: data/shaders/simple/vertex.glsl
vdrift: src/shader.cpp:131: void SHADER_GLSL::LoadFileIntoString(const std::string&, std::string&, std::ostream&) const: Assertion `f' failed.
SIGABRT detected, releasing the mouse
the same issue occurs when i run it like exec /usr/share/games/vdrift/bin/vdrift
so the binary cannot find the files on my system if the current directory is not one of /usr/share/games/vdrift or /usr/share/games/vdrift/bin. I think from this, that it does not check /usr/share/games/vdrift for the data folder, maybe it checks for ../data and ./data? which is not necessarily the same thing (as in this case).
I'm still not sure why this is happening. If you don't mind, could you experiment a bit more? Put it in the place where the scons install process put it, run it from the console, and check the text output? One of the first things it prints out is "INFO: Data directory:". I'm curious where it's looking and not finding the files with everything in their default spots.
You know, I just had an idea; VDrift checks for paths in an order and looks for ./data and uses that if it exists before checking /usr/share/games/vdrift/data. If you run vdrift from your home directory, it may be finding a ~/data directory that you created and thinking that's where its data is, then failing to find any of its data files there, and quitting!