maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Games (https://talk.maemo.org/forumdisplay.php?f=12)
-   -   Wesnoth for N900? (https://talk.maemo.org/showthread.php?t=41040)

chenliangchen 2010-01-17 15:40

Wesnoth for N900?
 
The battle for Wesnoth was one of the best games on the N810/N800. Is it possible to keep the project and re-post it on N900?

Love Wesnoth...:)

warpstalker 2010-01-17 17:10

Re: Wesnoth for N900?
 
Yeah Wesnoth is awesome, why didn't I notice this issue?

chenliangchen 2010-01-17 17:19

Re: Wesnoth for N900?
 
And the N900's hardware is much powerful than the N8x0, we should expect it run smoothly on Maemo5. (Even it is very smooth on N810 already.)

And the online multiplayer would be supported. :-)

damnshock 2010-01-18 18:09

Re: Wesnoth for N900?
 
I would love to have this game on my N900. It is actually the only game I play...

chenliangchen 2010-01-20 14:36

Re: Wesnoth for N900?
 
Any chance to get it?

The file is not even in the garage.

fiferboy 2010-01-20 14:48

Re: Wesnoth for N900?
 
I worked a bit on Wesnoth for N8x0. I did a test compile with some of the changes Glenn Ditchfield (the original maemo Wesnoth maintainer) did, and got it to run in scratchbox, so it is definitely doable.

There are some issues with fremantle and SDL programs (such as not being able to use the top left corner) that may have been resolved with the PR1.1 firmware. I will do another test compile and check.

I can't promise fully polished packages, but I will see what I can do as a stop-gap measure. I want to play Wesnoth on the N900 too!

damnshock 2010-01-20 16:29

Re: Wesnoth for N900?
 
Quote:

Originally Posted by fiferboy (Post 484323)
I worked a bit on Wesnoth for N8x0. I did a test compile with some of the changes Glenn Ditchfield (the original maemo Wesnoth maintainer) did, and got it to run in scratchbox, so it is definitely doable.

There are some issues with fremantle and SDL programs (such as not being able to use the top left corner) that may have been resolved with the PR1.1 firmware. I will do another test compile and check.

I can't promise fully polished packages, but I will see what I can do as a stop-gap measure. I want to play Wesnoth on the N900 too!

Make sure to contact me if I can help in some way ;)

gibrovacco 2010-01-23 08:37

Re: Wesnoth for N900?
 
Quote:

Originally Posted by damnshock (Post 484511)
Make sure to contact me if I can help in some way ;)

Hi, sorry for replying late. I'm currently attempting to port wesnoth 1.6.5 to Maemo5.

I've already some .deb ready and the debian files, I'll upload something in the official repos (https://garage.maemo.org/plugins/scm...wesnoth-1.6.5/) hopefully this week end.

I've not uploaded anything so far because of a nasty segfault right after starting the app on N900 :(

chenliangchen 2010-01-24 11:02

Re: Wesnoth for N900?
 
Many many thanks!! Looking forward to it!

mannakiosk 2010-01-26 20:03

Re: Wesnoth for N900?
 
Yes! Awesome game.

(Tip: Anyone who's at all into strategy with rpg elements but doesn't yet know about Wesnoth should check it out for their linux, macosx or windows (or other) platform while we await the port to maemo5.)

wesnoth.org

gibrovacco 2010-01-27 18:28

Re: Wesnoth for N900?
 
Some news, not that good but anyway news ;). I managed to compile and start execution of wesnoth on N900. Thanks to the great help Glen has given, after compilation all the campaings can be installed as a separate .deb as for Diablo. Unfortunately I've not yet managed to get rid of the segfault during the parsing of the font.conf file. After a chat with Glen it appears this is due to the missing dejavu font on Fremantle.. I'll now attempt to give it a shot and see if it works.

P.S. I've uploaded the debian folder to the official maemo Wesnoth project, but no debian packages so far.

chenliangchen 2010-01-30 20:32

Re: Wesnoth for N900?
 
Thanks for the hard job again! :)

Laughing Man 2010-01-30 20:51

Re: Wesnoth for N900?
 
There were two implementations on Diablo. One you installed, and one you ran from an image file. I believe the image file approach ran with less issues so you may want to look into that (track down the guy who did it, etc..)

chenliangchen 2010-01-31 07:57

Re: Wesnoth for N900?
 
The image file is done by Pipeline. But it required ext2run, I din't know how to launch on N900. It worked well on N810.

gibrovacco 2010-02-03 18:16

Re: Wesnoth for N900?
 
Unfortunately I'm still stuck with this segfault, occurring in the standard c++ library.. I'm starting to guess we've some ABI issues between scratchbox and the N900.

dracflamloc 2010-02-05 21:32

Re: Wesnoth for N900?
 
Just got myself a n900 today! If this could run on it, my bliss would be complete!

SavageD 2010-02-05 21:37

Re: Wesnoth for N900?
 
segfault? If I'm not mistaken, isn't that a syntax error? seems like it's a simple problem you have...anyways appreciate your work and I hope you get through....cheers

gibrovacco 2010-02-06 15:47

Re: Wesnoth for N900?
 
Actually it's a little more complex, btw thanks for the hint. I just realized I've a really outdated scratchbox and this may be the cause for the ABI breach.. basically after upgrading ubuntu the entry for scratchbox/maemo SDK repos has been removed from sources.list.. Let's try and see what happens after a full upgrade

stone17 2010-02-06 16:18

Re: Wesnoth for N900?
 
You can already run wesnoth in easy debian. However, the wesnoth windows is to large and cant be resized. Getting to the menubuttons is quite hard and makes it unplayable.

Cpasjuste 2010-02-06 18:29

Re: Wesnoth for N900?
 
well, i did port it today gibrovaco and it work perfectly with music and all. its my first work on maemo (received my n900 today!) so i would need help to show it in the application menu and make the deb package if possible :)

dracflamloc 2010-02-07 04:57

Re: Wesnoth for N900?
 
that is awesome news!

dracflamloc 2010-02-07 08:24

Re: Wesnoth for N900?
 
just figured out if you install wesnoth via easy debian, you can run it like so:
debbie wesnoth --smallgui -f

Works great so far!

gibrovacco 2010-02-07 12:02

Re: Wesnoth for N900?
 
Quote:

Originally Posted by Cpasjuste (Post 513374)
well, i did port it today gibrovaco and it work perfectly with music and all. its my first work on maemo (received my n900 today!) so i would need help to show it in the application menu and make the deb package if possible :)

That's a great new.. maybe I'm really unlucky but I continue to get the damned segfault in libstdc++ when parsing the font config file. It would be interesting to know:

1) which version of wesnoth did you compile?
2) which libboost version have you used?
3) what's the configuration command line you used?
4) what did you copy on the N900 and in which folder?

If you feel brave enough to prepare a proper set of packages you may want to try and modify the following:

https://vcs.maemo.org/svn/wesnoth/br...-1.6.5-maemo5/

gibrovacco 2010-02-07 12:22

Re: Wesnoth for N900?
 
Just recompiled everything for FREMANTLE-X86 and it works perfectly in scratchbox + Xephyr. The issue must definitely be in the ARM target and this is another hint for an ABI compatiblity break..

Let's see if cpasjuste's infos can give us an help here.

chenliangchen 2010-02-07 12:40

Re: Wesnoth for N900?
 
Thank you! I'll wait for your version. Not familiar with easy debian... :)

gibrovacco 2010-02-07 16:33

Re: Wesnoth for N900?
 
I just found something more.. it appears libstdc++ on scratchbox appears to have Position Indipendent Code option enabled when built, but not the lib on the N900. I'll to recompile the lib (and thus the whole gcc) to get rid of this difference..

dracflamloc 2010-02-10 04:13

Re: Wesnoth for N900?
 
I didn't compile from scratch, just installed the easy debian package through synaptic. All works this way, except sound.

gibrovacco 2010-02-11 19:01

Re: Wesnoth for N900?
 
Well, if that works it's already a good way to play the game on the N900. I'm more interested in a native port (afaik easydeb is an emulator)

mikkov 2010-02-11 22:44

Re: Wesnoth for N900?
 
Quote:

Originally Posted by gibrovacco (Post 521684)
Well, if that works it's already a good way to play the game on the N900. I'm more interested in a native port (afaik easydeb is an emulator)

It's a chroot environment, but it's still a terrible hack from system integratoin point of view.

dracflamloc 2010-02-12 04:00

Re: Wesnoth for N900?
 
yea, agreed it'd be nice to have real integration

Cpasjuste 2010-02-12 10:04

Re: Wesnoth for N900?
 
i'm currently working on getting it on extra-devel repo, i do have some problem due to the big data package ( around 250MB ). Hope i can fix that soon, i let you know :)

2disbetter 2010-02-12 10:10

Re: Wesnoth for N900?
 
Quote:

Originally Posted by Cpasjuste (Post 522707)
i'm currently working on getting it on extra-devel repo, i do have some problem due to the big data package ( around 250MB ). Hope i can fix that soon, i let you know :)

Thanks man, keep us informed!

2d

chenliangchen 2010-02-12 13:46

Re: Wesnoth for N900?
 
libsdl-ttf2.0-0 is missing?

I'm so excited that wesnoth comes back again!

chenliangchen 2010-02-12 13:52

Re: Wesnoth for N900?
 
I installed libsdl-ttf2.0-0 via apt-get but is still says package missing? But it will be solved soon. :-)

Cpasjuste 2010-02-12 17:44

Re: Wesnoth for N900?
 
well, i did update wesnoth and wesnoth-data, it seems to work fine now :)

For people that are not aware, you can get it from extra-devel. It's totally optified and will take around 300Mb on the "opt" partition (home partition). If space is needed ( and for better in-game speed, because some textures seems slow to load from eMMC ) you can move the folder "/opt/maemo/usr/share/wesnoth" to an microSD card, then symlink it from the microSD to "/opt/maemo/usr/share/wesnoth".

Else, all seems to work well, i just disabled the editor. Maybe i should make my own thread ?

gibrovacco : just remove the "-O2" flag and your problem will be solved :)

chenliangchen 2010-02-12 18:00

Re: Wesnoth for N900?
 
Thank you sooo much! Awesome!!

It's working perfectly! :)

gibrovacco 2010-02-12 20:16

Re: Wesnoth for N900?
 
I compiled it without optimizations yesterday but I did not yet install it on the device until now. I guess it may be some optimization made with the libstdc++ on scratchbox, different than the one on the device.

soeiro 2010-02-12 20:31

Re: Wesnoth for N900?
 
Quote:

Originally Posted by Cpasjuste (Post 523414)
For people that are not aware, you can get it from extra-devel. It's totally optified and will take around 300Mb on the "opt" partition (home partition). If space is needed ( and for better in-game speed, because some textures seems slow to load from eMMC ) you can move the folder "/opt/maemo/usr/share/wesnoth" to an microSD card, then symlink it from the microSD to "/opt/maemo/usr/share/wesnoth".

Are you saying that it loads faster if it is on the external microSD card? That is interesting.

gibrovacco 2010-02-12 21:33

Re: Wesnoth for N900?
 
Quote:

Originally Posted by Cpasjuste (Post 523414)
well, i did update wesnoth and wesnoth-data, it seems to work fine now :)

For people that are not aware, you can get it from extra-devel. It's totally optified and will take around 300Mb on the "opt" partition (home partition). If space is needed ( and for better in-game speed, because some textures seems slow to load from eMMC ) you can move the folder "/opt/maemo/usr/share/wesnoth" to an microSD card, then symlink it from the microSD to "/opt/maemo/usr/share/wesnoth".

Else, all seems to work well, i just disabled the editor. Maybe i should make my own thread ?

gibrovacco : just remove the "-O2" flag and your problem will be solved :)

I've just downloaded and tested the packages, great work! Because of some problems, in my ideas that packaging still needs to be tuned:

- the "data" package is way too big: it takes ages to download & install.

- there are no dependencies between packages e.g. you can install the data without the game. Wesnoth icon will be present in the menu but, obviously, it cannot be executed.

- fonts are way too small: especially the characers' data.

- it's not following the previous maemo packaging (e.g. n810) or the Debian packaging (each campaing and music are separate packages).

As a starting point, I propose to re-build the packages using the wesnoth-1.6.5-maemo5 branch in the "battle for wesnoth" project at:

https://garage.maemo.org/plugins/scm...wesnoth-1.6.5/

And just disabling the infamous -O2 option ;)

dracflamloc 2010-02-13 03:10

Re: Wesnoth for N900?
 
Hey not bad! Sound works now =)

However... please include the multiplayer server!
Also, the keyboard input doesn't work for me


All times are GMT. The time now is 08:02.

vBulletin® Version 3.8.8