News:

RIP GoReds

Main Menu

Interesting finds on batting...

Started by Turd, 04/24/12, 03:42:14 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

thalivest

BITCH!!!!!!!!!!!!!! Gantry?? nightwulf?? Anyone?? Or I'm really gonna have to through this shit one by fucking one.

Turd

I've done enough of it in my day...just gotta find a pattern and roll with it.

thalivest

This is a bigger bitch than I thought. I was fucking around with  WSB 98 and STB and could find the names of players (rather easily) but could access their attributes. So what I tried was an old mathematics theory (get the answer from the back of the book and work baackwards from answer to equation).

Since the RBI player attributes have already been found I used that as my frame of reference. I used the AL's rotation (Key, Sbrhgn, Righti, Henke), but could not find the "drop, curve, stamina etc." I can find the line up (Mttgly, Cansco, Bell etc) but again.... no pwr, sped etc.).

If I could get an idea how to find them on the RBI, I figure I can simply extrapolate and transfer with Genesis games (as they all seem to use almost the exact same code, if not exact).

Turd

Player/Team Info [Teams in order from 1-30]

PLAYERS: x6010-x7E0F (16 players per team)
 
BATTERS DATA: Player#, Name (6 bytes), Arm Type, Batting Average Hi, Home Runs, Contact, Power Lo, Power Hi, Speed, Batting Average Lo, UNUSED
PITCHER DATA: Player#, Name (6 bytes), Sinker Ability/Arm Type, ERA Hi, Sinker Speed, Curve Speed, Fastball Speed, Curve Ability, Stamina, CPU Left, CPU Right

PER-PITCHER BATTING/LONG ERA: x10-x3CF (4 pitchers per team)
PITCHER DATA: Batting Average Hi, Home Runs, Contact, Power Lo, Power Hi, Speed, Batting Average Lo, ERA Lo

Now, the era hi/lo and per pitcher batting stuff isn't going to be useful to you because that's a hack...the original game didn't have per pitcher batting attributes and the era was limited to a certain range and used a formula (which I had figured out somewhere along the lines) to determine the value, something like hex value - 100...can't remember for sure.  Oh yeah, same for batting average, that's a hack as well...

Everythign else should be stock...

thalivest

#44
Thanks. Right now I'm just working with the original 10 team RBI, now if that doesn't have the per pitcher/batter info (and I don't think it does) then it's useless to me, as I'm back at square one. I working around the 10 team one, as I just want to get the basics. I figure if I can sort my way through 10 teams I can through 30.

Now players (12 batters, 4 pitchers) for the original RBI I can find but no per batter/pitcher info. I tried with a 10 team hacked ROM and the same thing, I can locate players names (12 batters, 4 pitchers) but now batter pitcher info such as Avg, Pwr, Spd, ERA, Drp etc.  Same thing with Genesis games (WSB 98, RBI 94, STB) find teams line ups, but not per batter/pitcher info (stats, ratings). Is there anyway I can locate this or is this as far as I can go?

Turd

As I said, that information that I gave you on the 30 team can be translated over to the 10 team ROM rather easily, it's just in a different location.  The only thing you won't get out of there is the ERA/BA, but I might ahve that documentation laying around somewhere...

thalivest

I'll take whatever you have/ willing to to send.

thalivest

Quote from: Turd on 05/03/12, 04:42:44 PM
Player/Team Info [Teams in order from 1-30]

PLAYERS: x6010-x7E0F (16 players per team)
 
BATTERS DATA: Player#, Name (6 bytes), Arm Type, Batting Average Hi, Home Runs, Contact, Power Lo, Power Hi, Speed, Batting Average Lo, UNUSED
PITCHER DATA: Player#, Name (6 bytes), Sinker Ability/Arm Type, ERA Hi, Sinker Speed, Curve Speed, Fastball Speed, Curve Ability, Stamina, CPU Left, CPU Right

PER-PITCHER BATTING/LONG ERA: x10-x3CF (4 pitchers per team)
PITCHER DATA: Batting Average Hi, Home Runs, Contact, Power Lo, Power Hi, Speed, Batting Average Lo, ERA Lo

Now, the era hi/lo and per pitcher batting stuff isn't going to be useful to you because that's a hack...the original game didn't have per pitcher batting attributes and the era was limited to a certain range and used a formula (which I had figured out somewhere along the lines) to determine the value, something like hex value - 100...can't remember for sure.  Oh yeah, same for batting average, that's a hack as well...

Everythign else should be stock...

OK I'm lost.... again. For eg I can find Bell & Canseco.....
"02 0B 2C 33 33 2F 2F" which denotes player #2 Bell, space, space
"03 0C 28 35 3A 2A 36"  which denotes player #3 Cansco


So up until this point I'm fine. Where I get lost is after the players names.....
-After Bell it says "00 9E 2F 0E A8 03 7C 00 00 (all I can get from this is 00=00, 9E=?? 2F=h, 0E=E, 03=03, 7C=??, 00=00, 00=00)
Note: ?? means I don't know

Would this be where Avg, Con, Spd etc. are stored?

For pitchers I can find Saberhagen.....
"0D 1C 29 39 2F 2E 35" which denotes player #D Sbrhgn
-After Sbrhgn it says "92 EC 98 A5 B9 B6 28 71 8F" (other 28=a I have no idea what the other values denote).

Would this be where ERA, Drop, Curve L etc. are stored? Or what do the represent? This is where I get lost.

Turd

You convert those hex numbers to decimal (using windows calculator, hit alt-3 to put it in scientific mode, and click the radio button for "hex")

So, for instance, x9E is his batting average hi, which I can't remember how to calculate...it's different in the original, so ignore this for now until I can remember...
then next number is x2F, which is 47 in decimal...that's his HR number. 
Then x0E, which is 14, his contact.
Then, for power, it's two numbers to determine value, a hi and a lo.  xA803...basically you swap these to get the value, so in calc, enter 03A8, which gives you 936, which is power
Next is x7C, which is 124 in decimal, his speed
Batting average lo...original game doesn't use this
and the last byte is unused...

Make sense?

thalivest

Thank you, my dude. I love the fucking shit outta you. I get it now, appreciate all your help.

Would you be able to give me that same breakdown regarding pitchers?

Turd

Sure...post the line from a pitcher for me and I'll break it down...

thalivest

Quote from: Turd on 05/08/12, 02:43:53 PM
Sure...post the line from a pitcher for me and I'll break it down...

No problem......

After Sbrhgn it says "92 EC 98 A5 B9 B6 28 71 8F"

NOTE: Regarding batting avg. From playing aroung with #'s it seems if I convert the hex value to a decimal then add 111 it gives the avg that lines up with said player. I've only checked about 3 but it seems to give their avg.

Turd

Yeah, that sounds *about* right...

Turd

92 - Sinker Ability/Arm Type - split this byte into nibbles - sinker ability is 9, arm type is 2 (0=RO, 1=LO, 2=RS, 3=LS, I think)
EC - ERA Hi  - In the 10-team ROM, I believe this is their ERA, and uses a similar formula to calculate the ERA
98 - Sinker Speed (Up + A) - 152 in decimal - There's a formula that converts this to a MPH range. I have it somewhere
A5 - Curve Speed (A) - 165 in decimal
B9 - Fastball speed (Down + A) - 185 in decimal
B6 - Curve Left, Curve Right - split into nibbles - CL = 11, CR = 6
28 - Stamina = 40 decimal
71 - CPU Left - 113 decimal - determines some stuff in watch mode for when to throw a curve and how much to curve it
8F - 143 decimal - determines some stuff in watch mode for when to throw a curve and how much to curve it

thalivest

Thank you once again, kind sir.

Turd

Pretty good just off of memory, eh? :)

thalivest

Just from memeroy?? I'd say better than good. I fucked up on Avg, it the dec # + 150 (not 111, I clicked on a different rom). And that same premise for ERA is dec # + 100.

Although I am missing "bats R/L", haven't been able to locate that.

BeefMaster

If I recall correctly, I think that one's just one of the bytes of the batting data, a 0/1 switch for R/L (it can be 2 in RBI 2/3, for switch hitters).
"Nobody in football should be called a genius. A genius is a guy like Norman Einstein." - Joe Theismann

NintendoLegend

WHO THE CRAP ARE YOU PEOPLE AND WHY HAVE I NEVER DISCOVERED THESE FORUMS BEFORE?!

fathedX

Kinda stunning to stumble upon this forum, ain't it?