Jump to content

GEMRB on Android


Guest Chas Grady

Recommended Posts

On my Milestone1 GemRB always turns off when going to background - because lack of ram :)

 

For keeping GemRB alive in background on Milestone, try to use AutoKiller, this program can change a free RAM limit, that initiates application kill in native Android task manager. It won't save GemRB if you launch, for example, a browser, but it can help when you receive an incoming call while playing.

Link to comment

Thanks for advice :)

SDLaudio vs OpenAL vs no audio:

SDLaudio gets 1-2fps more than OpenAL (eg 27-28 vs 26fps)

No audio gets 1-2fps more than SDLaudio and 4fps than OpenAL (29-30 vs 27-28 vs 26fps)

 

Test made in one localization (same savegame)

 

It's possible that SDLaudio has better audio quality?

Link to comment

Hello, first of all I would like to thank you for your work. Great job!

But unfortunately I can make my Samsung Galaxy S to run this. I installed Baldurs Gate II on my computer. Then I copied game folder to my internal SD card to ./sdcard/BG/ . After that I installed GEMRB from the market and in this aplication I downloaded the required files. Once it downloaded all required files the program shutdowned itself automaticly. Then I plugged phone to my computer and I changed the game path to:

GamePath=/sdcard/BG

CD1=/sdcard/BG/CD1/

CD2=/sdcard/BG/CD2/

CD3=/sdcard/BG/CD3/

CD4=/sdcard/BG/CD4/

CD5=/sdcard/BG/CD5/

and saved. After that I launched GemRB clicked ok, the screen went black for like 2 seconds and the next thing I saw was the home screen.

Here is my config file:

#####################################################
#												   #
#  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 = 50

# Volume during movie playback
VolumeMovie = 50

# Volume of background music
VolumeMusic = 50

# Volume of sound effects
VolumeSFX = 50

# Volume of PC or NPC voices
VolumeVoices = 70

#####################################################
#  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 = 1


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

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

# 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=/sdcard/BG
CD1=/sdcard/BG/CD1/
CD2=/sdcard/BG/CD2/
CD3=/sdcard/BG/CD3/
CD4=/sdcard/BG/CD4/
CD5=/sdcard/BG/CD5/

#####################################################
#  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=/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

 

And here is what aLogCat says:

D/dalvikvm( 2539): GC_EXTERNAL_ALLOC freed 2101 objects / 138856 bytes in 99ms
I/System.out( 3068): libSDL: Creating startup screen
D/dalvikvm( 3068): GC_EXTERNAL_ALLOC freed 834 objects / 59376 bytes in 75ms
I/System.out( 3068): libSDL: Loading libraries
D/dalvikvm( 3068): Trying to load lib /data/data/net.sourceforge.gemrb/lib/libsdl-1.2.so 0x48103910
V/Mms/HVGALayoutParameters( 2725): HVGALayoutParameters.<init>(11).
D/dalvikvm( 3068): Added shared lib /data/data/net.sourceforge.gemrb/lib/libsdl-1.2.so 0x48103910
D/dalvikvm( 3068): Trying to load lib /data/data/net.sourceforge.gemrb/lib/libsdl_mixer.so 0x48103910
D/dalvikvm( 3068): Added shared lib /data/data/net.sourceforge.gemrb/lib/libsdl_mixer.so 0x48103910
D/dalvikvm( 3068): No JNI_OnLoad found in /data/data/net.sourceforge.gemrb/lib/libsdl_mixer.so 0x48103910, skipping init
D/dalvikvm( 3068): Trying to load lib /data/data/net.sourceforge.gemrb/lib/libopenal.so 0x48103910
D/dalvikvm( 3068): Added shared lib /data/data/net.sourceforge.gemrb/lib/libopenal.so 0x48103910
D/dalvikvm( 3068): Trying to load lib /data/data/net.sourceforge.gemrb/lib/libpython.so 0x48103910
D/dalvikvm( 3068): Added shared lib /data/data/net.sourceforge.gemrb/lib/libpython.so 0x48103910
D/dalvikvm( 3068): No JNI_OnLoad found in /data/data/net.sourceforge.gemrb/lib/libpython.so 0x48103910, skipping init
I/System.out( 3068): libSDL: Loading settings
I/System.out( 3068): libSDL: Settings.Load(): enter
I/System.out( 3068): libSDL: Settings.Load(): loaded settings successfully
I/System.out( 3068): libSDL: 3-second timeout in startup screen
I/ActivityManager( 2464): Displayed activity net.sourceforge.gemrb/.MainActivity: 711 ms (total 711 ms)
V/WindowManager( 2464): Dsptch > Window{4847f778 net.sourceforge.gemrb/net.sourceforge.gemrb.MainActivity paused=false}
D/dalvikvm( 2464): GC_EXPLICIT freed 5858 objects / 301760 bytes in 68ms
V/WindowManager( 2464): Dsptch > Window{4847f778 net.sourceforge.gemrb/net.sourceforge.gemrb.MainActivity paused=false}
I/System.out( 3068): libSDL: User clicked change phone config button
V/WindowManager( 2464): Dsptch > Window{485378c0 net.sourceforge.gemrb/net.sourceforge.gemrb.MainActivity paused=false}
W/Process ( 2464): Unable to open /proc/2945/status
D/dalvikvm( 3068): GC_EXTERNAL_ALLOC freed 755 objects / 38216 bytes in 33ms
D/dalvikvm( 3068): GC_EXTERNAL_ALLOC freed 259 objects / 12800 bytes in 29ms
D/dalvikvm( 3068): GC_EXTERNAL_ALLOC freed 5 objects / 208 bytes in 26ms
V/WindowManager( 2464): Dsptch > Window{485378c0 net.sourceforge.gemrb/net.sourceforge.gemrb.MainActivity paused=false}
V/WindowManager( 2464): Dsptch > Window{485378c0 net.sourceforge.gemrb/net.sourceforge.gemrb.MainActivity paused=false}
V/WindowManager( 2464): Dsptch > Window{485378c0 net.sourceforge.gemrb/net.sourceforge.gemrb.MainActivity paused=false}
I/System.out( 3068): libSDL: Starting data downloader
I/System.out( 3068): libSDL: Starting downloader
I/System.out( 3068): Read URL: 'data.zip'
I/System.out( 3068): Comparing: 'data.zip'
I/System.out( 3068): Matched: true
I/System.out( 3068): libSDL: Initializing video and SDL application
V/SDL	 ( 3068): GLSurfaceView_SDL::EglHelper::start(): creating GL context
D/libEGL  ( 3068): loaded /system/lib/egl/libEGL_POWERVR_SGX540_120.so
D/libEGL  ( 3068): loaded /system/lib/egl/libGLESv1_CM_POWERVR_SGX540_120.so
D/libEGL  ( 3068): loaded /system/lib/egl/libGLESv2_POWERVR_SGX540_120.so
V/SDL	 ( 3068): GLSurfaceView_SDL::EglHelper::createSurface(): creating GL context
I/libSDL  ( 3068): Physical screen resolution is 800x480, virtual screen 800x480
D/dalvikvm( 3068): Trying to load lib /data/data/net.sourceforge.gemrb/lib/libapplication.so 0x48103910
D/dalvikvm( 3068): Added shared lib /data/data/net.sourceforge.gemrb/lib/libapplication.so 0x48103910
D/dalvikvm( 3068): No JNI_OnLoad found in /data/data/net.sourceforge.gemrb/lib/libapplication.so 0x48103910, skipping init
D/dalvikvm( 3068): Trying to load lib /data/data/net.sourceforge.gemrb/lib/libsdl_main.so 0x48103910
D/dalvikvm( 3068): Added shared lib /data/data/net.sourceforge.gemrb/lib/libsdl_main.so 0x48103910
D/dalvikvm( 3068): No JNI_OnLoad found in /data/data/net.sourceforge.gemrb/lib/libsdl_main.so 0x48103910, skipping init
D/dalvikvm( 3068): GC_FOR_MALLOC freed 894 objects / 433064 bytes in 41ms
D/dalvikvm( 3068): GC_FOR_MALLOC freed 701 objects / 413888 bytes in 23ms
I/System.out( 3068): libSDL: setting envvar LANGUAGE to 'pl_PL'
I/System.out( 3068): libSDL: accelerometer start required: false
I/libSDL  ( 3068): Calling SDL_main("GemRB")
I/libSDL  ( 3068): param 0 = "GemRB"
I/GemRB   ( 3068): Core: Initializing the Event Manager...
I/GemRB   ( 3068): Core: Initializing Lists Dictionary...
I/GemRB   ( 3068): Core: Initializing Variables Dictionary...
I/GemRB   ( 3068): [OK]
I/GemRB   ( 3068): Config: Trying to open 
I/GemRB   ( 3068): [OK]
I/GemRB   ( 3068): Core:  
I/GemRB   ( 3068): Config: Trying to open 
I/GemRB   ( 3068): [NOT FOUND]
I/AndroidRuntime( 3068): AndroidRuntime onExit calling exit(0)
V/Mms/HVGALayoutParameters( 2725): HVGALayoutParameters.<init>(11).

Link to comment
Thanks for advice! :) But even after extracting files to the /sdcard/app-data/net.sourceforge.gemrb folder I got the same error :-( Also I tried to copy data.zip to that folder but it didn't change anything too... In configuration I have set up the SDcard for data, so it's not a problem.

Maybe I need to change something else? Seems like a bug :-/

 

Sometimes after running GemRB, it takes long to "Initialize" but after that I got always the same error.

 

 

Ash, you need in addition to extract this package to the /sdcard/app-data/net.sourceforge.gemrb folder, it's a flag file, who talk to the application, that all downloads are complete:

http://ifolder.ru/20811653

Another guy on polish Android forum had the same problem like me... :thumbsup:

 

BTW:http://android.com.pl/news/programy/1525-g...androidzie.html- it's a news about GemRB for android :D

Beholder you made many people very happy after releasing it :D

Link to comment
Another guy on polish Android forum had the same problem like me... :thumbsup:

BTW:http://android.com.pl/news/programy/1525-g...androidzie.html- it's a news about GemRB for android :D

Beholder you made many people very happy after releasing it :D

 

This is the problem of libraries that I use, not the port. I've reported about this to Pelya.

and

I'm glad that port is a success! :)

Link to comment

Hello, first of all awesome piece of software Beholder! Iam having the same issue with the blue screen after character creation. The problem is that i dont have 5 different CDs. I have my copy of Baldurs Gate 2 from GoG and that is only 1 setup.exe file and 2 data files (2.3 GB together). After installation to PC i have one baldurs gate folder with all data in it. What do i write to the config file if i dont have the 5 CDs only one data folder? Where do i point the CD2, CD3 etc. ?

 

From my config file:

 

GamePath=/sdcard/bg2/

CD1=/sdcard/bg2/

CD2=/sdcard/bg2/

CD3=/sdcard/bg2/

CD4=/sdcard/bg2/

CD5=/sdcard/bg2/

Link to comment
Nevermind, i "fixed" it by getting me a classic CD version of BGII frm a friend :) Still didn't find out how to use right click though.

You may configure right click on SDL startup menu. It can be assigned to menu key, touch with second finger or touch with force.

Link to comment

Hi!

 

Could somebody please write a step-by-step guide to which game resources to copy where on the phone, and what to change in the config file for bg2?

 

I have an SGS, and no matter what i tried, i only got a short flash of black screen and then i find myself on the home screen again.

Link to comment

Archived

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

×
×
  • Create New...