Jump to content


Photo

PST GOG Linux edition - case issue on install?


5 replies to this topic

#1 gareth8118

gareth8118
  • Members
  • 2 posts

Posted 23 October 2015 - 11:30 AM

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

 



#2 lynx

lynx
  • Modders
  • 2990 posts
  • Gender:Male
  • Location:Ljubljana, Slovenija

Posted 23 October 2015 - 12:18 PM

just create a symlink and use that instead.


GemRB - IE anywhere.
Mages needed! Looking for Planescape: Torment testers
Market android version IS NOT SUPPORTED ANYMORE: reported bugs will be ignored! Still looking for builders ...

#3 gareth8118

gareth8118
  • Members
  • 2 posts

Posted 25 October 2015 - 11:23 PM

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



#4 Jarno Mikkola

Jarno Mikkola

    The Imp

  • Modders
  • 6208 posts
  • Gender:Male
  • Location:The town where the dead haven't keeled over, yet. In Finland.

Posted 26 October 2015 - 02:02 AM

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:


Welcome to the sanity, you are free to search for the limit, it's out there, we drew it in the sand.
Here's how to install all the ... mods you ever really could want to Infinity Engine games. I removed the stable word from there as Roxanne began to add BS mods that are likely to break compatibility from the BWS.

#5 lynx

lynx
  • Modders
  • 2990 posts
  • Gender:Male
  • Location:Ljubljana, Slovenija

Posted 26 October 2015 - 06:49 AM

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.


GemRB - IE anywhere.
Mages needed! Looking for Planescape: Torment testers
Market android version IS NOT SUPPORTED ANYMORE: reported bugs will be ignored! Still looking for builders ...

#6 RobMagus

RobMagus
  • Members
  • 1 posts

Posted 28 March 2016 - 09:20 AM

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,





Reply to this topic



  


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users