Login

russian armor

Buildable B4 203 Artillery

21 Dec 2018, 18:36 PM
#1
avatar of Stingy

Posts: 26

Hi.


Need some help here, have been following the guide from SneakEye on the builadble "25 pounder emplacement".

https://www.coh2.org/guides/81345/25-pounder-emplacement-modding-guide


The "25 Pounder" is complete and work as intended. (Thanks for that awesome tutorial SneakEye :thumbsup: )


But are also trying to add the soviet "B4 203mm Howitzer Gun" in to one of those emplacements, unfortunately i haven't been very successful.

When my engineers are building the emplacement the gun show up, and can fire.
But there is no crew, and the gun can't rotate.

I'am thinking there is something wrong with the crew_ext.

Have anyone created this, if so what did you put in the crew_ext?

N/A
23 Dec 2018, 10:15 AM
#2
avatar of N/A

Posts: 29

crew_ext


<template_reference name="exts" value="ebpextensions\crew_ext">
<list name="race_list">
<group name="race_data">
<instance_reference name="ext_key" value="racebps\soviet" />
<group name="info">
<string name="sync_target_name" value="Artillery_Target" />
<list name="role_list">
<group name="role">
<string name="animator_bp" value="armies\soviet\soldiers\at_gun\at_gun" />
<string name="death_event_name" value="Death_crew" />
<string name="desync_action_name" value="Detach_Skeleton" />
<string name="role_name" value="gunner1" />
<string name="sync_action_name" value="attach_gunner1_artillery" />
<bool name="sync_on_create" value="True" />
<string name="abandon_event_name" value="" />
<string name="animator_bp_female" value="" />
</group>
<group name="role">
<string name="animator_bp" value="armies\soviet\soldiers\at_gun\at_gun" />
<string name="death_event_name" value="Death_crew" />
<string name="desync_action_name" value="Detach_Skeleton" />
<string name="role_name" value="loader1" />
<string name="sync_action_name" value="attach_loader1_artillery" />
<bool name="sync_on_create" value="True" />
<string name="abandon_event_name" value="" />
<string name="animator_bp_female" value="" />
</group>
<group name="role">
<string name="animator_bp" value="armies\soviet\soldiers\at_gun\at_gun" />
<string name="death_event_name" value="Death_crew" />
<string name="desync_action_name" value="Detach_Skeleton" />
<string name="role_name" value="loader2" />
<string name="sync_action_name" value="attach_loader2_artillery" />
<bool name="sync_on_create" value="True" />
<string name="abandon_event_name" value="" />
<string name="animator_bp_female" value="" />
</group>
<group name="role">
<string name="animator_bp" value="armies\soviet\soldiers\at_gun\at_gun" />
<string name="death_event_name" value="Death_crew" />
<string name="desync_action_name" value="Detach_Skeleton" />
<string name="role_name" value="crew1" />
<string name="sync_action_name" value="attach_crew1_artillery" />
<bool name="sync_on_create" value="True" />
<string name="abandon_event_name" value="" />
<string name="animator_bp_female" value="" />
<group name="role">
<string name="animator_bp" value="armies\soviet\soldiers\at_gun\at_gun" />
<string name="death_event_name" value="Death_crew" />
<string name="desync_action_name" value="Detach_Skeleton" />
<string name="role_name" value="gunner2" />
<string name="sync_action_name" value="attach_gunner2_artillery" />
<bool name="sync_on_create" value="True" />
<string name="abandon_event_name" value="" />
<string name="animator_bp_female" value="" />
</group>
</group>
</list>
<template_reference name="additional_crew_option" value="options\none">
</template_reference>
</group>
</group>
</list>
</template_reference>



vanilla team_weapon_ext


<template_reference name="exts" value="ebpextensions\team_weapon_ext">
<string name="attach_state_name" value="Artillery_Attach" />
<bool name="can_manual_abandon" value="False" />
<bool name="disable_garrison" value="False" />
<string name="ownership_state_name" value="AntiTankGun_Owner" />
<string name="role_state_name" value="Artillery_Role" />
<string name="sync_target_name" value="Artillery_Target" />
<enum name="team_weapon_type" value="tp_mobile" />
<string name="weapon_usage_state_name" value="" />
<list name="on_abandon_action">
<template_reference name="action" value="action\retreat_action">
<instance_reference name="entity_type_to_retreat_to" value="" />
<enum name="retreat_type" value="withdraw_to_edge" />
<uniqueid name="id" value="1073741886" />
<float name="refund_percent_after_retreat" value="0" />
</template_reference>
<template_reference name="action" value="action\apply_modifiers_action">
<float name="duration" value="0" />
<bool name="permanent" value="False" />
<list name="modifiers">
<template_reference name="modifier" value="modifiers\sight_radius_modifier">
<enum name="application_type" value="apply_to_squad" />
<bool name="exclusive" value="False" />
<string name="modifier_id" value="" />
<string name="target_type_name" value="" />
<enum name="usage_type" value="multiplication" />
<float name="value" value="0" />
<instance_reference name="tooltip" value="modifier_tooltip\sight_radius_modifier" />
</template_reference>
</list>
<uniqueid name="id" value="1073741887" />
</template_reference>
</list>
<list name="role_list">
<group name="role">
<string name="coordinate_sync_event" value="" />
<string name="join_sync_marker" value="Gunner1_Sync" />
<string name="leave_sync_marker" value="Gunner1_Desync" />
<bool name="required" value="True" />
<string name="role_name" value="gunner1" />
</group>
<group name="role">
<string name="coordinate_sync_event" value="" />
<string name="join_sync_marker" value="Loader1_Sync" />
<string name="leave_sync_marker" value="Loader1_Desync" />
<bool name="required" value="True" />
<string name="role_name" value="loader1" />
</group>
<group name="role">
<string name="coordinate_sync_event" value="" />
<string name="join_sync_marker" value="Loader2_Sync" />
<string name="leave_sync_marker" value="Loader2_Desync" />
<bool name="required" value="True" />
<string name="role_name" value="loader2" />
</group>
<group name="role">
<string name="coordinate_sync_event" value="" />
<string name="join_sync_marker" value="Crew1_Sync" />
<string name="leave_sync_marker" value="Crew1_Desync" />
<bool name="required" value="False" />
<string name="role_name" value="crew1" />
</group>
<group name="role">
<string name="coordinate_sync_event" value="" />
<string name="join_sync_marker" value="Gunner2_Sync" />
<string name="leave_sync_marker" value="Gunner2_Desync" />
<bool name="required" value="False" />
<string name="role_name" value="gunner2" />
</group>
</list>
<float name="destroy_on_abandon_health_threshold" value="-1" />
<list name="on_abandon_weapon_action">
<template_reference name="action" value="action\upgrade_remove">
<bool name="apply_to_entities_in_squad" value="False" />
<instance_reference name="upgrade" value="upgrade\is_manned" />
<uniqueid name="id" value="1073741888" />
</template_reference>
</list>
/template_reference>



sync_action_name

23 Dec 2018, 11:11 AM
#3
avatar of Stingy

Posts: 26

Thanks.

So for the crew to attach to the gun I need these 5 roles, awesome. Thanks :)

role 1: role_name; "gunner1", sync_action_name; "attach_gunner1_artillery"
role 2: role_name; "loader1", sync_action_name; "attach_loader1_artillery"
role 3: role_name; "loader2", sync_action_name; "attach_loader2_artillery"
role 4: role_name; "crew1", sync_action_name; "attach_crew1_artillery"
role 5: role_name; "gunner2", sync_action_name; "attach_gunner2_artillery"
N/A
24 Dec 2018, 08:21 AM
#4
avatar of N/A

Posts: 29

Yes, these 5 roles are a must. "Artillery_Target" is also.

The gun can't rotate maybe is lack "moving_ext",copy vanilla howitzer "moving_ext" to new howitzer.

After the problem is solved, it will be like this.

2 Jan 2019, 20:56 PM
#5
avatar of Stingy

Posts: 26

Hi and happy new year guys and girls.

have been trying out some stuff, but am not able to attach the crew.

Here is the code.

what am I doing wrong?

crew_ext



action_apply_ext




thanks in advance, if anyone is able to help me out :)
N/A
2 Jan 2019, 23:08 PM
#6
avatar of N/A

Posts: 29

crew_ext



action_apply_ext


Delete all
3 Jan 2019, 07:52 AM
#7
avatar of Stingy

Posts: 26

Delete all? what do you mean?
N/A
3 Jan 2019, 09:11 AM
#8
avatar of N/A

Posts: 29

3 Jan 2019, 10:42 AM
#9
avatar of Stingy

Posts: 26

Thanks :) Finally got it to work :D
11 Jan 2019, 12:55 PM
#10
avatar of Planet Smasher
Senior Modmaker Badge

Posts: 632 | Subs: 1

The main difference here is that the 25-pounder uses a crew while the B4 (and other howitzers) are team weapons. A crew is purely visual and doesn't represent any real "unit", so the crew members can't die. A team weapon is operated by entities just like the ones in regular infantry squads, so they can attack and be attacked.
1 user is browsing this thread: 1 guest

Ladders Top 10

  • #
    Steam Alias
    W
    L
    %
    Streak
Data provided by Relic Relic Entertainment

Replay highlight

VS
  • U.S. Forces flag cblanco ★
  • The British Forces flag 보드카 중대
  • Oberkommando West flag VonManteuffel
  • Ostheer flag Heartless Jäger
uploaded by XXxxHeartlessxxXX

Board Info

845 users are online: 845 guests
0 post in the last 24h
7 posts in the last week
34 posts in the last month
Registered members: 49121
Welcome our newest member, Hanra274
Most online: 2043 users on 29 Oct 2023, 01:04 AM