Do you know how to give medals to fighters?
Nope.
It most likely has to do with the "heroTpl" : " "
property
Iâll do some research
Yes, it is possible. Just what should I write there?
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)
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.
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:
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"{
}
}
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.
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.
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