Skip to content
View in the app

A better way to browse. Learn more.

ResHax

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
Help us keep the site running.

Madoka Magica TPS .mgm files

Featured Replies

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

  • 1 month later...
  • Supporter

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

  • 1 month later...
  • 3 weeks later...
  • Author
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

  • 2 weeks later...
  • Author
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

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.