Jump to content


Photo

Installing WeiDu mods on native linux BG:EE

linux weidu BG:EE enchanced edition mods install setup unix

3 replies to this topic

#1 Xywzel

Xywzel
  • Members
  • 3 posts

Posted 25 June 2015 - 07:43 AM

I have EE versions of Baldur's Gate from steam and unix based OS. Is there a way to install any mods that use weidu? The linux installation instructions for most mods seem to expect you to run original Baldur's Gate using wine, even thought they say that they are EE compatible. The EE version seems break if you run tolower, which is the first instruction in prety much every installation guide.

 

Is there guide or tutorial for how to use WeiDu on linux with EE? Can the tolower be avoided or fixed afterwards?

 

Without tolower WeiDu gets:

 ERROR: Unable to find DIALOG.TLK in:
    ./^dialog\.tlk$

And with it, I can't play. There is dialog.tlk named files in lang/xx_YY folders and DIALOG.BIF in data folder. So is the error from location or naming of the files?

 

So, renaming xx_YY to xx_yy (ex. en_US to en_us) got me bit forward. The next error is like this, but it does allow to continue.

Couldn't open the readme: file not found.
ERROR: No translation provided for @0
Continuing despite error.

Edited by Xywzel, 25 June 2015 - 10:41 AM.


#2 critto

critto
  • Modders
  • 196 posts
  • Gender:Male

Posted 25 June 2015 - 07:52 PM

Is there actually a string with the number 0 assigned to it in the setup.tra file inside the en_us folder?



#3 Xywzel

Xywzel
  • Members
  • 3 posts

Posted 26 June 2015 - 12:31 AM

The first error and en_us folder was releated to original game files and the second had something to do with folder expected folder struckture of the mod files. Fixed that with moving the setub script (tp2) out side of the mod files.

Now for every mod or part of one I get list of these:

ERROR: BIFF [./DATA/AR01XX.BIF] cannot be loaded: Unix.Unix_error(Unix.ENOENT, "stat", "./data/ar01xx.bif")
ERROR: BIFF [./DATA/AR2XXX.BIF] cannot be loaded: Unix.Unix_error(Unix.ENOENT, "stat", "./data/ar2xxx.bif")
ERROR: BIFF [./DATA/OHAREAS.BIF] cannot be loaded: Unix.Unix_error(Unix.ENOENT, "stat", "./data/ohareas.bif")

The names are found in original game files but are all uppercase, so no unix equality.

 

I'm currently trying possible solution from here: http://forums.pocket...ic,29259.0.html

 

Update:

Current results:

* Use recursive script from stackoverflow link in abouve forum to lower case of game files

* tolower all mod files

* Run weinstall

* run restore_files.sh

* run restore_dir.sh

* Run game

* seqfault


Edited by Xywzel, 26 June 2015 - 01:23 AM.


#4 Xywzel

Xywzel
  • Members
  • 3 posts

Posted 26 June 2015 - 02:37 PM

With use of my own lower and restore script I have succesfully installed few simpler WeiDu mods, will update once I have more data.

My tolower locks like this:

#!/bin/bash

timestamp=`eval date +%Y%M%d%H%M%S`

# Make Backup
cp -r . ../BG$timestamp

# List original filenames to file sorted by decreasing depth
find -printf '%d\t%P\n' | sort -r -nk1 | cut -f2- > original_files
wait

# Change each files or folders filename to lower case wihout editing path or folder structure
# Store reversing command to temp file
files=`cat original_files`
rename -v 's:([^/]*$):lc($1):e' $files | sed 's/\([^ ][^ ]*\) [a-zA-Z ]* \([^ ][^ ]*\)/mv \2 \1/' &> temp

# Reverse temp file to restore script and make it runnable
tac temp > restore.sh
echo "rm restore.sh" >> restore.sh
chmod +x restore.sh
# Remove temp files
rm temp original_files

And it generates both restore case script in current folder and backup of whole BGEE folder to BGtimestamp folder in parent folder.

Mods should be lowercased with tolower before trying to install them (or even trying to move to BG folder).

 

Update:

This seems to work with BG1NPC and few other mods, but some mod features are missing.

BG2 Tweeks (which also supports BGEE) segfaults the game if any of rule changes are applied, might be some other tweeks as well.

Most override repleasments won't show up because the filenames are in lower case and thus not valid for replasing original file, but at least they don't cause segfaults.


Edited by Xywzel, 30 June 2015 - 04:01 AM.




Reply to this topic



  



Also tagged with one or more of these keywords: linux, weidu, BG:EE, enchanced edition, mods, install, setup, unix

1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users