Overview
In this guide I will teach you how to mod flags into Holdfast. I personally found the SDK very confusing and I know many others also did. I also believe the SDK was aimed at those who wanted to do 3D Modeling which I didn’t and many others don’t want to do. I will teach you how to simply slap a imagine on the flag and how to upload it.
Introduction
In this guide I will teach you how to mod flags into Holdfast. I personally found the SDK very confusing and I know many others also did. I also believe the SDK was aimed at those who wanted to do 3D Modeling which I didn’t and many others don’t want to do. I will teach you how to simply slap a imagine on the flag and how to upload it.
Before you start please make sure you have done these things.
1. Download the correct version of Unity and install the Holdfast SDK. Other guide will show you how to do that.
2. Make sure you know the exact name of the unit you are uploading the flag to. If you do not know the units name then you can’t upload the flag to it.
FAQ
Q. Can you upload more than one flag to a unit?
A. No you can not I have tried.
Q. Can you upload a flag to a non flag bearer unit?
A. Yes you can, you have to add it into the map rotation though. I used
starting_weapons_override french CuirassierDragoon 5 5 Unarmed Carbine_CharlevilleCavalryIXXIII Sabre_AnXILightCavalry BearingFlag
To give the French Cuirassier a flag.
Q. Can you add flags to the base game flag bearers even though they already have a flag?
A. Yes you can, the base game flag will be removed.
Setting Up Your Flag Model
1. Create a new mod.
Click Holdfast SDK Tools, click Create Empty Mod, name it, and create.
2. Grab the ExampleFlag and drag it into scene, the image below will show you exactly where to look.
3. In the top left of your screen below Hierarchy you should see Create. Click Create, go under 3D Object, and click cube.
4. Drag the cube under ExampleFlag and rename it to Box Collider. It should look like the photo below.
5. Adjust the box until it is the same size of the flag pole. W is to move the box and R to adjust the size of it. It should look like the photo below.
6. Click Box Collider and look under inspector. Remove Mesh Renderer and Cube from it. Right click on them and click remove component. Next disable it by unchecking the box in between the name and the cube, I will circle the box in the photo below.
IMPORTANT
Click on default to the top right and change it to Melee Weapon Hit Collider in ExampleFlag AND Box Collider
7. Click on ExampleFlag and remove animator by right clicking it and clicking remove component. Animator is located in the same area where Mesh Renderer and Cube were for the Box Collider.
8. Click the drop down on ExampleFlag and click Flag_Maltese. Click on Add Component which is located under the inspector just like Mesh Renderer and Cube were. Click on Add Component and search Cloth and add Cloth
9. Change your settings under Cloth to look like the photo below.
10. In the photo above you can see a little shirt with a tack on it which is next to the shirt with an arrow and above Stretching Stiffness. This shirt is called Edit Cloth Constraints, click on it.
Change Max Distance from 0.2 to 0, Max Distance location is under lined below. Next click on select instead of paint and select the area that is blue in the photo below. Make sure the area in the photo that is blue is blue and that the rest is black. Again, simply click select and grab the circles you want to become blue and it automatically becomes blue. After you are done click Edit Cloth Constraints again to close it.
11. Below Cloth you should see a component called MalteseFlag_Cloth, make sure the circled area below says Cloth-DoubleSided.
12. Under Hierarchy where ExampleFlag is you should see Main Camera and Directional Light, delete those.
Your flag is almost ready to upload, next you need to create your own flag and get it ready to be uploaded.
Creating Your Flag
1. Click on Flag Model Reference Example under project and open MalteseFlag_Diffuse with a paint/photo editing program. I personally use paint.net to edit flags. You can use the photo below as a guide on where to go if you are lost.
2. Once your photo editing program is open you just slap on the image you want to be your flag on the current Malta Flag. Once you are finished save it as another file do not over write the Malta flag because you will then loose the Malta flag.
3. Right above MalteseFlag_Diffuse you should see MalteseFlag_Cloth which has a blue ball as an icon, click it. Go to the top right under inspector and where you see the Malta flag and select your own flag. Photo is below to help you.
Congrats your flag is ready to be uploaded.
Uploading Your Flag
1. Click Holdfast SDK Tools, click Flag Importer, and click Pre-Setup. Make sure the Target Mod is the mod you created for your flag, drag the ExampleFlag model under Hierarchy into Root Object, make Flag Length max, and put in the regiment name you want the flag to go to. If you wish to create a Sprite look at the Holdfast SDK Guide but I don’t believe the sprite matters for flags so I just use the default Malta one.
It should look like the photo below.
2. Click ok, something else will pop up on your screen click ok, go back to Holdfast SDK Tools, click Flag Importer, and this time click Save Object, something else will pop up and click ok. Go into your file to make sure everything saved correctly, if it did it should look like this.
3. Next click Holdfast SDK Tools and click Built Mod. You will know when it is done building when a file pops up on your screen.
This process will take a few minutes so go grab a snack.
4. Once the file pops up you can see a French Sapper in the snow. If you want to edit your mods cover double click that, slap a image on it, and save. Change the size of YOUR image NOT the mod cover size.
5. Click Holdfast SDK Tools once again and click Upload to Steam Workshop, this might take a moment to fully load. Once it loads click upload. You can edit the title and give it a description if you wish.
Congrats you are done!
Steam is Monkey.
Steam is Monkey.
Unsure why my photos look all mis mashed in this guide, I tried to fix but it didn’t work.
If you need any help message me at Attila#5421 on Discord or message me on Steam and I can help you with your issue or clear something up in the guide.