Jump to content

Madoka Magica TPS .mgm files


Recommended Posts

Hi! I've been having trouble for some time now trying to figure out and view a .mgm file from the game Puella Magi Madoka Magica: TPS Featuring Tomoe Mami (Madoka TPS for short).

The .mgm file is a level file for the game. I've been looking through the classes.dex file and still couldn't figure out how the file is loaded. From what I've worked out, it declares the textures to be used at the top, and the rest of the file seems to be OpenGL data.

The sceenshot shows the mgm file loaded in the game.

madoka magica tps level.PNG

classes.dex_Decompiler.com.zip

Link to comment
Share on other sites

  • 1 month later...
  • Engineer
Posted (edited)

firstly, sorry for the late reply.

On 5/8/2024 at 3:04 PM, calmevening said:

The .mgm file is a level file for the game. I've been looking through the classes.dex file and still couldn't figure out how the file is loaded.

2ndly, I don't know what you mean exactly with "how"? That's a matter of the (java) code, isn't it?

Some code fragments:

GameScene.java
GlHelper.bindBitmapToTexture(gl, 37, CommonHelper.loadResImage("en" + currentStage + "a"), true);

this.gameField.create(gl, currentStage, difficulty);

SceneBase.java
public static void sceneInit()

----------

Anyways, here's stage0.mgm as obj file (maybe a part only):

stage mgm

Meshes which may vary dependent on your choice of parameters in hex2obj

Edited by shak-otay
Link to comment
Share on other sites

  • 1 month later...
  • 3 weeks later...
On 6/15/2024 at 6:08 AM, shak-otay said:

firstly, sorry for the late reply.

2ndly, I don't know what you mean exactly with "how"? That's a matter of the (java) code, isn't it?

Some code fragments:

GameScene.java
GlHelper.bindBitmapToTexture(gl, 37, CommonHelper.loadResImage("en" + currentStage + "a"), true);

this.gameField.create(gl, currentStage, difficulty);

SceneBase.java
public static void sceneInit()

----------

Anyways, here's stage0.mgm as obj file (maybe a part only):

stage mgm

Meshes which may vary dependent on your choice of parameters in hex2obj

wow thank you! yeah, I wanted to view the level as a mesh like that. I will take a look at hex2obj soon

 

On 7/21/2024 at 5:11 PM, Durik256 said:

broken preview

bandicam2024-07-2113-46-33-455.gif.0b1299558a80db1d4f0fb25580b6fb72.gif

I don’t know what these levels are for, but it’s just a flat “corridor”. I would advise you "Madoka Magica: The Battle Pentagram"  on PS Vita

plugin on my github: fmt_Madoka_PSVita.py

old topic on xentax: Madoka Magica: The Battle Pentagram[PS Vita][.mdl][.anm]

bandicam2022-02-0919-25-52-606.gif.efe3b16a253d2048e31adafdd1bc858e.gifbandicam2022-02-0919-22-30-574.gif.8e4740081ff09f1fb652ffbbdfb301f9.gif

these are for the mobile madoka tps games, thanks for the plugin, I will look at that soon.

yes it is supposed to be a flat corridor, the textures are images in the app's image folder loaded by the game

 

sorry for the late replies I was busy

Link to comment
Share on other sites

  • 2 weeks later...
On 7/21/2024 at 5:11 PM, Durik256 said:

broken preview

bandicam2024-07-2113-46-33-455.gif.0b1299558a80db1d4f0fb25580b6fb72.gif

I don’t know what these levels are for, but it’s just a flat “corridor”. I would advise you "Madoka Magica: The Battle Pentagram"  on PS Vita

plugin on my github: fmt_Madoka_PSVita.py

old topic on xentax: Madoka Magica: The Battle Pentagram[PS Vita][.mdl][.anm]

bandicam2022-02-0919-25-52-606.gif.efe3b16a253d2048e31adafdd1bc858e.gifbandicam2022-02-0919-22-30-574.gif.8e4740081ff09f1fb652ffbbdfb301f9.gif

How did you get that preview? I tried the .py linked but it didn't work since it was for battle pentagram

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...