Hi,
I'm trying to play this mod, but I am missing almost all textures. hpl.log contains a bunch of these:
ERROR: Couldn't load material 'C:/Program Files (x86)/Steam/steamapps/common/amn
esia the dark descent/textures/dnh/metal_floor.mat'
which seems rather odd considering I'm playing on Linux and my Amnesia is located in ~/Amnesia.
Can this bug be fixed?
EDIT: You can work around the hard-coded path issue by running the below Perl script I whipped up...
use warnings;
use strict;
undef $/;
for my $file (qw(./entities/dnh/furniture_office_chair01/furniture_office_chair01.ent
./entities/dnh/IndustrialFan/IndFan_Diffuse.mat
./textures/dnh/Prog1.mat
./textures/dnh/SnowGrass.mat
./textures/dnh/medSign.mat
./textures/dnh/Prog3.mat
./textures/dnh/p1.mat
./textures/dnh/Prog2.mat
./textures/dnh/Prog4.mat
./textures/dnh/p5.mat
./textures/dnh/metal_floor.mat
./textures/dnh/Nicefloor.mat
./textures/dnh/Tile2.mat
./textures/dnh/Glass.mat
./textures/dnh/degree.mat
./textures/dnh/circuuits.mat
./textures/dnh/p3.mat
./textures/dnh/p4.mat
./textures/dnh/rm203.mat
./textures/dnh/bloodwall.mat
./textures/dnh/p2.mat
./textures/dnh/Vent.mat
./textures/dnh/tile_wall.mat
./textures/dnh/marker.mat
./textures/dnh/Snow.mat
./textures/dnh/Cpu.mat
./textures/dnh/marble_floor.mat
./textures/dnh/testCity.mat
./textures/dnh/marker_red.mat
./maps/dnh/backup.map
./maps/dnh/00.map
./maps/dnh/03.map
./maps/dnh/01.map
./maps/dnh/dnh_menu.map
./maps/dnh/04.map
./maps/dnh/02.map
./static_objects/dnh/tall_stone.mat
./static_objects/dnh/graveyard_floor_dirt_pile.mat
./dnh_models/hand_objects/lantern/DigiByteFlashLight/hand_flashlight.ent
./dnh_models/hand_objects/lantern/penumbraFlashLight/item_flashlight.ent
./ReadMe.txt))
{
open my $ih,'<',$file;
binmode $ih;
my $contents = <$ih>;
close $ih;
$contents =~ s!C:/Program Files \(x86\)/Steam/steamapps/common/amnesia the dark descent!PATHTOYOURREDISTFOLDER!g;
open my $oh,'>',$file;
binmode $oh;
print $oh $contents;
close $oh;
}
but that won't solve the texture problem because the textures' sizes are not powers of 2 which means they will fail to load no matter what (or at least on Linux using the r600g driver). This is bad practice, developer!