Steel Division 2

Steel Division 2

Not enough ratings
Modding in a new Division in Steel Division 2
By KiwiBirb
This guide explains everything you need to know to create a new division with existing units.
   
Award
Favorite
Favorited
Unfavorite
Modding in a new division in Steel division 2
the most important files for making a new division are in
(your mod's name)\GameData\Generated\Gameplay\Decks
(your mod's name)\GameData\Localisation

Steps to making a new division:

1. Go into (your mod's name)\GameData\Generated\Gameplay\Decks and open divisions.ndf
2. Choose one of the base divisions, eg.
Descriptor_Deck_Division_GR_20_Panzer_multi
3. Download the text file editor Notepad++
4. use notepad++ (Top bar -> Search -> findInFiles) and search for all references
('Find in files' in /Generated/... , Search Descriptor_Deck_Division_GR_20_Panzer_multi)
5. clone all the references and their associated text
(Descriptor_Deck_Division_GR_20_Panzer_multi and everything between it and the next entry)

You do not need to clone the entry in Decks.ndf. This defines the deck given when you "Generate prebuilt deck" in the deck editor. the division will be buildable and playable without it.

6. rename all the cloned references
(Descriptor_Deck_Division_GR_20_Panzer_multi -> Descriptor_Deck_Division_New_Division_multi )

7 if you want to deal with decks.ndf

export Descriptor_DeckGenerated_New_Division_multi is TDeckDescriptor <-THIS NAME IS UNIQUE TO THIS FILE
(
DeckNameAsString = 'New division'
DeckDivision = ~/Descriptor_Deck_Division_New_Division_multi <-THIS IS THE SAME AS IN OTHER FILES
IncomeByPhaseIndex = 0
DeckPackList =
[
TDeckPackDescription
(
Quantity = 1 <-# of packs
AvailableFromPhase = 2 <- 1=B 2=C. delete this line for A phase
ExperienceLevel = 1 <- 1=Vet1 2=Vet2. delete this line for 0vet
DeckPack = ~/Descriptor_Deck_Pack_
),
At the bottom of the file in the
private DeckList is TDeckDescriptorList
(
DeckListForAutoFill =
[
~/Descriptor_DeckGenerated_New_Division_multi, <add your deck you defined at the top of the list, the one unique to this file


8. Create a new packs (run search and replace all references just like with Descriptor_Deck_Division_GR_20_Panzer_multi) or choose pre made packs with the units you want to add to your division from packs.ndf
9. in Divisions.ndf replace the packs already there with the packs you chose in step 6
10. in Divisionrules.ndf add rules for all the units in the packs that you added
11. clone a divisioncostmatrix in divisioncostmatrix.ndf and give it a new name
12. replace the original costmatrix in divisions.ndf with the one you just made

11. in MODDING.csv create new text strings (clone the template and replace TOKEN with a custom string that is 1-10 characters long, and relpace REFTEXT with the text you want to show up in game
12. replace:
DivisionName = 'Div_20Pz'
DivisionNickname = 'SNGR20Pz'
DivisionDescription = 'DESGR20Pz'
with the tokens you just created.

Click the "Generate mod.bat" in the mod's folder


--- IMPORTANT ---
If you clone anything with a GUID, eg. DescriptorId = GUID:{9c32d848-0825-4e85-8535-0dcd53e79193}, you need to replace the GUID with a new unique GUID
You can generate them by going to https://www.guidgenerator.com/online-guid-generator.aspx
There are GUIDs in Packs and Descriptor_Deck_Division.
Many other templates have them, but the above 2 are the only ones you need to know about to create a new division with existing units.




While not complete, here is a guide on how infantry squads are coded
https://docs.google.com/document/d/1Xu23UgjpzDDtX6_wWyG6ApjqSNplo8pryI52ZjAggMo/edit?usp=sharing

Image in doc has bad quality so here it is again:
38 Comments
KiwiBirb  [author] 9 Apr @ 9:33pm 
I dont think i can help you because like i said that file isnt editable so idk how to fix it

can you try creating a new mod and generating it with only 1 change in divisionrules ndf?
Creature 9 Apr @ 11:23am 
I tried and unfortunately neither solution worked
KiwiBirb  [author] 8 Apr @ 9:15pm 
try running updatemod.bat and/or verifying game files and then re generating

That error is not with anything youve done, the tool is not recognizing some of the hidden base game files needed to generate the mod for some reason.
Creature 8 Apr @ 1:03pm 
I finished everything up for the most part except for a few thing and i generated and got an error and im unsure of what to do
I keep getting this error.
Title : Revision : 149435 | SHA1 : b240dcec1ab3b3836ba1ad27a42ded34662582c3 - steeldivision2.release | Erreurs NDF
Message : NDF build errors :

press Yes to retry
================
Stack
================
@file:CommonData:/System/Globals.ndf@(0:0) File not found : CommonData:/System/Globals.ndf
Creature 8 Apr @ 6:16am 
thank you for replying im making an italian division and when it says in step six to rename all cloned references does that mean just the title at the top so.Descriptor_Deck_Division_RSI_Monterosa_multi -> Descriptor_Deck_Division_RSI_Centauro_II_multi
Does it also apply to the stuff in the pack list like
(~/Descriptor_Deck_Pack_TOE_RSI_Monterosa_multi_AS42_20mm_RSI, 1), ->(~/Descriptor_Deck_Pack_TOE_RSI_Centauro_II_multi_AS42_20mm_RSI, 1),
KiwiBirb  [author] 7 Apr @ 11:05pm 
i have also updated the guide a bit
KiwiBirb  [author] 7 Apr @ 10:49pm 
Hi, i would probably need a more detailed description to help you. Are you confused as to how to execute the step in notepad, or are you getting an error when generating?

I also reccomend contacting modders through the official Eugen discord, its easier to communicate there.

https://discord.com/channels/471232139661410305/644992718128283658
Creature 7 Apr @ 2:10pm 
i do not understand im getting lost at step 7. Theres two step sevens for some reason but im talking about the first one. This thread is very old but i hope someone helps :)
Lost 7 Nov, 2022 @ 1:53pm 
thanks
KiwiBirb  [author] 6 Nov, 2022 @ 10:30pm 
you can use it but any player without back to war wont. Just hit ignore