Jump to content

0.8.3 Android 4.4 GamePath problem


Lireutirlannasath

Recommended Posts

I'm trying to set GemRB on my tablet (it works on my phone, but the screen is so small).

Unfortunately it exits just after starting up. There seems to be a problem with the game path. However, I can't figure out what exactly.

Could you please offer some suggestions?

 

GemRB.cfg

GamePath=/storage/emulated/0/Android/data/net.sourceforge.gemrb/files/bg2/
CD1=/storage/emulated/0/Android/data/net.sourceforge.gemrb/files/bg2/Data
# CD2=<CD2_PLACEHOLDER>
# CD3=<CD3_PLACEHOLDER>
# CD4=<CD4_PLACEHOLDER>
# CD5=<CD5_PLACEHOLDER>

CachePath=/storage/emulated/0/Android/data/net.sourceforge.gemrb/files/bg2/cache

GemRB.log

[Core]: GemRB Core Initialization...
[Core]: Initializing Video Driver...
[SDL 2 Driver]: Creating display
[SDL 2 Driver]: Creating Main Surface: w=800 h=600 fmt=SDL_PIXELFORMAT_ABGR8888
[Core]: Initializing Search Path...
[ResourceManager/WARNING]: Invalid path given: /storage/emulated/0/Android/data/net.sourceforge.gemrb/files/bg2/data/Data (Data)
[ResourceManager/WARNING]: Invalid path given: /storage/emulated/0/Android/data/net.sourceforge.gemrb/files/bg2/Data/data (CD1/data)
[ResourceManager/WARNING]: Invalid path given: /storage/emulated/0/Android/data/net.sourceforge.gemrb/files/bg2/CD2/data (CD2/data)
[ResourceManager/WARNING]: Invalid path given: /storage/emulated/0/Android/data/net.sourceforge.gemrb/files/bg2/data/CD2/data (CD2/data)
[ResourceManager/WARNING]: Invalid path given: /storage/emulated/0/Android/data/net.sourceforge.gemrb/files/bg2/CD3/data (CD3/data)
[ResourceManager/WARNING]: Invalid path given: /storage/emulated/0/Android/data/net.sourceforge.gemrb/files/bg2/data/CD3/data (CD3/data)
[ResourceManager/WARNING]: Invalid path given: /storage/emulated/0/Android/data/net.sourceforge.gemrb/files/bg2/CD4/data (CD4/data)
[ResourceManager/WARNING]: Invalid path given: /storage/emulated/0/Android/data/net.sourceforge.gemrb/files/bg2/data/CD4/data (CD4/data)
[ResourceManager/WARNING]: Invalid path given: /storage/emulated/0/Android/data/net.sourceforge.gemrb/files/bg2/CD5/data (CD5/data)
[ResourceManager/WARNING]: Invalid path given: /storage/emulated/0/Android/data/net.sourceforge.gemrb/files/bg2/data/CD5/data (CD5/data)
[ResourceManager/WARNING]: Invalid path given: /storage/emulated/0/Android/data/net.sourceforge.gemrb/files/bg2/CD6/data (CD6/data)
[ResourceManager/WARNING]: Invalid path given: /storage/emulated/0/Android/data/net.sourceforge.gemrb/files/bg2/data/CD6/data (CD6/data)
[Core]: Initializing KEY Importer...
[KEYImporter]: Opening /storage/emulated/0/Android/data/net.sourceforge.gemrb/files/bg2/chitin.key...
[KEYImporter]: Checking file type...
[KEYImporter]: Reading Resources...
[KEYImporter]: BIF Files Count: 182 (Starting at 24 Bytes)
[KEYImporter]: RES Count: 41793 (Starting at 5449 Bytes)
[KEYImporter/ERROR]: Cannot find data/progtest.bif...
[KEYImporter/ERROR]: Cannot find data/ProgTes2.bif...
[KEYImporter/ERROR]: Cannot find data/DeSound.bif...
[KEYImporter]: Resources Loaded...
[Core]: Initializing GUI Script Engine...
[ResourceManager/WARNING]: Invalid path given: /usr/share/fonts/TTF (CustomFonts)
[Core]: Reading Game Options...
[ResourceManager]: Found 'gemrb.ini' in 'GemRB Unhardcoded data'.
[Core]: Loading game type-specific GemRB setup '/storage/emulated/0/Android/data/net.sourceforge.gemrb/files/unhardcoded/bg2/gemrb.ini'
[Core]: Loading original game options from /storage/emulated/0/Android/data/net.sourceforge.gemrb/files/bg2/baldur.ini
[ResourceManager]: Found 'defaults.ini' in 'shared GemRB Unhardcoded data'.
[Core]: Reading Encoding Table...
[ResourceManager]: Found 'default.ini' in 'shared GemRB Unhardcoded data'.
[Core]: Loading encoding definition for default: '/storage/emulated/0/Android/data/net.sourceforge.gemrb/files/unhardcoded/shared/default.ini'
[Core]: Creating Projectile Server...
[ResourceManager]: Found 'gemprjtl.ids' in 'GemRB Unhardcoded data'.
[ResourceManager]: Found 'projectl.ids' in 'Override'.
[Core]: Checking for Dialogue Manager...
[ResourceManager]: Found 'gender.2da' in 'GemRB Unhardcoded data'.
[Core]: Loading Dialog.tlk file...
[Core]: Loading Palettes...
[ResourceManager]: Searching for 'MPALETTE'...
[ResourceManager]: Found 'MPALETTE.bmp' in 'chitin.key'.
[ResourceManager]: Searching for 'MPALETTE'...
[ResourceManager]: Found 'MPALETTE.bmp' in 'chitin.key'.
[ResourceManager]: Searching for 'MPAL256'...
[ResourceManager]: Found 'MPAL256.bmp' in 'chitin.key'.
[Core]: Palettes Loaded
[Core]: Initializing stock sounds...
[ResourceManager]: Found 'defsound.2da' in 'GemRB Unhardcoded data'.
[Core]: Broadcasting Event Manager...
[Core]: Initializing Window Manager...
[Core]: Loading Cursors...
[ResourceManager]: Found 'cursors.bam' in 'chitin.key'.
Link to comment

Thank you for your answer.
The resolution is set at 800x600 while the device support up to 1280x800.

Here is the full GemR config file. Maybe it'll clear things up:

GameType=bg2

GameName=Baldur's Gate 2



# Encoding=default



#Screen width

Width=800



#Screen height

Height=600



#Bits per pixel [Integer:16,32]

Bpp=16



#Fullscreen [Boolean]

Fullscreen=0



# Delay before tooltips appear [milliseconds]

TooltipDelay=500



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

AudioDriver = openal



#VolumeAmbients = 100

#VolumeMovie = 100

#VolumeMusic = 100

#VolumeSFX = 100

#VolumeVoices = 100



#CaseSensitive=1



# Enable all gui enhancements ? [Integer]

GUIEnhancements = 15



# Enable bigger parties (up to 10) or force smaller ones [Integer]

#MaxPartySize = 6



#SkipIntroVideos=1

#DrawFPS=1

#FogOfWar=1

EnableCheatKeys=1



GamePath=/storage/emulated/0/Android/data/net.sourceforge.gemrb/files/bg2/

CD1=/storage/emulated/0/Android/data/net.sourceforge.gemrb/files/bg2/Data

# CD2=<CD2_PLACEHOLDER>

# CD3=<CD3_PLACEHOLDER>

# CD4=<CD4_PLACEHOLDER>

# CD5=<CD5_PLACEHOLDER>



CachePath=/storage/emulated/0/Android/data/net.sourceforge.gemrb/files/bg2/cache

#SavePath=/sdcard/gemrb/bg2/



# You shouldn't need to change any paths below this point.



#GemRBPath=

#GUIScriptsPath=

#PluginsPath=@PLUGIN_DIR@

#CustomFontPath=

#GameDataPath=

#GameOverridePath=

#GemRBOverridePath=

#GemRBUnhardcodedPath=



#whether or not to use software keyboard on devices that support one

UseSoftKeyboard=1

#TouchScrollAreas=1

MouseFeedback=1

#NumFingScroll=2

#NumFingKboard=3

#NumFingInfo=2
Link to comment

I'm having problems also. I've even installed the widescreen mod at my native res, set the res in in config and enabled fullscreen mode. Blackscreen for a few seconds, then crash. Log indicates that went fine, as far as I can tell.

 

Despite data being set to /storage/sdcard1/gemrb/bg2/data, my log file still says Invalid patch given: /storage/sdcard1/gemrb/bg2/data/Data (Data)

 

It was mentioned in the other thread this is just an unused directory, but surely data (CD1) is required...?

 

Edit: I should also note when installing the widescreen mod I set it to gemrb rather than windows, if I shouldn't have (but I don't see why)

Link to comment

cdX paths are just extra search paths, so unless you know you need them, you don't. The names are just historical relics. If you want those warnings to go away, just comment them out.

 

If your device forces an icon row on you, you have to take that into account when setting up the resolution — decreasing by whatever its heigh is. You'll have to reinstall widescreen for that.

Link to comment

Hello, guys!

 

I'm having the same problem with SDL and Android, but for another application I'm currently developing.

Please look at the code at the https://github.com/Antokolos/instead-android-ng/blob/master/modules/instead_standalone/src/com/nlbhub/instead/standalone/StorageResolver.java

 

I'm using getStorage() method (right at the beginning of this java file) to get the path to the data on SD card.

 

The problem is related to the paths like /storage/emulated/0 etc. For some reason my native app don't understand this paths, therefore in this method you can find the workaround for this problem (the code inside if(result.contains("emulated") || !canRead || !canWrite)).

 

Unfortunately, it works not for all devices. Right now I received the error report from the user, which is having path to SD card like /storage/sdcard0. In fact I was seeking the solution for this problem and found this site with the similar problem.

 

Good luck with your work! GemRB is awesome program, I've used it to play Icewind Dale on my tablet some time ago :)

 

Hope my solution can be helpful here.

Link to comment

My android device didn't come with either a text editor or a file browser actually. Installing both is pretty much a requirement for gemrb on android, to find and edit the configuration file. Install instructions should eventually mention this because it'll be a while until there is some kind of GUI for that.

 

Edit, the wide-screen mod is actually not a requirement on android 5.

Link to comment

Archived

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

×
×
  • Create New...