Looking for help with bodies. Possible payment.

Discussion in 'FIFA 16 Editing Forum' started by aasiaat, Mar 16, 2017.

  1. aasiaat

    aasiaat Club Supporter

    Joined:
    Nov 13, 2016
    Messages:
    16
    Likes Received:
    0
    Hi, I am looking for help on a modding project I am working on.

    I am currently trying to replace male bodytypes with female bodytypes in FIFA 16. The goal is to have male and female looking players playing at the same level, it doesn't matter if their gender is all set as "male" in the database. Ideally I would like to replace the one-player male bodies - 10 Messi, 12 Afinkenwa, 13 Courtois, etc - with female bodies.

    Feel free to contact me if you have a solution. I can give a small payment via PayPal to whoever can help me. We can talk about the exact amount via PM. Extensive testing would be needed before the transfer though, to ensure it can be done without side effects.

    I am also wondering if it is possible to bypass the 15 characters limit on team names(some teams like Donetsk have more than 15 characters, so I assume it can be done somehow), without causing issues with CM16, but this is not as important.

    Cheers
     
  2. fwine

    fwine Club Supporter

    Joined:
    Oct 15, 2015
    Messages:
    11
    Likes Received:
    4
    It's complicated :

    Bodies are divided in 3D pieces (that are in the data_graphic2 file, data/sceneassets/body):

    - body_X_Y_Z.rx3 (X = 1 or 2 ; Y = 0 or 1 ; Z = 0 or 1 ; Z is gender, X might be Level of Detail (LOD))
    - arms_X_Y_Z.rx3 (X=0 ; Y=0,1 ; Z=0,1 ; Y is sleeves length, Z gender, X is LOD)
    - head_X_Y (X=1,2 ; Y=0,1 ; Y is gender)
    - jersey_A_B_C_D_E_F_G (A=0,1,2 ; B=0-20 ; C=0,1 ; D=0,1 ; E=0,1 ; F=0,1 ; G=0,1 ; B is collar, G is gender, A is LOD)
    - legs_X_Y_Z (X=0 ; Y=0,1,2 ; Z=0,1 ; Y is sock length, Z is gender)
    - shoes_X_Y (X=1,2 ; Y=0,1 ; Y is gender)
    - shorts_X_Y_Z (X=0,1,2 ; Y=0,1 ; Z=0,1 ; Z is gender)
    - socks_X_Y_Z (X=0,1,2 ; Y=0,1,2 ; Z=0,1 ; X is LOD, Y is length, Z is gender)
    - underarms_X_Y_Z (X=0 ; Y=0 ; Z=0,1 ; Z is gender)
    - undershorts_X_Y_Z (X=0 ; Y=0 ; Z=0,1 ; Z is gender)
    - body_common_X_textures (X=0,1 where X is gender)


    And only then, a morph (data/sceneassets/bodytype/bbscale_X_Y_Z) is applied.




    So, as there is no 3D model such as messi.3D or shaqiri.3D, you can't do what you want the way you want.

    What could possibly done is to decrete that :
    - anybody won't play with long sleeves anymore, so you can replace the male long sleeves settings with the female short sleeves one
    - men can't use collar N°20, because you'll replace any jersey_x_20_x_x_x_x_0 with jersey_x_20_x_x_x_x_1
    - men can't have high socks because you'll replace socks_x_2_0 with socks_x_0_1. So you'll need to replace the shorts_x_2_0 with shorts_x_0_1 as well.
    - etc...

    But that would lead to :
    - women can't use underarmor
    - because of the jersey-collar link, mixed teams are not possible (players in the same team share the same collar type)
    - I'm not even what would happen with the head
    - etc...
    - And I fear that the body_common_X_textures prevents you to sneak behind the lines :
    If the player is a male, the male, the male texture is applied. If the player is a female, the female texture is applied). If you take a female 3D model and apply the male texture, the result might be pretty ugly.



    The only thing that could be done is to try to edit the morphs so that the male player looks like a female player (narrower waist, arms and legs, wider hips, more prominent upper spine...). It's possible but as no tool exist for that, you have to do it via an hex editor. It's a work that requires much much time, and the result would be unconvincing, because of male players muscles definition, so you'll end up with female players with high muscular definition, especially thighs, calves and pecs.
     
  3. aasiaat

    aasiaat Club Supporter

    Joined:
    Nov 13, 2016
    Messages:
    16
    Likes Received:
    0
    Wow, thanks for such a detailed answer.

    It's great to know how data/sceneassets/body works. I've searched the web many times before, but couldn't find an explanation.

    Naively I thought swapping some data around would do the trick:facepalm: But it's really a lot more complicated than I expected, and probably not worth doing... So I will just stick to simulating matches.

    Even though I won't continue with this project, feel free to PM me if you want to claim a donation. I feel bad giving nothing in return for such a detailed post. Hopefully it will help someone else in the community.
     
  4. fwine

    fwine Club Supporter

    Joined:
    Oct 15, 2015
    Messages:
    11
    Likes Received:
    4
    There might a solution that I need to look after.

    This solution could be to take the 3D parts and create a third gender next to female and male.

    I'll give it a try this week.

    PS : The game only recognize 2 genders. What is not female is male and therefore has a male body.

    Sorry mate.
     
  5. samael9

    samael9 Club Supporter

    Joined:
    Jul 1, 2015
    Messages:
    56
    Likes Received:
    0
    Wow! That could be done ? Can you help us ?
    Sorry if I understand something wrong, I really want to change for more short sleeves like fifa 17.
    Anyway, thanks for all explanation
     
  6. fwine

    fwine Club Supporter

    Joined:
    Oct 15, 2015
    Messages:
    11
    Likes Received:
    4
    That might do the trick :

    TOOLS :
    You need 2 programs : FHL-BH-Editor and CG File Explorer

    FILE EXTRACTION :
    1) Launch CG File Explorer, set your FIFA 16 directory and select the data_graphic2 file
    2) explore the data/sceneassets/body tree and check the following boxes :
    arms_0_0_0.rx3 (0=LOD0, 0=short, 0=men)
    arms_0_0_1.rx3 (0=LOD0, 0=short, 1=women)
    arms_0_1_0.rx3 (0=LOD0, 1=long, 0=men)
    arms_0_1_1.rx3 (0=LOD0, 1=long, 1=women)
    3) click on "extract selected", close the program

    ARCHIVE DESACTIVATION :
    (this manipulation indicates to the game to look after those 4 files not into the data archives but into the data directory instead)

    4) launch the FHL-BH-Editor program
    5) select the data_graphic2 file, wait a little and then click "order by name"
    6) find the four data/sceneassets/body/arms_0_X_Y.rx3 lines
    7) uncheck all the 4 boxes, click on "save selected BH", close the program

    FILE SUBSTITUTION :
    8) Go to your FIFA 16 directory (typically Program Files/FIFA 16)
    9) Go into the data/sceneassets/body directory
    10) Get rid of the arms_0_1_0.rx3 (long, male) and arms_0_1_1.rx3 (long, women) files
    11) Copy the arms_0_0_0.rx3 (short, men) and arms_0_0_1.rx3 (short, women) files and paste them in the same directory
    12) rename those 2 new files into arms_0_1_0.rx3 and arms_0_1_1.rx3 files. Be careful with what you're renaming into what.
    13) launch FIFA 16
     
  7. fwine

    fwine Club Supporter

    Joined:
    Oct 15, 2015
    Messages:
    11
    Likes Received:
    4
    I've answered with a private message.
     
  8. fwine

    fwine Club Supporter

    Joined:
    Oct 15, 2015
    Messages:
    11
    Likes Received:
    4
    I think I might have come in fine with an positive answer.

    In the data_startup archive in the Program Fils/FIFA 16 directory, there is a file named players.lua under the path data/fifarna/lua/assets/.

    - Use CG File Extractor to export this file to the fifa/data directory
    - Use BH-FHL-Editor to desactivate the file in the data_startup archive.
    - Open the extracted file with notepad and replace the following lines (20th-30th line):

    if (db.player[idx].gender == 0) then
    db.player[idx].strgender = "female"

    with

    if (db.player[idx].gender == 2) then
    db.player[idx].strgender = "female"


    I've run a couple of match and I do have the feeling that female players run as fast as male players.
     
  9. fwine

    fwine Club Supporter

    Joined:
    Oct 15, 2015
    Messages:
    11
    Likes Received:
    4
    I finally found this thread...

    Okay, I know it's been 2 years, but I finally did it.

    You can easily make male players move like female players and vice-versa by editing the player.lua file in the data\fifarna\lua\assets directory :

    - The point is to use player's jersey_fit tag to distinguish him from his counterparts. you can edit it via any database editor, typically CM16.
    - Then modify the player.lua file so as to make the game understand that if a player is tagged as a female and has his jersey fit, therefore he must look like a male player.

    Here's the player.lua script I use.

    http://www.mediafire.com/file/ngr6dtwjej4d4ca/player.lua/file

    Don't forget to use the FHL-BH-Editor to edit the data_startup.bh file to make your game look for the player.lua file inside the "program files\fifa" folders instead of the data_startup.big archive.

    I hope that will still help some of you.
     
    Papinho81 likes this.
      

Share This Page