Xonotic Forums
missing shader files - Printable Version

+- Xonotic Forums (https://forums.xonotic.org)
+-- Forum: Creating & Contributing (https://forums.xonotic.org/forumdisplay.php?fid=10)
+--- Forum: Xonotic - Development (https://forums.xonotic.org/forumdisplay.php?fid=12)
+--- Thread: missing shader files (/showthread.php?tid=5613)

missing shader files - BuddyFriendGuy - 07-05-2015

When trying to compile @sev's Treasure Island, I found a few shader files missing during prior cleaning up.

Script file scripts/domination.shader was not found
Script file scripts/flags.shader was not found
Script file scripts/pyria.shader was not found
Script file scripts/tree.shader was not found

Trying to trace down the problem, I found the culprit, but will need some help fix it (so I won't mess up the shader organization).

I found that in xonotic-data.pk3dir/scripts/shaderlist.txt we have a few reference to those shaders.

"pyria" can easily be fixed to be "player_pyria".

The other three are a bit more complicated. All three used to be in in xonotic-nexcompat.pk3dir/scripts and were renamed during a refactor commit. However, some of them got deleted later, without being moved to another directory, i.e.:
  • xonotic-nexcompat.pk3dir/scripts/nexcompat-domination.shader and xonotic-nexcompat.pk3dir/scripts/nexcompat-tree.shader both still exist. Shall I copy them into xonotic-data.pk3dir/scripts/, or just change the reference in xonotic-data.pk3dir/scripts/shaderlist.txt to "nexcompat-[domination|tree]"? Or just remove these two from xonotic-data.pk3dir/scripts/shaderlist.txt ?
  • xonotic-nexcompat.pk3dir/scripts/nexcompat-flags.shader was removed in this commit. However, it never ended up in xonotic-data.pk3dir/scripts/flags.shader . I assume I should just retrieve the old copy and place it there, correct?

Thanks in advance. Or if somebody wants to fix it, please let me know, too so I can close this.