Jump to content


Photo

BGT 101 with Transgaming Cedega (linux)


  • Please log in to reply
14 replies to this topic

#1 Mokkeri

Mokkeri
  • Member
  • 1 posts

Posted 05 August 2006 - 03:31 AM

Trying to get BGT to work with Cedega, a windows emulator for linux. The only problem is that the BGT installer isn't very compatible with cedega (well, few command line apps are, I believe). The problem is that when I run the installer, It won't let me type in the directory for Baldur's Gate, but instead just tries to proceed with the install process without knowing it, result is follows:
mokkeri@tentaakkeli:~/TransGaming_Drive/Program Files/Black Isle/BGII - SoA$ cedega Setup-BGT.exe

(Point2Play_gui.py:5958): Gdk-WARNING **: locale not supported by Xlib

(Point2Play_gui.py:5958): Gdk-WARNING **: cannot set locale modifiers
Warning: Language 'en_DK' was not found, retrying without country name...
For language 'en' several language ids were found:
en_US - 0409; en_GB - 0809; en_AU - 0C09; en_CA - 1009; en_NZ - 1409; en_IE - 1809; en_ZA - 1C09; en_JM - 2009; en_ - 2409; en_BZ - 2809; en_TT - 2C09; 
Instead of using first in the list, suggest to define
your LANG environment variable like this: LANG=en_US
[Setup-BGT.exe] WeiDU version 192
[Setup-BGT.exe] Using scripting style "BG"

Choose your language:
 0 [English]
 1 [International English]
 2 [Francais (French)]
 3 [Deutsch (German)]
 4 [Italiano (Italian)]
 5 [Çѱ¹¾î (Korean)]
 6 [Polski (Polish)]
 7 [D¢¤¤??? (Russian)]
1
Using Language [International English]

Install Component [Baldur's Gate Trilogy - Core 1.01]
[Y]es or [N]o or [Q]uit? Y

Installing [Baldur's Gate Trilogy - Core 1.01]
Creating 1 directory
Copying 1 file ...
Warning: Language 'en_DK' was not found, retrying without country name...
For language 'en' several language ids were found:
en_US - 0409; en_GB - 0809; en_AU - 0C09; en_CA - 1009; en_NZ - 1409; en_IE - 1809; en_ZA - 1C09; en_JM - 2009; en_ - 2409; en_BZ - 2809; en_TT - 2C09; 
Instead of using first in the list, suggest to define
your LANG environment variable like this: LANG=en_US
File not found

File not found

File not found

File not found

File not found

File not found

Syntax error
File not found

Syntax error
File not found

Syntax error
File not found

Undetectable Windows version.  Possibly too new.  Installation MAY fail.
------------------------------------------------------
Enter the full path to your Baldur's Gate installation 
				then press Enter.
------------------------------------------------------
Success

File not found

File not found

File not found

File not found

File not found

File not found

File not found

----------------------------------------------
Invalid Baldur's Gate directory, restarting...
----------------------------------------------
File not found

File not found

File not found

File not found

File not found

Syntax error
File not found

Syntax error
File not found

Syntax error
File not found

Is it possible to set the directory for Baldur's Gate via an argument? That might do the trick (or not)

#2 Ascension64

Ascension64
  • Modder
  • 5983 posts

Posted 05 August 2006 - 05:22 AM

If you can reprogram the batch files to worth with Linux, all the problem would be solved, but I don't know how to do that.

--------------
Retired Modder
Note: I do not respond to profile comments/personal messages in regards to troubleshooting my modifications. Please post on the public forums instead.

Baldur's Gate Trilogy-WeiDU and Mods
Throne of Bhaal Extender (TobEx)

Contributions: (NWN2) A Deathstalker (voice acting) - (IWD2) IWD2 NPC Project (soundset editing) - (Misc) SHS PC Soundsets (voice acting)
Legacy: (BG/Tutu/BGT) Beregost Crash Fixer 1.9 (18 Jul 10) - (BG2) Enable conversations with charmed/dominated creatures (18 Jul 10) - (BG2) Experience Corrections (18 Jul 10) - (Misc) Platform Conversion Utility RC2 (13 Feb 10)


#3 GekkeR

GekkeR
  • Member
  • 39 posts

Posted 05 August 2006 - 08:11 AM

for a quick fix install BGT on a computer with windows then simply copy the install to your linux distro.

(vmware should work as well I think).

#4 lodgey

lodgey
  • Member
  • 18 posts

Posted 07 August 2006 - 03:17 AM

Hi,

I tried this a while ago without much success. I'm trying it again as I type and I'll let you know how it goes.

I'll describe the process I'm using below, I'll try to be fairly complete.

First, I'm using wine 0.9.18 - Aside from a minor issue with the cursor, BG2 + baldurdash-tob patch seems to run without any issues.

Second, I haven't downloaded the latest versions of anything yet. I am installing BGT 1.00 using WeiDU 192.

Much of the process was manual.
First, I converted the .bat files that need to be run to be shell scripts. I was going to write a script to convert these automatically, but when I couldn't get the install working, and since I already had converted these manually, I didn't bother. Note that due to the absence of a compilable version of tis2bg2 for linux, this is run through wine.

Note that I used the utility mmv for this. If you don't have it, the package manager for my distribution says that the website for it is: http://packages.debi.../utils/mmv.html

I converted everything in the directory to lower case (recursively). I used a rename utility see:
http://rename.berlios.de

I deleted setup-bgt.exe and replaced it with the linux version of the weidu program, renamed to setup-bgt.exe

I copied this same file to weidu and weidu.exe, just in case something wants to refer to these names.

I opened up the file setup-bgt.tp2 and made the following changes:
(note these may not all be needed)
Under Language, replace the second ~English~ with ~english~

Just under the languages, change the COPY command that copies Setup-BGT.exe to:
COPY + ~setup-bgt.exe~ ~_weidu~

Change all of the references to files ending in .bat to files ending in .sh and convert all paths in that file name to lower case such as:
AT_NOW ~bgt/language/%LANGUAGE%/presetup.sh~

After editing the file, I changed my path:
export PATH=./:${PATH}
(I don't like doing this, but it ensures that any program it needs can be found.)

I could then run setup-bgt.exe and install.

Now, if you were hoping for a happy ending at the end of this long post, I am sorry to disappoint you. When I run BG2 now, I get:

An Assertion failed in ChDimm.cpp at line number 628
Programmer says: Unable to Open BIF:data\bgtwav.bif


I suspect that this may have something to do with the file renaming, but I haven't looked at this further.

Attached Files



#5 lodgey

lodgey
  • Member
  • 18 posts

Posted 07 August 2006 - 05:14 AM

Just a brief note:

If anyone looks through my shell scripts, and notices a call to a program: cpdel, it's just a very simple shell script that I wrote:

#!/bin/sh
#Copy & delete a file

cp $1 $2 &&
rm $1

I'm sure there is a very good reason why I created and used it, but I can't think what it might be. I would have thought mv would have done exactly the same thing.

#6 Arianyr

Arianyr
  • Member
  • 16 posts

Posted 04 January 2007 - 02:40 PM

for a quick fix install BGT on a computer with windows then simply copy the install to your linux distro.

(vmware should work as well I think).

I have been trying this for ages can you believe.

A perfectly working (and pretty much clean) install of BGT-Weidu (1.0.2 mind you), copied over, opened with Cedega. On Cedega I get errors.

Trying to install BG1+TotSC and BG2+ToB on linux and then trying to run the weidu mods sounds to be much much harder

Edited by Arianyr, 04 January 2007 - 02:52 PM.


#7 Ascension64

Ascension64
  • Modder
  • 5983 posts

Posted 04 January 2007 - 06:12 PM

I don't know much about linux, but surely there is a way to just translate the command-line calls from the Windows versions to the linux versions.

--------------
Retired Modder
Note: I do not respond to profile comments/personal messages in regards to troubleshooting my modifications. Please post on the public forums instead.

Baldur's Gate Trilogy-WeiDU and Mods
Throne of Bhaal Extender (TobEx)

Contributions: (NWN2) A Deathstalker (voice acting) - (IWD2) IWD2 NPC Project (soundset editing) - (Misc) SHS PC Soundsets (voice acting)
Legacy: (BG/Tutu/BGT) Beregost Crash Fixer 1.9 (18 Jul 10) - (BG2) Enable conversations with charmed/dominated creatures (18 Jul 10) - (BG2) Experience Corrections (18 Jul 10) - (Misc) Platform Conversion Utility RC2 (13 Feb 10)


#8 Arianyr

Arianyr
  • Member
  • 16 posts

Posted 05 January 2007 - 03:16 AM

I don't know much about linux, but surely there is a way to just translate the command-line calls from the Windows versions to the linux versions.


Well that depends I guess.

The basic commands, moving, copying, deleting, renaming,... can easilly be translated to their linux counterpart. The problem here might be that linux is case-sensitive where windows is not. If the caps are correct in the windows installer that wont be a problem. If not, you would manually have to check every line to see if the filenames are correct. You could of course choose to convert everything to lower-case but I'm not sure if the game itself would like that.

I seriously doubt that is all that it does though. What else does the weidu installer do? Patching the dialog.tlk file of course, I wouldnt be sure how to do that, though if it is just a regular text file that should be possible as well. Does the BGT-Weidu install patch bgmain.exe? I hope not because I can't run Throne of Bhaal on linux without a no-cd patch.

I suppose if one were really desperate I could try to install BG2+ToB on Cedega normally then copy only the modded files over from my windows version, but I think that would just recreate the dreaded errors.

I'll look into this during the weekend

Edited by Arianyr, 05 January 2007 - 03:25 AM.


#9 ronin

ronin
  • Modder
  • 2114 posts

Posted 05 January 2007 - 03:41 AM

check here: http://forums.gibber...s...73&hl=linux

good info on installing bg2 on linux

ronin

#10 Arianyr

Arianyr
  • Member
  • 16 posts

Posted 05 January 2007 - 04:11 AM

check here: http://forums.gibber...s...73&hl=linux

good info on installing bg2 on linux

ronin

Awesome

Thanks

#11 the bigg

the bigg

    2083 is a prime number.

  • Modder
  • 3331 posts

Posted 05 January 2007 - 04:48 AM

Everything must be lowecased, otherwise WeiDU would be unable to work (many mods are inconsistent with the lower/upper case, so I decided to force everybody to use the same case). There's no need of lowercasing the contents of the tp2 files, only the contents of the shell scrips. To lowercase, you can use the tolower utility from the Linux WeiDU distribution (non-direct link). Under Wine, BG1,BG2, EasyTutu and IWD2 can work around the mixed case problem - if Cedega can't, consider moving to the free alternatives. Also, check the bgmain.ini file - maybe it's using some wrong directories.

If you mount your ToB disk (or a virtual image) as a CD-ROM file system under Wine / Cedega, there's no need of cracking your executable.

What does that mysterious program (the one that fails to read a line)? In WeiDU, you can use ACTION/PATCH_READLN to read a line from the stdin into the variable - see the readme. Otherwise, if you also need to do additional tasks that WeiDU can't handle, just ask and I'll provide code :)

To ask a directory and do a recursive copy, a possible scriptlet would be:
#!/bin/bash
# the above needed to let the system know which shell to use to interpret this script

# get the bg1 installation directory

bg1_directory=""	  # just to set an initial value
while ! [ -d  "${bg1_directory}" ]; do   # while bg1_directory is not a valid directory
  echo "Insert the path to your bg1 installation (Linux file system, no trailing slash)"  # prompt
  read bg1_directory	  # read everything up to the EOL and store in bg1_directory
done

# make directories and copy recursively

mkdir -p a/sub/dir	  # mkdir -p is recursive
cp -r "${bg1_directory}/a/sub/dir" a/sub/dir # Additional examples are left as an exercise to the reader

Edited by the bigg, 05 January 2007 - 05:03 AM.

Italian users: help test the Stivan NPC!

Author or Co-Author: WeiDU - Widescreen - Generalized Biffing - Refinements - TB#Tweaks - IWD2Tweaks - TB#Characters - Traify Tool - Some mods that I won't mention in public
Maintainer: Semi-Multi Clerics - Nalia Mod - Nvidia Fix
Code dumps: Detect custom secondary types - Stutter Investigator

If possible, send diffs, translations and other contributions using Git.


#12 Arianyr

Arianyr
  • Member
  • 16 posts

Posted 05 January 2007 - 05:19 AM

Everything must be lowecased, otherwise WeiDU would be unable to work (many mods are inconsistent with the lower/upper case,)

That's what I thought

Under Wine, BG1,BG2, EasyTutu and IWD2 can work around the mixed case problem - if Cedega can't, consider moving to the free alternatives. Also, check the bgmain.ini file - maybe it's using some wrong directories. If you mount your ToB disk (or a virtual image) as a CD-ROM file system under Wine / Cedega, there's no need of cracking your executable.

Baldur's Gate 2: Shadows of Amn does indeed work with the cd. Throne of Bhaal however doesnt seem to. This is under Cedega, mind you, I'll try and see if it's any different under Wine tonight.

I think with a right combination of luck, determination and a lot lot lot of messing around I could get it to work.

Thanks for your replies

Edited by Arianyr, 05 January 2007 - 05:19 AM.


#13 Arianyr

Arianyr
  • Member
  • 16 posts

Posted 05 January 2007 - 01:06 PM

Ok I've been trying a bit. Here's what I've done:

-Install Baldur's Gate 1 and Tales of the Sword Coast (no need to update because its the 3-cd version)
-Install Baldur's Gate 2
-Install Throne of Bhaal (both work perfectly on Cedega - not on wine though :/ . Using a dvd I made which contains all my BG2 cs and my ToB cd, ToB works without a no-cd patch now )
-Install update for ToB
-Test ToB (works)
-Download the WeiDU for linux
-Copy WeiDU, WeInstall, tisunpack and tolower to /usr/bin
-Download the mods that I want. These are bgt-weidu, bg1npc for bgt, bgttweak and bg2tweak
-run tolower

so far so good...

Next i suppose i should cd to my game directory and run WeInstall bgt
When I try this i get the right menu and stuff, choose language, it asks me to install or not, I answer yes, it errors out. Here is the content of my setup-bgt.debug:
WeiDU v 198 Log

 WeiDU --tlkout dialog.tlk --ftlkout dialogf.tlk --log setup-bgt.debug bgt.tp2 setup-bgt.tp2 bgt/bgt.tp2 bgt/setup-bgt.tp2
[./chitin.key] loaded, 590551 bytes
[./chitin.key] 182 BIFFs, 41793 resources
[./dialog.tlk] loaded, 8692747 bytes
[./dialog.tlk] 74107 string entries
[./baldur.ini] loaded, 3143 bytes
Possible HD/CD Path: [D:\Games\Baldurs Gate 2\]
Possible HD/CD Path: [D:\Games\Baldurs Gate 2\CD1\]
Possible HD/CD Path: [D:\Games\Baldurs Gate 2\CD2\]
Possible HD/CD Path: [D:\Games\Baldurs Gate 2\CD2\]
Possible HD/CD Path: [D:\Games\Baldurs Gate 2\CD3\]
Possible HD/CD Path: [D:\Games\Baldurs Gate 2\CD4\]
Possible HD/CD Path: [D:\Games\Baldurs Gate 2\CD5\]
[./keymap.ini] loaded, 5615 bytes
[./linux.ini] loaded, 331 bytes
Possible HD/CD Path: [/home/KennethVC/Games/Baldurs Gate 2/]
Possible HD/CD Path: [/home/KennethVC/Games/Baldurs Gate 2/CD1/]
Possible HD/CD Path: [/home/KennethVC/Games/Baldurs Gate 2/CD2/]
Possible HD/CD Path: [/home/KennethVC/Games/Baldurs Gate 2/CD2/]
Possible HD/CD Path: [/home/KennethVC/Games/Baldurs Gate 2/CD3/]
Possible HD/CD Path: [/home/KennethVC/Games/Baldurs Gate 2/CD4/]
Possible HD/CD Path: [/home/KennethVC/Games/Baldurs Gate 2/CD5/]
[./autorun.ini] loaded, 1452 bytes
[./mplaynow.ini] loaded, 230 bytes
[WeiDU] Using scripting style "BG"
[dialog.tlk] claims to be writeable.
[dialog.tlk] claims to be a regular file.
[WeiDU.log] parsed
[setup-bgt.tp2] parsed

Choose your language:
 0 [English]
 1 [International English]
 2 [Francais (French)]
 3 [Deutsch (German)]
 4 [Italiano (Italian)]
 5 [Çѱ¹?î (Korean)]
 6 [Polski (Polish)]
 7 [D¢??ˆŠ‚ (Russian)]
Using Language [English]
[English] has 5 top-level TRA files
[BGT/Language/English/prompts.tra] parsed
[BGT/Language/English/prompts.tra] has 42 translation strings
[BGT/Language/English/setup.tra] parsed
[BGT/Language/English/setup.tra] has 67 translation strings
[BGT/Language/English/dialog.tra] parsed
[BGT/Language/English/dialog.tra] has 25 translation strings
[BGT/Language/English/journal.tra] parsed
[BGT/Language/English/journal.tra] has 319 translation strings
[BGT/Language/English/scripts.tra] parsed
[BGT/Language/English/scripts.tra] has 25 translation strings

Install Component [Baldur's Gate Trilogy - Core 1.02f]

[Y]es or [N]o or [Q]uit? 
Installing [Baldur's Gate Trilogy - Core 1.02f]
Defined Inlined File [Place] (length 0)
Copying 1 file ...
Copied [Place] to [characters/BGcleric.chr]
Copying 1 file ...
Copied [Place] to [characters/BGfighte.chr]
Copying 1 file ...
Copied [Place] to [characters/BGmage.chr]
Copying 1 file ...
Copied [Place] to [characters/BGmulti.chr]
Copying 1 file ...
Copied [Place] to [characters/BGthief.chr]
Creating 1 directory
Copying 1 file ...
[Setup-BGT.exe] loaded, 322048 bytes
Copied [Setup-BGT.exe] to [_WeiDU.exe] (NO BACKUP MADE!)
Defined Inlined File [Language] (length 3)
Copying and patching 1 file ...
Copied [Language] to [Language]



Backing up chitin.key and override directory...
Copying 1 file ...
[chitin.key] loaded, 590551 bytes
chitin.key copied to BGT/Backup/0/chitin.key, 590551 bytes
ERROR: COPY ~chitin.key~ ~chitin.key~ FAILED: cannot open target
Stopping installation because of error.

ERROR Installing [Baldur's Gate Trilogy - Core 1.02f], rolling back to previous state
[BGT/Backup/0/UNSETSTR.0] SET_STRING uninstall info not found
Will uninstall   7 files for [setup-bgt.tp2] component 0.
  Restoring backed-up [BGT/Backup/0/chitin.key]
BGT/Backup/0/chitin.key copied to chitin.key, 590551 bytes
  Deleting [Language] (to restore original game condition)
  Deleting [characters/BGthief.chr] (to restore original game condition)
  Deleting [characters/BGmulti.chr] (to restore original game condition)
  Deleting [characters/BGmage.chr] (to restore original game condition)
  Deleting [characters/BGfighte.chr] (to restore original game condition)
  Deleting [characters/BGcleric.chr] (to restore original game condition)
Uninstalled	  7 files for [setup-bgt.tp2] component 0.
ERROR: Sys_error("chitin.key: Permission denied")
PLEASE post the contents of the file setup-bgt.debug at http://www.shsforums.net/index.php?showforum=261
Using Language [English]
[English] has 5 top-level TRA files
[BGT/Language/English/prompts.tra] parsed
[BGT/Language/English/prompts.tra] has 42 translation strings
[BGT/Language/English/setup.tra] parsed
[BGT/Language/English/setup.tra] has 67 translation strings
[BGT/Language/English/dialog.tra] parsed
[BGT/Language/English/dialog.tra] has 25 translation strings
[BGT/Language/English/journal.tra] parsed
[BGT/Language/English/journal.tra] has 319 translation strings
[BGT/Language/English/scripts.tra] parsed
[BGT/Language/English/scripts.tra] has 25 translation strings

Install Component [Baldur's Gate Trilogy - Core 1.02f]

[Y]es or [N]o or [Q]uit? Saving This Log:

		WeiDU Timings
MKDIR							0.000
PATCH_PRINT					  0.000
AT_*							 0.000
<<<<<<<<						 0.000
READ_*						   0.000
load TLK						 0.000
parsing .log files			   0.000
tp2 uninstall					0.000
BUT_ONLY						 0.000
process_patch2				   0.000
adding translation strings	   0.001
saving files					 0.001
eval_pe						  0.001
parsing .tra files			   0.007
COPY							 0.020
loading files					0.021
stuff not covered elsewhere	  0.072
parsing .tp2 files			   0.073
unmarshal KEY					0.076
unmarshal TLK					0.148
TOTAL							0.420


Big stuff. Kinda stuck.

#14 lodgey

lodgey
  • Member
  • 18 posts

Posted 08 January 2007 - 09:19 PM

Ok I've been trying a bit. Here's what I've done:

...

Big stuff. Kinda stuck.


(note that the quote has been sniped for the sake of brevity)

It seems that I had more success at this that you did (see my post above). I got the install to work, but I can't get it to run correctly. Note that there have been new releases of both BGT and WeiDU since I tried this, so I may try again sometime soon.

I didn't try to run weidu through wine, the only thing I used wine for during the update was tis2bg2 because I lacked a linux-compilable source and the desire to code one myself.

I did notice that some of the tp2 file needed to be changed. Most file names within the tp2 are indeed case-insensitive, but I definitely was getting install errors before I changed a few things.

I don't know how WeInstall works, so I can't comment on how it will run the batch files, but running without using wine, the batch files must be changed, because the commands they use don't exist under linux. This change was, however, fairly straightforward. I loaded the files in vim and just performed global changes using my very basic knowledge of regular expressions. There were a couple of problems, such as the differences between rename under dos/windows and mv under linux, but the mmv command I found helped greatly there.

If you want the mmv command then either 'emerge mmv' if you are using gentoo, or check out the link in my first post to this thread if you use a different distribution.

My best result was when I corrected the path names in baldur.ini. I now lock up on the load screen that comes up just after creating my character.

#15 Arianyr

Arianyr
  • Member
  • 16 posts

Posted 15 January 2007 - 03:04 PM

Hi again

Taking the coward's way out, I installed VMWare and set up a windows virtual machine with acces to my real windows partition. From there I edited the baldur.ini file to add paths rather than replace them. My drive letters of my hard disks are switched on the virtual machine so I made sure that the .ini file mentions the path for both the C and D drive.

Baldur's Gate works, as well as Baldur's Gate 2 and bgt-weidu. All in all, fairly easy set up, however it is still far from perfect. I get the weird cursor, but it's barely noticeable ingame (its mostly in the menus) and the speed is far from optimal.

Still, I think that with a little tweaking it should be perfect.