Main Site | Forum | Rules | Downloads | Wiki | Features | Podcast

NLSC Forum

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

[Tool] Copy player ratings between roster+savegame files

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:
    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:
     >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:
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:
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.

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

Mon Dec 02, 2013 5:12 am

OMFG YOU 'BOUT TO GET HIRED BY 2K :bowdown: :bowdown:

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

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.

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

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. :(

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

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.

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

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

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

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

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

Tue Dec 03, 2013 12:43 am

Great effort and tool!

does it work on mycareer file ?

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

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.

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

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 :)

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

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 :)

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

Tue Dec 03, 2013 8:53 am

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

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

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

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

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

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

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 ?

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

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)

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

Thu Dec 05, 2013 2:56 am

to quote the initial post:

Code:
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.

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

Sat Dec 07, 2013 3:11 am

on my computer it does not work

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

Sat Dec 07, 2013 6:31 am

Mile23 wrote:on my computer it does not work


Because you did what and then happened what ?

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

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:

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

Mon Dec 23, 2013 10:54 am

Is there a way to copy all the players from one savefile to overwrite another savefile?

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

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:

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

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!

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

Sat Dec 28, 2013 4:23 am

when I load my roster now its corrupted :( , but great effort of making the tool :applaud:

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

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.
Post a reply