Home

Franchise Hex Editing Progress

This is a discussion on Franchise Hex Editing Progress within the Madden NFL Football PC forums.

Go Back   Operation Sports Forums > Football > Madden NFL Football > Madden NFL Football PC
MLB The Show 24 Review: Another Solid Hit for the Series
New Star GP Review: Old-School Arcade Fun
Where Are Our College Basketball Video Game Rumors?
Reply
 
Thread Tools
Old 03-24-2019, 01:58 PM   #1
Rookie
 
bep713's Arena
 
OVR: 0
Join Date: Nov 2009
Franchise Hex Editing Progress

Hey guys,

I started looking into editing the franchise save files for M19. I couldn't find much on here or FootballIdiot so if anyone else has made progress on this, please feel free to share what you've found! I'm going to use this thread as a how to/notes page.

Update - Editor Download
I've released a beta version of the editor. Please make a copy of your franchise save before using it.
Editor: https://github.com/bep713/madden-fra...ditor/releases
Source: https://github.com/bep713/madden-franchise-editor

Release notes and info on post #24!

To download editor:
  1. Click link above for Editor
  2. Scroll down all the way and click 'Assets'
  3. Click the first item
  4. Unzip contents and run madden-schedule.exe
  5. Read instructions on the download page for how to use

It may take some time to unzip all the files.

How to start hex editing the franchise file
The game saves each file to [My Documents]/Madden NFL 19/settings. Each franchise file will be named like: CAREER-[filename].

If you open one of those up in a hex editor you'll get a lot of jumbled data - because it's compressed (well most of it). You can use Offzip to extract the data into a readable format. The good news is that we can reimport the modified data back into the franchise save...well, sometimes.
  1. Make a new folder in your Madden 19 save folder named 'output'
  2. Extract offzip.zip anywhere you want
  3. Open a new command prompt in the folder you extracted offzip (Open the folder in Windows Explorer and type 'cmd' in the address bar without the quotes.)
  4. Type offzip -a [path to your franchise file here] output

You might get some warnings but that's okay. If you open up the output folder you made in step 1, you should see a file named 00000052.frt. This file contains the uncompressed franchise data for your save.

Download Offzip here Scroll down or search for Offzip! It's not the first one.

Download HxD Hex Editor here Make sure to select the English version :P

Reimporting the data to the franchise file
Once you made your changes, you can re-import the data back into the franchise file and load it up in game.
  1. Re-open a command prompt window in offzip's directory if you closed it before.
  2. Type offzip -r -a [path to your franchise file here] output
  3. Offzip will try re-importing the data back. This usually takes awhile
  4. You might see some warnings like before, but it should say 1 files reimported when done.

I've noticed that Offzip will tell me that the compressed data is bigger than the original in some cases. If you get this error, the changes will not be made to the franchise file and you'll have to either figure out why or edit something else for now. I don't know much about compression algorithms but I do know that Madden edits other values in the save when you make a small change which would probably keep the compressed data the same size.

Generic Strategy
My plan is to find as much as I can and hope other people join in too because I probably don't have the time to do this myself. Once we figure enough info out I could make a program that would make this much easier.
  1. Determine what to find
  2. Make a copy of the uncompressed data and set it aside as a control
  3. Make a small change in the game - maybe change the first letter of Baker Mayfield's name...or re-order just him and one other player on the depth chart, or sim one game. You want to change as little as possible so that you have a better idea of what changed in the file when comparing.
  4. Save the franchise file in game
  5. Use Offzip to extract the compressed data
  6. Use a comparison tool like Beyond Compare to analyze what changed from the control and the new file
  7. Repeat until we figure it out!

Goals
  • Editable schedules - my primary focus here
  • Editable teams/divisions
  • Figuring out where stats are located and how they are stored in the hex file
  • Custom rosters/salaries
  • Anything else! You name it, we want it.

Last edited by bep713; 07-28-2019 at 02:23 AM.
bep713 is offline  
Reply With Quote
Advertisements - Register to remove
Old 03-24-2019, 01:59 PM   #2
Rookie
 
bep713's Arena
 
OVR: 0
Join Date: Nov 2009
Re: Franchise Hex Editing Progress

Progress
I'll keep progress info updated here so it's easier to find.

Player names
This one's easy because you can search for the player name as text. Note that this is ONLY the player's name, ID, and hometown. Other data like height, weight, and attributes are located somewhere else.

Data starts around 0x38B360 and will start with legends and misc players. The data will depend on which roster you used when you started your franchise. I'm not sure if all of them have legends but I used Sabo's roster to start and I don't think he made legends in there. The NFL players will be listed in alphabetical order by last name. The names will always be in the following order: FIRST, LAST, ID, Hometown.

Teams
Again, easy because you can search for the team name. Located around 0x932DC0 for me.

Starts with the 49ers and goes in alphabetical order by team last name. Data will be in the following order: Team last name, team last name again, city name, team last name again, unknown (D), team abbreviation, team db name, alternate abbreviation, team last name, alternate abbreviation. I was able to change the Browns to the Crowns by changing each team last name entry.
bep713 is offline  
Reply With Quote
Old 03-24-2019, 04:32 PM   #3
Rookie
 
OVR: 1
Join Date: Aug 2007
Re: Franchise Hex Editing Progress

Excellent write-up!


Sent from my iPhone using Operation Sports
bakersville123 is offline  
Reply With Quote
Old 03-25-2019, 05:26 PM   #4
Rookie
 
bep713's Arena
 
OVR: 0
Join Date: Nov 2009
Re: Franchise Hex Editing Progress

Quick update: I was able to change the super bowl matchup to any teams that I wanted - including the AFC pro bowl team (the game crashed when i tried to play). However, it is definitely possible to edit schedules.

I was also able to change the score of past games, but it did not reflect the stats or standings of each team or player, bummer.

On a note about stats, I was able to change a player's career stats but not season stats. Even then, the change only showed on the career stats page (Stats -> Career stats). The change did not show when i viewed player stats from the player edit screen. I think this is because the season stats are calculated from each week's stats on the fly...so if we find those we can probably edit the season stats too.

Note about the franchise file: I'm pretty sure Madden uses a zlib encoder.

If you open the compressed file from the game, there is definitely a header that always starts with FBCHUNKS. Offset 4A has three hex numbers that mark the end of the compressed data. If you go to that address, there will be 51 hex characters after it, which could be a trailer? I have no clue.

Last edited by bep713; 03-25-2019 at 05:59 PM.
bep713 is offline  
Reply With Quote
Old 03-25-2019, 08:03 PM   #5
Banned
 
OVR: 0
Join Date: Feb 2012
Re: Franchise Hex Editing Progress

This is huge man, I was trying to dabble with this last night
and I'm going to dabble more and keep updated on this post also when I can start crunching with things.

I'll be trying to figure out MUT to Franchise conversion things
once I get the hang of what you've uncovered.
I feel like I might have to find a different hex program though I'm not sure.
Since its all server MUT based. Anything I figure out or make I'll post here credited.

Massive post.
Willchillz is offline  
Reply With Quote
Advertisements - Register to remove
Old 03-25-2019, 10:35 PM   #6
Rookie
 
bep713's Arena
 
OVR: 0
Join Date: Nov 2009
Re: Franchise Hex Editing Progress

Alright, made some progress on the schedule. I was able to note all team hex values and I was able to figure out the game time (sort of)

Team hex values for the schedule
Spoiler


You can find the schedule by searching for 'SeasonGame' in the uncompressed data. I was able to find it in the compressed file sometimes, but changing values inside the compressed file didn't do anything in game.

Here's a snippet of one game in hex:
Spoiler


Common game times (there's more than 1 way to make the same time)
Spoiler


*EDIT*: The 33 11 at the end of the week was actually part of the last game's score. The 11 indicates the day of week.

Day of week values
Spoiler


As far as the '33' number - I'm not sure what is, but TNF games always have 31, normal games always have 30, SNF has 32, and MNF has 33. Could be presentation packages?

Last edited by bep713; 03-26-2019 at 10:31 PM.
bep713 is offline  
Reply With Quote
Old 03-26-2019, 03:32 PM   #7
Pro
 
trey31's Arena
 
OVR: 2
Join Date: May 2012
Location: kcmo
Blog Entries: 2
Re: Franchise Hex Editing Progress

This is fantastic work!!
trey31 is offline  
Reply With Quote
Old 03-26-2019, 11:15 PM   #8
Rookie
 
bep713's Arena
 
OVR: 0
Join Date: Nov 2009
Re: Franchise Hex Editing Progress

End of day update:
  • I was able to swap home/away teams just by swapping their team IDs in the hex.
  • Found the day of week indicator
  • Found the game week indicator BUT it's UI only. If you move your game from week 3 to week 5, Madden will still want you to play that game on week 3. I'm not sure why.
  • I've been using packzip to repackage the compressed data and it won't give any errors BUT the CRC data is not correct in the franchise file and I think that will lead to game freezes/errors later on down the line. But for now, this is great for testing. We'll want to figure out how to calculate the CRC eventually.
bep713 is offline  
Reply With Quote
Reply


« Previous Thread | Next Thread »

« Operation Sports Forums > Football > Madden NFL Football > Madden NFL Football PC »


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -4. The time now is 10:56 AM.
Top -