COH2 Modding: Getting started with the official tools
Posts: 3421 | Subs: 11
You will find apply_modifiers_action under actions. This should give you a basic idea of how to apply modifiers to squads. The modifier you are looking for is modifiers\received_accuracy_modifier.
Posts: 6
I just realised that none off my squads are called squads like yours. But why?
http://gyazo.com/fdccf69e60e947f06fa85efe536f4bcf
I figured it out, i were still in ebps
Posts: 165
Posts: 2238 | Subs: 15
Posts: 75 | Subs: 11
Posts: 79
Thanks a lot for the guide. You made it look simple enough that I thought I would try my hand at it.
Does anyone know how to add a unit to a building? I have figured out how to make a building required in order to make a unit, but I don't think this is the same thing.
Thanks
Posts: 3421 | Subs: 11
EBPs\races\soviet\buildings\base_building\barracks_mp
Posts: 79
Buildings will have spawner_ext if they can spawn units. Take a look at (for example) soviet base buildings.
EBPs\races\soviet\buildings\base_building\barracks_mp
Ah, Fantastic.
I browsed right past that variable.
Thanks for the help!
Posts: 344
Posts: 3421 | Subs: 11
Posts: 10
I cant press on "Build Mod"
Posts: 1963 | Subs: 1
I cant seem to actually build the modYou've got to save the mod in the Mod Builder (not the Attribute Editor).
I cant press on "Build Mod"
Anyway, Master Janne, do you know how to adjust the entity's behaviour? Here's what I did:
Made conscripts 8 men
-7 men default mosin nagant rifles
-1 man custom entity PPSh 41 SMG.
Now the entity with the PPSh always walks far away from the pack as in like this.
You can see that BartonPL is lagging behind Ami and friends. Anyway that's how my custom squad always walks.
Thanks for your help on previous questions of mine.
Posts: 10
Posts: 10
Posts: 3421 | Subs: 11
You've got to save the mod in the Mod Builder (not the Attribute Editor).
Anyway, Master Janne, do you know how to adjust the entity's behaviour? Here's what I did:
Made conscripts 8 men
-7 men default mosin nagant rifles
-1 man custom entity PPSh 41 SMG.
Now the entity with the PPSh always walks far away from the pack as in like this.
You can see that BartonPL is lagging behind Ami and friends. Anyway that's how my custom squad always walks.
Thanks for your help on previous questions of mine.
Well that's weird. Have you tried if "Barton" lags behind with a smaller squad?
Oh plus i cant find it ingame maybe the reason is the code above ? ^^
Those error codes are really hard to debug, I would recommend carefully doing everything again by the tutorial.
Posts: 10
modbuilder.exe Information: 0 : Built FirstMod.mod.
modbuilder.exe Information: 0 : Building FirstMod.mod...
modbuilder.exe Information: 0 : F:\SteamLibrary\steamapps\common\Company of Heroes 2 Tools\AttributeEditorXML.exe --operation ModBinaryBurn --root "F:\SteamLibrary\steamapps\common\Company of Heroes 2 Tools\assets\data\attributes\attributes.xml" --mod "C:\Users\Sam\Documents\my games\company of heroes 2\Mod Projects\My First Mod\attrib.xml" --burn_path "C:\Users\Sam\Documents\my games\company of heroes 2\Mod Projects\My First Mod\instances\FirstMod Intermediate Cache\Intermediate Files\attrib\attrib"
modbuilder.exe Information: 0 : Copying C:\Users\Sam\Documents\my games\company of heroes 2\Mod Projects\My First Mod\locale\english\english.ucs...
modbuilder.exe Information: 0 : Writing C:\Users\Sam\Documents\my games\company of heroes 2\Mod Projects\My First Mod\instances\FirstMod Intermediate Cache\Intermediate Files\info\01f8a729a3f448338a1aa0252dada9a5.info...
modbuilder.exe Information: 0 : F:\SteamLibrary\SteamApps\common\Company of Heroes 2\Archive.exe -c "C:\Users\Sam\Documents\my games\company of heroes 2\Mod Projects\My First Mod\instances\FirstMod Intermediate Cache\ArchiveDefinition.txt" -a "C:\Users\Sam\Documents\my games\company of heroes 2\Mod Projects\My First Mod\instances\FirstMod.sga" -r "C:\Users\Sam\Documents\my games\company of heroes 2\Mod Projects\My First Mod\instances\FirstMod Intermediate Cache\Intermediate Files"
modbuilder.exe Error: 0 : F:\SteamLibrary\SteamApps\common\Company of Heroes 2\Archive.exe failed with exit code -1073741819.
modbuilder.exe Warning: 0 : Error copying C:\Users\Sam\Documents\my games\company of heroes 2\Mod Projects\My First Mod\instances\FirstMod.sga: Could not find file 'C:\Users\Sam\Documents\my games\company of heroes 2\Mod Projects\My First Mod\instances\FirstMod.sga'.
modbuilder.exe Information: 0 : Built FirstMod.mod.
Posts: 41 | Subs: 1
Also, like others noted. The attribute list is different from what we have. It seems we are missing anything related to squads. We can set attributes for single soldiers but not for squads.
Posts: 1963 | Subs: 1
I did the same thing with the grenadiere this time with an MP40 and don't lag behind. Only conscripts
Well that's weird. Have you tried if "Barton" lags behind with a smaller squad?
Posts: 41 | Subs: 1
I did the same thing with the grenadiere this time with an MP40 and don't lag behind. Only conscripts
Maybe it depends on the individual speed of the unit?
Posts: 2181
I did the same thing with the grenadiere this time with an MP40 and don't lag behind. Only conscripts
If I remember correctly browsing the stats there are squad formation plans for each squad. And for conscripts it was 2 right 2 left and 2 middle
Maybe 8 men screws too much with this ?