Jump to content

PST GOG Linux edition - case issue on install?


gareth8118

Recommended Posts

Hi there

I've spent a few evenings trying to get the widescreen mod to install on my Linux system which carries the "native" GOG Linux install of Planescape: Torment. I haven't been successful (it's hard to find someone who has) but I have found something new that those other posters did not.

The reported error on install is the one alluded to in this line of the "Common Problems" post:

If you get the message "ERROR: BIFF [./AR0100.BIF] cannot be loaded" (or something similar), you need to apply a full install of the game.

however, this is a GOG download install which is by definition a full install.

To get to this point, I:

  • downloaded WeiDU-Linux-238.zip and copied tolower, weidu and weinstall to /usr/local/bin
  • ran tolower in the PST install directory, hitting Y both times.
  • unpacked widescreen_mod into a subdirectory of the PST directory.
  • ran tolower in there, answering Y then N
  • ran weinstall widescreen in the PST directory

Since the error message doesn't tell me where it is looking for AR0100.BIF I used strace to figure out what was going on in the filesystem and this is when I ran into something interesting.

 

The contents of linux.ini are:

CD1:=/home/gareth/GOG Games/Planescape Torment/prefix/drive_c/GOG Games/Planescape Torment/
CD1:=/home/gareth/GOG Games/Planescape Torment/prefix/drive_c/GOG Games/Planescape Torment/data/
CD1:=/home/gareth/GOG Games/Planescape Torment/prefix/drive_c/GOG Games/Planescape Torment/data/
CD1:=/home/gareth/GOG Games/Planescape Torment/prefix/drive_c/GOG Games/Planescape Torment/data/
CD1:=/home/gareth/GOG Games/Planescape Torment/prefix/drive_c/GOG Games/Planescape Torment/data/
CD1:=/home/gareth/GOG Games/Planescape Torment/prefix/drive_c/GOG Games/Planescape Torment/data/

which accurately reflects my installation layout. However, the log from 'strace -f -o ~/strace.txt weinstall widescreen' shows this:

24064 stat("/home/gareth/gog games/planescape torment/prefix/drive_c/gog games/planescape torment/data//ar0100.bif", 0x7fff8aa63d10) = -1 ENOENT (No such file or directory)

Note that the case of the whole path is lower case, not just the filename.

 

Is there something in WeiDU or the mod itself which is lower-casing the pathnames before searching for the file? I'm afraid I cannot understand what I'm looking at in the script files in the mod itself.

 

Grateful for any insight.

 

Thanks

Gareth

 

Link to comment

Yes, that worked - thank you!

 

Is there no interest in fixing the root cause of the bug though?

 

For reference to future readers, what I did was:

mkdir -p "/home/gareth/gog games/planescape torment/prefix/drive_c/gog games"
pushd "/home/gareth/gog games/planescape torment/prefix/drive_c/gog games"
ln -s "/home/gareth/GOG Games/Planescape Torment/prefix/drive_c/GOG Games/Planescape Torment" "planescape torment"
cd "planescape torment"
weinstall widescreen

Link to comment

Well, it will be left to be seen. Honestly, most players (me included) use Windows. But my bet is that it's good that you showed your solution so others can copy.
Could you not just solve the whole thing by installing the game to: /home/gareth/gog games/planescape torment/prefix/drive_c/gog games/planescape torment/ -instead of the upper capped weasel folder ? :devlook:

Link to comment

Wine creates that tree structure for you, but yes, he could have installed to wherever.

 

My suggestion was more in the line of

ln -s "/home/gareth/GOG Games/Planescape Torment/prefix/drive_c/GOG Games/Planescape Torment" /home/gareth/pst

and then using that in the inis.

 

WeiDU expects everything in lowercase when case-sensitive — that's why tolower is bundled. The prefix itself could perhaps be handled without large changes though.

Link to comment

Hi, just want to report that I have had this exact problem on Ubuntu 15.10 with the Linux version of WeiDU and Widescreen 3.07. I installed the linux GOG version of Ps:T, which places all the windows game files in

~/Planescape Torment/prefix/drive_c/GOG Games/Planescape Torment/

(which also houses the ~/data/ subdirectory containing all the .bifs). I fixed it using the info in this thread, so thanks gareth8118 and lynx!

 

Instead of using tolower, I used the script detailed here so that I could restore the original filenames if necessary, but in any case the behaviour is the same, putting everything to lowercase. I used it in the main directory and the data subdirectory. Running weinstall at this point gives the "BIFF [./AR0100.BIF] cannot be loaded" error.

 

In order to fix this, I followed the advice in this thread and created a lowercase path, symlinked the normal path to it, and modified linux.ini to point to the lowercase symlink.

 

Just one headache:

mkdir -p /home/rob/pst/
ln -s "home/rob/.../GOG Games/Planescape Torment" "/home/rob/pst/

puts the folder in without lowercasing it:

/home/rob/pst/Planescape Torment/

That simply needs to be changed to lowercase "planescape torment", and then weinstall works fine.

 

Cheers,

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...