Find help on the FRENCH REFORGER MOD discord if you need ✅ Check our progress about this wiki here 📜
Skip to main content

Add a building to the building list

1. overide the conf file to add the building you want:image.png

2. Duplciate a line in the conf to add a new one
image.png

Content of a new line:
image.png

Name: logical name (somethin small and without space or special chartacer)

Title: The name that would be show in the building list

description: teh description when chossing the building to buiuld
Detailed Description: i think it's the one you see while placing the building down
Preview: is the image that will be shown in the catalog while chossing
construction category: image.png

Field Manual Link: if there is a explanation in the field catalogue you can link it here

Cost: cost in supply of the sctructure

Prefabs: the prefab that will be spawned after building it

Ghosts: the prefab that will be shown in transparants white to help you palcing down the building

First of category Free: the first bulding will be free (like the first supply depot that is free when stating a new game)

Requires Build Area: if the building need to be in a specifi area to be build

Build aere type: link to the previous line is for choosse where you allowed people to build this buildingimage.png

Things you need to do to the prefab to use is coorectly in game:
1. Find the prefab you want to add and overide it

image.png

Add those 2 coponenet to it: image.png

and config it:
For EPF_PersitenceComponent
image.png

And for JWK_BuildingAreaItemCOmpoennet

image.png


with that your prefab should spawn after confirm the location

But for the ghost you will need to inherit the prefab you jsut overide and add preview ad the end to find it easilyimage.png

And you will need to desactivate the two compnent you jsut add image.png

It is important because withotu that you will have some bug of spawning and some bug of persitence
be sure in your conf file to put the right prefab you just modify / created
image.png