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

mthmob 2010-04-24 06:54

Re: [Maemo5] Free Heroes 2 - Heroes of Might and Magic 2 engine
 
I can still see the entire map. Both updated to rls 8 and did chown user commands. Maybe its not fixed in the engine remake yet?

Btw tested music addon. works great.

mthmob 2010-04-24 07:06

Re: [Maemo5] Free Heroes 2 - Heroes of Might and Magic 2 engine
 
If i start up the game and go directly to play *standard game", half the time, theres no fog of war so the entire map is shown. And the other half of times, fog of war is there, no problem... thats wierd?

Update: after further testing its almost as if every second time it works and every other it dosent, as if the game modifies something every time it starts.. and what ever it modifies, its affecting fog of war.

mece 2010-04-24 08:05

Re: [Maemo5] Free Heroes 2 - Heroes of Might and Magic 2 engine
 
how interesting. It seems to work fine on my device. Are you using the demodata or full game data? If it's the latter, which map does this? or is it all maps?

janezek 2010-04-24 08:20

Re: [Maemo5] Free Heroes 2 - Heroes of Might and Magic 2 engine
 
first of all i want to thank for heroes 2! i played it yesterday for 2 hours and it is the same good experience as on PC!

but i have a problem this morning HOME was full, but before heroes 2 i had only 800mb, i am not saying it is heroes2 related, but how can i make shure it isnt?

Kristijan

mthmob 2010-04-24 08:28

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

Originally Posted by mece (Post 625562)
how interesting. It seems to work fine on my device. Are you using the demodata or full game data? If it's the latter, which map does this? or is it all maps?

Its the full game files, taken directly from retail disc.

It happens on all maps, and its completly random. Sometimes it works several times in a row, other times its the opposite. Wich makes no sense :)

should i try and enable debug mode? dont know how it works though, but it might show something.

mece 2010-04-24 08:35

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

Originally Posted by janezek (Post 625572)
first of all i want to thank for heroes 2! i played it yesterday for 2 hours and it is the same good experience as on PC!

but i have a problem this morning HOME was full, but before heroes 2 i had only 800mb, i am not saying it is heroes2 related, but how can i make shure it isnt?

Kristijan

well it is installed in home, as ar all other optified apps, opt is really /home/opt/
Anyway you can move the data and map files to MyDos to free up some space in home.
Here's how:
in xterm
Code:

root
mkdir /home/user/MyDocs/fheroes2
mv /opt/fheroes2/files/data /home/user/MyDocs/fheroes2/
mv /opt/fheroes2/files/maps /home/user/MyDocs/fheroes2/

then edit /home/user/.fheroes2/fheroes2.cfg
and change the lines
data = /opt/fheroes2/data
maps = /opt/fheroes2/maps
to
data = /home/user/MyDocs/fheroes2/data
maps = /home/user/MyDocs/fheroes2/maps

and you're good to go.

usar 2010-04-24 08:37

Re: [Maemo5] Free Heroes 2 - Heroes of Might and Magic 2 engine
 
@mthmob, i have same problem. Before chown its happend allways, now its completly random.
I have all maps too

mece 2010-04-24 08:59

Re: [Maemo5] Free Heroes 2 - Heroes of Might and Magic 2 engine
 
@usar @mthbob
check that /opt/fheroes2/files/maps
is
drwxr-xr-x 2 user users 4096 Apr 23 23:21 maps
and all files in the maps directory is also owned by user group users.

If it is, try moving the map and data files to MyDocs as I described in a post above and see if it helps. I can't seem to recreate the problem on my device.

mece 2010-04-24 09:38

Re: [Maemo5] Free Heroes 2 - Heroes of Might and Magic 2 engine
 
Ok now I have the same problem too.
I might have jumped to conclusions with the full map problem. It doesn't seem to be affected by the ownership of files after all.

Will investigate further. A workaround seems to be to, if you manage to start a game properly, then you can save that. when the problem occurs, load the saved game, and after that you can start a new one. at least for me the new games start properly.

chenliangchen 2010-04-24 14:21

Re: [Maemo5] Free Heroes 2 - Heroes of Might and Magic 2 engine
 
Can see entire map as well...

And I can see dots at corners of each grid?

There seems no music on my device, the sound works fine. Am I missing some files? I also put the ogg file in /Music and change .cfg to ext but still doesn't work.

mece 2010-04-24 17:55

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

Originally Posted by chenliangchen (Post 625919)
Can see entire map as well...

And I can see dots at corners of each grid?

There seems no music on my device, the sound works fine. Am I missing some files? I also put the ogg file in /Music and change .cfg to ext but still doesn't work.

modify your fheroes2.cfg and change music = on to music = ext

scomic55 2010-04-24 18:02

Re: [Maemo5] Free Heroes 2 - Heroes of Might and Magic 2 engine
 
sorry for a really newbish question, but where on the n900 is the home/user/mydocs file? i cant find it in the file manager. is there something i need to do to make it show up?

thanks for the help

mece 2010-04-24 18:10

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

Originally Posted by scomic55 (Post 626168)
sorry for a really newbish question, but where on the n900 is the home/user/mydocs file? i cant find it in the file manager. is there something i need to do to make it show up?

thanks for the help

the root of the file manager is /home/user/MyDocs/


so anything under that (e.g. /home/user/ is inaccessible to the file manager.

EDIT using MyDocs to store data files makes the game really slow...

scomic55 2010-04-24 18:17

Re: [Maemo5] Free Heroes 2 - Heroes of Might and Magic 2 engine
 
ok, so how do i access the files under mydocs?

mece 2010-04-24 18:20

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

Originally Posted by scomic55 (Post 626185)
ok, so how do i access the files under mydocs?

ctrl-shift-x ;-)

chenliangchen 2010-04-25 09:50

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

Originally Posted by mece (Post 626157)
modify your fheroes2.cfg and change music = on to music = ext

I've already done that, doesnt work. My files are in MyDocs/fheroes2/Music, as I changed the link direct to MyDocs.

Also, when I install fheroes2, it says package broken but upgradeable. Strange... It runs well, but in app manager it's shown as broken.:confused:

chenliangchen 2010-04-25 10:26

Re: [Maemo5] Free Heroes 2 - Heroes of Might and Magic 2 engine
 
@mece: I solved... I moved data file to /opt and everything is working perfectly.

But the engine shown in app manager is still broken, although it's working.

I tested music as midi but it's not working. The problem of ext music is everytime it starts from beginning. But midi is not(from the orginal H2)

scomic55 2010-04-25 10:51

Re: [Maemo5] Free Heroes 2 - Heroes of Might and Magic 2 engine
 
sorry to keep asking basic questions, this is a learning experience for me.

Ive got as far as moving the data and map dirs to MyDocs but when I enter edit /home/user/.fheroes2/fheroes2.cfg into the xterm it says:

-sh: edit: not found

Have I missed something?

I really appreciate the help

little_beat 2010-04-25 11:12

Re: [Maemo5] Free Heroes 2 - Heroes of Might and Magic 2 engine
 
Scomic, there is no edit CL app in n900. I suggest you setup mc from extras-devel and edit your files there.

chenliangchen 2010-04-25 11:19

Re: [Maemo5] Free Heroes 2 - Heroes of Might and Magic 2 engine
 
enter vi and then press a for edit.

But don't move data to MyDocs, seems have a lot problems.

scomic55 2010-04-25 11:35

Re: [Maemo5] Free Heroes 2 - Heroes of Might and Magic 2 engine
 
thanks, i'll give those a try

Is there a way to copy the full game on to the phone without moving the data to MyDocs?

cool, I edited the maps and data lines and now its working fine. the campaign doesnt work, but the rest of the maps do which is fantastic

little_beat 2010-04-25 14:31

Re: [Maemo5] Free Heroes 2 - Heroes of Might and Magic 2 engine
 
Hey guys, did anyone except kara_bass manage to enable tap mode? I'm trying tap mode = on, but that doesn't work for me for whatever reason

chenliangchen 2010-04-25 14:55

Re: [Maemo5] Free Heroes 2 - Heroes of Might and Magic 2 engine
 
from a few hours of playing I noticed in fheroes2:

The AI is (much) more stupid than original H2, this makes the game much easier. And sometimes there is only one "row" of enemy when fight againest creatures standing on the map. In original H2 there were at least 3 "rows". The roumer from the traven is funny.
The creatures seems more easily to join you. BTW, the music on the sea is not working.

It's great fun to play H2 again! :-)

stobbsc 2010-04-25 15:14

Re: [Maemo5] Free Heroes 2 - Heroes of Might and Magic 2 engine
 
is someone going to package this game at some point?

ang 2010-04-25 17:20

Re: [Maemo5] Free Heroes 2 - Heroes of Might and Magic 2 engine
 
yep, the sea music seems a little buggy- it just continues playing the current track. even if it's the enemy's turn music. it's also not listed in the /music/README file so it might have just been left out?

i agree about the ai, one issue that i've run into is the enemy attacking the closest target even when there was a ranged attacker a few steps away (this is in hard mode).

Quote:

Originally Posted by chenliangchen (Post 627039)
from a few hours of playing I noticed in fheroes2:

The AI is (much) more stupid than original H2, this makes the game much easier. And sometimes there is only one "row" of enemy when fight againest creatures standing on the map. In original H2 there were at least 3 "rows". The roumer from the traven is funny.
The creatures seems more easily to join you. BTW, the music on the sea is not working.

It's great fun to play H2 again! :-)


mece 2010-04-25 17:34

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

Originally Posted by stobbsc (Post 627054)
is someone going to package this game at some point?

What do you mean?

Editing config file is really easy with leafpad that you can find in the repositories.

install leafpad, and then, instead of starting it from the icon, just run xterm and type

leafpad .fheroes2/fheroes2.cfg

stobbsc 2010-04-25 17:39

Re: [Maemo5] Free Heroes 2 - Heroes of Might and Magic 2 engine
 
I'm not saying it's not easy, but it is easier for 90% of people if it's in a package and we just need to do and install..

chenliangchen 2010-04-25 17:42

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

Originally Posted by stobbsc (Post 627181)
I'm not saying it's not easy, but it is easier for 90% of people if it's in a package and we just need to do and install..

Heroes2 is not open source and not free so it's better not upload the full retail version due to the copyright.:)

stobbsc 2010-04-25 17:48

Re: [Maemo5] Free Heroes 2 - Heroes of Might and Magic 2 engine
 
thats a very good point. but surely we could package the config files and stuff? Cause I assume most of us own the game, or we are using the free demo which is legal, but then again I'm 100% clued up on legal law and stuff

chenliangchen 2010-04-25 19:15

Re: [Maemo5] Free Heroes 2 - Heroes of Might and Magic 2 engine
 
I still don't know why occationally sometimes all the maps can be seen. Quite annoying. No clue why it happens...

Found another bug: Is Necromancy actually working? I don't get any skeletons after battle...


All times are GMT. The time now is 01:28.

vBulletin® Version 3.8.8