Marvel Data scrpt (Read 2075 times)

Started by Yoshin222, January 03, 2022, 05:57:02 PM
Share this topic:
Marvel Data scrpt
New #1  January 03, 2022, 05:57:02 PM
  • ***
  • Getting better, still a long way to go
    • UK
-Only use mid fight
-"File" refers to the numbered file found in a given games ROM. Can be opened in HxD to get raw data
- Breaks if attempts to read a player who hasn't entered. Only really affects MVC, will try to fix in future
msh - Character Select timer isn't frozen though

Little bit of backstory. Been trying my hand at Lua for a while, and wanted to rip Red Earth data, but  the values wern't 1-1 with Mugen,. Thought hey, make a script that automates that
A while later, a dude asked for help romhacking X-Men: Children of the Atom, so adapted the script to work with that. Then saw the other Marvel games were handled similarly, so now the script works with them!
The script outputs the current characters position, velocity and acceleration as floats you can directly chuck in to Mugen
Explanation for those who care
Spoiler, click to toggle visibilty
It also outputs some ROM data to make life a little easier. It spits out the current address for the Anim, as well as for the Sprite being used, while also converting that raw value to where it would specifically be in what specific file. You can find these things simply by opening the corresponding numbered ROM file in a hex editor like HxD, and going to the offset specified

Spoiler, click to toggle visibilty
Last Edit: January 25, 2022, 12:22:46 AM by Yoshin222
Re: Marvel Data scrpt
#2  January 15, 2022, 08:27:59 PM
  • ***
  • Getting better, still a long way to go
    • UK
Due to a request by Sir Ghostler, added MSHVSF suppoort. Same rules as MVC. Also added player toggling backwards by pressing O as a qualitty of life thing, as well as display of FrameTime to help find raw values in the ROM
Last Edit: January 15, 2022, 08:32:55 PM by Yoshin222
Re: Marvel Data scrpt
#3  January 25, 2022, 12:19:23 AM
  • ***
  • Getting better, still a long way to go
    • UK
BIG UPDATE!!!  Check first post!!
After working on a script for Samsho 3/4, decided to port over some things i learned to this script, and ended up fixing the main issues!
- Can now use the script whenever ya like
- Can target any player, any time
- Added TileDef output
- XCOTAs Character Select timer was wrong, now properly freezes
- A port over from the Samsho script, can display Pos/Vel Data as either converted Floats for Mugen, or Hexadecimal like the Source game