- 3D Arena NHL 94 demo?
-
NHL 94: EVO
I think you are right, that's for clearing out the RAM. Did you use my patch to make the ROM 4MB? Because it also modifies the SRAM routines. I would suggest looking at his SRAM file, making a copy of it, opening up the ROM again, then exit. See if there are changes made to the SRAM. My guess is it is not loading all your SRAM into RAM. Here's the InitSaveRAM that I modified to work: InitSaveRAM: move.l #VBcount,(vbint).l move #$2500,sr clr.w (ValidSRAM).w ; Flag for good SRAM jsr ReadJoy1 ; get joypad buttons held move.w d3,d0 ; d3 = buttons held move.b #1, (SRAMlock) ; set flag for SRAM bank switch (SRAM on) movea.l #$200000,a0 ; move SRAM address into a0 move.w #$E,d3 ; move 14 dec into d3 move.w #2,d4 ; move 2 into d4 cmp.b #$E0,d0 ; Start+A+C button held down beq.w .setiterator ; branch if held down cmp.b #$B0,d0 ; Start+B+C buttons held down beq.w .setiterator2 ; branch if held down moveq #0,d0 ; move 0 into d0 move.l #$2000,d1 ; $2000 into d1 movea.l #$FFFF0000,a0 ; start of RAM into a0 move.b #0, (SRAMlock) ; set flag for SRAM bank switch (SRAM off) bsr.w ReadSRAM ; Writes SRAM to RAM jsr ValidateSRAM tst.w (ValidSRAM).w bpl.w .ex jsr ClearSRAM moveq #0,d0 move.l #$2000,d1 movea.l #$FFFF0000,a0 bsr.w ReadSRAM ; Writes SRAM to RAM jsr ValidateSRAM .ex: rts .setiterator: move.w #$1FFF,d2 move.b #1, (SRAMlock) ; set flag for SRAM bank switch (SRAM on) .SRAMloop: move.w #1,d1 move.w #7,d0 .setto80: move.w d1,(a0) cmp.b 1(a0),d1 bne.w .loadcolor lsl.w #1,d1 dbf d0,.setto80 adda.w #2,a0 dbf d2,.SRAMloop movea.l #$200000,a0 move.l #$120034,(a0)+ move.l #$560078,(a0)+ move.b #0, (SRAMlock) ; set flag for SRAM bank switch (SRAM off) move.w #$E0,d3 move.w #$20,d4 .loadcolor: move.w d3,d0 ; move d3 (color of flashing screen) to d0 .flashscreen: move.l #$C0000000,(VDP_CTRL).l move.w d0,d1 and.w d3,d1 move.w d1,(VDP_DATA).l jsr vcountwaitjsr sub.w d4,d0 bra.s .flashscreen .setiterator2: move.w #3,d1 move.b #1, (SRAMlock) ; set flag for SRAM bank switch (SRAM on) .SRAMloop2: adda.w #1,a0 lsl.l #8,d0 move.b (a0)+,d0 dbf d1,.SRAMloop2 cmp.l #$12345678,d0 bne.s .loadcolor ; branch if not equal (screen flashes red) move.b #0, (SRAMlock) ; set flag for SRAM bank switch (SRAM off) move.w #$E0,d3 move.w #$20,d4 bra.s .loadcolor ; branch (screen flashes green) ; End of function InitSaveRAMThis is run when the ROM is opened. If you notice this section: move.l #$2000,d1 movea.l #$FFFF0000,a0 bsr.w ReadSRAM ; Writes SRAM to RAM jsr ValidateSRAMD1 here is the iterator. The ReadSRAM function loads the SRAM into RAM at location A0 and iterator D1. So here, the only part of SRAM being copied into RAM is the first $2000 bytes. You will also need to update the ValidateSRAM and MakeSRAMChecksum to cover the extra SRAM you are using. The last 2 bytes of SRAM are where the checksum gets stored.
-
NHL 94: EVO
I'm curious if you increased the loop iterator for the SRAM check? If not, it will cut off what it skips. When the ROM is started, there is a check of the SRAM. Copies to RAM, does a checksum, compares it to the SRAM checksum and writes it back to SRAM. EDIT: More info: I had to change the loop iterator value when I added the Fighting variable. $76C6 - loop iterator
-
NHL 94: EVO
@AdamCatalyst just want to say incredible job on this ROM. It is very fun to play!! I'm very curious on how you did some of these hacks , we'll have to talk about it!
-
NHL'94: Fight Edition
Thanks bud! Yes you should be able to patch it with the weight bug fix.
-
SCART Image Issue
I've bought cables from here in the past (were different owners though). Should be the same quality. CSync is fine as long as it is properly used. They are made to order though. https://retro-access.com/product/genesis1-scart-fortraflex-cable/ The stoneagegamer one is fine too. Never heard of the other company you posted. Also make sure your GBC is set up properly for the right sync. It might me trying to sync on Green instead of using csync
-
SCART Image Issue
This is a sync problem. People have you fooled thinking you need CSync cables. Sync on composite works absolutely fine, and sync on luma is even better (but Genesis doesn't have S-video output so you can't use that in this case). You get what you pay for in cables. Shielding is the most important thing in all of this.
- Goalie fights!
-
How-to: Move & Resize the Net Graphic (NHL '94)
If you make the changes to the goal frame data before applying the fighting patch on a custom ROM, it would maintain the changes. All of the associated data with sprites and frames is organized like so in the regular ROM: $5B1C-$76B2 - SPAList - Sprite Animation List: A table for each animation listing frames and the time to display the frame. $5DE7A - Offset List: 1st long word (4 bytes long) - Offset to default sprite tile palette (128 bytes long) before frame data (default ROM has this offset as $4082A) 2nd long word (4 bytes long) - Offset to frame data (default ROM has this offset as $408AA) $5DE82 (2 byes long) - # of Sprite Tiles (default set to $2041 tiles, which means the Sprite Tiles data is $40820 in size, since $2041 * 32 bytes/tile) Sprite Tiles ($5DE84-$9E724): Exactly what it says. Sprites can be 1x1 tiles up to 4x4 (only 4x4 sprite is the glass breaking if I remember correctly). Also included in these are the goal tiles, the arrows, the stars. Frame Sprite Data Offsets ($9E724-$9EDC2): This is a table of offsets. Each frame has an offset to its frame data. For example, frame 1, which is "Skating with the puck" frame, has an offset of $69E. $9E724+$69E = $9EDC2, which would be the where the frame data starts for frame 1. We can tell how many sprites each frame has by subtracting this offset from the next one in the list. In this example, the next offset is $6A6. $696-$69E = 8 bytes, which means there is 1 sprite in the frame (see next section). There are 845 frames in NHL94. Sprite Data ($9EDC2-A44C9): $5708 long (There are 2,785 total sprites) This is the data you are editing as it will point to the sprite tiles and position them in the frame. Offset 0-1: X Global. The X position of the upper left corner of the sprite in the frame. This is offset from the 0,0 point of the frame. Offset 2-3: Y Global. Same as above, in Y. Offset 4-5: Tile offset. Confusing, see link. Offset 6 : Palette stuff and default H/V flip. Offset 7 : Sizetab byte (# of tiles in the sprite) Hotlist table ($A44CA-$A4B54): 2 bytes for each frame, 1 for X and 1 for Y. Offset from the 0,0 point of the frame, it is used for collision purposes (like the player's stick which is a separate collision point from their body). There are 16 bytes missing from the end of this table. These are because the last 8 frames are direction arrows and stars for the 3rd and 4th player when 4-way is used. They don't have collision, so they were omitted (there's only data for 837 frames). Since this data is so tightly packed and one after another, the SPAList, Frame Sprite Data offsets, Sprite Data, and Hotlist table get moved to new free space, since data needs to be added to all those tables for the fight frames. The sprite tiles stay put (for now), and I just add the fight sprite tiles to the end of it, overwriting some of the frame sprite data offset table. I was going to just pad the rest of it with FF, probably should. I also update the Offset List and the # of Sprite Tiles. So even though the data you are looking for is still there, it is not being used. Check out my post where I dissect a frame and reassemble it for more info - https://forum.nhl94.com/index.php?/topic/37002-sprites-frames-and-animations/ I challenge you to follow the procedure to find the new location of the sprite data for the goal! The top goal is frame # 405, bottom goal is frame # 406. Frame Sprite Data Offset table starts at $202830.
-
How-to: Move & Resize the Net Graphic (NHL '94)
The fighting code has to move the frame data to new space since it is adding new frames. The tile locations are not changed. What you are editing here is the offset of the sprite tile in the frame, relative to the position the code labels as the center of that frame. For example, the player's frame uses their feet as the frame center, and uses this location for collision purposes. The offsets you are editing are in the frame data that is getting moved. If you use the 94_custom_patch route, these changes you made in the frame data should be copied over (I had updated it a few months ago to get this working, previously it was just copying over data from the vanilla ROM). When you run the python program, you should see it saving the files needed. I should write up a way to make your own frames. This way, you can just make your own sprite tiles, form them into a frame, add the data, and reassign the nets current frame to your new one.
-
aggression?
Agr is used to determine if player gets a penalty after a hit.
-
How Fighting Works in the NHL94 Fighting Patch
ChksF = Checks For, meaning the # of Checks the player made in the game so far
-
NHL'94: Fight Edition
NOSE is hard coded for the number of menu items that appear based on the game title (92, 93, 94, etc). Since the menu hack to allow the Fight option changes the location of where the menu items are in the ROM, NOSE spits some some errors. NOSE has to be changed to allow the Fight option. This is going to happen in the future (hopefully soon). The suggestion here is to take a vanilla 94 ROM (or custom ROM) with the fight patch not applied, edit the stuff in NOSE you need to edit, then run the patch program to patch the ROM with fighting. You can edit the fight_patch.asm (vanilla 94 ROM) or fight_patchc.asm (for custom ROMs) to set the default Fight option or any other settings before applying the patch.
-
NHL'94: Fight Edition
Thanks!! Yes, there's a problem loading the ROM in NOSE because of the menu hack. Unfortunately the menus are hard coded in NOSE, so I need to add the functionality to get it to work. I'll work on that soon.
-
NHL'94: Fight Edition
I haven't set it to save the mode like the others get saved (it's more work, future stuff). You edit the .asm file and set it to a default value in there before you assemble (scripts/fight_patchc.asm). The default is On. I don't remember it switching back to Off though. I hacked the function that loads the default menu positions.