maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Games (https://talk.maemo.org/forumdisplay.php?f=12)
-   -   [Almost there] Running fheroes2 on Harmattan (https://talk.maemo.org/showthread.php?t=80000)

chenliangchen 2011-11-15 03:45

[Almost there] Running fheroes2 on Harmattan
 
The fheroes2 is almost working on N9(50)

I installed the fheroes2 0.5 from fremantle, and manually copied the data file in /opt/fheroes2

When I run from terminal, the screen is completey black. But the music is playing. Occationaly I can see the "fheroes2 setting", but the rest ae black...

I tried to mod the cfg. file but it was still black with music.

Anyone have any ideas?:D

Here is my cfg file.

Code:

# Default config fheroes2.cfg options:
#
# path to directory data
data = /opt/fheroes2/files/data
#
# path to directory maps, you can set few maps
# maps = maps
maps = /opt/fheroes2/files/maps
#
# use alternative resource
# alt resource = off
#
# sound: on off
sound = on
#
# music: on,midi,cd,ext,off
music = ext
#
# sound volume: 0 - 10
# sound volume = 6
#
# music volume: 0 - 10
# music volume = 6
#
# external play music command:
# playmus command = ""
#
# video mode (640x480, 800x576, 1024x768, 1280x1024 or other divisible 32)
videomode = 854x480
#
# current animation speed: 0 - 10
# animation = 6
#
# fullscreen: on off (F4 switch)
fullscreen = on
#
# debug
debug = 0
#
# use ttf fonts
# unicode = off
#
# force lang
# lang = en
#
# font name (only with unicode = on)
# fonts normal = dejavusans.ttf
# fonts small = dejavusans.ttf
# fonts normal size = 15
# fonts small size = 10
#
# fonts render engine: (blended/solid) (only with unicode = on)
# fonts render = solid
#
# network port:
# port = 5154
#
# pocket pc emulation (set auto on for videomode < 640x480)
pocket pc = off
#
# pocket pc options:
# tap delay = 1050
# pointer offset x = 0
# pointer offset y = 0
#
# virtual key mapping:
# key_273 = '.'
# key_275 = '/'

Thanks...

Radicalz38 2011-11-15 04:16

Re: [Almost there] Running fheroes2 on Harmattan
 
Hi! Did you also manage to copy all the needed dependencies? I don't have any n9 so can't help you but base on your explanation seems like sdl dependencies aren't installed. Could you by chance run fheroes from terminal so error outputs are shown?

BTW dependencies are here:
Depends:
libsdl1.2, libsdl-mixer1.2, libsdl-image1.2, libsdl-net1.2, libsdl-ttf2.0-0, libogg0

Make sure all of them are on n9 too before running fheroes.

HtheB 2011-11-15 05:01

Re: [Almost there] Running fheroes2 on Harmattan
 
Quote:

Originally Posted by chenliangchen (Post 1123731)
When I run from terminal, the screen is completey black. But the music is playing.

That's all I need in this game... The music (especially the "Grass theme" ) is just damn awesome!

(They remixed the Grass theme in the newest HOMM6 )

chenliangchen 2011-11-15 14:27

Re: [Almost there] Running fheroes2 on Harmattan
 
Quote:

Originally Posted by Radicalz38 (Post 1123738)
Hi! Did you also manage to copy all the needed dependencies? I don't have any n9 so can't help you but base on your explanation seems like sdl dependencies aren't installed. Could you by chance run fheroes from terminal so error outputs are shown?

BTW dependencies are here:
Depends:
libsdl1.2, libsdl-mixer1.2, libsdl-image1.2, libsdl-net1.2, libsdl-ttf2.0-0, libogg0

Make sure all of them are on n9 too before running fheroes.

Hi! I can confirm that all the dependencies are installed. I checked with aptget.

I'll capture the terminal info later...

Update: Can't find any image server for the screenshot...

chenliangchen 2011-11-15 14:30

Re: [Almost there] Running fheroes2 on Harmattan
 
Quote:

Originally Posted by HtheB (Post 1123741)
That's all I need in this game... The music (especially the "Grass theme" ) is just damn awesome!

(They remixed the Grass theme in the newest HOMM6 )

Yes the grass theme is my favourite. And HOMM2 music is the best to me in all the series.

I bought two copies of heroes2, one for game and one was for music in CD player.

BTW, the remixed grass theme was not included in the sound track CD comes with the limited edition of HOMM6...:rolleyes:

shallimus 2011-11-15 14:37

Re: [Almost there] Running fheroes2 on Harmattan
 
I'd love to have Heroes 2 on my N9. I wonder if it drains the battery like it did on the N900 (just my observation, but it seemed like it kept chewing up CPU cycles even when minimised).

I'm going to have a go at getting this working too. This was one of the few things I did on the N900 where the stylus really came into its own; I wonder how easy (or otherwise)

OT: After the big pile of isometric 3D meh that was HoMM 4 I sorta lost interest in the series. HoMM 2 was the greatest in terms of look and feel, and 3 was the best gameplay (for me, anyway). I'll have to check out 5 and 6 just in case they stopped adding stupid 3D stuff and went back to the gameplay which made the series great in the first place. Anyone have any thoughts on this?

Even more OT: anyone else keep hearing HoMM sound effects in cartoons, movies, radio ads etc. etc. (like the treasure sound, the dragon sound, the victory sound and so on?) I realise they might be from some licensed/free sound effects library, but to me they'll always be "the sounds from Heroes".

shallimus 2011-11-15 20:08

Re: [Almost there] Running fheroes2 on Harmattan
 
One thing I notice while reading the cfg you posted:
Code:

# video mode (640x480, 800x576, 1024x768, 1280x1024 or other divisible 32)
videomode = 854x480

854 is not divisible by 32 - perhaps this is important for the way the game handles scaling.

Perhaps you should try changing 854 to 832 (which is 26*32)?

chenliangchen 2011-11-16 00:54

Re: [Almost there] Running fheroes2 on Harmattan
 
Quote:

Originally Posted by shallimus (Post 1124046)
One thing I notice while reading the cfg you posted:
Code:

# video mode (640x480, 800x576, 1024x768, 1280x1024 or other divisible 32)
videomode = 854x480

854 is not divisible by 32 - perhaps this is important for the way the game handles scaling.

Perhaps you should try changing 854 to 832 (which is 26*32)?

I tried both 800x480 and 640x480 before, still black...

chenliangchen 2011-11-16 01:01

Re: [Almost there] Running fheroes2 on Harmattan
 
This free engine should be written in opengl? So we have to make it into opengles in order to see the video output. But mece should already done it in this package. I can't understand why still black...

chenliangchen 2011-11-19 16:19

Re: [Almost there] Running fheroes2 on Harmattan
 
Totay I changed data file (I was using heroes2 gold data file before) and now I swapped with the demo file it was still black. Later I'll try with full screen off......

chenliangchen 2011-11-20 21:04

Re: [Almost there] Running fheroes2 on Harmattan
 
Tried all possibilities. While disable full screen it shows status bar and others remains black. So I guess it's not problem of config. I need someone to look at the built. Maybe it's the sdl and video coding... @mece can you give us some suggestions pls? :)

mece 2011-11-20 21:34

Re: [Almost there] Running fheroes2 on Harmattan
 
hm I might have misread the first post? dId you insttall the deb from fremantle? tHat will not work due to them not being binary compatible (fremantle is softfp and harmattan is hardfp) so you will need to recompile for harmattan. Where did you get the libraries?

chenliangchen 2011-11-20 22:22

Re: [Almost there] Running fheroes2 on Harmattan
 
Quote:

Originally Posted by mece (Post 1126543)
hm I might have misread the first post? dId you insttall the deb from fremantle? tHat will not work due to them not being binary compatible (fremantle is softfp and harmattan is hardfp) so you will need to recompile for harmattan. Where did you get the libraries?

Thank you Mece. Mine is not going to work then.

I basicly install the deb for frementle and I install all the libsdls on terminal using apt-get. Recompile is needed...:)

chenliangchen 2011-12-19 16:38

Re: [Almost there] Running fheroes2 on Harmattan
 
I tried Ubuntu version but also got problems.

If someone can compile fheroes2 to harmattan as mece did for fremental I would donate $20 for that...

Any HOMM fan interested?

soleil 2011-12-19 17:02

Re: [Almost there] Running fheroes2 on Harmattan
 
I'm interested but i'm not a devlopper :(

chenliangchen 2011-12-19 20:07

Re: [Almost there] Running fheroes2 on Harmattan
 
Quote:

Originally Posted by soleil (Post 1139552)
I'm interested but i'm not a devlopper :(

Shall we have a partition for that?

soleil 2011-12-20 13:23

Re: [Almost there] Running fheroes2 on Harmattan
 
Quote:

Originally Posted by chenliangchen (Post 1139627)
Shall we have a partition for that?

What can I help ? :)

ink 2012-01-07 10:42

Re: [Almost there] Running fheroes2 on Harmattan
 
4 Attachment(s)
Good news, fellows!
I've tried to build fheroes2 for harmattan too and have actually managed to do it, see attached screenshots.

But I have a few questions:
1) Touchscreen doesn't work properly - mouse pointer is displaced a bit and has some post touch movement effect.
I haven't touched any original source code, do I need this for fix? I've played with config file but still no luck. I'm not familiar with SDL input system.
2) on the second screenshot you can see these graphic bugs right? there's something wrong with animation
3) Sometimes some sounds (like constructing a new building in town) are not played just once but looped.
I had some difficulties with SDL mixer (error linking some ogg related libs, maybe you know what package I need?) and as it was an optional feature I built game without it for now. Could this cause this problem?

As soon as I manage to build something pretty stable and nice I'll provide it on my meego apps page

ink 2012-01-09 21:43

Re: [Almost there] Running fheroes2 on Harmattan
 
For some reason my previous message has not been posted.
I've managed to build fheroes2 for Harmattan! :)

Though there are several issues left, the biggest one is graphics artifacts on redraw. @mece, did you have this problem on N900?
The package is not available now, but I think it will be soon...

This is brief description of what I have done with a couple of screenshots
http://ink.ho.ua/meego.html#3

soleil 2012-01-17 10:12

Re: [Almost there] Running fheroes2 on Harmattan
 
Check this thread :
http://forum.meego.com/showthread.php?t=5595
It's running now

chenliangchen 2012-01-17 10:52

Re: [Almost there] Running fheroes2 on Harmattan
 
Thanks so much!

ink 2012-01-17 11:30

Re: [Almost there] Running fheroes2 on Harmattan
 
Quote:

Originally Posted by chenliangchen (Post 1151757)
Thanks so much!

You're welcome =)
If someone wants to donate please purchase Pedometer from Nokia Store (another application of mine).


All times are GMT. The time now is 10:50.

vBulletin® Version 3.8.8