Custom Profiles - Another look (Guide)

Do you know how to give medals to fighters?

Nope.

1 Like

that’s an interesting question.

maybe @Devenddar might know the answer.

1 Like

It most likely has to do with the "heroTpl" : " " property

I’ll do some research

1 Like

Yes, it is possible. Just what should I write there?:thinking:

this simply does not work for me.

are we sure this isn’t an outdated method? i am having nothing but problems with it across multiple maps.

Guide is still valid.

Essentially the steps are:

1: Find a profile inside the Datamine
1.5: Fix the profile if it was made before the merge (afaik, all of them)
2: Add the profile to your mission and launch in local or online
3: Keep the game running, open the JSON with a text editor of your choice
4: Search for soldier names inside profile, which helps you find the weapons belonging to them.
5: Edit the weapons or other attributes to your liking.
6: Save the profile file. Rebuild ZIP mod, and upload to sandbox
7: Squad with modified weapons will appear.

I’ve said, but will again; One simple syntax error will break the profile and the mission won’t work.

You can always upload your JSON and we can take a look. (Just briefly explain what you’ve changed to make our job easier)

2 Likes

Currently have been editing vehicles to make my own motorized squad. It isn’t working, and I tested out the old one you made with the GAZ and Kubelwagen, and it no longer works.

Any solutions?

Entities file and custom profiles are here for my mod:

JustARegularMod.zip (186.6 KB)

It isn’t working, and I tested out the old one you made with the GAZ and Kubelwagen, and it no longer works.

Great. I will check it tomorrow.

1 Like

modern_squads_profile.zip (7.3 KB)
Currently all I am trying to do is give the first soldier an m1903 Springfield rifle. However, none of my changes are made in the game. It reverts back to the normal modern squads profile.

Currently have been editing vehicles to make my own motorized squad. It isn’t working, and I tested out the old one you made with the GAZ and Kubelwagen, and it no longer works.

But it does. The motorized squad didn’t work because you have to replace every _extends to _use in entities.blk:

kép

Updated Sample: _Mechanized_1941.zip (428.2 KB)

gaz_67{ //same for any car type vehicle, like kubelwagen, battlebus, etc
  _override:b=yes
  _use:t="base_ab_41" //we make the game believe we're using a tank
  _use:t="paratrooper_plane_camera"
  destroyIfNoCrewLeft:b=yes
  vehicle_seats__restrictToTeam:i=2
  vehicle_seats__autoDetectRestrictToTeam:b=no
  xray_resource__modelName:t="gaz_mm_72k"
  item__name:t="Motorized Squad"
  killLogName:t="GAZ 67"

  "ammo_stowage__stowageTemplates:shared:list<t>"{
  }

  "dm_phys_parts__ammo:array"{
  }

  "dm_phys_parts__tracks:array"{
  }

  "turret_gun_flash_fx__flashNodes:shared:array"{
  }

  "turret_gun_flash_fx__flashFx:shared:array"{
  }

  "turret_gun_flash_fx__flashFxScale:shared:array"{
  }

  "turret_control__emitterNodes:shared:array"{
  }

  "turret_control__turretInfo:shared:array"{
  }
}
2 Likes

I have fixed up the Sea Predator profile JSON.

Proof it works: https://sandbox.enlisted.net/post/vxztmAB6KvwnNxt0/

_SeaPredatorSample.zip (2.9 MB)

It’s got every campaign. Campaigns are merged into factions. You can identify each campaign by the clothing or weaponary.

2 Likes

Wow. Surpisingly simple, thanks. Now I’m wondering why I didn’t figure that out earlier lol.

That profile made my Pacific map work, but it’s British instead of Americans. And even when I go in and change their guns, none of it saves to the mission. With your example of the mechanized 1941 I was able to very easily and quickly change all of the soldiers weapons and everything stayed saved.

And even when I go in and change their guns, none of it saves to the mission.

You’re missing something. And i have no idea what.

You save the JSON, reload the scene, export the zip. Changes made to the JSON file will not show up until you reload the scene.

},
“exp” : 0,
“gametemplate” : “ussr_base_soldier”,
“guid” : “allies_stalingrad_soldier_flametrooper_10290552”,
“heroTpl” : “”,
“human_weap__weapInfo” : [
{
“gunSlots” : {},
“numReserveAmmo” : 5,
“reserveAmmoTemplate” : “mosin_magazine”
},
{
“gunSlots” : {},
“numReserveAmmo” : 1,
“reserveAmmoTemplate” : “flamethrower_fuel_tank_light”
},
{
“gunSlots” : {},
“numReserveAmmo” : 0,
“reserveAmmoTemplate” : “”
},
{
“gunSlots” : {},
“numReserveAmmo” : 0,
“reserveAmmoTemplate” : “”
},
{
“gunSlots” : {},
“numReserveAmmo” : 0,
“reserveAmmoTemplate” : “”
}
],
“human_weap__weapInitialComponents” : [
{
“gun__kineticDamageMult” : 20.0,
“gun__recoilAmount” : -15.0,
“gun__shotFreq” : 10.0,
“gun_spread__maxDeltaAngle” : -30.0
},
{},
{},
{},
{}
],
“human_weap__weapTemplates” : {
“grenade” : “grenade_thrower”,
“melee” : “knife_weapon”,
“primary” : “mosin_m91_30_gun”,
“secondary” : “roks_3_gun”,
“tertiary” : “”
Sorry I don’t know how to send you guys the code like you do in the forum. All I’ve tried to change is this man’s gun. Had an SVT40 and I want him to have mosin. I changed it In the notepad, reloaded the mission editor, build a zip file, upload it on sandbox, and test it and he still has svt40

It looks like your custom_profile uses the name of a pre-installed profile from the developer and therefore the changes are not visible. Try changing the name of your profile file and updating it in custom_profule. If your profile works, it should show an error in the editor, and start online.

1 Like

Thank you! I was out doing stuff but now that I’m home I’m able to test what you said and you were right. I changed my profile name from sea_predator_profile to just predator_profile and it works

2 Likes

aren’t there any other methods?

because it kinda screws with cameras of vehicles.

like, it locks in place and doesn’t allow me to look other directions.


2 Likes