Login

russian armor

COH2 Modding: Getting started with the official tools

PAGES (14)down
30 Oct 2014, 12:28 PM
#22
avatar of Janne252
Admin Black Badge
Patrion 15

Posts: 3421 | Subs: 11

Take a look at squad_action_apply_ext for sbps/aef/soldiers/riflemen_squad_mp

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.
30 Oct 2014, 12:37 PM
#23
avatar of PotisMan

Posts: 6

I don't have all those options in the extenstions tab! I did everything else right!
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 :)
30 Oct 2014, 13:21 PM
#24
avatar of gary.giles71

Posts: 165

Really cool! Can't wait to see what people come up with.
30 Oct 2014, 15:27 PM
#25
Only Relic postRelic 30 Oct 2014, 18:23 PM
#26
avatar of qduffy
Developer Relic Badge

Posts: 75 | Subs: 11

Pretty darn cool.
30 Oct 2014, 22:01 PM
#27
avatar of Lokust22

Posts: 79

Hi Janne

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
30 Oct 2014, 22:47 PM
#28
avatar of Janne252
Admin Black Badge
Patrion 15

Posts: 3421 | Subs: 11

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
30 Oct 2014, 23:09 PM
#29
avatar of Lokust22

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!
31 Oct 2014, 02:14 AM
#30
avatar of Volsky

Posts: 344

So, I've got the correct files created and no errors, but my mod isn't appearing as a tuning pack under the custom game options...
31 Oct 2014, 08:42 AM
#31
avatar of Janne252
Admin Black Badge
Patrion 15

Posts: 3421 | Subs: 11

Did you remember to build the mod? There's not much options if you followed this tutorial.
31 Oct 2014, 10:19 AM
#32
avatar of .Trooper..

Posts: 10

I cant seem to actually build the mod :(
I cant press on "Build Mod"
31 Oct 2014, 10:36 AM
#33
avatar of steel

Posts: 1963 | Subs: 1

I cant seem to actually build the mod :(
I cant press on "Build Mod"
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.


:snfAmi::snfPeter::snfAmi:
:snfMarcus::snfQuinn:
:snfCHVGame::snfPeter:


:snfBarton:


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. :)
31 Oct 2014, 11:19 AM
#34
avatar of .Trooper..

Posts: 10

Weird i keep getting this - modbuilder.exe Error: 0 : F:\SteamLibrary\SteamApps\common\Company of Heroes 2\Archive.exe failed with exit code 255.
31 Oct 2014, 11:20 AM
#35
avatar of .Trooper..

Posts: 10

Oh plus i cant find it ingame maybe the reason is the code above ? ^^

31 Oct 2014, 11:45 AM
#36
avatar of Janne252
Admin Black Badge
Patrion 15

Posts: 3421 | Subs: 11

jump backJump back to quoted post31 Oct 2014, 10:36 AMsteel
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.


:snfAmi::snfPeter::snfAmi:
:snfMarcus::snfQuinn:
:snfCHVGame::snfPeter:


:snfBarton:


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.
31 Oct 2014, 12:07 PM
#37
avatar of .Trooper..

Posts: 10

Just re-done it and got the exact same error? wtf any help? -

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.
31 Oct 2014, 12:12 PM
#38
avatar of shpongle

Posts: 41 | Subs: 1

Managed to create a tuning pack and test it successfully. Same process doesn't work with Win Conditions, though. I don't know what I'm missing but the win condition doesn't appear in the custom game dropdown.

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.

31 Oct 2014, 12:18 PM
#39
avatar of steel

Posts: 1963 | Subs: 1



Well that's weird. Have you tried if "Barton" lags behind with a smaller squad?

I did the same thing with the grenadiere this time with an MP40 and :snfBarton: don't lag behind. Only conscripts
31 Oct 2014, 12:28 PM
#40
avatar of shpongle

Posts: 41 | Subs: 1

jump backJump back to quoted post31 Oct 2014, 12:18 PMsteel
I did the same thing with the grenadiere this time with an MP40 and :snfBarton: don't lag behind. Only conscripts


Maybe it depends on the individual speed of the unit?
31 Oct 2014, 12:29 PM
#41
avatar of Sarantini
Honorary Member Badge
Donator 22

Posts: 2181

jump backJump back to quoted post31 Oct 2014, 12:18 PMsteel
I did the same thing with the grenadiere this time with an MP40 and :snfBarton: 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 ?
PAGES (14)down
3 users are browsing this thread: 3 guests