Login

russian armor

25 Pounder Emplacement Modding Guide

13 Jul 2018, 11:54 AM
#2
avatar of MajorBloodnok
Admin Red  Badge
Patrion 314

Posts: 10663 | Subs: 9

13 Jul 2018, 12:04 PM
#3
avatar of SupremeStefan

Posts: 1220

13 Jul 2018, 13:54 PM
#4
avatar of BartonPL

Posts: 2807 | Subs: 6

so IMO, we do every stationary as emplacement aka brits style or we make non of it
13 Jul 2018, 14:53 PM
#5
avatar of Tiger Baron

Posts: 3138 | Subs: 2

Great guide! Can I request a guide for several other units such as the 250 Halftrack with MG and Hetzer? eliw00d made one for the 250 HT on the official forums but a lot of people don't know about it, but I have no idea how to do it for the Hetzer. An MG upgrade for the Churchill tanks would also be awesome if possible since I remember seeing a picture with it but there was no guide for it, I think it was again made by Planet Smasher because it's not present in the All Units Mod.
13 Jul 2018, 15:06 PM
#6
avatar of SneakEye
Senior Modmaker Badge

Posts: 813 | Subs: 5

Great guide! Can I request a guide for several other units such as the 250 Halftrack with MG and Hetzer? eliw00d made one for the 250 HT on the official forums but a lot of people don't know about it, but I have no idea how to do it for the Hetzer. An MG upgrade for the Churchill tanks would also be awesome if possible since I remember seeing a picture with it but there was no guide for it, I think it was again made by Planet Smasher because it's not present in the All Units Mod.

One at a time, but it sure is possible to create more. I'm glad you like it!
13 Jul 2018, 17:46 PM
#7
avatar of Tiger Baron

Posts: 3138 | Subs: 2


One at a time, but it sure is possible to create more. I'm glad you like it!


Of course I like it, I even bothered you for it a long time ago if you remember lol.

But it's also nice to know how something is done so we can learn from it as well instead of just getting it already made, unless of course we're in a real hurry or something, at least for me that is.
21 Jul 2018, 00:39 AM
#8
avatar of GreyW00lf

Posts: 3

Sorry but I followed this guide to the letter and when i build this in game it crashes or the Gun doesn't show up.
21 Jul 2018, 08:20 AM
#9
avatar of SneakEye
Senior Modmaker Badge

Posts: 813 | Subs: 5

Sorry but I followed this guide to the letter and when i build this in game it crashes or the Gun doesn't show up.

Can you double check step 1? Crashes are often caused by wrong references to files, espacially these:
  • In the pit, point the ebps\construction_ext\on_construction_squad to the new squad.
  • In the squad, point the sbps\loadout_ext to both the pit and the gun.
Otherwise you can take a look into: "\Documents\my games\company of heroes 2\warnings.log"

If that doesn't help please make a new topic and post your files in it.
23 Aug 2018, 12:36 PM
#10
avatar of DoggieBalloon

Posts: 64

Thanks SneakEye!
23 Nov 2020, 03:14 AM
#11
avatar of Popsicle

Posts: 42

When I try to add more abilities (hardpoint, weapon, ability) to the Gun the Gun no longer turns to face the target.

I followed this guide and can indeed make the 25-pounder emplacement and give British Royal Engineers the ability to build it. In game they build it, I tell it to fire at a target, the men pick up the gun and face it towards the target and set it down, the men then fire the 4 salvos and all is well. I can tell it to barrage a second area on a different azimuth and they successfully turn the gun and fire it. The problem begins when I try to add a second weapon and ability.

I cloned the barrage ability and called it anti-tank ability. I cloned the weapon calling it anti-tank weapon, increased penetration and added on_penetration actions. I added hardpoint_03 to the Gun and assigned the anti-tank weapon to it. I added the anti-tank ability to the gun pointing it to hardpoint_03. In game I first fired the new anti-tank barrage, the men turned the gun and fired but after they finished firing, the gun instantly returned to its original facing, it did not pivot in place, it just snapped back to its original facing. After firing at the first target the crew would not turn the gun toward a new target area regardless of which ability I used. I could use both abilities, but the gun would not face the target.

To trouble shoot the problem I decided to deconstruct what I had added one step at a time. I removed the ability from the gun, left hardpoint-03 with its weapon. In game when I fired the barrage ability the crew picked up the gun, held it for about 2 seconds, set it down and then fired. The gun did not turn toward the target, the projectile did however come out of the end of the Gun barrel and go to the target area.

Next I removed the weapon from hardpoint_03, leaving hardpoint_03 there. In game the crew picked up the gun, faced it toward the target, set it down and fired. So, I thought the weapon was the culprit.

Next I assigned the working weapon on hardpoint_02 to hardpoint_03 to see if it was infact a problem with my anti-tank weapon. Still only the original ability assigned to the Gun at this point. In game the crew picked up the gun, held it for about 2 seconds, set it down and fired the gun. They did NOT turn the gun towards the target. So, it did not appear to be a problem with the weapon assigned to hardpoint_03 because it is the same weapon assigned to hardpoint_02, which works as intended.

Next I left the working weapon assigned to hardpoint_03 but changed hardpoint_02, parent_weapon to 1. In game the barrage ability was greyed out and the rollover text gave me "Cannot use ability on this target".

Next I looked at british_building_1_mp, combat_ext to see if perhaps one of its hardpoints was designated as parent. What I found was that british_building_1_mp has 9 hardpoints. Hardpoints 1 and 2 have parent_hardpoint set to -1 and hardpoints 2 thru 9 have parent_hardpoint set to 2. So.... I added the anti-tank ability back to the Gun, pointed it to hardpoint_03 and set hardpoint_03 parent_hardpoint to 2. In game, the barrage ability is available, but the anti-tank ability is greyed out with the message "Cannot use ability on this target". HOWEVER, when I use the barrage ability the crew pick up the gun, turn it towards the target, set it down, and fire it. After firing the gun remains facing the target area and repeated uses of the barrage ability all work as intended.

So.... setting parent_hardpoint to 2 on hardpoint_03 has resolved the crew not turning the weapon issue. But..... I have no idea what to do next to get the second ability, the anti-tank ability, out of the "Cannot use ability on this target" state. Or if I am even traveling down the right path.
23 Nov 2020, 10:20 AM
#12
avatar of SneakEye
Senior Modmaker Badge

Posts: 813 | Subs: 5

When I try to add more abilities (hardpoint, weapon, ability) to the Gun the Gun no longer turns to face the target.

I think you are very close to the solution. After cloning all files, only two changes have to be made.
1. You already found this, the parent_hardpoint of hardpoint 3 should be 2.
2. The weapon of the second ability needs: behaviour/share_parent_anim : true
23 Nov 2020, 22:46 PM
#13
avatar of Popsicle

Posts: 42


I think you are very close to the solution. After cloning all files, only two changes have to be made.
1. You already found this, the parent_hardpoint of hardpoint 3 should be 2.
2. The weapon of the second ability needs: behaviour/share_parent_anim : true


Okay cool, I think I am actually catching on to some of this. I'll give this a try soon and let you know how I get on. By chance, did you see my post on delivering supplies to allies? Would appreciate your input.
1 user is browsing this thread: 1 guest