November 21, 2024, 04:26:54 AM

Author Topic: Modifying speed of players in Zoinky's hacked Blitz 2000 version  (Read 31269 times)

jaker3

  • Administrator
  • Sr. Member
  • *****
  • Posts: 334
    • View Profile
Re: Modifying speed of players in Zoinky's hacked Blitz 2000 version
« Reply #15 on: February 26, 2016, 08:06:41 AM »
Ha awesome find. a faster spin would be interesting to see.

jaker3

  • Administrator
  • Sr. Member
  • *****
  • Posts: 334
    • View Profile
Re: Modifying speed of players in Zoinky's hacked Blitz 2000 version
« Reply #16 on: March 11, 2016, 10:50:55 AM »
Any updates?

blitzmaster5000

  • Full Member
  • ***
  • Posts: 150
    • View Profile
Re: Modifying speed of players in Zoinky's hacked Blitz 2000 version
« Reply #17 on: March 11, 2016, 05:22:28 PM »
Haven't been able to do much hacking lately. I stopped working on the tackle speed animation as it's kind of a novelty rather than an improvement to gameplay. I could post it as a patch though if others are interested.

I will be busy with other things in the next few weeks, but the next hack I want to return to is "de-randomizing" the tackling, so hopefully we can do specific tackles on command. I will have to go back and look at my notes to catch up again though, it has been quite a while.

blitzmaster5000

  • Full Member
  • ***
  • Posts: 150
    • View Profile
Re: Modifying speed of players in Zoinky's hacked Blitz 2000 version
« Reply #18 on: March 13, 2016, 04:34:10 PM »
I got around to playing the insane tackle + low G mod with some friends yesterda. It was bad ass! Of course it wasn't supposed to be "better" than the regular one, but it was definitely fun nonetheless. I will upload a patch for it soon. It's not that great just against a CPU though, but with other players it's crazy.

jaker3

  • Administrator
  • Sr. Member
  • *****
  • Posts: 334
    • View Profile
Re: Modifying speed of players in Zoinky's hacked Blitz 2000 version
« Reply #19 on: April 12, 2016, 07:32:36 AM »
Hey blitzmaster, I was reading your forum post over at romhacking at it sounds like you were able to get code injected into the game?

blitzmaster5000

  • Full Member
  • ***
  • Posts: 150
    • View Profile
Re: Modifying speed of players in Zoinky's hacked Blitz 2000 version
« Reply #20 on: April 12, 2016, 05:20:47 PM »
Yes, I figured out how to jump from a subroutine to some empty area in the ROM, add code, and then jump back. For the simple hacks I've done such as low gravity it's not necessary, but for more complicated ones (such as the insane tackle stuff), it's useful because I can set multiple registers or what not to act as multipliers or other arithmetic functions. The trick was finding out what the ROM address was in RAM (which turned out to be simply 80000400 - ROM address + 1000).

I was trying to find out where the tackle animations were stored, and how certain ones are chosen. Like I mentioned earlier, they are set by the random number generator. I was trying to find how exactly it was being used, but the problem is there are many functions being called to that random number generator all the time, so it's difficult to isolate the various tackles. The other issue is that because this function is used for all "chance" events in the game, you can't simply turn it off, or else it breaks the gameplay. Well, it doesn't break it, but it makes it quite different - WRs always catch the ball, no fumbles, perfect interceptions, etc. It's actually kind of interesting, and could be useful to hack this function in the future when trying to have the top WRs have better "luck".

A few weeks ago I was getting closer but got busy with other things. I think being able to jump in/out of routines will be imperative for the "Tackles on command" idea. I also am pretty sure I found the function that writes text on the screen, so you could hypothetically add a function to call new text to the screen at different times.

jaker3

  • Administrator
  • Sr. Member
  • *****
  • Posts: 334
    • View Profile
Re: Modifying speed of players in Zoinky's hacked Blitz 2000 version
« Reply #21 on: April 15, 2016, 07:48:59 AM »
thats awesome.... I wonder then if we would be able to create some code when the player switches to change speed based on the player with the ball.

blitzmaster5000

  • Full Member
  • ***
  • Posts: 150
    • View Profile
Re: Modifying speed of players in Zoinky's hacked Blitz 2000 version
« Reply #22 on: August 10, 2016, 11:19:22 AM »
I know how we could have a speed modifier for each individual position now. So we could have the top WR1 be slightly faster than the others, or somethign along those lines.

The basic strategy is as follows:

1. find address of player lateral/upfield speed
2. jump out of function taht writes to the players (1 function for non-ball carriers; 1 for QB)
3. add a function that takes the value of the speed in the address of interest and add a multiplier
4. Jump back to original function

The current speed hack that makes speeds more like 2001 scales all players up, but this hack would allow you to change speeds per-position. I will try and get a proto-type up soon.