-
WIP tool NHL9X Studio - Import/Edit/Export Graphics files from NHL92-95 GEN & 93-94 SNES, Import/Edit/Export 92-94 GEN Music, 95PC Jerseys, and more!
Well, you can pretty much do everything on the hosted version as the local version. It’s just a little more convenient to have your files already in place and loaded when you start the local version, but to be honest you can just set up a roms folder with all of the roms & isos and replicate the same thing, just need to manually open the folder with the roms. That being said the local version is available at the GitHub link. But if it’s too complicated to get going, that’s why the hosted version exists.
-
WIP tool NHL9X Studio - Import/Edit/Export Graphics files from NHL92-95 GEN & 93-94 SNES, Import/Edit/Export 92-94 GEN Music, 95PC Jerseys, and more!
Hosted version at: https://abdulahmad.github.io/NHL9XStudio Github: https://github.com/abdulahmad/NHL9XStudio (can be easier to use once you set it up as you don't have to manually load game data from ROMs) Right now NHL 9X Studio is mostly a viewer, with a few editors. Here's what each part covers: Sprites and animations (view, with team jersey colours applied): 92G, 93G, 94G, 95G, 93S, 94S and 95PC. Other graphics like titles, rink, logos, fonts and crowd (view): 92G, 93G, 94G, 95G, 93S, 94S and 95PC. Image editor (import your own PNG/BMP/GIF/JPEG or edit existing image, export): 92G, 93G and 94G Genesis screens, 93 SNES and 94 SNES screens. Jersey editor (JED-style, with .ACT import/export): 95PC only. Rink logos/ads editor: 95PC Audio Player (songs, SFX, samples, instruments and crowd noise, played on the real sound drivers): 92G, 93G, 94G, 95G, 93S and 94S Sequencer (import/edit songs, export): 92G, 93G, 94G, 93S and 94S. The FM instrument editor is Genesis only. This feature probably needs some iteration. I’m not really as handy with music as I am with graphic editing so that’s why. If anyone wants to use it, I can improve it. What it doesn't do is open your own ROM and save edits straight back into it, and there's no roster or player editor. The intended workflow is that you build your mod from the game's disassembly, and Studio produces the files that go into that build. If you do want to stick the data back into a custom ROM, you can still do that manually. I will say, don't go in expecting everything to be very polished. It's very much a WIP tool that I have been building along side cleaning up the disassemblies for the various games as its been helping me understand parts of the code better as I go. And I will also polish features as people use and have suggestions on how to improve things. Screenshots:
-
-
2 guys one ai - NHL ’94 Season Edition — beta update
Would be great if you could add clear credits to the post and the site on what mods/hack/disassemblies this pulled from. Claude might be able to help you do that.
-
Port of NHL95 Season mode to NHL94
I would expect this prototype to be able to run on real hardware. I think the real hardware issues come in if I ever decide to do stuff using the SVP (more cpu) or SSF (more space) chips (and really it’s more of a flashcart compatibility issue for those)
-
Port of NHL95 Season mode to NHL94
This is a port of the NHL 95 Season mode to NHL 94. This is based on the disassemblies of NHL 94 Genesis & NHL 95 Genesis that were recently done (credits to McMarkis, chaos & StaticEck for helping with the process as well as AI agents). I check out Create a player and Trades before I get into Season Mode. Clearly has some glitches and needs bug fixing. But its playable up until you get to the playoffs. I am juggling a lot of other tasks regarding cleaning up the disassemblies so I'm not sure if I will be actively working on this quite just yet.
-
The new-ish native porting craze, and modding possibilities for the future?
We are working on a disassembly as we speak. 93/94/95/96 Genesis & 93/94 SNES have all been disassembled, I'm working on cleaning up the code and making them consistent across games. 96 Genesis & 94 SNES being the newest disassemblies and are in a very rough state right now, hoping to get it into a better state in the next week or so. The other games I think are in a near final state right now. By the way, you should check out the discord, rom-hacking channel.
-
TOOL: NHL 92-94 Sprite Extractor (ANIM To BMP)-- NEW! NHL 95-97 Genesis Sprite extractor!
wip tool to view sprites & images from NHL92-95 Genesis, NHL93-94 SNES and NHL 95 PC... maybe could be turned into an editor? available here: https://github.com/abdulahmad/EA-NHL-Tools/tree/main/Sprite-Viewer
-
Prototyping Sega CD MSU-MD mod for NHL 94 via NHL 92
I don't know if this was just an issue with the emulator I was using or if the msu-md driver didn't support it properly, but it was having trouble playing the sega cd crowd audio after the organ music ended, so had to hardcode lengths of the organ tracks to fix it, just an FYI if you plan to use custom music
-
Prototyping Sega CD MSU-MD mod for NHL 94 via NHL 92
cleaned up a bit. this also auto detects if the cd music is available, and enables it. if not, it falls back to the fm music from the cartridge. and its also toggleable in the menu as well
-
Prototyping Sega CD MSU-MD mod for NHL 94 via NHL 92
Sega CD music on cartridge version. Its not perfect right now, a little finicky with when things start/stop playing. I think it would probably need a dialed in custom iso with audio gaps reduced as much as possible and the rom knowing exact lengths of every track.
-
How to edit NHLPA93 PC logos?
I contacted him 3 years ago, and he claims he’s not the same Toni Wilen. Definitely a wild coincidence if there are 2 super smart developers with the same name working on reverse engineering software/hardware from the same era. But, either he doesn’t want to deal with it, or he’s telling the truth and the other Toni Wilen vanished.
-
Sound Help
You need to add some details. What game are you trying to play? Include platform as well. If its a DOS version of NHL, what version of DOSBox are you using?
-
NHL 94 SNES Sprite/Frame & Animation format
I want to detail the rest of what I know about the sprite format before I put a pause on this for now. At some point I will write a sprite extractor, but I want to focus on 93/94 disassembly to get something compilable out ASAP. Here is the file format for the Frame Data/Sprite Header for NHL 94 SNES that is known so far: I think the one thing that can be confusing is how the tiles are picked-- First is Size-- FF seems to indicate a 2x2 tiled Sprite, and 00 seems to indicate a 1x1 tiled Sprite If its a 1x1 tiled sprite, its simple, the First Tile gets selected. If its a 2x2 tiled sprite though, it selects First Tile, First Tile + 1, (First Tile +1) + Stride, (First Tile + 1) + Stride + 1 So for Frame 1: Frame X Data (Sprite Header): [Number of Sprites] 80 [Number of Tiles] 00 E2 FF 07 00 E2 FF [Stride] 00 A0 00 80 00 [Length of Frame Data] 00 02 E4 [Hostpot 2 X] [Hotspot 2 Y] Frame 1 Data (Sprite Header): 03 80 09 00 FA FF 07 00 E2 FF 04 00 A0 00 80 00 2B 00 02 E4 00 00 Frame X Sprite X: [X offset] [Y offset] [First Tile] [Palette?] [Size] Frame 1 Sprite 1: FA FF E2 FF 00 08 FF <- -6, -30 Frame 1 Sprite 2: FA F2 FF FF 02 08 FF <- -6, -14 Frame 1 Sprite 3: FE FF 02 00 04 08 00 <- -2, 2 Frame 1 has a Stride of 4. Sprite 1: Tile 0, 1, 5, 6 Sprite 2: Tile 2, 3, 7, 8 Sprite 3: Tile 4 Frame 2: Frame X Data (Sprite Header): [Number of Sprites] 80 [Number of Tiles] 00 E2 FF 07 00 E2 FF [Stride] 00 A0 00 80 00 [Length of Frame Data] 00 02 E4 [Hostpot 2 X] [Hotspot 2 Y] Frame 2 Data (Sprite Header): 05 80 0B 00 F7 FF 09 00 E3 FF 05 00 C0 00 A0 00 39 00 01 E5 00 00 Frame X Sprite X: [X offset] [Y offset] [First Tile] [Palette?] [Size] Frame 2 Sprite 1: FD FF E3 FF 00 08 FF <- -3, -29 Frame 2 Sprite 2: F7 FF F3 FF 02 08 FF <- -9, -13 Frame 2 Sprite 3: 07 00 FB FF 04 08 00 <- 7, -5 Frame 2 Sprite 4: F8 FF 03 00 05 08 00 <- -8, 3 Frame 2 Sprite 5: 00 00 03 00 14 08 00 <- 0, 3 Frame 2 has a Stride of 5. Sprite 1: Tile 0,1,6,7 Sprite 2: Tile 2,3,8,9 Sprite 3: Tile 4 Sprite 4: Tile 5 Sprite 5: This is where it gets weird and I don't fully understand-- the value is 20 which is double the value of 10. Could it have something to do with flipping the tile perhaps? I haven't investigated enough. I have to look at more frames to figure this out, and also closely compare how the frame is rendered in the game to how I would compose the frame. Frame X Sprite X: [X offset] [Y offset] [First Tile] [Palette?] [Size] Frame 2 Sprite 1: FD FF E3 FF 00 08 FF <- -3, -29 Frame 2 Sprite 2: F7 FF F3 FF 02 08 FF <- -9, -13 Frame 2 Sprite 3: 07 00 FB FF 04 08 00 <- 7, -5 Frame 2 Sprite 4: F8 FF 03 00 05 08 00 <- -8, 3 Frame 2 Sprite 5: 00 00 03 00 14 08 00 <- 0, 3 So 95%+ of the NHL94 frames format is known at this point IMO. There may be some weird things that pop up that should be easy to figure out given by the limited number of bytes used per sprite.
-
NHL 94 SNES Sprite/Frame & Animation format
A couple of things-- apparently that wasn't the full GetHot function. It was originally detected as data but when analyzing it it seems like it reads bytes 0x12-0x15. 0x14-15 is another X,Y pair-- potentially a secondary hotspot or some sort of bounding box. It doesn't matter in frame1/2 case as its zero'd out on both. Secondly, I think I was rash to dismiss the idea that SNES didn't use a sprite system like Genesis. I think that explains why the frame data is different lengths. Frame 2 uses more sprites than Frame 1. I think I might have figured out how the data is laid out-- I think the first byte in the Frame Data indicates how many sprites are used, and then after that its 7 bytes per Sprite. Frame 1 Data (Sprite Header): 03 80 09 00 FA FF 07 00 E2 FF 04 00 A0 00 80 00 2B 00 02 E4 00 00 Frame 1 Sprite 1: FA FF E2 FF 00 08 FF Frame 1 Sprite 2: FA FF F2 FF 02 08 FF Frame 1 Sprite 3: FE FF 02 00 04 08 00 Frame 2 Data (Sprite Header): 05 80 0B 00 F7 FF 09 00 E3 FF 05 00 C0 00 A0 00 39 00 01 E5 00 00 Frame 2 Sprite 1: FD FF E3 FF 00 08 FF Frame 2 Sprite 2: F7 FF F3 FF 02 08 FF Frame 2 Sprite 3: 07 00 FB FF 04 08 00 Frame 2 Sprite 4: F8 FF 03 00 05 08 00 Frame 2 Sprite 5: 00 00 03 00 14 08 00 I'll have to look at more frames to see if this pattern holds up. I think byte 1-2 are the X coordinate of the sprite, and byte 3-4 are the Y coordinate of the sprite. And then the remaining bytes must have to do with tile selection, and potentially flip bytes and/or palette selection Frame 1 Data (Sprite Header): 03 80 09 00 FA FF 07 00 E2 FF 04 00 A0 00 80 00 2B 00 02 E4 00 00 Frame 1 Sprite 1: FA FF E2 FF 00 08 FF <- -6, -30 Frame 1 Sprite 2: FA FF F2 FF 02 08 FF <- -6, -14 Frame 1 Sprite 3: FE FF 02 00 04 08 00 <- -2, 2 Frame 2 Data (Sprite Header): 05 80 0B 00 F7 FF 09 00 E3 FF 05 00 C0 00 A0 00 39 00 01 E5 00 00 Frame 2 Sprite 1: FD FF E3 FF 00 08 FF <- -3, -29 Frame 2 Sprite 2: F7 FF F3 FF 02 08 FF <- -9, -13 Frame 2 Sprite 3: 07 00 FB FF 04 08 00 <- 7, -5 Frame 2 Sprite 4: F8 FF 03 00 05 08 00 <- -8, 3 Frame 2 Sprite 5: 00 00 03 00 14 08 00 <- 0, 3
-
NHL 94 SNES Sprite/Frame & Animation format
I found I believe the equivalent of GetHot-- this is one place in the code that I've found accesses the Frame Data Header. I ran this through Grok and this is what it tells me it does: .9B:C002 read_frame_header_and_adjust_hotspot: ; CODE XREF: sub_9E8C35+43↓P .9B:C002 ; sub_9EEB2E+66↓P .9B:C002 ; Reads frame data pointer from table, extracts signed byte hotspot/offset values at +$12/+$13, .9B:C002 ; applies flip negations based on orientation flags, and optional 90-degree rotation transform. .9B:C002 ; Input: A = index (transferred to Y for RAM lookup) .9B:C002 ; Output: Adjusted X/Y hotspots in word_7E00A5 (X) and word_7E00A9 (Y) .9B:C002 ; Uses: X (preserved), Y (temp), word_7E000C/000E (temp long pointer) .9B:C002 .9B:C002 PHX ; Preserve original X .9B:C003 TAY ; Y = input index .9B:C004 LDA word_7E0D97,Y ; Load frame number or state from RAM table .9B:C007 DEC ; frame_index - 1 .9B:C008 ASL ; \ .9B:C009 ASL ; / *4 for table offset (assuming 4-byte entries) .9B:C00A TAX ; X = table index .9B:C00B LDA frame_data_header,X ; Load low 16-bit offset to frame data .9B:C00F CLC .9B:C010 ADC #$8000 ; Add base address low .9B:C013 STA D,word_7E000C ; Store to temp pointer low .9B:C015 LDA word_828002,X ; Load high/bank offset .9B:C019 ADC #$82 ; Add base bank .9B:C01C STA D,word_7E000E ; Store to temp pointer bank (forms 24-bit pointer) .9B:C01E TYX ; Y = original X (unused here?) .9B:C01F LDY #$12 ; Y = $12 (offset 18 decimal into frame data) .9B:C022 LDA [D,word_7E000C],Y ; Load byte at frame_data + $12 (likely X hotspot/offset) .9B:C024 AND #$FF ; Mask to byte .9B:C027 CMP #$80 ; Check if signed negative (>= $80) .9B:C02A BCC sign_extend_x_done ; If < $80, positive - skip sign extend .9B:C02C ORA #$FF00 ; Else, sign extend to negative word .9B:C02F .9B:C02F sign_extend_x_done: ; CODE XREF: read_frame_header_and_adjust_hotspot+28↑j .9B:C02F STA D,word_7E00A5 ; Store adjusted X hotspot/offset .9B:C031 INY ; Y = $13 (offset 19 decimal) .9B:C032 LDA [D,word_7E000C],Y ; Load byte at frame_data + $13 (likely Y hotspot/offset) .9B:C034 AND #$FF ; Mask to byte .9B:C037 CMP #$80 ; Check if signed negative .9B:C03A BCC sign_extend_y_done ; If < $80, positive - skip .9B:C03C ORA #$FF00 ; Else, sign extend .9B:C03F .9B:C03F sign_extend_y_done: ; CODE XREF: read_frame_header_and_adjust_hotspot+38↑j .9B:C03F STA D,word_7E00A9 ; Store adjusted Y hotspot/offset .9B:C041 LDA word_7E0E03,X ; Load orientation flags for this frame .9B:C044 BIT #$800 ; Test bit 11 (horizontal flip/mirror flag?) .9B:C047 BEQ no_hflip ; If clear, skip negate .9B:C049 LDA #0 .9B:C04C SEC .9B:C04D SBC D,word_7E00A5 ; Negate X .9B:C04F STA D,word_7E00A5 .9B:C051 .9B:C051 no_hflip: ; CODE XREF: read_frame_header_and_adjust_hotspot+45↑j .9B:C051 LDA word_7E0E03,X ; Reload flags (redundant, but original) .9B:C054 BIT #$1000 ; Test bit 12 (vertical flip/mirror flag?) .9B:C057 BNE no_vflip ; If set, skip negate (inverted logic: clear = apply flip) .9B:C059 LDA #0 .9B:C05C SEC .9B:C05D SBC D,word_7E00A9 ; Negate Y .9B:C05F STA D,word_7E00A9 .9B:C061 .9B:C061 no_vflip: ; CODE XREF: read_frame_header_and_adjust_hotspot+55↑j .9B:C061 LDA word_7E15DA ; Load potential rotation/mode flag .9B:C064 BEQ no_rotation ; If zero, skip transform .9B:C066 LDA D,word_7E00A5 ; Load current X .9B:C068 LDY D,word_7E00A9 ; Load current Y to Y reg .9B:C06A EOR #$FFFF .9B:C06D INC ; Negate X (+1 for two's complement) .9B:C06E STA D,word_7E00A9 ; Store -old_X as new Y .9B:C070 STY D,word_7E00A5 ; Store old_Y as new X (90° clockwise rotation) .9B:C072 .9B:C072 no_rotation: ; CODE XREF: read_frame_header_and_adjust_hotspot+62↑j .9B:C072 PLX ; Restore original X .9B:C073 RTL ; Return long .9B:C073 ; End of function read_frame_header_and_adjust_hotspot The function (read_frame_data_header, which prepares frame hotspot/offset values) only reads two specific bytes from the provided frame data: the signed byte at offset $12 (decimal 18, likely a horizontal/X hotspot or attachment offset) and the signed byte at offset $13 (decimal 19, likely a vertical/Y hotspot or attachment offset). These are sign-extended to 16-bit words before further processing (conditional negations for flips and an optional 90° rotation transform, based on external flags not provided here). Frame 1 Byte at offset $12 (18): $02 (sign-extended to $0002 or +2 decimal). Byte at offset $13 (19): $E4 (sign-extended to $FFE4 or -28 decimal). Frame 2 Byte at offset $12 (18): $01 (sign-extended to $0001 or +1 decimal). Byte at offset $13 (19): $E5 (sign-extended to $FFE5 or -27 decimal). --- So at least that's potentially 2 more values from the header that we know.
bcrt2000
Members
-
Joined
-
Last visited