jstout Posted February 15, 2008 Share Posted February 15, 2008 Here is some code for recording the number of tackles for each defensive player during a played game (NOT a simmed game). I've been using this for testing play design coding but it has a few bugs. I thought someone might find it useful or be able to expand upon it. I haven't checked the erase code location for 100% correctness thoroughly though I expect no problems. *Added code for the Pro Bowl game, changed entry point to start of stats not cleanup to fix a bug, changed back fumble code, and added code to fix previous bugs*Note: Do not use this on cxrom's 32-team rom as locations listed are being used and you'll ruin the rom. Also I'm not aware of the exact SRAM locations he used.The Bugs are:[Previous Bugs are fixed using this code.]1. Fumble tackles are not recorded (defender fumbles back to the offense caused problems with checking for lost fumbles)2. Not a Bug but no Special Team tackles are recordedx25AE9Jump to New Code:4C 90 FF JMP $FF90EA NOPEA NOPEA NOPEA NOPx3FFA0Change Banks for Tackle Code:A9 06 LDA #$068D 00 80 STA $8000A9 01 LDA #$018D 01 80 STA $800120 E0 9C JSR $9CE0 ; Go to Tackle codeA9 06 LDA #$068D 00 80 STA $8000A9 12 LDA #$128D 01 80 STA $8001; RE-ENTER NORMAL CODEA5 70 LDA $7010 03 BPL :+4C 3E 9C JMP $9C3E ; Go back to Player 24C E0 9A : JMP $9AE0 ; Go back to Player 1x3CF0Record Tackles:; ENABLE SRAMA9 80 LDA #$808D 01 A0 STA $A001; CHECK FOR OUT OF BOUNDSA5 73 LDA $73C9 80 CMP #$80 ; Out of BoundsF0 39 BEQ :+++++; CHECK FOR A FUMBLE29 20 AND #$20 ; FumbledD0 35 BNE :+++++; CHECK FOR A RUN OR PASS PLAYA5 71 LDA $71C9 8C CMP #$8C ; Run PlayF0 11 BEQ :++C9 AC CMP #$AC ; Pass PlayF0 07 BEQ :+C9 CD CMP #$CD ; Sacked QBF0 09 BEQ :++4C 24 9D JMP :+++++; CHECK FOR A COMPLETED PASSA5 72 : LDA $72C9 20 CMP #$20 ; CompletionD0 1E BNE :++++; TACKLEDA5 B5 : LDA $B5C9 40 CMP #$40 ; Player 190 18 BCC :+++C9 C0 CMP #$C0 ; Player 2B0 05 BCS :+; PLAYER 129 0F AND #$0F4C 1A 9D JMP :++; PLAYER 229 0F : AND #$0F18 CLC69 0B ADC #$0B; RECORD TACKLEA8 : TAYB9 80 7F LDA $7F80,Y18 CLC69 01 ADC #$0199 80 7F STA $7F80,Y; DISABLE SRAMA9 C0 : LDA #$C08D 01 A0 STA $A001; EXIT60 RTSx21D7EJump to Erase Code:4C E0 BF JMP $BFE0EA NOPx23FF0:Erase Tackles:A9 00 LDA #$00A0 16 LDY #$1699 7F 7F : STA $7F7F,Y88 DEYD0 FA BNE :-A0 0E LDY #$0E4C 72 9D JMP $9D72x21419Jump to Pro Bowl Erase Code:A2 01 LDX #$01A0 06 LDY #$0684 44 STY $444C EF BF JMP $BFEFEA NOPx23FFFPro Bowl Erase Tackles:A9 00 LDA #$00A0 16 LDY #$1699 7F 7F : STA $7F7F,Y88 DEYD0 FA BNE :-A9 05 LDA #$05A0 64 LDY #$644C 13 94 JMP $9413If a league ever uses this then the tackles are for player 1 at $7F80 to $7F8A (x1F80 to x1F8A) and player 2 at $7F8B to $7F95 (x1F8B to x1F95) in SRAM. Tundrayeti311 1 Quote Link to comment Share on other sites More sharing options...
bruddog Posted February 15, 2008 Share Posted February 15, 2008 whoa! Quote Link to comment Share on other sites More sharing options...
TomTupa Posted February 16, 2008 Share Posted February 16, 2008 Man, this could seriously cause me to play some seasons vs. the computer again.Hey I know very little about this kind of thing, but when trying to get rid of the bugs (particularly #3) maybe someone can find a way to stop the touchdown fumbles from erasing stats. Or eliminate those fumbles altogether. Quote Link to comment Share on other sites More sharing options...
averagetsbplayer Posted February 16, 2008 Share Posted February 16, 2008 wow, this would be awesome if we could figure out to handle those bugs. too bad i know zero about nes programming or anything this low-level... Quote Link to comment Share on other sites More sharing options...
jstout Posted February 16, 2008 Author Share Posted February 16, 2008 wow, this would be awesome if we could figure out to handle those bugs. too bad i know zero about nes programming or anything this low-level...I'm looking into this now and I found that some of the bytes being zeroed out in the same area are telling what happened on the play. I should be able to pinpoint it out more and use these to whack many of the bugs off. Quote Link to comment Share on other sites More sharing options...
MrBeef Posted February 17, 2008 Share Posted February 17, 2008 With all this incredible info you have found I have one for you. As we or most know their were suppose to be penalties in the game. Can this be looked into or is it a dead end road? Quote Link to comment Share on other sites More sharing options...
edisaurusrex Posted February 17, 2008 Share Posted February 17, 2008 I thought I'd ask while we are at it. Can you also find a way to track forced fumbles like TSB2 and TSB3 does? Either way, implementing just this would be awesome. Quote Link to comment Share on other sites More sharing options...
TomTupa Posted February 17, 2008 Share Posted February 17, 2008 We're getting greedy now aren't we? jstout, cxrom, and bad_al are spoiling us rotten! Quote Link to comment Share on other sites More sharing options...
BigBen7 Posted February 17, 2008 Share Posted February 17, 2008 With all this incredible info you have found I have one for you. As we or most know their were suppose to be penalties in the game. Can this be looked into or is it a dead end road?Why would you want penalties in the game?? Quote Link to comment Share on other sites More sharing options...
MrBeef Posted February 17, 2008 Share Posted February 17, 2008 Wny not!!!????If we're emulating the Nfl last I heard they DID have penalties. Quote Link to comment Share on other sites More sharing options...
BigBen7 Posted February 17, 2008 Share Posted February 17, 2008 Wny not!!!????If we're emulating the Nfl last I heard they DID have penalties.You don't have to get all mad. I didn't know that the NFL had penalties? Anyways what would you put in it, its impossible, you would have to rewrite the whole game engine.Tecmo wouldn't be the same with penalties. Your entitled to your opinion and I'm entitled to mine. My opinion, I think it would be stupid to have penalties.I wasn't trying to start an argument about penalties. You want em, you could have em in your game. Quote Link to comment Share on other sites More sharing options...
estang74 Posted February 17, 2008 Share Posted February 17, 2008 So if the tackle stat thing works, will it work as: it will be able to keep track of each individual defensive players tackles per game or will it be total tackles per game. If it is each player, that would be amazing and if you guys figured out how to do 2pt conversions it would be the best tecmo rom ever. Much thanks to everyone who is coding this game and trying to bring it up to date, it is truly awesome to play this game and watch the progression it has made since 91' Quote Link to comment Share on other sites More sharing options...
jstout Posted February 17, 2008 Author Share Posted February 17, 2008 So if the tackle stat thing works, will it work as: it will be able to keep track of each individual defensive players tackles per game or will it be total tackles per game. If it is each player, that would be amazing and if you guys figured out how to do 2pt conversions it would be the best tecmo rom ever. Much thanks to everyone who is coding this game and trying to bring it up to date, it is truly awesome to play this game and watch the progression it has made since 91'It is currently keeping track of individual players tackles in the game. Each of the 11 defensive players for both teams get recorded at the SRAM locations I specified. Everything is working as expected now but I'm still checking all of it just in case. Quote Link to comment Share on other sites More sharing options...
estang74 Posted February 17, 2008 Share Posted February 17, 2008 That is awesome. Can't wait to try that rom out when it's available. So if it works, then the info will be on the leaders page or would it also be on the defensive players page next to his sacks and int's? Quote Link to comment Share on other sites More sharing options...
jstout Posted February 17, 2008 Author Share Posted February 17, 2008 That is awesome. Can't wait to try that rom out when it's available. So if it works, then the info will be on the leaders page or would it also be on the defensive players page next to his sacks and int's?It currently isn't listed on a page as it only totals for a single game so you can only pull the numbers from the an STA or SAV file. If I can find the space to store them and figure out how to pull the numbers than that might change. Quote Link to comment Share on other sites More sharing options...
MrNFL Posted February 17, 2008 Share Posted February 17, 2008 The way Tecmo is made, really the only penalties you could even put in the game are late hits and roughing penalties. And what's the fun in taking those out? Quote Link to comment Share on other sites More sharing options...
edisaurusrex Posted February 17, 2008 Share Posted February 17, 2008 It currently isn't listed on a page as it only totals for a single game so you can only pull the numbers from the an STA or SAV file. If I can find the space to store them and figure out how to pull the numbers than that might change. All I care is if you get it on the save state file. Seems like the rom update threads are equally divided between people who play league seasons online and seasons on the actual rom. I'm happily part of the former . Quote Link to comment Share on other sites More sharing options...
Randy Moss Posted February 18, 2008 Share Posted February 18, 2008 If you find a way to implement them into season play, you could always replace the punting stats leader board with a tackles leader board. I'm pretty sure I've never done much more than glance at punting while playing a season. Tecmo Psycho 1 Quote Link to comment Share on other sites More sharing options...
TomTupa Posted February 18, 2008 Share Posted February 18, 2008 for season kept stats i'd rather see tacklesfor single game sta, like league game or tpc i'd love to see fumbles in box scorepenalties, blah... boo....punt stats screen - i second that notion Quote Link to comment Share on other sites More sharing options...
BigBen7 Posted February 18, 2008 Share Posted February 18, 2008 for season kept stats i'd rather see tacklesfor single game sta, like league game or tpc i'd love to see fumbles in box scorepenalties, blah... boo....punt stats screen - i second that notionme too, I rarely look at the punt leaders. Quote Link to comment Share on other sites More sharing options...
lightninglarry Posted February 18, 2008 Share Posted February 18, 2008 whats this "punt" you guys refer to?its TSB, 10 yards. Unless your on the 20 yard rom, punts RARELY happen. manYo 1 Quote Link to comment Share on other sites More sharing options...
buck Posted February 19, 2008 Share Posted February 19, 2008 for season kept stats i'd rather see tacklesfor single game sta, like league game or tpc i'd love to see fumbles in box scorepenalties, blah... boo....punt stats screen - i second that notion100% Quote Link to comment Share on other sites More sharing options...
buck Posted August 14, 2008 Share Posted August 14, 2008 Did you ever get anywhere with this, jstout? Quote Link to comment Share on other sites More sharing options...
averagetsbplayer Posted February 7, 2009 Share Posted February 7, 2009 After some investigation, it looks like the tackles are stored at the following locations for Nestopia 1.39 and 1.40:Player 1 - x320f through x3219Player 2 - x321a through x3224 Tundrayeti311 1 Quote Link to comment Share on other sites More sharing options...
TecmoTurd Posted February 7, 2009 Share Posted February 7, 2009 He's also part way through figuring this out for the SNES for me. What a badass he is. I named our MVP award for the SNFL after him. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.