Dingoonity.org

Dingux (Dingoo Linux) => Releases => Topic started by: zear on June 01, 2010, 11:25:46 pm

Title: fheroes2 release #1
Post by: zear on June 01, 2010, 11:25:46 pm
A quick&dirty port of FHeroes2 - a free implementation of Heroes of Might and Magic II engine using SDL.
The game is playable, but has a couple of glitches and needs some improvements.

(http://wstaw.org/m/2010/06/02/fheroes.png)(http://wstaw.org/m/2010/06/02/fheroes2.png)

Download: http://dl.openhandhelds.org/cgi-bin/dingoo.cgi?0,0,0,0,26,353 (source included)

How to make it run:
Copy the original data/*.agg into the data directory.
Copy the maps files (*.mp2) into the maps directory.

Game was tested with elta's rootfs. Might not run on others.

Controls:
Global:
* D-PAD  - move cursor
* A - cursor click

Menu:
* SELECT - go back/quit game
* START - accept

In-game:
* B - cast a spell
* X - next hero
* Y - hero/town dialog
* L - mini-map
* R - hero/town selection
* SELECT - game menu
* START - end turn

Changelog:
Release #1 01/06/2010
* initial release based on SVN r1898

To-do:
* fix the resolution of the in-game screen
* improve mouse emulation
* check if it uses the correct colordepth and fix it

Edit:
Here's an improved config file that should make the game run faster: http://pastebin.com/raw.php?i=vbChWu0m (thanks go to Ayla).
It is recommended to use it instead of the default one, as it makes the battle screen fullspeed.
Title: Re: fheroes2 release #1
Post by: toddler on June 02, 2010, 12:13:17 am
Thanks
Title: Re: fheroes2 release #1
Post by: xdpirate on June 02, 2010, 04:45:27 am
Hey. This works very well! Only thing I'd ask for is a quicker mouse :P Nice job!
Title: Re: fheroes2 release #1
Post by: Soulflier on June 02, 2010, 08:28:46 am
It works very well, thanks. I made a short gameplay video of it (it will be HD in a few minutes):
https://www.youtube.com/watch?v=RXnoNCs1h04
Title: Re: fheroes2 release #1
Post by: zear on June 02, 2010, 08:47:11 am
A very nice video, thanks.
BTW, you can accept dialogs with START, and when you're in the world map mode, START ends a turn, so no need to click with cursor for that actions :)
Title: Re: fheroes2 release #1
Post by: Soulflier on June 02, 2010, 09:42:25 am
Thanks, I did not know that.
Title: Re: fheroes2 release #1
Post by: SiENcE on June 02, 2010, 09:56:04 am
Oh great Zear, you find the best apps for porting.
Title: Re: fheroes2 release #1
Post by: darfgarf on June 02, 2010, 10:07:36 am
it's good, but the cursor movement needs improving a tad, for a start, diagonals, and start moving at full speed (the fact it goes slow themn accelerates makes scrolling around the map terrible)

but no rush etc  ;D
Title: Re: fheroes2 release #1
Post by: dele on June 02, 2010, 10:34:28 am
Thank you, zear! You just made my day! Keep up the good work.  :)
Title: Re: fheroes2 release #1
Post by: eule on June 02, 2010, 11:57:32 am
As someone who spent months with Heroes 3 and 4, I?m very happy to play the second part (never played yet) on the go.
Thank you zear, you rock!  ;D
Title: Re: fheroes2 release #1
Post by: schanall on June 02, 2010, 01:41:29 pm
I love this game! It's one of my all-time favorite. Great job, thank you very, very much!  :)


I didn't know that it was portet!
Title: Re: fheroes2 release #1
Post by: mrkingoo on June 02, 2010, 02:19:20 pm
A quick&dirty port of FHeroes2
Quick and dirty perhaps but oh so sweet. HOMM2 is one of my favorites :)
Title: Re: fheroes2 release #1
Post by: Acey on June 02, 2010, 03:08:24 pm
Zear: you are my hero! (no pun intended)  Can't wait to get home to try this...probably my favorite PC game of all time.  Thanks for your work on this!
Title: Re: fheroes2 release #1
Post by: qwerty on June 03, 2010, 01:56:20 pm
great port zear
this is one of the best games ever and it will own on the dingoo
i so want to play this
but im confused where do you get the .agg files of the original games or from fhero2
Title: Re: fheroes2 release #1
Post by: darfgarf on June 03, 2010, 02:00:20 pm
but im confused where do you get the .agg files of the original games or from fhero2
original, mine are from heroes 2 gold edition
Title: Re: fheroes2 release #1
Post by: mrkingoo on June 03, 2010, 07:42:48 pm
Played a bit now and it runs and plays pretty darn good :) Good old Heroes 2 on the Dingoo! But it tends to gt very sluggish after a while, quitting and reloading the game gets it back to normal speed. Memory issue? The transfer units and equipment between heroes (the red arrows icon) doesnt seem to work. Also how do you check the approximate number of enemy monsters?
Title: Re: fheroes2 release #1
Post by: zear on June 03, 2010, 08:11:10 pm
Played a bit now and it runs and plays pretty darn good :) Good old Heroes 2 on the Dingoo! But it tends to gt very sluggish after a while, quitting and reloading the game gets it back to normal speed. Memory issue? The transfer units and equipment between heroes (the red arrows icon) doesnt seem to work. Also how do you check the approximate number of enemy monsters?
Go to the settings (in the main menu) and enable the "pocketpc: low memory" option. The memory issues should be gone.
Title: Re: fheroes2 release #1
Post by: mrkingoo on June 03, 2010, 08:53:22 pm
Ok thanks :)

edit: confirmed the pocketpc low memory option seems to get rid of the slowdowns
Title: Re: fheroes2 release #1
Post by: samir on June 04, 2010, 12:37:25 am
Millones de gracias!! Excelente trabajo! parece un sue?o hecho realidad  :D ten?a dudas acerca de comprarme o no una dingoo, pero con el heroes esas dudas se fueron, el dingoo es mi proxima compra! La dingoo es incre?ble.
Title: Re: fheroes2 release #1
Post by: akelio on June 04, 2010, 02:58:22 pm
I cannot make success on runing fheroes, getting Segmenation fault :(
Title: Re: fheroes2 release #1
Post by: eule on June 04, 2010, 03:29:31 pm
Maybe you forgot to copy the heroes of might and magic 2 files?  ???
Title: Re: fheroes2 release #1
Post by: L[one]R on June 12, 2010, 09:21:58 pm
Great port. I really didn't see a port of Heroes 2 coming, so it's a very nice surprise. :D

Only big downside right now is scrolling around the map. I don't think improving mouse emulation will fix that. For easier scrolling hotkeys should be used (A + Dpad, for example?).
In addition to that I'd also loke to suggest a "mouse wrap" feature (or whatever you want to call it). For example, if a mouse goes off the right edge of the screen, it'll appear at the left edge of the screen. Sometimes it's faster this way than scrolling the mouse across the whole screen to the other side.

Also, any chance of seeing a working campaign mode anytime soon?
Title: Re: fheroes2 release #1
Post by: zear on June 12, 2010, 09:55:50 pm
Great port. I really didn't see a port of Heroes 2 coming, so it's a very nice surprise. :D

Only big downside right now is scrolling around the map. I don't think improving mouse emulation will fix that. For easier scrolling hotkeys should be used (A + Dpad, for example?).
It is being worked on. So far there's one bug that prevents from nice scrolling with R+D-PAD combo. You can ask on our irc channel for a test binary :)
Quote
In addition to that I'd also loke to suggest a "mouse wrap" feature (or whatever you want to call it). For example, if a mouse goes off the right edge of the screen, it'll appear at the left edge of the screen. Sometimes it's faster this way than scrolling the mouse across the whole screen to the other side.
I'll test this and see if it's any good.
Quote
Also, any chance of seeing a working campaign mode anytime soon?
No idea, ask the original fheroes2 authors :)
Title: Re: fheroes2 release #1
Post by: ctrl_shift_esc on June 15, 2010, 11:05:47 pm
You be super kool. Bedankt!
Title: Re: fheroes2 release #1
Post by: pippo9 on June 30, 2010, 02:45:42 pm
Hi, I?ve put data/.AGG files in data folder and .mp2 maps in to maps folder. But I can?t get it to work. It just shows some carbage on screen and won?t start?

I?ve taken the files from Heroes II gold. Can anybody give me some helping hand?  

Edit. It seems to run okay on my pc but won?t start on my dingoo. I think I have the correct rootfs( came with Gmenu2x Nuke 0.1)


EDIT2. Problem solved. Problem >> I?m a complete idiot.
Title: Re: fheroes2 release #1
Post by: mrkingoo on June 30, 2010, 04:42:55 pm
EDIT2. Problem solved. Problem >> I?m a complete idiot.

He he I know the feeling. Welcome to the forum :)
Title: Re: fheroes2 release #1
Post by: HelmeetElGato on July 23, 2010, 12:37:10 pm
Hey there!   :)
Sensational port! This is my favorite game of all times, I have been addicted to it for years, never expected to play it on Dingoo... Come to think of it, am not sure if praise you or curse your name  ;)
Certainly, the mouse would be the major issue to fix, as is quite annoying in the general map and often an impediment during battle (doesn't read the diagonals quite well in the bottom of the screen, making some attacks impossible...)
While at it, is possible to change or double assign values to some keys in combat to agilize it? "skip" and "spell" would be appreciated... I don't know if this is possible, seem the trick done in another port pushing a button while holding another, much like the shift function...

Anyway, so far is a great work! I hope you continue working on it  :D
Many thanks and one free internet to you.-
Title: Re: fheroes2 release #1
Post by: zear on July 23, 2010, 12:46:09 pm
Thanks for the feedback :D
Making button combos would require redesigning the whole input code of fhereos, which I'd rather not do ;)
I'm waiting for the original authors to fix the mouse emulation, and once it's done I'll release a new version, which will also feature bindable buttons through the config file, so you should be able to remap them the way you like.
Title: Re: fheroes2 release #1
Post by: mrkingoo on July 23, 2010, 03:49:13 pm
Good to hear zear. Looking forward to next release :)
Title: Re: fheroes2 release #1
Post by: Rosenkranz on January 02, 2011, 10:09:10 pm
Would there be any new ports for fheroes2? There were no new posts in 5 months on this subject. I have noticed there are new ports on android with source file 20101215. Is there maybe a plan for dingoo too? ???
Title: Re: fheroes2 release #1
Post by: zear on January 02, 2011, 11:35:43 pm
Yes, I am still thinking of updating my port.
There are two problems I have to overcome though:
1) lack of time
2) changes in the code that made Dingoo port a little more problematic (means I need to spend more time working on it)

The port will be definitely updated, probably not in the upcoming weeks though, which I apologise for.

Just to update you guys on the current status of fheroes2:
* screen size glitch is now fixed
* the nice small icon gui on the world map has been replaced with huge icons from the "select" menu (one of the things i need to change for the dingoo port)
* the engine now uses a config file based button mapping, which means I need to set correct dingoo button values for all the actions the config file supports, as well as zero all the button actions not used by the dingoo, so they won't conflict. This complicates things a bit and I need to devote some time to it.
* AI code has been removed from the public repository, although I privately got a patch for it from the original author

All that changes in the current code are nothing crucial, although they require me to spend a good couple of nights working on them, and the constant code updates by the original author mean I have to do it in one unbroken flow, or my changes will go obsolete (which already happened few times) ;)
Title: Re: fheroes2 release #1
Post by: mrkingoo on January 04, 2011, 08:23:05 am
Thanks for project update zear and again thanks for a great port :)
Title: Re: fheroes2 release #1
Post by: Rosenkranz on January 09, 2011, 08:33:31 pm
Thank you Zear for a fast reply! There is never need for rush, so you don't need to apologise for lacking of time.

You still made a great port. If there are no big changes, you should wait when there are (like exchange armies between heroes or something similar). Still, thank you for letting us know what are the problems that you fight with.  :)
Title: Re: fheroes2 release #1
Post by: Jonis on August 23, 2011, 12:02:34 am
Cool. I gotta check this out!

Are you guys using the cd music or midi?  (I haven't installed it yet so I have no idea whether or not that choice is possible.)
Title: Re: fheroes2 release #1
Post by: mrkingoo on August 23, 2011, 03:17:38 pm
Been a while since I played it. But I think it was midi
Title: Re: fheroes2 release #1
Post by: samir on August 26, 2011, 06:22:34 pm
Any news about an update of fheroes for dingux, zear?
Title: Re: fheroes2 release #1
Post by: zear on August 26, 2011, 11:00:57 pm
Nope, and I don't really have time to update fhereos2, since I'm busy working on my own homebrew game.
This isn't an ultimate NO, but it won't happen in the near future.
Title: Re: fheroes2 release #1
Post by: virusmater on September 24, 2011, 10:23:42 am
i can compile zear version of fheroes2 for OpenDingux with virtual mouse support

because i have graphic troubles with new versions of fheroes2..
Title: Re: fheroes2 release #1
Post by: 60659 on September 06, 2014, 10:49:35 am
Hi :)
I can't get fheroes2 going, there's only a black splash for a second.
My stuff: Dingoo A320 with OpenDingux, kernel: 3.4.0-dingux-00051-gd072b59, rootfs: 2010.11-001004-g133154c, fheroes2: 384MHz.
I've downloaded this: http://dl.openhandhelds.org/cgi-bin/dingoo.cgi?0,0,0,0,26,353 (http://dl.openhandhelds.org/cgi-bin/dingoo.cgi?0,0,0,0,26,353)
I've copied data and maps, and that's all.
I wonder very much why in this .tar.bz2 is another src.tar.bz2 - do I have to do something with it?
Cheers from Poland, Leszek.