Jump to content

GEMRB on Android


Guest Chas Grady

Recommended Posts

It seems widescreen mod and changing the gemrb.cfg file to reflect resolution has a drawback. Performance suffers from the high resolution (1024x600 for galaxy tab). Any ideas for a good resolution that wont hinder performance, and will still look decent on the galaxy tab's larger screen?

Link to comment
Could you compile it despite the fact it is unstable, and maybe post .apk here? Pretty please ^^?

 

Or, could you post a complete guide how to compile it? (So I can play and try to find problems myself)

Android version can be built from these sources - https://github.com/pelya/commandergenius . Besides GemRB there are some other interesting android projects in that repo. Build documentation included (need patched NDK etc). Though, have not tried it myself yet.

Desktop version here - git://gemrb.git.sourceforge.net/gitroot/gemrb/gemrb , have built and run it on linux without problems (only need recent cmake).

Link to comment

That's right. Pelya's repository contains GemRB sources fully configured for building, but not latest. It's official 0.6.4 (I sended these sources to him before released 0.6.4 on Market). You may download repo and update sources manually before building. This should work.

Link to comment
Could you compile it despite the fact it is unstable, and maybe post .apk here? Pretty please ^^?

 

Or, could you post a complete guide how to compile it? (So I can play and try to find problems myself)

Android version can be built from these sources - https://github.com/pelya/commandergenius . Besides GemRB there are some other interesting android projects in that repo. Build documentation included (need patched NDK etc). Though, have not tried it myself yet.

Desktop version here - git://gemrb.git.sourceforge.net/gitroot/gemrb/gemrb , have built and run it on linux without problems (only need recent cmake).

 

For those who intrested, android build from git master (a2899e377626fdbcb5981e7eaeb3afc0c1093dc6) is here - http://www.mediafire.com/?204eyu93ral462h

Tested on galaxy tab with bg1 - apk installation and saved games works fine.

Link to comment
Guest Rayalis

Is there a way to highlight containers? I've tried remapping the physical keys to 'LALT' and 'RALT', but they don't highlight. I've successfully mapped 'TAB' to display the character's hp above their head, so the buttons work, am I just mapping it to the wrong key?

Link to comment
Guest vidriera

Thanks for the posted config file a few pages back! I'm not sure what was up with mine, but I just changed both bg1's to bg2 and added CD2,CD3, etc to the paths and it works fine now. I've been trying to get this to work for a while now!

Link to comment
It seems widescreen mod and changing the gemrb.cfg file to reflect resolution has a drawback. Performance suffers from the high resolution (1024x600 for galaxy tab). Any ideas for a good resolution that wont hinder performance, and will still look decent on the galaxy tab's larger screen?

Checked FPS on galaxy tab 7": stock 2.2 Froyo, 1024x600, 16 bit color depth. Got stable 25 - 40 FPS, seems comfortably playable to me.

Maybe you have some heavy background apps eating your RAM? Or something wrong with SDL settings?

 

edit: typo

Link to comment

Beholder, maybe you can help me. Not write PM cause think it's not only mine issue.

I'm installed IWD(full)+HoW(full)+TotLM on windows. Patched resources with widescreen mod to 1024x600 for GemRB.

It works fine on android until I enter Kuldahar. In Kuldahar I cannot enter any house, party opens door, comes into it and stands still - nothing happened. Trying enter druids house I have "Save successful" ant nothing happens except of sudden extreme slowness of the game. On other house there are no such slowness, but no success with any house.

I tried to reproduce this on desktop linux, but the save-game (autosave before enters druids house) works fine. I think this is android specific issue.

Some content for this problem:

using GemRB 0.6.4, linux 2.6.26-2-686 (desktop), galaxy tab 2.2

savegame (autosave): http://www.mediafire.com/?b9rexg4yfsquv3p

Log from desktop linux on entering druids house:

[ResourceManager]: Searching for savegame.2da...[GemRB Override]
[ResourceManager]: Searching for defsound.2da...[GemRB Override]
[ResourceManager]: Searching for hmf2_s... hmf2_s.bmp...[chitin.key]
[ResourceManager]: Searching for dmf_s... dmf_s.bmp...[chitin.key]
[ResourceManager]: Searching for hff_s... hff_s.bmp...[chitin.key]
[ResourceManager]: Searching for dmc_s... dmc_s.bmp...[chitin.key]
[ResourceManager]: Searching for emw_s... emw_s.bmp...[chitin.key]
[ResourceManager]: Searching for hfw_s... hfw_s.bmp...[chitin.key]
[ResourceManager]: Searching for chmw3g11.bam...[chitin.key]
[ResourceManager]: Searching for defsound.2da...[GemRB Override]
[ResourceManager]: Searching for ar2112.are...[chitin.key]
[ResourceManager]: Searching for ar2112.wed...Decompressing
[chitin.key]
[ResourceManager]: Searching for ar2112.tis...[chitin.key]
[ResourceManager]: Searching for ar2112... ar2112.mos...[chitin.key]
[ResourceManager]: Searching for ar2112.bcs...[Override]
[ResourceManager]: Searching for ar2112LM... ar2112LM.bmp...[chitin.key]
[ResourceManager]: Searching for ar2112SR... ar2112SR.bmp...[chitin.key]
[ResourceManager]: Searching for ar2112HT... ar2112HT.bmp...[chitin.key]
Loading regions
Loading containers
Loading doors
Loading spawnpoints
Loading actors
[ResourceManager]: Searching for arundel.cre...[chitin.key]
[ResourceManager]: Searching for kuarund.bcs...[chitin.key]
[ResourceManager]: Searching for belbye.itm...[chitin.key]
[ResourceManager]: Searching for kuarund.bcs...[chitin.key]
Loading animations
Loading entrances
Loading variables
Loading ambients
Loading automap notes
[ResourceManager]: Searching for ar2112.ini...[NOT FOUND]
Loading traps
Loading tiles
Loading explored bitmap
Loading wallgroups
[GameScript]:  MoveBetweenAreas: Dynaheir to ar2112 [241.314] face: 10
[ResourceManager]: Searching for defsound.2da...[GemRB Override]
[GameScript]:  MoveBetweenAreas: Yoshimo to ar2112 [241.314] face: 10
[ResourceManager]: Searching for defsound.2da...[GemRB Override]
[GameScript]:  MoveBetweenAreas: Anomen to ar2112 [241.314] face: 10
[ResourceManager]: Searching for defsound.2da...[GemRB Override]
[GameScript]:  MoveBetweenAreas: Jaheira to ar2112 [241.314] face: 10
[ResourceManager]: Searching for defsound.2da...[GemRB Override]
[GameScript]:  MoveBetweenAreas: Korgan to ar2112 [241.314] face: 10
[ResourceManager]: Searching for defsound.2da...[GemRB Override]
[GameScript]:  MoveBetweenAreas: Keldorn to ar2112 [241.314] face: 10
[ResourceManager]: Searching for defsound.2da...[GemRB Override]
[ResourceManager]: Searching for defsound.2da...[GemRB Override]
[ResourceManager]: Searching for CGUI1060.chu...[Override]
[ResourceManager]: Searching for marusd.bam...[chitin.key]
[GameScript]: Unknown Action: 183 multiplayersync()
[ResourceManager]: Searching for DARUNDEL.dlg...[Override]
[ResourceManager]: Searching for class.ids...[chitin.key]
[ResourceManager]: Searching for race.ids...[Override]
[ResourceManager]: Searching for alignment.ids...[chitin.key]
Displaying string on: ARUNDEL
[ResourceManager]: Searching for maru.2da...[ERROR]
[ResourceManager]: Searching for CGUI1060.chu...[Override]
[ResourceManager]: Searching for CGUI1060.chu...[Override]
[ResourceManager]: Searching for guwbtp38... guwbtp38.mos...[Override]
[CHUImporter]: Cannot Load BackGround, skipping
[ResourceManager]: Searching for CGUI1060.chu...[Override]
[ResourceManager]: Searching for guwbtp18... guwbtp18.mos...[Override]
[CHUImporter]: Cannot Load BackGround, skipping
[ResourceManager]: Searching for clik2con.bam...[chitin.key]
[ResourceManager]: Searching for CGUI1060.chu...[Override]                                                                       

the same log from android's alogcat, this part is repeated for 7 times:

I/GemRB (3322): ResourceManager: Searching for
I/GemRB (3322): [GemRB Override]
I/GemRB (3322): ResourceManager: Searching for
I/GemRB (3322): [GemRB Override]
I/GemRB (3322): ResourceManager: Searching for
I/GemRB (3322): [chitin.key]
I/GemRB (3322): ResourceManager: Searching for
I/GemRB (3322): [chitin.key]
I/GemRB (3322): ResourceManager: Searching for
I/GemRB (3322): [chitin.key]
I/GemRB (3322): ResourceManager: Searching for
I/GemRB (3322): [chitin.key]
I/GemRB (3322): ResourceManager: Searching for
I/GemRB (3322): [chitin.key]
I/GemRB (3322): ResourceManager: Searching for
I/GemRB (3322): [chitin.key]
I/GemRB (3322): ResourceManager: Searching for
I/GemRB (3322): [GemRB Override]
I/GemRB (3322): ResourceManager: Searching for
I/GemRB (3322): [chitin.key]
I/GemRB (3322): ResourceManager: Searching for
I/GemRB (3322): BIFImporter:
I/GemRB (3322): [ERROR]
I/GemRB (3322): Map:

my config file (the same on desktop and android):

GameType=how
GameName=Baldur's Gate 2
Width=1024
Height=600
Bpp=16
Fullscreen=0
TooltipDelay=500
AudioDriver = none
CaseSensitive=1
GUIEnhancements = 1
SkipIntroVideos=1
GamePath=./
CD1=./
CD2=./CD2/
CD3=./CD3/
CachePath=./Cache/

Files of games installation, the same on desktop and android (ls -lhR output, very long): http://pastebin.com/Y1nVPesL

 

Maybe you can give some advice? Thanks in advance!

Link to comment

Same problem output on curent git build (fab3b3f7c7afa7a00b6cbdac5bd70641b509afd8):

I/GemRB   ( 8747): Searching for savegame.2da...
I/GemRB   ( 8747): [GemRB Override]
I/GemRB   ( 8747): Searching for defsound.2da...
I/GemRB   ( 8747): [GemRB Override]
I/GemRB   ( 8747): Searching for hmf2_s... 
I/GemRB   ( 8747): [chitin.key]
I/GemRB   ( 8747): Searching for dmf_s... 
I/GemRB   ( 8747): [chitin.key]
I/GemRB   ( 8747): Searching for hff_s... 
I/GemRB   ( 8747): [chitin.key]
I/GemRB   ( 8747): Searching for dmc_s... 
I/GemRB   ( 8747): [chitin.key]
I/GemRB   ( 8747): Searching for emw_s... 
I/GemRB   ( 8747): [chitin.key]
I/GemRB   ( 8747): Searching for hfw_s... 
I/GemRB   ( 8747): [chitin.key]
I/GemRB   ( 8747): Searching for chmw3g11.bam...
I/GemRB   ( 8747): [chitin.key]
I/GemRB   ( 8747): Searching for defsound.2da...
I/GemRB   ( 8747): [GemRB Override]
I/GemRB   ( 8747): Searching for ar2112.are...
I/GemRB   ( 8747): [chitin.key]
I/GemRB   ( 8747): Searching for ar2112.wed...
I/GemRB   ( 8747): Cannot write ./cache/\ar210c.bif.
I/GemRB   ( 8747): [ERROR]
I/GemRB   ( 8747): Invalid map: ar2112

Problem is much clear now. Desktop linux can write "./cache/\ar210c.bif" (it exists in game files in previous post), but android cannot. Maybe it's a typo in source code?

Link to comment
Are you positive that ./cache is a writable directory?

Yes, it's writeable, and GemRB also can write to it (so game works fine until Kuldahar)

Do you imply that android may not be able to handle the '/\' part in the path?

I haven't know about it earlier, seems it's true.

Default file browser don't allow to put \ in file name. Other browsers allow, but name not updated on disc. From console I got:

$ ls
foo
$ mv foo bar
$ ls
bar
$ mv bar \bar
$ ls
bar
$ mv bar \\bar # think maybe some escaping needed
failed on 'bar' - Invalid argument

Also googled this iissue - http://code.google.com/p/android/issues/detail?id=8779

At least our logging is better now.

Yes, logging really helps now!

Link to comment

Archived

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

×
×
  • Create New...