ihhub / fheroes2

fheroes2 is a recreation of Heroes of Might and Magic II game engine.
https://ihhub.github.io/fheroes2/
GNU General Public License v2.0
2.58k stars 359 forks source link

.MP2 maps for Android #6404

Closed Mr-Bajs closed 1 year ago

Mr-Bajs commented 1 year ago

Preliminary checks

Platform

Other

Describe the bug

Tried the new 1.0 version for android.

Been using assets from Homm2 GOLD from GOG and have been putting the maps from the GOG version in Android/data/org.fheroes2/files/maps

Been using the same assets for the Flathub version on linux and for Android

Somehow on Android only .mx2 files is shown on the map selection, .mp2 maps isn't.

I was going to play the classic map Broken Alliance. It's in the flathub version but not on the Android version. I assume it's the BROKENA.MP2 that the Broken Alliance map. Though editing the filename to BROKEN.MX2 doesn't seem to work.

Is Fheroes2 and or Homm2 using several different files for its maps?

Save file

.

Additional info

No response

oleg-derevenetz commented 1 year ago

There was similar issue somewhere when the program that was used to copy map files to the Android device considered MP2 files as multimedia files because of their extension and did some wrong actions with them.

Mr-Bajs commented 1 year ago

Okey, thanks.

I solved the problem by renaming the .MP2 files to .MX2 files prior to copying the files and that seams to work. If anyone reads this and have a similar problem.

oleg-derevenetz commented 1 year ago

There might be a better solution - pack the files of the original game to the ZIP archive, upload this archive to Android device and then unpack this archive to the appropriate place using, for example, Total Commander for Android (I use it myself) or some other similar Android app.

JoLiKMC commented 1 year ago

Is Fheroes2 and or Homm2 using several different files for its maps?

Yes, actually. This has been the case since 1996.

I'm a little confused that no one at New World Computing realized that the file extension of MP2 was already in use by the MPEG-1 Audio Layer II file format, which had been in commercial use for years before this game was made. Not very forward-thinking of them, eh? (:

It's not just Android, though, which sees the files as something they aren't. Most people don't even use MP2, anymore, but even Windows 10 "recognizes" MP2 files as MPEG audio! Difference being, Windows 10 doesn't prevent programs in the OS from reading the files whereas, seemingly, some Android operating systems do. Very confusing.

ihhub commented 1 year ago

Hi @JoLiKMC , we can't undo what is done before us. We have to deal with it. The new map format won't have mp2 file extension :)

viT-1 commented 1 year ago
* `MP2` files are maps created with / for _The Succession Wars_.
  They use only the base game content and can be played with any version of the game.

* `MX2` files are maps created with / for _The Price of Loyalty_.
  They use extra content introduced within the expansion, such as extra heroes, artifacts, and map objects, and can only be played with the _Price of Loyalty_ expansion or _Heroes of Might and Magic II Gold_.

Also MP2 maps are saved in "PoL editor" if map hasn't any "new PoL object" .