maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Games (https://talk.maemo.org/forumdisplay.php?f=12)
-   -   [Maemo5] Free Heroes 2 - Heroes of Might and Magic 2 engine (https://talk.maemo.org/showthread.php?t=50851)

mece 2010-04-23 18:28

[Maemo5] Free Heroes 2 - Heroes of Might and Magic 2 engine
 
Free Heroes 2 is now in extras-devel!

http://i.imgur.com/09SfF.png

We'll use this thread for bugreporting at first.

Instructions:

Install the program and copy your data and maps files (under DATA and MAPS folders in the original game) to /opt/fheroes2/files/data
and the map files under /opt/fheroes2/files/maps

You can have them elsewhere if you modify the fheroes2.cfg to point to the correct location.

Please note that Campaign mode and Kingdom view is not implemented in the upstream, so we'll have to wait until the developer implements those.

This is due to the fact that There is a demodata package coming to extras, with the demo data automagically installed.

if you don't have the game, you can download the demo data package from extras-devel, and be able to play it right away.

the config and save files are stored under ~/.fheroes2/fheroes2.cfg and ~/.fheroes2/save/
so if you have save files from playing the earlier versions, you can copy them there and they will (should) show up in the game.

Gameplay:
It seems to work very well on my device at least. Right click is mapped to ctrl-click, or you can enable longclick by changeing the line
# pocket pc = off
to
pocket pc = on
in the fheroes.cfg file mentioned above.



Big thank yous go out to MohamamdAG for the packaging assistance and Frank Banul for providing icon and desktop file.

PS: if you installed build 6 or earlier, you will have to modify your fheroes2.cfg file, or copy the new fheroes2_default.cfg file over it to get the correct data and maps paths for the demodata package. reinstalling will not automatically replace your cfg file.

The packages are optified. They will however take up 5786 bytes of data on your rootfs.


****
To install the data files from your original game you need to transfer the MAPS and DATA folders to your phone.

You then need to copy the contents from MyDocs to opt:
I have my data stored under Mydocs/Games/HOMM2/
so I would write the following to copy them to the proper place:
Code:

root
cp /home/user/MyDocs/games/HOMM2/MAPS/* /opt/fheroes2/files/maps/
cp /home/user/MyDocs/games/HOMM2/DATA/* /opt/fheroes2/files/data/


drums4life687 2010-04-23 19:45

Re: [Maemo5] Free Heroes 2 - Heroes of Might and Magic 2 engine
 
So i followed these instructions however whenever I try to start the game a few windows open then close right away. No game data appears to load and the windows are black for the short time they are open.

I tried uninstalling and reinstalling but still have the same problem. Using version, 0.5-maemo-7. Any insight?

mece 2010-04-23 19:58

Re: [Maemo5] Free Heroes 2 - Heroes of Might and Magic 2 engine
 
There is now a new package in extras-devel which is called fheroes2-demodata, which contains demodata for fheroes2. It contains one map for the game.

You can just install the demodata package if you want to play the game right away, the actual game will be installed with it.

if you have the original files, then just install the fheroes2 package and copy the data and maps files to /opt/fheroes2/files/data and /opt/fheroes2/files/maps.

You can also move the data files to MyDocs if you want, but then you have to modify the fheroes2.cfg file in ~/.fheroes2/ to point to the new location.

Here's a screenshot from the demo:
http://i.imgur.com/oNReu.png

mece 2010-04-23 20:00

Re: [Maemo5] Free Heroes 2 - Heroes of Might and Magic 2 engine
 
Quote:

Originally Posted by drums4life687 (Post 624945)
So i followed these instructions however whenever I try to start the game a few windows open then close right away. No game data appears to load and the windows are black for the short time they are open.

I tried uninstalling and reinstalling but still have the same problem. Using version, 0.5-maemo-7. Any insight?

uninstall and delete the config file, and then reinstall. That should do it. Do you have the data files? Those are required. If you don't have them, download the demodata package.

EDIT the config file is /home/user/.fheroes2/fheroes2.cfg

usar 2010-04-23 21:06

Re: [Maemo5] Free Heroes 2 - Heroes of Might and Magic 2 engine
 
is it normal to see whole map opened in start?
also i always start with a super hero with some dragons.

ang 2010-04-23 22:34

Re: [Maemo5] Free Heroes 2 - Heroes of Might and Magic 2 engine
 
got music working. i uploaded the ogg files onto 4shared:

http://www.4shared.com/file/n4lWYGOi/homm2music.html

unzip these into your /fheroes2/files/music directory

edit your fheroes2.cfg file so that the line

music = on

says music = ext

you may also want to uncomment the music volume line and change it to 8, i found that to be about the right loudness.

mece 2010-04-23 22:37

Re: [Maemo5] Free Heroes 2 - Heroes of Might and Magic 2 engine
 
Quote:

Originally Posted by usar (Post 625086)
is it normal to see whole map opened in start?
also i always start with a super hero with some dragons.

No, it's not normal.. The
maps files need to be owned by user.
this will fix the problem:
I will patch the packages. Thanks for reporting.

[code]root
chown user /opt/fheroes2/files/maps
chown user /opt/fheroes2/files/maps/*

EDIT: New version (build #8) fixes this issue

Maalak 2010-04-23 22:39

Re: [Maemo5] Free Heroes 2 - Heroes of Might and Magic 2 engine
 
Thank you very much :)

I had a crash with the demo map while I was moving the hero on the map, but after a new trial with the true game maps, everything seemed ok.

Except that texts are damn small. I fear what it would have been if both screen and games were 800x600 instead of the "small" 640x480 :D

mece 2010-04-24 00:11

Re: [Maemo5] Free Heroes 2 - Heroes of Might and Magic 2 engine
 
Quote:

Originally Posted by Maalak (Post 625196)
Thank you very much :)

I had a crash with the demo map while I was moving the hero on the map, but after a new trial with the true game maps, everything seemed ok.

Except that texts are damn small. I fear what it would have been if both screen and games were 800x600 instead of the "small" 640x480 :D

you can change the size of the fonts if you modify the fheroes2.cfg file like this:
Code:

# 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

to
Code:

# use ttf fonts
unicode = on
#
# force lang
# lang = en
#
# font name (only with unicode = on)
fonts normal = dejavusans.ttf
fonts small = dejavusans.ttf
fonts normal size = 18
fonts small size = 12

Not as pretty, but easier to read.

kara_bass 2010-04-24 06:32

Re: [Maemo5] Free Heroes 2 - Heroes of Might and Magic 2 engine
 
You can do right click a lot easier )

in .cfg file
tap mode = on

then, long tap does right click :-)

p.s.: sorry for my english


All times are GMT. The time now is 20:04.

vBulletin® Version 3.8.8