Putting the 'role' back in role-playing games since 2002.
Donate to Codex
Good Old Games
  • Welcome to rpgcodex.net, a site dedicated to discussing computer based role-playing games in a free and open fashion. We're less strict than other forums, but please refer to the rules.

    "This message is awaiting moderator approval": All new users must pass through our moderation queue before they will be able to post normally. Until your account has "passed" your posts will only be visible to yourself (and moderators) until they are approved. Give us a week to get around to approving / deleting / ignoring your mundane opinion on crap before hassling us about it. Once you have passed the moderation period (think of it as a test), you will be able to post normally, just like all the other retards.

What are the registry keys so that BG1 & BG2

SCO

Arcane
In My Safe Space
Joined
Feb 3, 2009
Messages
16,320
Shadorwun: Hong Kong
Think they are installed?
Specifically i want the keys and values for the Launcher to think it is installed, so i can configure the settings if i want.
This is what i have right now for bg2

Code:
#!/bin/bash
echo "This file to changes the baldur.ini path settings to point to the current dir"
echo "this is needed because bg2 is indifferent to relative paths"
echo "Run this at least once before running bg2 for the first time"
#For the launcher
GAME_PATH=$(dirname "$(readlink -f "$0")")
cd "$GAME_PATH/Baldur's Gate 2"
wine_path=$(winepath -w .)
#missing registry keys for launcher to think it is installed... I don't know what they are.


#For the game
#fuck this sed escaping shit, in windows / behaves as \
path=$(echo "$wine_path" | tr '\\\\' '\/')
sed -i "s|HD0:=.*|HD0:=${path}|g" baldur.ini
sed -i "s|CD1:=.*|CD1:=${path}/CD|g" baldur.ini
sed -i "s|CD2:=.*|CD2:=${path}/CD|g" baldur.ini
sed -i "s|CD3:=.*|CD3:=${path}/CD|g" baldur.ini
sed -i "s|CD4:=.*|CD4:=${path}/CD|g" baldur.ini
sed -i "s|CD5:=.*|CD5:=${path}/CD|g" baldur.ini
wine BGMain.exe

Do you know what they are?
 

SCO

Arcane
In My Safe Space
Joined
Feb 3, 2009
Messages
16,320
Shadorwun: Hong Kong
Eh, i suppose it isn't needed since the config program is a separate exe.
 

As an Amazon Associate, rpgcodex.net earns from qualifying purchases.
Back
Top Bottom