Adding more avatars
Ever want to add your own country? want to add your own avatars to the stock list and not overwrite existing?
i figured this out when adding JO avatars to DFX for the Special Ops mod ive been working on.
you will need to modify several files, game.bin, avatars.def and whatever player 3di you are working on. Im using the bin2txt and txt2bin tools to
make browsing through the bin file simpler.
game.bin and avatar.def are the most important to add new.
in game.bin find '[Avatars]'
stock avatar name:
| Code: | AV_DIV_DELTAFORCE = "Delta Force"; |
new avatar name:
| Code: | AV_DIV_DELTAFORCE1 = "Delta Force 1"; |
for countries (same area as the character name just further down):
stock country name:
| Code: | AV_NAT_UNITEDSTATES = "United States"; |
new country name:
| Code: | AV_NAT_UNITEDSTATES2 = "United States"; |
Add the new avatar and new country info to the bin file. best to add right under stock for easy referance.
Now for Avatars.def:
this is a bit more complicated to do, and there seems to be a limit on how many avatars you can add to a country, and how many countries you can have
in a secton of the avatars.def. everything needs to be in an order, so for nationalities we start with
| Code: | nationality N00 AV_NAT_UNITEDSTATES |
next is
| Code: | nationality N01 AV_NAT_UNITEDSTATES2 |
Notice N00 is N01 fo second? becomes N02 for third and so on....
for the avatars:
| Code: | division D00 AV_DIV_SEAL skipdemo
{
combo 001 JO_HEAD_SEAL JO_BODY_SEAL_1 JO_ARMS_US_1
} |
next is
| Code: | division D01 AV_DIV_SEAL2 skipdemo
{
combo 001 JO_HEAD_SEAL_CAMO_1 JO_BODY_SEAL_1 JO_ARMS_US_1
} |
like the N00, this one is D00 and does the same way. same for combo, which i deleted for my mod since DFX doesnt let you browse them and i wanted them
available. but it works for JO too.
Limits i have found so far are 7 nationalities per section and 16 avatars per nationality. sections are divided by the definitions for the parts of
the avatars.
heres a snippet from my avatars.def to show an example of limited:
| Code: | nationality N00 AV_NAT_UNITEDSTATES
{
alignment good
division D00 AV_DIV_SEAL skipdemo
{
combo 001 JO_HEAD_SEAL JO_BODY_SEAL_1 JO_ARMS_US_1
}
division D01 AV_DIV_SEAL2 skipdemo
{
combo 001 JO_HEAD_SEAL_CAMO_1 JO_BODY_SEAL_1 JO_ARMS_US_1
}
division D02 AV_DIV_SEAL3 skipdemo
{
combo 001 JO_HEAD_SEAL_CAMO_2 JO_BODY_DELTA_3 JO_ARMS_GREEN_1
}
division D03 AV_DIV_SEAL4 skipdemo
{
combo 001 JO_HEAD_SEAL_CAMO_2 JO_BODY_SEAL_2 JO_ARMS_US_1
}
division D04 AV_DIV_SEAL5 skipdemo
{
combo 001 JO_HEAD_SEAL JO_BODY_SEAL_3 JO_ARMS_US_1
}
division D05 AV_DIV_SEALF
{
combo 001 JO_HEAD_FEM_CAP JO_BODY_FEMALE_7 JO_ARMS_GREEN_2
}
division D06 AV_DIV_DELTAFORCE skipdemo
{
combo 001 JO_HEAD_DELTA_3 JO_BODY_DELTA_1 JO_ARMS_BLACK
}
division D07 AV_DIV_DELTAFORCE2 skipdemo
{
combo 001 JO_HEAD_DELTA_3 JO_BODY_SEAL_2 JO_ARMS_US_
}
division D08 AV_DIV_DELTAFORCE3 skipdemo
{
combo 001 JO_HEAD_DELTA_3 JO_BODY_DELTA_3 JO_ARMS_GREEN_1
}
division D09 AV_DIV_DELTAFORCE4 skipdemo
{
combo 001 JO_HEAD_DELTA_1 JO_BODY_DELTA_1 JO_ARMS_BLACK
}
division D10 AV_DIV_DELTAFORCE5 skipdemo
{
combo 001 JO_HEAD_DELTA_2 JO_BODY_DELTA_2 JO_ARMS_US_2
}
division D11 AV_DIV_DELTAFORCE6 skipdemo
{
combo 001 JO_HEAD_DELTA_4 JO_BODY_DELTA_4 JO_ARMS_US_4
}
division D12 AV_DIV_DELTAFORCEF
{
combo 001 JO_HEAD_WHIM JO_BODY_FEMALE_US JO_ARMS_US_3
}
division D13 AV_DIV_FORCERECON
{
combo 001 JO_HEAD_FORCERECON_2 JO_BODY_USAFCO JO_ARMS_OLIVE_2
}
division D14 AV_DIV_FORCERECON2
{
combo 001 JO_HEAD_FORCERECON_1 JO_BODY_USAFCO JO_ARMS_OLIVE_2
}
division D15 AV_DIV_FORCERECON3
{
combo 001 JO_HEAD_DELTA_2 JO_BODY_PILOT JO_ARMS_GREEN_2
}
}
nationality N01 AV_NAT_UNITEDSTATES2
{
alignment good
division D00 AV_DIV_RANGER
{
combo 001 JO_HEAD_RANGER JO_BODY_RANGER JO_ARMS_US_3
}
division D01 AV_DIV_RANGER2
{
combo 001 JO_HEAD_RANGER JO_BODY_RANGER2 JO_ARMS_US_3
}
division D02 AV_DIV_RANGER3
{
combo 002 JO_HEAD_RANGER_2 JO_BODY_RANGER JO_ARMS_US_3
}
division D03 AV_DIV_RANGERF
{
combo 001 JO_HEAD_FEMALE_CAP JO_BODY_FEMALE_US JO_ARMS_US_3
}
division D04 AV_DIV_GREENBERET skipdemo
{
combo 001 JO_HEAD_GREENBERET JO_BODY_GREENBERET JO_ARMS_US_2
}
division D05 AV_DIV_GREENBERET2 skipdemo
{
combo 001 JO_HEAD_RANGER JO_BODY_GREENBERET JO_ARMS_US_2
}
division D06 AV_DIV_GREENBERET3 skipdemo
{
combo 001 JO_HEAD_RANGER JO_BODY_GREENBERET2 JO_ARMS_US_2
}
division D07 AV_DIV_USMC skipdemo
{
combo 001 JO_HEAD_USMC JO_BODY_DELTA_2 JO_ARMS_US_2
}
division D08 AV_DIV_USMC2 skipdemo
{
combo 001 JO_HEAD_USMC JO_BODY_USMC_2 JO_ARMS_US_2
}
division D09 AV_DIV_USMCF skipdemo
{
combo 001 JO_HEAD_FEMALE_HELMET JO_BODY_FEMALE_US JO_ARMS_US_3
}
division D10 AV_DIV_SCOUTSNIPER
{
combo 001 JO_HEAD_SCOUT JO_BODY_SCOUT JO_ARMS_US_2
}
division D11 AV_DIV_PILOT skipdemo
{
combo 001 JO_HEAD_PILOT JO_BODY_PILOT JO_ARMS_GREEN_2
}
division D12 AV_DIV_USAFCOMBATOP skipdemo
{
combo 001 JO_HEAD_USAFCO JO_BODY_SEAL_1 JO_ARMS_US_3
}
division D13 AV_DIV_USAFCOMBATOP skipdemo
{
combo 001 JO_HEAD_USAFCO JO_BODY_USAFCO JO_ARMS_OLIVE_2
}
division D14 AV_DIV_USAFCOMBATOP skipdemo
{
combo 001 JO_HEAD_USAFCO JO_BODY_SEAL_2 JO_ARMS_US_3
}
}
nationality N02 AV_NAT_GREATBRITAIN skipdemo
{
alignment good
division D00 AV_DIV_ROYALMARINE
{
combo 001 JO_HEAD_ROYALMARINE_1 JO_BODY_ROYALMARINE JO_ARMS_ROYALMARINE
}
division D01 AV_DIV_ROYALMARINE
{
combo 001 JO_HEAD_ROYALMARINE_2 JO_BODY_ROYALMARINE JO_ARMS_ROYALMARINE
}
division D03 AV_DIV_ROYALMARINEF
{
combo 001 JO_HEAD_FEMALE_BERET JO_BODY_FEMALE_UK JO_ARMS_ROYALMARINE
}
division D04 AV_DIV_SAS
{
combo 001 JO_HEAD_SAS_1 JO_BODY_SAS_1 JO_ARMS_SAS
}
division D05 AV_DIV_SAS2
{
combo 001 JO_HEAD_SAS_1 JO_BODY_SAS_3 JO_ARMS_SAS
}
division D06 AV_DIV_SAS3
{
combo 001 JO_HEAD_SAS_2 JO_BODY_SAS_2 JO_ARMS_BARE
}
division D07 AV_DIV_SAS4
{
combo 001 JO_HEAD_SAS_2 JO_BODY_SAS_3 JO_ARMS_SAS
}
division D08 AV_DIV_SASF
{
combo 001 JO_HEAD_FEMALE_CAP JO_BODY_FEMALE_UK JO_ARMS_OLIVE_2
}
}
nationality N03 AV_NAT_AUSTRALIA skipdemo
{
alignment good
division D00 AV_DIV_SASR
{
combo 001 JO_HEAD_SASR_1 JO_BODY_SASR JO_ARMS_BARE
}
division D01 AV_DIV_SASR2
{
combo 001 JO_HEAD_SASR_2 JO_BODY_SASR JO_ARMS_BARE
}
division D02 AV_DIV_SASRF
{
combo 001 JO_HEAD_FEMALE_4 JO_BODY_FEMALE_5 JO_ARMS_BARE
}
division D03 AV_DIV_Barra
{
combo 001 JO_HEAD_FEMALE_HELMET3 JO_BODY_FEMALE_8 JO_ARMS_US_3
}
division D04 AV_DIV_SASRF2
{
combo 001 JO_HEAD_FEMALE_MASKED JO_BODY_FEMALE_4 JO_ARMS_ROYALMARINE
}
division D05 AV_DIV_SNIPER
{
combo 001 JO_HEAD_SCOUT2 JO_BODY_SCOUT2 JO_ARMS_US_2
}
division D06 AV_DIV_RECON
{
combo 001 JO_HEAD_RECON JO_BODY_RECON_AU JO_ARMS_OLIVE_2
}
}
nationality N04 AV_NAT_INDONESIA skipdemo
{
alignment good
division D00 AV_DIV_KOPASSUS
{
combo 001 JO_HEAD_KOPASSUS_1 JO_BODY_KOPASSUS JO_ARMS_BARE
}
division D01 AV_DIV_KOPASSUS2
{
combo 002 JO_HEAD_KOPASSUS_2 JO_BODY_KOPASSUS JO_ARMS_BARE
}
division D02 AV_DIV_KOPASSUS3
{
combo 003 JO_HEAD_KOPASSUS_3 JO_BODY_KOPASSUS JO_ARMS_BARE
}
}
nationality N05 AV_NAT_RUSSIA skipdemo
{
alignment good
division D00 AV_DIV_SPETSNAZ
{
combo 001 JO_HEAD_SPETSNAZ_1 JO_BODY_SPETSNAZ JO_ARMS_SPETNAZ
}
division D01 AV_DIV_SPETSNAZ2
{
combo 001 JO_HEAD_SPETSNAZ_2 JO_BODY_SPETSNAZ JO_ARMS_SPETNAZ
}
}
nationality N06 AV_NAT_GERMANY skipdemo
{
alignment good
division D00 AV_DIV_KSK
{
combo 001 JO_HEAD_KSK JO_BODY_KSK JO_ARMS_KSK
}
division D01 AV_DIV_KSK2
{
combo 001 JO_HEAD_COMBAT JO_BODY_KSK JO_ARMS_KSK
}
division D02 AV_DIV_KSKF
{
combo 001 JO_HEAD_FEMALE_MASKED2 JO_BODY_FEMALE_9 JO_ARMS_ROYALMARINE
}
} |
Now for defining the avatar? there are 3 parts to this, and all three will be above the section where the avatar is listed.
for this one
| Code: | division D00 AV_DIV_SEAL skipdemo
{
combo 001 JO_HEAD_SEAL JO_BODY_SEAL_1 JO_ARMS_US_1
} |
you need to add head body and arms.
heres an example of each:
| Code: | define head JO_HEAD_SEAL
{
name AV_BOONIEHAT
graphic Boonie.3di
camo 0 0 0
voice 1
sex m
} |
| Code: |
define body JO_BODY_SEAL_1
{
name AV_WOODLANDBDU
graphic JntOpsB1.3di
camo 0 0 0
} |
| Code: | define arms JO_ARMS_US_1
{
name "US Camo -Black Gloves"
graphic ArmsG.3di
camo 0 0 0
} |
rename the 3di to the same as you named the modded one, and rename the defnition in both the define and the new character. if you did everything
correct you will have a new nationality and new avatars available!
|