Jump to content
NHL'94 Forums

HOW TO: Change the variation of Hot/Cold in a ROM


chaos

Recommended Posts

What this hack does is limit the variation of Hot/Cold bonus in the ROM. In the vanilla ROM, the Hot/Cold can vary between -9/+8 (negative is Cold, positive is Hot).

 

The RNG function used by many things in the game starts at 0x01107A. The RNG function requires an "input", and at the end, produces a "random" result using the "input" as its negative limit. For the Hot/Cold bonus, this "input" value is stored at 0x0F70AD. In the vanilla ROM, the value is 09. 

Changing the byte at 0x0F70AD from 09 to 04, for example, will set the Hot/Cold variation from -9/+8 to -4/+3.

Changing it to 02 or less will remove the Hot/Cold effect (though the Edit Lines screen may show a change, there is no effect in game).

Note, internally, the game take this value and divides it by 3 (and drops the remainder). So, for example, changing the value to -4, we get a -4/+3 variation. But, in reality, -4 is viewed the same as -3 by the game since it divides by 3 and drops the remainder. For more info on what the game does with these values, and what is displayed vs. what the game actually uses, check this thread:

 

The RNG function isn't actually "random". I can make a whole other post about this, but its random in a sense to us.

  • Thanks 3
Link to comment
Share on other sites

So using a value of 4 gives the following odds for hot/cold?

2/8 odds of -1   (random values -4 and -3)
5/8 odds of 0   (random values from -2 to +2)
1/8 odds of +1  (random value of +3)

And the +/-1 translates to +/-0.2 on the 0-6 scale (internally the game uses 0-30)

Link to comment
Share on other sites

2 hours ago, smozoma said:

So using a value of 4 gives the following odds for hot/cold?

2/8 odds of -1   (random values -4 and -3)
5/8 odds of 0   (random values from -2 to +2)
1/8 odds of +1  (random value of +3)

And the +/-1 translates to +/-0.2 on the 0-6 scale (internally the game uses 0-30)

Correct. Roughly +/- 1 translates to +/- 0.16 on the 0-6 scale (1/30 * 5) 

Link to comment
Share on other sites

3 hours ago, smozoma said:

I think it's 0.2. A -1 can turn a 30 into a 29. 30/5=6.0, 29/5 = 5.8.

 

Yeah you are right. Which means there's some overlap, even though we don't see overlap in Edit lines screen.

4 rating * 5 = 20

20 -3 = 17

17/5 = 3.4

3 rating * 5 = 15

15 + 2 = 17

17/5 = 3.4

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...