Jump to content

Can't get GemRB to work on Linux


omicrondelta

Recommended Posts

Hello, everyone.

 

My first post here as me asking for your help. I'm unable to get GemRB playing well under Linux with the GoG.com release of Baldur's Gate II. Using the GemRB.cfg.in as a base gemrb.cfg file, the game loads, allows me to make a character, and then goes to a blue game screen. The menu works, somewhat -- some items cause a segmentation fault, some work.

 

What am I missing? Or is GemRB incompatible with the GoG.com release?

 

 

EDIT: Here is the gemrb.cfg file I'm using.

#####################################################
#												   #
#  This is the GemRB Configuration file.			#
#  Here are defined some default parameters for	 #
#  basic configuration and paths definition.		#
#												   #
#  Parameters are defined as a Name=Value pair	  #
#  The Value can be of three types:				 #
#	  - String									 #
#	  - Integer									#
#	  - Boolean									#
#												   #
#  The String value is represented as follows	   #
#  i.e. H:\GemRB\plugins							#
#  Integers are defined as follows				  #
#  i.e. 12723									   #
#  Booleans are represented as 1 or 0 in this file  #
#												   #
#  Lines starting with # are ignored				#
#												   #
#####################################################

#####################################################
#												   #
#  Game Type [String] Use one of the following	  #
#  values:										  #
#												   #
#  bg1	   Baldur's Gate						  #
#  bg2	   Baldur's Gate 2 : SoA or ToB		   #
#  tob	   Baldur's Gate 2 : ToB (obsolete)	   #
#  iwd	   IceWind Dale						   #
#  how	   IceWind Dale : HoW or ToTL			 #
#  iwd2	  IceWind Dale 2						 #
#  pst	   Planescape Torment					 #
#  (More will come)								 #
#												   #
#####################################################

GameType=bg2

#####################################################
#  Game Name [String] Title for GemRB window, use   #
#  anything you wish, e.g. Baldur's Gate 3: RotFL   #
#####################################################

GameName=Baldur's Gate 2

#####################################################
#  Video Parameters								 #
#####################################################

#Screen width
Width=640

#Screen height
Height=480

#Bits per pixel [Integer:16,32]
Bpp=32

#Fullscreen [Boolean]
Fullscreen=1

# Delay before tooltips appear [milliseconds]
TooltipDelay=500

#####################################################
#  Audio Parameters								 #
#####################################################
#												   #
# All volume options are in percents, with 100	  #
# being the normal and default volume			   #
#												   #
#####################################################

# Choices: openal (default), sdlaudio (faster, but limited featureset), none
#AudioDriver = openal

# Volume of ambient sounds
#VolumeAmbients = 100

# Volume during movie playback
#VolumeMovie = 100

# Volume of background music
#VolumeMusic = 100

# Volume of sound effects
#VolumeSFX = 100

# Volume of PC or NPC voices
#VolumeVoices = 100

#####################################################
#  Case Sensitive Filesystem [Boolean]			  #
#												   #
#  If your installed game files are residing on a   #
#  case sensitive filesystem (ext2 on Linux) then   #
#  you need to set this value to 1, it has no	   #
#  effect on Windows								#
#####################################################

CaseSensitive=1

GameOnCD=0

#####################################################
#  GUI Parameters								   #
#####################################################
#												   #
# GemRB may enhance the GUI of the Infinity Engine  #
# games (so far only in bg2) creating functionally  #
# new buttons or scrollbars where they weren't	  #
# present in original games. It may improve its	 #
# usability, but is not quite compatible with	   #
# mods changing graphics and alignment in the *.chu #
# files (e.g. the buttons will appear in old		#
# coordinates and may stop being clickable).		#
#####################################################

# Enable all gui enhancements ? [Boolean]
GUIEnhancements = 0


#####################################################
#  Debug											#
#####################################################

# Do not play intro videos [Boolean], useful for development
SkipIntroVideos=0

# Draw Frames per Second info [Boolean]
DrawFPS=1

# Hide unexplored parts of a map
FogOfWar=1

# Enable debug and cheat keystrokes, see docs/en/CheatKeys.txt
#   full listing
#EnableCheatKeys=1

#####################################################
#  Paths											#
#####################################################

#####################################################
#  Game Paths [String]							  #
#												   #
#  These are the paths where the Game you want to   #
#  play is installed.							   #
#  Enter the full path to the directory.			 #
#####################################################

GamePath=/home/dwhyte/.gemrb/bg2/
CD1=/home/dwhyte/.gemrb/bg2/
CD2=/home/dwhyte/.gemrb/bg2/
CD3=/home/dwhyte/.gemrb/bg2/
CD4=/home/dwhyte/.gemrb/bg2/
CD5=/home/dwhyte/.gemrb/bg2/

#####################################################
#  GemRB Cache Path [String]						#
#												   #
#  This is the path where GemRB will store the	  #
#  cached files, enter the full path to the GemRB   #
#  Cache directory.								 #
#####################################################

CachePath=/home/dwhyte/.gemrb/cache/

#####################################################
#  GemRB Save Path [String]						 #
#												   #
#  This is the path where GemRB looks for saved	 #
#  games.										   #
#  Enter the full path to the directory containing  #
#  e.g. the 'save' subdirectory.					#
#												   #
#  You do not have to specify this if you use save  #
#  subdir in the GamePath directory.				#
#####################################################

#SavePath=/mnt/windows/Programmi/Black Isle/BGII - SoA/

###### HERE BE DRAGONS #############################
###### HERE BE DRAGONS #############################
###### HERE BE DRAGONS #############################
# You shouldn't need to change anything below this point.

#####################################################
#  GemRB Path [String]							  #
#												   #
#  This is the path where GemRB is stored, just	 #
#  enter the full path to the GemRB executable	  #
#####################################################

#GemRBPath=@DATA_DIR@

#####################################################
#  GemRB GUI Scripts Path [String]				  #
#												   #
#  This is the path where GemRB GUI scripts are	 #
#  stored, usually these are in the GemRB directory #
#  Enter the full path to the directory containing  #
#  the 'GUIScript' subdirectory.					#
#####################################################

#GUIScriptsPath=@DATA_DIR@

#####################################################
#  GemRB Plugins Path [String]					  #
#												   #
#  This is the path containing GemRB plugins		#
#  - shared libraries (.so) on Unixes, or		   #
#  DLLs (.dll) on windows.						  #
#  Enter the full path to the directory.			#
#												   #
#  You may need to specify this path if running	 #
#  GemRB from source directory on Linux.			#
#####################################################

#PluginsPath=@PLUGIN_DIR@

#####################################################
#  Game Data Path [String]						  #
#												   #
#  This is the subdirectory under GamePath where	#
#  game data files are stored.					  #
#												   #
#  You probably do NOT want to specify this!		#
#####################################################

#GameDataPath=data

#####################################################
#  Game Data Override Path [String]				 #
#												   #
#  This is the subdirectory under GamePath where	#
#  game data override files are stored.			 #
#												   #
#  You probably do NOT want to specify this!		#
#####################################################

#GameOverridePath=override

#####################################################
#  GemRB Data Override Path [String]				#
#												   #
#  This is the path where GemRB looks for the GemRB #
#  data override directory.						 #
#												   #
#  You probably do NOT want to specify this!		#
#####################################################

#GemRBOverridePath=@DATA_DIR@

#####################################################
#  END											  #
#####################################################

Link to comment

The total blue screen is given when the engine doesn't find an area tileset file. These are usually packaged into <areaname>.bif files. These files make up the majority of the game data, and reside on multiple CDs, or installed in different directories on the HD.

 

This may be wrong: CD2=/home/dwhyte/.gemrb/bg2/

 

I think there is a missing CD2 from the end. It should be: /home/dwhyte/.gemrb/bg2/CD2

Similarly, all of the other cd paths.

 

Make sure you have the files there. If you have them elsewhere, configure accordingly.

 

If it still doesn't work, please supply the last few lines of your console log.

Link to comment
The total blue screen is given when the engine doesn't find an area tileset file. These are usually packaged into <areaname>.bif files. These files make up the majority of the game data, and reside on multiple CDs, or installed in different directories on the HD.

 

This may be wrong: CD2=/home/dwhyte/.gemrb/bg2/

 

I think there is a missing CD2 from the end. It should be: /home/dwhyte/.gemrb/bg2/CD2

Similarly, all of the other cd paths.

 

Make sure you have the files there. If you have them elsewhere, configure accordingly.

 

If it still doesn't work, please supply the last few lines of your console log.

 

GOG.com bundles all files into one directory, so I'm sure it's not a matter of adding "CD2"

 

From what I've gathered from reading the log, the GOG.com release puts the data in places where GemRB can't find them. So... I've commented out all the CD1-CD6 lines in the config and am moving the game files around manually to get the game to work. I've got movies working so far, it'll just be a matter of making sure files are in the place they're supposed to be and making sure they're named correctly.

 

I'll keep you guys updated.

 

EDIT: I have it working now. The GoG.com release placed some files in ./data/Data that had to be in ./data, and ./data/Movies which need to be in ./movies.

 

Working great now. I had the same issue with my GoG.com Planescape. I'll re-install and arrange the files again to get it to work.

Link to comment

I see, this may be the problem for someone else who tried to run the GoG version of IWD.

Well, since gemrb doesn't really care about where to find the files, you can simply set CD2 to the movies dir and CD3 to the data dir.

(check what is in chitin.key, though).

Adding the bif paths in chitin.key to the cdpaths in the config should match the actual file paths.

For example: i got data/Default.bif in it, so my cd path shouldn't contain it.

GemRB supports 6 cd paths, so that should cover any configuration :)

Link to comment
Guest Archon
I see, this may be the problem for someone else who tried to run the GoG version of IWD.

Well, since gemrb doesn't really care about where to find the files, you can simply set CD2 to the movies dir and CD3 to the data dir.

(check what is in chitin.key, though).

Adding the bif paths in chitin.key to the cdpaths in the config should match the actual file paths.

For example: i got data/Default.bif in it, so my cd path shouldn't contain it.

GemRB supports 6 cd paths, so that should cover any configuration ;)

 

I'm getting the same problem (Android 3.0 though) with the GOG version as well. I set CD2 to ./data/Movies and CD3 to ./data/Data and the game loads, but without movies and when I load my save game it shows a blue square. How do I edit the chitin.key to fix that? I don't understand a single thing in that file. All I get when I open it looks like this:

http://i616.photobucket.com/albums/tt249/t...0x800_scrot.png

Link to comment

You don't have to edit chitin.key, you just have to copy the files/directories exactly the same way as in the original game. Then you need to edit the much more user friendly gemrb.cfg to point to these paths ;)

 

If there is something really awful going on, you can still copy all stray files into a cd5 or cd6 directory and set it up. GemRB supports 6 cd slots. (MAX_CD is defined in globals.h)

Link to comment

Archived

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

×
×
  • Create New...