CF Conversions into NBA2K19

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

Re: CF Conversions into NBA2K19

Postby trevorjpt33 on Wed Sep 26, 2018 3:27 pm

Update:

So conversions have been a bit more complicated than I anticipated. I've pretty much been pulling stuff out of my a** attempting to figure this out, hoping eventually something works.

I arranged it in the hihead.SCNE file so that there are TWO binary .model files that it points to (not LOD's). The reason for this is that previous attempts to join the face of the converted player to a 2k19 body resulted in one of the models having their geometry completely ruined.

I am attempting to convert Charles Barkley while using Draymond Green's 2k19 files. Below is the result I got when it first showed up - the result is an interesting mix of Charles Barkley and Draymond Green lol. But the idea is to use the face/eyes/etc. of Barkley and the body of Green. And the rest of the remaining geometry will be shrunk to microscopic size and hidden inside the player. I haven't done any of that yet so this is showing both models.

There's no guarantee that this will work, but it's the only semblance of progress that I've been able to make this past week. Up to this point it was not looking very good.

Image
Image
trevorjpt33
 
Posts: 165
Joined: Mon Sep 25, 2017 4:48 pm

Re: CF Conversions into NBA2K19

Postby imescobarlopez on Thu Sep 27, 2018 9:15 am

Thanks for the efforts, man. It sucks that models can't be imported to the actual game. There has to be a way on Blender in which we only import the sculpt of every body part of the player without touching the vertex groups.
imescobarlopez
 
Posts: 112
Joined: Sun Oct 15, 2017 4:24 pm

Re: CF Conversions into NBA2K19

Postby trevorjpt33 on Thu Sep 27, 2018 11:18 am

imescobarlopez wrote:Thanks for the efforts, man. It sucks that models can't be imported to the actual game. There has to be a way on Blender in which we only import the sculpt of every body part of the player without touching the vertex groups.

Yeah I think I'm probably overthinking it. It looks like what I'm trying to do won't work. I was hopeful since it was a first for me to be able to load 2 players from 1 scene file.

Something is happening behind the scenes (in the object data) when we try to combine models like that. The indices for the vertices get all messed up and I don't know how to prevent it. They basically keep track of where every vertex is, and a specific number is assigned to each. So It's not something that can just be copied and pasted.
trevorjpt33
 
Posts: 165
Joined: Mon Sep 25, 2017 4:48 pm

Re: CF Conversions into NBA2K19

Postby trevorjpt33 on Fri Sep 28, 2018 5:48 am

After trying an endless amount of things, I have come to a conclusion. I realized that our limitation does not come from the game or from blender. The limitation is in our Blender Addon. The script is unable to export ALL of the data for the combined mesh that you are seeing in blender.

My focus is now going to shift to adding to the script the ability to import a more common file type that isn't .model, and then export to a .model as usual.
trevorjpt33
 
Posts: 165
Joined: Mon Sep 25, 2017 4:48 pm

Re: CF Conversions into NBA2K19

Postby diamenz on Fri Sep 28, 2018 6:16 am

i admire ur persistence pursuing this, lol. keep it up, man.
User avatar
diamenz
 
Posts: 358
Joined: Tue Feb 21, 2012 1:04 pm

Re: CF Conversions into NBA2K19

Postby trevorjpt33 on Wed Oct 03, 2018 3:41 am

Update:

- For the past several days I have been researching which file format will be best and gathering resources I need to write in the script

- I have a format figured out that should both carry the information we need and is a file that Blender can open natively

- I am now beginning to work on the script itself to make it suitable for converting cyberfaces
trevorjpt33
 
Posts: 165
Joined: Mon Sep 25, 2017 4:48 pm

Re: CF Conversions into NBA2K19

Postby imescobarlopez on Wed Oct 03, 2018 11:45 am

Cool. Thanks, buddy.
imescobarlopez
 
Posts: 112
Joined: Sun Oct 15, 2017 4:24 pm

Re: CF Conversions into NBA2K19

Postby matmat66 on Wed Oct 03, 2018 1:51 pm

Thanks for the effort bro!
matmat66
 
Posts: 333
Joined: Fri Mar 02, 2007 2:02 pm
Location: Philippines

Re: CF Conversions into NBA2K19

Postby Lyncaz on Wed Oct 03, 2018 10:11 pm

Huge thanks and moral support, dude! :bowdown:
Lyncaz
 
Posts: 3
Joined: Wed Sep 19, 2018 1:22 am

Re: CF Conversions into NBA2K19

Postby trevorjpt33 on Thu Oct 04, 2018 11:50 am

No problem, guys.

I appreciate it.
trevorjpt33
 
Posts: 165
Joined: Mon Sep 25, 2017 4:48 pm

Re: CF Conversions into NBA2K19

Postby PeacemanNOT on Thu Oct 04, 2018 11:58 am

Just saw this, good luck man. This will be greatly appreciated (Y)
User avatar
PeacemanNOT
Useless Member
Contributor
 
Posts: 2350
Joined: Wed Aug 21, 2013 2:02 am
Location: Ireland

Re: CF Conversions into NBA2K19

Postby jtc324 on Sat Oct 13, 2018 3:09 pm

[quote="PeacemanNOT"]Just saw this, good luck man. This will be greatly appreciated (Y)[/quote]

yeah good luck, let us know how it is going
jtc324
 
Posts: 139
Joined: Thu Oct 06, 2005 1:04 pm

Re: CF Conversions into NBA2K19

Postby trevorjpt33 on Fri Nov 02, 2018 4:30 am

UPDATE

I haven't given any updates on here in the past 2 or 3 weeks because I've been working on it, but there hasn't been anything concrete to share, so I didn't want to get people's hopes up for nothing.

Image

So basically I am very far into the weeds of this thing... Much further than I anticipated. There's no turning back though because I would really like to make conversions into 2K19 happen - that and my own curiosity and stubbornness don't allow me to just say "eh whatever" and move on lol.

At a certain point I realized I'm going to need some help. So I consulted a freelance expert in Python & Blender who I am still working with. We have tried multiple things, some of which have worked as intended, and were presumed to fix the problem. For example, he (the python/blender coding expert) was able to write a script that exports the ".model" independent from the ".SCNE" file - it was successful in that it exported the data that we wanted to export and the file size made sense, but it was HOW the data was written to the new ".model" file that prevented it from importing back into Blender or showing up in-game.

Now we are focused on finding the difference in 2K18 model files and those of 2K19. It's no longer about writing new code or finding a way to export both of the joined models' data to one file. It's about figuring out whatever tiny and seemingly nonexistent changes are in the 2K19 models that causes vertex information to get jumbled.
trevorjpt33
 
Posts: 165
Joined: Mon Sep 25, 2017 4:48 pm

Re: CF Conversions into NBA2K19

Postby MonkeymanJSV on Fri Nov 02, 2018 9:21 am

Damn man thanks heaps for looking so far into this it would be really awesome if you end up finding a way to make it work
If you enjoy my Mods please donate here
https://www.paypal.com/cgi-bin/webscr?c ... source=url
User avatar
MonkeymanJSV
 
Posts: 320
Joined: Sun Apr 08, 2018 9:48 am
Location: Sydney Australia

Re: CF Conversions into NBA2K19

Postby Dee4Three on Fri Nov 02, 2018 10:05 am

MonkeymanJSV wrote:Damn man thanks heaps for looking so far into this it would be really awesome if you end up finding a way to make it work


Agreed.

Good luck Trevor. Thank you.
"I don't know if I practiced more than anybody, but I sure practiced enough. I still wonder if somebody - somewhere - was practicing more than me." - Larry Bird

Check out my YouTube channel

https://www.youtube.com/channel/UCvHJXrqit8Dc6HBY5P6EmAA
User avatar
Dee4Three
Contributor
Contributor
 
Posts: 7383
Joined: Sun Mar 30, 2014 1:34 pm
Location: New Hampshire, USA

Re: CF Conversions into NBA2K19

Postby TGsoGood on Fri Nov 02, 2018 1:46 pm

Thanks for all your work behind the scenes
Consider donating: http://cash.me/$TheJohnsonFamily or http://paypal.me/4TheGoods
Follow me on twitter @TGsoGood
Check me out on youtube https://www.youtube.com/channel/UCPydhZ ... PeRSmEVynQ
User avatar
TGsoGood
Contributor
Contributor
 
Posts: 3926
Joined: Thu Jul 28, 2011 5:03 am
Location: Nashville, TN

Re: CF Conversions into NBA2K19 | UPDATE

Postby trevorjpt33 on Thu Nov 15, 2018 5:28 pm

Hey guys,

Here's a little update on where I am at. In short, I have no clue what this mysterious difference is between the 2K18 and 2K19 models that is causing the issue. I don't need to know, though - I have been analyzing the binary (model) file and mapping out its structure so that I understand how and where the important data is stored. I think I can copy the face/head data of the converted player into the 2K19 player's file in a hex editor. This is not guess work either, but something that can be determined down to the exact byte at the beginning and end of the selection.

The goal is to have the head of the converted player and the body of a 2K19 model, so that the issues with bone assignments would not be an issue. But the nice thing is that despite some differences in geometry in other parts of the model, the heads of players have the same # of vertices and the same triangle count in 2K18 and 2K19. This means that they occupy the same amount of space in the file, so that while transferring the data we are not messing with the surrounding format in the file.

I don't want to make any promises but this has a chance to work. Regardless of how this turns out, things will be pretty concrete as to whether conversions can or can't be done this year. I can't really dig any deeper or go any further into the rabbit hole because I am examining the raw binary data in individual bytes for the model - there is nothing more to be done that I am aware of.

Image
Image
Image

As you can see in the picture above, this is the converted player's head with the rest of it being the 2K19 model. This probably looks similar to some of the results you have seen when we attempt to combine the models in blender and then export them.

The difference here is that this is the result of making changes to the file in a hex editor. The face is obviously still messed up but this result is only from copying in the vertex coordinates of the mesh of the head. In this case, the position of the vertices changed but it still looks messed up because there is more data associated with the vertices that needs to be copied. Besides that, notice how from the hex editing, no other part of the model has been disturbed. The skeleton imports and the bone assignments for the vertices are correct.

Right now I can manipulate a single vertex with a specific vertex ID # and spot exactly where in the file that change takes place. I know the sections where this vertex data is stored. But the next step is to pinpoint where the other vertex data is within those sections, so that I can get the data I need while keeping the vertex ID's the same and avoid disturbing the data for the rest of the model.
trevorjpt33
 
Posts: 165
Joined: Mon Sep 25, 2017 4:48 pm

Re: CF Conversions into NBA2K19

Postby TGsoGood on Fri Nov 16, 2018 2:02 am

what you are doing takes a lot of patience, testing, and time.
Great work so far.
Consider donating: http://cash.me/$TheJohnsonFamily or http://paypal.me/4TheGoods
Follow me on twitter @TGsoGood
Check me out on youtube https://www.youtube.com/channel/UCPydhZ ... PeRSmEVynQ
User avatar
TGsoGood
Contributor
Contributor
 
Posts: 3926
Joined: Thu Jul 28, 2011 5:03 am
Location: Nashville, TN

Re: CF Conversions into NBA2K19

Postby trevorjpt33 on Mon Nov 19, 2018 3:25 am

I have found most of the data I was looking for, but I thought it would be a good idea to test my theory with the hex editor and both of the files being 2K19 players first so that I can confirm this method works at all.

This is the result, which is encouraging. The first picture is default Ray Allen 2K19. The second picture is that same default Ray Allen but with the 3D Head data found in 2K19 default Frobe's model file.

Ray Allen
Image

Ray Allen sub Frobe's 3D Head
Image
trevorjpt33
 
Posts: 165
Joined: Mon Sep 25, 2017 4:48 pm

Re: CF Conversions into NBA2K19

Postby TGsoGood on Mon Nov 19, 2018 12:14 pm

:applaud:
Consider donating: http://cash.me/$TheJohnsonFamily or http://paypal.me/4TheGoods
Follow me on twitter @TGsoGood
Check me out on youtube https://www.youtube.com/channel/UCPydhZ ... PeRSmEVynQ
User avatar
TGsoGood
Contributor
Contributor
 
Posts: 3926
Joined: Thu Jul 28, 2011 5:03 am
Location: Nashville, TN

Re: CF Conversions into NBA2K19

Postby MonkeymanJSV on Mon Nov 19, 2018 4:35 pm

This is actually a great find, could this also be done for the vertex postions of other groups like eyes, eyelashes etc.
And is this method going to be quick to complete?
Been following along with this hoping I can eventually convert all my custom cyberfaces to 2k19
If you enjoy my Mods please donate here
https://www.paypal.com/cgi-bin/webscr?c ... source=url
User avatar
MonkeymanJSV
 
Posts: 320
Joined: Sun Apr 08, 2018 9:48 am
Location: Sydney Australia

Re: CF Conversions into NBA2K19

Postby trevorjpt33 on Tue Nov 20, 2018 12:47 am

MonkeymanJSV wrote:This is actually a great find, could this also be done for the vertex postions of other groups like eyes, eyelashes etc.
And is this method going to be quick to complete?
Been following along with this hoping I can eventually convert all my custom cyberfaces to 2k19

Yes. I believe so as far as the eyes, eyelashes, and the rest of the eye-related groups. So far, it looks like it can be any VERTEX GROUP that shares the same geometry. The overall face count of the entire mesh does not necessarily have to be the same. Groups like the mouth and armpit hair don't look like they can be copied. But in all the models I have looked at so far, the 2K18 models have had the same face count as the 2K19 models for the head, eye-related groups, and arms/torso/hidden/legs.

It is not as tedious as I thought it was going to be earlier. Anyone who a little experience with hex editing should not have any issues. But now that I am testing with 2K18 players, I am trying to determine if there will be extra steps needed.
trevorjpt33
 
Posts: 165
Joined: Mon Sep 25, 2017 4:48 pm

Re: CF Conversions into NBA2K19

Postby trevorjpt33 on Tue Nov 20, 2018 3:20 pm

This method that I just mentioned does work in using the hex editor to transfer the head data between the model files of 2K18 players and 2K19 players. The player shows up in the game and the change is reflected in the game.
With the different games come some slight changes in the order of the indices, which makes it so the head does not look right in the game. Essentially the vertices are positioned right but the numbers assigned to those vertices
and the connections between them are not.

Each vertex is assigned a number 0 through in this case 18,656, and the indices record which vertices make up each face(triangle). It's just a simple list of 3 integers for each. If I am able to
correct this data within the file, I believe the converted players' heads will show up like normal just as the 2K19 players' heads did. Working on this as we speak.

Image
Image
Image
trevorjpt33
 
Posts: 165
Joined: Mon Sep 25, 2017 4:48 pm

Re: CF Conversions into NBA2K19

Postby TGsoGood on Tue Nov 20, 2018 3:38 pm

Between this and Ksmiz's Cheat engine values, so much time and research has been conducted by you guys.
This really pushes modding forward.
Consider donating: http://cash.me/$TheJohnsonFamily or http://paypal.me/4TheGoods
Follow me on twitter @TGsoGood
Check me out on youtube https://www.youtube.com/channel/UCPydhZ ... PeRSmEVynQ
User avatar
TGsoGood
Contributor
Contributor
 
Posts: 3926
Joined: Thu Jul 28, 2011 5:03 am
Location: Nashville, TN

Re: CF Conversions into NBA2K19

Postby trevorjpt33 on Tue Nov 20, 2018 3:55 pm

TGsoGood wrote:Between this and Ksmiz's Cheat engine values, so much time and research has been conducted by you guys.
This really pushes modding forward.

I'm happy to help (Y)
trevorjpt33
 
Posts: 165
Joined: Mon Sep 25, 2017 4:48 pm

PreviousNext

Return to NBA 2K19 Modding

Who is online

Users browsing this forum: jaychung3013, massa.agle, Theseus15 and 11 guests