[Tool] Copy player ratings between roster+savegame files

A hub for everything related to NBA 2K14 modding. Releases, previews, requests, and other modding discussion belongs here.

[Tool] Copy player ratings between roster+savegame files

Postby flitzpiepe on Mon Dec 02, 2013 2:38 am

Hey,

I started writing this tool for personal use at first but maybe others will appreciate it, too
It was bothering me that i started an Association with Med's Ultimate Roster which is based on a flawed version of the official roster (too high 3pt tendencies and ratings for lots of players for example). So I wanted to be able to copy the ratings and tendencies from another roster into my existing association savegame.
Also, I wanted to be able to do that again, once rosters get released that really improve the gameplay.

So here it goes.
what does it do ?
  • input files: should work for all non-compressed files that contain player-data. Tested with .ROS files and .FXG (association save) files.
  • the output file must be a valid roster file or savegame as well, of course
  • identifies all players in the input file by their CFID and looks them up in the output file. If a CFID is found in the input file but not in the output file, the according player is ignored. And players who appear only in the output file are not treated as well, obviously.
  • All ratings and tendencies are copied at once, no selection or viewing of individual values is possible
  • copying can be done for a list of selected CFIDs or for all players at once, that are found in the input file

usage
  • only command-line based right now
  • checksum needs to be calculated and updated manually right now (there was a tutorial for this around here somewhere)
  • running it with -h or --help will display the available options (there are two additional ones which dump some info on about a roster file on the commandline, used it during development
  • [for copying:]
    Code: Select all
    RosterCopy.exe -w [infile] [outfile] -1
    will copy all player ratings from [infile] into [outfile], if you replace the -1 parameter with a list of CFIDs, the tool will consider only those players for copying.
  • on the copy operation, it dumps some runtime info on the commandline as well, e.g. each found player, in case you don't want to see this info you can run the tool with
    Code: Select all
     >some_log.file 2>@1
    appended to the command, which will redirect the all output to [some_log.file]. You can then open that file in a text editor to read the output

future stuff
  • automatic crc32 calculation
  • copying of sigskills
  • copying of gear
  • gui
    • selection of cfid's from the gui
    • selection, which things should be copied (ratings, tendencies, sigskills, gear)

I tested the tool by taking the Official Roster from the NLSC download section (the one from Nov.24th) and copied it's ratings into an existing Association savegame of mine.
There might very well be bugs left to fix, so be invited to do the beta-testing with me ;).
Comments, Criticism, ThumbsUp >> [me]

Lots of thanks goes to Jaosming for providing helpful tips on roster stuff and tutorials in general. And to all the people who put in effort and free time to investigate the internals of this game and share it freely with others. (Especially to the guys who compiled the list of CFIDs :))


_______________________________

Steps to run the tool
- copy RosterCopy.exe + files you want to change into the same directory (not necessary, but makes things a little easier)
- open the windows command line (aka dos window): [windowskey] + [r]
- navigate to the to the directory where the RosterCopy.exe is stored
- type
Code: Select all
RosterCopy.exe -w [inputfile] [outputfile] -1

- enter
- fix the checksum of the output file
- copy the output file back to the NBA 2k14 Saves directory, on windows 7
Code: Select all
C:\Users\[your_username]\AppData\Roaming\2K Sports\NBA 2k14\Saves
You do not have the required permissions to view the files attached to this post.
Last edited by flitzpiepe on Tue Dec 03, 2013 5:18 am, edited 3 times in total.
flitzpiepe
 
Posts: 39
Joined: Thu Mar 01, 2007 5:25 am

Re: [Tool] Copy player ratings between roster+savegame files

Postby Rosque on Mon Dec 02, 2013 5:12 am

OMFG YOU 'BOUT TO GET HIRED BY 2K :bowdown: :bowdown:
User avatar
Rosque
 
Posts: 1074
Joined: Wed Oct 12, 2011 7:58 pm

Re: [Tool] Copy player ratings between roster+savegame files

Postby agolden on Mon Dec 02, 2013 5:51 am

Great effort and tool! You should probably also put your tool in the NLSC Download Section as well.
Check out my custom NBA 2K14 soundtrack thread:

http://forums.nba-live.com/viewtopic.php?f=153&t=93537
User avatar
agolden
"Doc calls it 'coach's porno,'" Clippers guard J.J. Redick said. "The stuff that gets me excited is the multiple stops in a row"
 
Posts: 747
Joined: Thu Aug 01, 2013 5:05 am
Location: Los Angeles Area, California

Re: [Tool] Copy player ratings between roster+savegame files

Postby mig23zcyther on Mon Dec 02, 2013 7:15 am

I get an error whenever I try to run the exe file on my system. It says something about a missing dll file of sort. Thanks. :(
User avatar
mig23zcyther
 
Posts: 25
Joined: Mon Jul 09, 2012 3:34 am
Location: Manila,Philippines

Re: [Tool] Copy player ratings between roster+savegame files

Postby flitzpiepe on Mon Dec 02, 2013 7:17 am

mig23zcyther wrote:I get an error whenever I try to run the exe file on my system. It says something about a missing dll file of sort. Thanks. :(


No problem. Could you post the name of the missing dll file ? And what version of Windows are you running ?
__________
edit:
Previously, I built the tool with MinGW (Linux utils for Windows). Here is another build, now with MS Visual Studio. Try if that works better for you.
You do not have the required permissions to view the files attached to this post.
flitzpiepe
 
Posts: 39
Joined: Thu Mar 01, 2007 5:25 am

Re: [Tool] Copy player ratings between roster+savegame files

Postby jzero on Mon Dec 02, 2013 9:30 am

how do i run this? whenever i open it a cmd window pops up and then just closes
jzero
 
Posts: 91
Joined: Wed Jul 07, 2010 11:42 am

Re: [Tool] Copy player ratings between roster+savegame files

Postby manustyle90 on Mon Dec 02, 2013 10:21 pm

doesn't work, it pops up and then closes. that tool would be very useful, in my case i would like to put slimm's tendencies and ratings into my association
User avatar
manustyle90
 
Posts: 239
Joined: Wed Aug 27, 2008 11:30 pm

Re: [Tool] Copy player ratings between roster+savegame files

Postby sooya5u on Tue Dec 03, 2013 12:43 am

Great effort and tool!

does it work on mycareer file ?
sooya5u
 
Posts: 1
Joined: Mon Oct 28, 2013 9:28 pm

Re: [Tool] Copy player ratings between roster+savegame files

Postby flitzpiepe on Tue Dec 03, 2013 4:41 am

jzero wrote:how do i run this? whenever i open it a cmd window pops up and then just closes


manustyle90 wrote:doesn't work, it pops up and then closes. that tool would be very useful, in my case i would like to put slimm's tendencies and ratings into my association


I included another description on how to use it at the end of the first post.
flitzpiepe
 
Posts: 39
Joined: Thu Mar 01, 2007 5:25 am

Re: [Tool] Copy player ratings between roster+savegame files

Postby flitzpiepe on Tue Dec 03, 2013 4:45 am

sooya5u wrote:Great effort and tool!

does it work on mycareer file ?


I added the necessary offsets and file extensions and it worked for me. I copied values from a .ROS file into a .CMG file and I also copied values from a .FXG file into a .CMG file.
The newer version is uploaded with the OP. Thanks for the notice :)
flitzpiepe
 
Posts: 39
Joined: Thu Mar 01, 2007 5:25 am

Re: [Tool] Copy player ratings between roster+savegame files

Postby flitzpiepe on Tue Dec 03, 2013 5:23 am

agolden wrote:Great effort and tool! You should probably also put your tool in the NLSC Download Section as well.

Good idea :)
flitzpiepe
 
Posts: 39
Joined: Thu Mar 01, 2007 5:25 am

Re: [Tool] Copy player ratings between roster+savegame files

Postby manustyle90 on Tue Dec 03, 2013 8:53 am

can you explain this step? - fix the checksum of the output file
User avatar
manustyle90
 
Posts: 239
Joined: Wed Aug 27, 2008 11:30 pm

Re: [Tool] Copy player ratings between roster+savegame files

Postby JaoSming on Tue Dec 03, 2013 9:48 am

manustyle90 wrote:can you explain this step? - fix the checksum of the output file

bottom of Leftos' first post, or my first reply
viewtopic.php?f=150&t=88190
Opinions are my own.

JaoSming
2KTV Producer
NBA 2K Developer
 
Posts: 29904
Joined: Tue Sep 13, 2005 12:45 am
Location: 2K

Re: [Tool] Copy player ratings between roster+savegame files

Postby mtdub on Tue Dec 03, 2013 12:36 pm

Wow this is a great tool and exactlly what i have been looking for but i cant seem to get this to work, i just finished copying a whole roster edits to another roster manually and this tool would of helped bigtime. it took me 2 weeks and 8 hours a day to do it manually lol. I never have been good when it comes to command line i keep getting the error not recognized as an internal or external command, operable program or batch file. When following the instructions
mtdub
 
Posts: 143
Joined: Fri Nov 09, 2012 11:43 am
Location: Peoria,Illinois

Re: [Tool] Copy player ratings between roster+savegame files

Postby flitzpiepe on Wed Dec 04, 2013 7:33 am

mtdub wrote:Wow this is a great tool and exactlly what i have been looking for but i cant seem to get this to work, i just finished copying a whole roster edits to another roster manually and this tool would of helped bigtime. it took me 2 weeks and 8 hours a day to do it manually lol. I never have been good when it comes to command line i keep getting the error not recognized as an internal or external command, operable program or batch file. When following the instructions


Sorry, I don't know the exact wording of this error in the english version of Windows but this sounds to me like you are not in the correct directory, I might be wrong though.
What did you exactly do ?
flitzpiepe
 
Posts: 39
Joined: Thu Mar 01, 2007 5:25 am

Re: [Tool] Copy player ratings between roster+savegame files

Postby JN_big3 on Wed Dec 04, 2013 8:16 am

Can this tool Copy an Exact Player to another roster? I want to copy MyCareer player to my Association Mode (Already started Association)
User avatar
JN_big3
 
Posts: 40
Joined: Mon Apr 04, 2011 6:12 pm
Location: Baguio CIty, Philippines

Re: [Tool] Copy player ratings between roster+savegame files

Postby flitzpiepe on Thu Dec 05, 2013 2:56 am

to quote the initial post:

Code: Select all
RosterCopy.exe -w [infile] [outfile] -1

will copy all player ratings from [infile] into [outfile], if you replace the -1 parameter with a list of CFIDs, the tool will consider only those players for copying.


So, in other words: yes ;)


Actually, scratch that. I don't know if that would work but tend to say no. What the tool does is to copy an existing player according to his cyberface id over another player with the same cyberface id. These players are usually the same. But since your MyPlayer doesn't exist in an Association savegame, the tool doesn't find his CFID in that save. I also don't know atm how the cyberface of a MyPlayer is exactly stored.
flitzpiepe
 
Posts: 39
Joined: Thu Mar 01, 2007 5:25 am

Re: [Tool] Copy player ratings between roster+savegame files

Postby Mile23 on Sat Dec 07, 2013 3:11 am

on my computer it does not work
My Fictional Courts - HERE
User avatar
Mile23
 
Posts: 782
Joined: Sat Jun 18, 2011 2:57 am

Re: [Tool] Copy player ratings between roster+savegame files

Postby flitzpiepe on Sat Dec 07, 2013 6:31 am

Mile23 wrote:on my computer it does not work


Because you did what and then happened what ?
flitzpiepe
 
Posts: 39
Joined: Thu Mar 01, 2007 5:25 am

Re: [Tool] Copy player ratings between roster+savegame files

Postby jzero on Sun Dec 22, 2013 3:58 pm

Really struggling with this tool.
Any chance someone could post up a video of how to do a transfer?
Please :bowdown:
jzero
 
Posts: 91
Joined: Wed Jul 07, 2010 11:42 am

Re: [Tool] Copy player ratings between roster+savegame files

Postby sthak15 on Mon Dec 23, 2013 10:54 am

Is there a way to copy all the players from one savefile to overwrite another savefile?
sthak15
 
Posts: 3
Joined: Tue Dec 17, 2013 12:22 pm

Re: [Tool] Copy player ratings between roster+savegame files

Postby sanghai2 on Tue Dec 24, 2013 3:25 pm

I added some signature skills to a player, but it didn't transfer over to my career save file? Anyone else experience the same thing? Ratings seem to transfer fine though :bowdown2:
sanghai2
 
Posts: 36
Joined: Thu Dec 16, 2010 2:03 pm

Re: [Tool] Copy player ratings between roster+savegame files

Postby TC#10 on Thu Dec 26, 2013 2:06 am

This is exactly what I was looking for! :bowdown:

When playing Association I always edit players during the season and would like to implement these changes on a roster file so that when I start a "new" Association I can utilize the player ratings/tendencies from the older Association which will save a lot of time!
Official NBA 2K9 PC Version Appreciation Thread: http://www.2ksports.com/forums/showthread.php?t=197649
TC NBA 2K9 PRO Gameplay Sliders for the PC Thread: http://www.operationsports.com/forums/n ... rs-pc.html
Ways to make CPU Superstars & PGs to be more Dominant: viewtopic.php?f=86&t=63361
User avatar
TC#10
 
Posts: 708
Joined: Wed Oct 05, 2005 1:45 pm
Location: Toronto

Re: [Tool] Copy player ratings between roster+savegame files

Postby xevangz on Sat Dec 28, 2013 4:23 am

when I load my roster now its corrupted :( , but great effort of making the tool :applaud:
xevangz
 
Posts: 127
Joined: Fri Jul 19, 2013 6:20 pm

Re: [Tool] Copy player ratings between roster+savegame files

Postby Lakeshow2482 on Sat Jan 04, 2014 12:58 pm

This sounds awesome!! I'm wanting to start an association with the opening night rosters but I want to update my association rosters player ratings, injury status, accessory updates and up to date player rotations and transactions. I tried using the reditor for this but as new players are added sometimes it throws everything out if whack. Your tool sounds like potentially it could do these things as your tool uses cf Id's to update ratings. Some of the things I've outlined probably wouldn't be possible but your tool does ratings which is huge, it looks like you'll be doing accessories but injuries sound achievable. How about transactions? I'd definetley consider donating if I could get an association like this rolling haha.
User avatar
Lakeshow2482
 
Posts: 227
Joined: Mon Jul 09, 2012 1:25 am

Next

Return to NBA 2K14 Modding

Who is online

Users browsing this forum: No registered users and 20 guests