Jump to content

crash on start


soul_rebel

Recommended Posts

when running gemrb -c tob.conf i get

[Core]: Initializing GUI Script Engine...Traceback (most recent call last):
 File "<string>", line 1, in ?
ImportError: No module named GUIDefines
[GUIScript]: from GUIDefines import *[ERROR]

 

it looks like certain dependencies are missing... but since i couldnt find a list of requirements i couldnt compare....

 

 

thanks for any help!

 

here is the complete startup log:

GemRB Core Version v0.2.6 Loading...
[Core]: Initializing Variables Dictionary...[OK]
[Core]: Loading Configuration File...Loaded config file gemrb.conf
[OK]
[Core]: Starting Plugin Manager...
[PluginMgr]: Loading Plugins...
[PluginMgr]: Searching for plugins in: /usr/local/lib/gemrb/
[PluginMgr]: Loading: /usr/local/lib/gemrb/libGUIScript.so...[OK]
[PluginMgr]: Checking Plugin Version...[OK]
[PluginMgr]: Loading Exports for GUI Script Engine (Python)...[OK]
[PluginMgr]: Loading: /usr/local/lib/gemrb/libSDLVideo.so...[OK]
[PluginMgr]: Checking Plugin Version...[OK]
[PluginMgr]: Loading Exports for SDL Video Driver...[OK]
[PluginMgr]: Loading: /usr/local/lib/gemrb/libZLibMgr.so...[OK]
[PluginMgr]: Checking Plugin Version...[OK]
[PluginMgr]: Loading Exports for ZLib Compression Manager...[OK]
[PluginMgr]: Loading: /usr/local/lib/gemrb/lib2DAImporter.so...[OK]
[PluginMgr]: Checking Plugin Version...[OK]
[PluginMgr]: Loading Exports for 2DA File Importer...[OK]
[PluginMgr]: Loading: /usr/local/lib/gemrb/libACMImporter.so...[OK]
[PluginMgr]: Checking Plugin Version...[OK]
[PluginMgr]: Loading Exports for ACM File Importer...[OK]
[PluginMgr]: Loading: /usr/local/lib/gemrb/libNullSound.so...[OK]
[PluginMgr]: Checking Plugin Version...[OK]
[PluginMgr]: Loading Exports for Null Sound Driver...[OK]
[SKIPPING]
Duplicate Plug-in
[PluginMgr]: Loading: /usr/local/lib/gemrb/libAREImporter.so...[OK]
[PluginMgr]: Checking Plugin Version...[OK]
[PluginMgr]: Loading Exports for ARE File Importer...[OK]
[PluginMgr]: Loading: /usr/local/lib/gemrb/libBAMImporter.so...[OK]
[PluginMgr]: Checking Plugin Version...[OK]
[PluginMgr]: Loading Exports for BAM File Importer...[OK]
[PluginMgr]: Loading: /usr/local/lib/gemrb/libBIFImporter.so...[OK]
[PluginMgr]: Checking Plugin Version...[OK]
[PluginMgr]: Loading Exports for BIF File Importer...[OK]
[PluginMgr]: Loading: /usr/local/lib/gemrb/libBMPImporter.so...[OK]
[PluginMgr]: Checking Plugin Version...[OK]
[PluginMgr]: Loading Exports for BMP File Importer...[OK]
[PluginMgr]: Loading: /usr/local/lib/gemrb/libCHUImporter.so...[OK]
[PluginMgr]: Checking Plugin Version...[OK]
[PluginMgr]: Loading Exports for CHU File Importer...[OK]
[PluginMgr]: Loading: /usr/local/lib/gemrb/libCREImporter.so...[OK]
[PluginMgr]: Checking Plugin Version...[OK]
[PluginMgr]: Loading Exports for CRE File Importer...[OK]
[PluginMgr]: Loading: /usr/local/lib/gemrb/libDLGImporter.so...[OK]
[PluginMgr]: Checking Plugin Version...[OK]
[PluginMgr]: Loading Exports for DLG File Importer...[OK]
[PluginMgr]: Loading: /usr/local/lib/gemrb/libEFFImporter.so...[OK]
[PluginMgr]: Checking Plugin Version...[OK]
[PluginMgr]: Loading Exports for EFF File Importer...[OK]
[PluginMgr]: Loading: /usr/local/lib/gemrb/libFXOpcodes.so...[OK]
[PluginMgr]: Checking Plugin Version...[OK]
[PluginMgr]: Loading Exports for Effect opcodes for core games...[OK]
[PluginMgr]: Loading: /usr/local/lib/gemrb/libGAMImporter.so...[OK]
[PluginMgr]: Checking Plugin Version...[OK]
[PluginMgr]: Loading Exports for GAM File Importer...[OK]
[PluginMgr]: Loading: /usr/local/lib/gemrb/libIDSImporter.so...[OK]
[PluginMgr]: Checking Plugin Version...[OK]
[PluginMgr]: Loading Exports for IDS File Importer...[OK]
[PluginMgr]: Loading: /usr/local/lib/gemrb/libINIImporter.so...[OK]
[PluginMgr]: Checking Plugin Version...[OK]
[PluginMgr]: Loading Exports for INI File Importer...[OK]
[PluginMgr]: Loading: /usr/local/lib/gemrb/libITMImporter.so...[OK]
[PluginMgr]: Checking Plugin Version...[OK]
[PluginMgr]: Loading Exports for ITM File Importer...[OK]
[PluginMgr]: Loading: /usr/local/lib/gemrb/libKEYImporter.so...[OK]
[PluginMgr]: Checking Plugin Version...[OK]
[PluginMgr]: Loading Exports for KEY File Importer...[OK]
[PluginMgr]: Loading: /usr/local/lib/gemrb/libMOSImporter.so...[OK]
[PluginMgr]: Checking Plugin Version...[OK]
[PluginMgr]: Loading Exports for MOS File Importer...[OK]
[PluginMgr]: Loading: /usr/local/lib/gemrb/libMUSImporter.so...[OK]
[PluginMgr]: Checking Plugin Version...[OK]
[PluginMgr]: Loading Exports for MUS File Importer...[OK]
[PluginMgr]: Loading: /usr/local/lib/gemrb/libMVEPlayer.so...[OK]
[PluginMgr]: Checking Plugin Version...[OK]
[PluginMgr]: Loading Exports for MVE Video Player...[OK]
[PluginMgr]: Loading: /usr/local/lib/gemrb/libPLTImporter.so...[OK]
[PluginMgr]: Checking Plugin Version...[OK]
[PluginMgr]: Loading Exports for PLT File Importer...[OK]
[PluginMgr]: Loading: /usr/local/lib/gemrb/libSPLImporter.so...[OK]
[PluginMgr]: Checking Plugin Version...[OK]
[PluginMgr]: Loading Exports for SPL File Importer...[OK]
[PluginMgr]: Loading: /usr/local/lib/gemrb/libSTOImporter.so...[OK]
[PluginMgr]: Checking Plugin Version...[OK]
[PluginMgr]: Loading Exports for STO File Importer...[OK]
[PluginMgr]: Loading: /usr/local/lib/gemrb/libTISImporter.so...[OK]
[PluginMgr]: Checking Plugin Version...[OK]
[PluginMgr]: Loading Exports for TIS File Importer...[OK]
[PluginMgr]: Loading: /usr/local/lib/gemrb/libTLKImporter.so...[OK]
[PluginMgr]: Checking Plugin Version...[OK]
[PluginMgr]: Loading Exports for TLK File Importer...[OK]
[PluginMgr]: Loading: /usr/local/lib/gemrb/libWEDImporter.so...[OK]
[PluginMgr]: Checking Plugin Version...[OK]
[PluginMgr]: Loading Exports for WED File Importer...[OK]
[PluginMgr]: Loading: /usr/local/lib/gemrb/libWMPImporter.so...[OK]
[PluginMgr]: Checking Plugin Version...[OK]
[PluginMgr]: Loading Exports for WMP File Importer...[OK]
[Core]: Plugin Loading Complete...[OK]
[Core]: Creating Object Factory...[OK]
[Core]: GemRB Core Initialization...
[Core]: Searching for Video Driver...[OK]
[Core]: Initializing Video Plugin...[OK]
[Core]: Searching for KEY Importer...[OK]
[Core]: Initializing Resource Manager...
[KEYImporter]: Opening /home/hannes/data/games/bg2/Chitin.key...[OK]
[KEYImporter]: Checking file type...[OK]
[KEYImporter]: Reading Resources...
[KEYImporter]:  BIF Files Count: 182 (Starting at 24 Bytes)
[KEYImporter]:  RES Count: 41794 (Starting at 5449 Bytes)
[KEYImporter]: Resources Loaded...[OK]
[KEYImporter]: Searching for gemrb.INI...[Found in GemRB Override]
[Core]:
Loading game type-specific GemRB setup...[OK]
[Core]: Checking for Dialogue Manager...[OK]
[KEYImporter]: Searching for months.2DA...[FOUND]
[Core]: Loading Dialog.tlk file...[OK]
[Core]: Loading Palettes...
[KEYImporter]: Searching for MPALETTE.BMP...[FOUND]
[KEYImporter]: Searching for MPALETTE.BMP...[FOUND]
[KEYImporter]: Searching for MPAL256.BMP...[FOUND]
[Core]: Palettes Loaded
[Core]: Initializing stock sounds...[KEYImporter]: Searching for defsound.2DA...[Found in GemRB Override]
[Core]: Loading Fonts...
[KEYImporter]: Searching for fonts.2DA...[Found in GemRB Override]
[KEYImporter]: Searching for NORMAL.BAM...[FOUND]
[KEYImporter]: Searching for FLOATTXT.BAM...[FOUND]
[KEYImporter]: Searching for NUMBER.BAM...[FOUND]
[KEYImporter]: Searching for INITIALS.BAM...[FOUND]
[KEYImporter]: Searching for NUMBER2.BAM...[FOUND]
[KEYImporter]: Searching for NUMBER3.BAM...[FOUND]
[KEYImporter]: Searching for REALMS.BAM...[FOUND]
[KEYImporter]: Searching for STONEBIG.BAM...[FOUND]
[KEYImporter]: Searching for STONESML.BAM...[FOUND]
[KEYImporter]: Searching for TOOLFONT.BAM...[FOUND]
[KEYImporter]: Searching for STONESM2.BAM...[ERROR]
[KEYImporter]: Searching for TOOLTIP.BAM...[FOUND]
[KEYImporter]: Searching for STONSML.BAM...[FOUND]
[KEYImporter]: Searching for GAMETEXT.BAM...[FOUND]
[Core]: Fonts Loaded...[OK]
[Core]: Initializing Tooltips...[KEYImporter]: Searching for TOOLSCRL.BAM...[FOUND]
[OK]
[Core]: Initializing the Event Manager...[OK]
[Core]: BroadCasting Event Manager...[OK]
[Core]: Initializing Window Manager...[OK]
[Core]: Initializing GUI Script Engine...Traceback (most recent call last):
 File "<string>", line 1, in ?
ImportError: No module named GUIDefines
[GUIScript]: from GUIDefines import *[ERROR]
[KEYImporter]: Searching for defsound.2DA...[Found in GemRB Override]
Press enter to continue...

 

and my config file:

GameType=tob
GameName=BaldursGate2
GamePath=/home/hannes/data/games/bg2
CD1=/home/hannes/data/games/bg2
CD2=/home/hannes/data/games/bg2/CD2
CD3=/home/hannes/data/games/bg2/CD3
CD4=/home/hannes/data/games/bg2/CD4
CD5=/home/hannes/data/games/bg2/CD5
Width=1024
Height=768
Bpp=32
Fullscreen=0
TooltipDelay=500
CaseSensitive=1
SaveAsOriginal=1
CachePath=/home/hannes/data/games/bg2/cache
GameDataPath=/home/hannes/data/games/bg2/data
GameOverridePath=/home/hannes/data/games/bg2/override
GemRBPath=/usr/local/share/gemrb
GUIScriptsPath=/usr/local/share/gemrb/GUIScripts/

Link to comment

Well, it is the only reason, the file doesn't exist where gemrb (and python) expects it.

I'll add a line which may help diagnose the problem, printing out the exact location where the file should be.

One common error used to be an additional space left after the pathname in the config file.

Link to comment
Well, it is the only reason, the file doesn't exist where gemrb (and python) expects it.

I'll add a line which may help diagnose the problem, printing out the exact location where the file should be.

One common error used to be an additional space left after the pathname in the config file.

 

is there anything i can do about it? i can code cpp and i'm learning python, and i'd just really like to get bg2 and tob working especially since they do not work with wine on freebsd.

 

if i get gemrb working i'll commit a port of it to the freebsd ports collection!

 

so i'd be happy if you told which python files to edit or send me a udiff for the c-code; if you are not too busy of course!

 

thanks and have a nice weekend!

Link to comment

If you have cvs access download the recent changes and try to figure out what's the problem.

 

in GUIScript.cpp, line 6603:

 

if (PyRun_SimpleString( "from GUIDefines import *" ) == -1) {

printMessage( "GUIScript", " ", RED );

printf("Check if %s/GUIDefines.py exists! ", path);

return false;

}

 

path is handled earlier, near line 6565.

 

The only problem i can think of is that you also need the stuff we used for WIN32.

So remove line 6572 and 6586 (#ifdef WIN32 and #endif) for a try.

Link to comment

Archived

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

×
×
  • Create New...