fheroes2 icon indicating copy to clipboard operation
fheroes2 copied to clipboard

.MP2 maps for Android

Open Mr-Bajs opened this issue 3 years ago • 6 comments

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

Mr-Bajs avatar Dec 21 '22 17:12 Mr-Bajs

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.

oleg-derevenetz avatar Dec 21 '22 17:12 oleg-derevenetz

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.

Mr-Bajs avatar Dec 21 '22 21:12 Mr-Bajs

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.

oleg-derevenetz avatar Dec 22 '22 12:12 oleg-derevenetz

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

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

  • 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.

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.

JCollins2048 avatar Dec 23 '22 05:12 JCollins2048

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 :)

ihhub avatar Dec 23 '22 05:12 ihhub

* `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" .

viT-1 avatar Dec 25 '22 08:12 viT-1