Jump to content
NHL'94 Forums

Leaderboard

Popular Content

Showing content with the highest reputation on 07/01/2020 in all areas

  1. Done and done. I assume I don't have to do the 'new coach' thing. I played in the sochel tournament. Looking forward to it!
    1 point
  2. @Brodeur30 reached out and I think I am able to help solve this PP clock (you guys can further test). QUICK ANSWER Change the value at offset 128CC from 0018 to 003C LONGER ANSWER First, here's how the actual code works for the game clock. As referenced above, the value at 015DEC is 0AAA, and this value gets subtracted every frame from RAM address FFC46A. The value starts at 0000, and subtracting this value keeps lowering the figure. When the value goes below 0000, the game clock subtracts one from the time. It's a little funky in Hex values, I'll explain in decimal terms to make it easier to follow. 0AAA in decimal is 2,730. The starting value is 65,536 (think 10000 hex). Again, at each frame counter, 2,730 is subtracted from this value and when it essentially goes below zero the second on the game clock subtracts 1. 65,536 divided by 2,730 = 24.01. So every 24 frames, a second ticks off the game clock. The game plays at 60 frames per second, which means the clock is actually 2.5x faster (60/24 = 2.5) than a regular second. Nothing new here, but I thought it was interesting to explain by code. To adjust this to "real" time, you would want 60 frames per second on the counter, so changing 0AAA to 0444 makes that a hex value of 1,092. 65,536 divided by 1,092 is 60. Boom, done. Now, the Power Play clock works similarly, but it has a different counting process. The RAM address FFC3E8 gets loaded with the value 0018 (or 24 in decimal) and it counts down one at a time. You guessed it, when it reaches zero, the Power Play clock ticks one second and the value 0018 gets reloaded. 24 frames, same as the original game clock. So, changing 0018 to 003C (decimal 60) will align the two clocks. One thing I did notice though, for whatever reason the power play clock (or cycle clock) doesn't always tick down each frame. The count is off a few frames, but it's so small it shouldn't matter in the long run. I didn't bother looking at that cause. I have tested this with home and away penalties and it seems to work. Enjoy! nhl94_realtime.bin
    1 point
×
×
  • Create New...