PDA

View Full Version : GemRB on IT feasible at all?


steelbutt
2007-11-26, 10:09
Hi,

has anyone tried to port this to OS2007/2008? For those that don't know what GemRB is: it's an OSS implementation of the infinity engine that was used to create the RPGs Baldur's Gate 1/2, Icewind Dale 1/2 and Planescape: Torment. I would love to play these on my tablet.

Thanks for any information,

Steelbutt

Khertan
2007-11-26, 11:03
This could be great ! :)

I ll try to compile source out of the box to see if it s would be easy :)

EDIT : It s require openal. I need to compile it.

EDIT : It's require now Python 2.3 Shared library ....

EDIT : Configure : ./configure PYTHON=/usr/bin/python2.5 : PASS

EDIT : Compile error

Variables.cpp: In member function `__POSITION* Variables::GetNextAssoc(__POSITION*, const char*&, ieDword&) const':
Variables.cpp:81: warning: cast from `__POSITION*' to `Variables::MyAssoc*' increases required alignment of target type
make[4]: *** [Variables.lo] Error 1
make[4]: Leaving directory `/home/maemo/gemrb-0.2.9/gemrb/plugins/Core'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/maemo/gemrb-0.2.9/gemrb/plugins'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/maemo/gemrb-0.2.9/gemrb'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/maemo/gemrb-0.2.9'
make: *** [all] Error 2

I don't have the time to investigate more.
sorry

ArnimS
2007-11-26, 12:50
GemRB is not yet playable. Check back in 2008.

ArnimS
2008-01-22, 21:29
Khertan, go into the Variables.cpp directory and pull out the -Werror then it'll skip over that error.

Same error occurs in a few other places. Remove -Werror in
--------------------------
plugins/GUIScript/Makefile
plugins/SDLVideoDriver/Makefile
plugins/ACMImporter/Makefile
plugins/BMPImporter/Makefile
plugins/CREImporter/Makefile
plugins/MVEPlayer/Makefile

seems the n800 can do unaligned reads (but this is slow). So this is a TODO...

http://pupnik.de/Gemrb_Screen1_1280.jpg
http://pupnik.de/GemRB_800x480_XL.jpg
edit; a lot of stuff works, but there are a pile of bugs to squash. like for e.g. your character starts out the game stuck in the cage.

Michiel
2008-01-24, 08:31
Wow, this would be great!

Baldurs Gate 2 and Throne of Bhaal must have been one of the best games I've ever played. Hours of fun.
How did you get all the gamedata on the device? I remember the installed game being something like 2 GB, would it work well with our super-slow memory cards?

Bundyo
2008-01-24, 08:59
From Wikipedia:
SDHC
8GB SDHC cards
8GB SDHC cards

An extension of the SD standard, SDHC (Secure Digital High Capacity, SD 2.0), allows capacities in excess of 2 GB. SDHC cards are often formatted with the FAT32 file system, which supports partition sizes greater than 2 GB.[12] It uses the same form factor as SD, but the SD 2.0 standard in SDHC uses a different memory addressing method (sector addressing vs byte addressing), thus theoretically reaching a maximum capacity of up to 2048GB. SDHC cards only work in SDHC compatible devices, but standard SD cards work in both SD and SDHC devices. The SDHC trademark is licensed to ensure compatibility.[13]

SDHC cards have SD Speed Class Ratings defined by the SD Association. The SD Speed Class Ratings specify the following minimum sustained write speed on to empty SDHC cards:

* Class 2: 2 MB/s
* Class 4: 4 MB/s
* Class 6: 6 MB/s


Refer:
http://www.sdcard.org/about/speed_class/

Nanocore
2008-01-24, 18:42
This certainly looks impressive. I see you haven't gotten to play it, but I am sure those are fairly small hurdles. But, do you have some speculation as to the playing speed? Will it be fast enough to be enjoyable? If so, then I will head out and see if I can find it in the bargain bin or used software store and pick it up.

ArnimS
2008-01-25, 00:06
This certainly looks impressive. I see you haven't gotten to play it, but I am sure those are fairly small hurdles. But, do you have some speculation as to the playing speed?

You can see a few minutes of play here:

http://www.youtube.com/watch?v=UUwUDoC3vc4
[ GemRB Baldur's Gate 2 on on Nokia N810 ]

Wow, this would be great!

Baldurs Gate 2 and Throne of Bhaal must have been one of the best games I've ever played. Hours of fun.
How did you get all the gamedata on the device? I remember the installed game being something like 2 GB, would it work well with our super-slow memory cards?

It's about 2 GB. I used netcat to copy the whole SoA tree onto kingston 4GB Class 6 miniSD but copying over usb would probably be safer, certainly faster.

Strongly encourage anyone interested to jump in on this. I've found one guy to help implement a 800x480 mode. I'll try to iron out some UI issues this year.

Nanocore
2008-01-25, 05:15
Thank you for that, I must say that is quite impressive and certainly appears very playable. Definitely worth picking up . Since I didn't see your hand and stylus I assume that you were using a bluetooth mouse? Will it work with the stylus?

Bundyo
2008-02-20, 15:45
I saw in the comments in Youtube that the guy didn't get the sound to work. However i can confirm it works - you only need to tell openal to use alsa, not oss (which is default).

Also to confirm that it works with stylus.

Now only needs right click and 800x480, i'll try to fix something up.

ArnimS
2008-02-20, 16:37
Openal sound is a problem right now with gemrb, warzone2100 and ur-quan masters (which can use sdl sound as alternate).

cat /etc/openalrc

(define devices '(alsa esd sdl native))
#define alsa-out-device "default")
define alsa-out-device "hw:0,0")

Not working here. What openal library are you using?

I built
libalut0_1.0.1-1_armel.deb
and
libopenal0a_0.0.8-4_armel.deb
with standard configure options
-----

Bundyo
2008-02-20, 18:07
I'm using libopenal 0.0.8 and libalut 1.1.0 built by me also with standard options.

i have .openalrc in /home/user with this content:

(define devices '(alsa sdl))
(define alsa-out-device "default")

but this would also work:

(define devices '(alsa))
(define alsa-out-device "default")

However, i think when i tried with native at the end it didn't work (maybe it tried first with native which in linux is by default oss and we don't have oss in IT :)

Ur-quan masters i didn't try with openal, but Warzone doesn't want to work :(

GemRB doesn't require alut though.

EDIT: I'm using the last GemRB 0.3.0...

Bundyo
2008-02-20, 20:04
Just turned on DrawFPS... Interestingly enough in the opening of ToB i'm getting 22-30 FPS...

ArnimS
2008-02-20, 22:37
Thanks. I rebuilt gemrb and openal and tried the default device settings in ~/.openalrc but i am still not getting sound (gemrb happily claims to be playing music).

Could you post your openal library .deb somewhere please?

Regarding GemRB python: gemrb fails to find python on the build system. I notice that the automake only searches for 2.3 I ended up using system python 2.5 and i encountered a showstopper bug (on sourceforge) when creating a sorceror character. How did you handle python? which version and is it linked-in? Or are you using standard maemo python build?

Regarding ToDOs: Perhaps different priorities are in order

1) The biggest ui annoyance is that stylus taps get interpreted as screen-drags. 90% of the time when i command a character or my party to go somewhere, the tap gets interpreted as a drag because it's not precise enough. We need a threshold of a few pixels motion before a drag is activated.

2) I don't think 800x480 is that simple (from discussions with the gemrb developers). There is one person who has been working on that for olpc i think and has some modified resources. These would not be redistributable though, so a programmatic solution that pastes together a hybrid of 800x600 and 640x480 graphics might be one solution. Another would be to leave the playscreen border/menu as-is and incorporate command lists for the thumbs to the left and right of the 640x480 window - to implement onscreen keyboard shortcuts. Then a fullscreen 800x480 mode could be activated just for cases where the border menus are toggled off.

Bundyo
2008-02-20, 22:54
I'm using python2.5, this way:

export PYTHON=/usr/bin/python2.5
./configure --prefix=usr
make
dpkg-buildpackage -rfakeroot -nc

I'm using -nc with the buildpackage to make it not rebuild the source (since it is doing it wrong, i guess python is the problem)... So here is the last deb and the openal (no menus and fancy stuff):

GemRB 0.3.0
http://www.mediafire.com/?6tleazjtdln

OpenAL (goes in /usr/lib, if someone else decides to test :)
http://www.mediafire.com/?ec5jlp3czof

ArnimS
2008-02-20, 23:34
still no sound. my hamster is telling me to go into beserker mode.

how about someone else give it a shot.

Bundyo
2008-02-20, 23:38
Later i'll restart in windows and will make you a movie with sound :) My webcam doesn't have drivers for linux :(

If someone else is going to try it:

1. Install the deb
2. Rename /usr/etc/GemRB.cfg.sample to without .sample and put it in /home/user/.gemrb/
3. Edit the file to pinpoint your BG2 full install (use full path for the guiscripts dir), to choose a resolution (start with 640x480x16) and to choose the game type (bg2 for the original, tob for the expansion). You can try with other games too, but most work has gone to BG2/TOB.
4. Extract openal to your /usr/lib and make sure you have the symlinks to the file.
5. Create .openalrc in /home/user/ and fill it with:

(define devices '(alsa))
(define alsa-out-device "default")

Leave a new line at the end just in case.

Start GemRB as user. If you want as root, replace /home/user with /root in the above instructions.

Bundyo
2008-02-21, 00:06
Okay, stylus drag is registered outside of a 50x50 area. Much better now.

http://www.mediafire.com/?8sjhhwbbhsy

ArnimS
2008-02-21, 05:50
Excellent. I'm going to stop mucking with this.

Gemrb is very unfinished, compared to other ports discussed here in gaming, so
i think it might be more appropriate to continue development chat over in the development thread.

http://www.internettablettalk.com/forums/showthread.php?t=16947

silvermountain
2009-07-23, 02:03
I saw a comment from the author on his youtube post (http://www.youtube.com/watch?v=UUwUDoC3vc4) just two months ago...so...maybe there are still hoped for BG2 on NIT :)

If anyone here is clued into the Baldur's Gate development I'd love to beta test any release. I loved that game and actually still got in installed on this laptop ;-)

silvermountain
2009-07-23, 02:09
Also, this game mentions that it may run on Maemo...I remember it fondly :)

http://www.happypenguin.org/news?nsearch=maemo&Go=Go

Bundyo
2009-07-23, 04:37
JA2 runs on Maemo. Search more :)

silvermountain
2009-07-23, 04:43
JA2 runs on Maemo. Search more :)

Ok...off searching I go... :)

EDIT: Found this: http://talk.maemo.org/showthread.php?t=16138