How To: Create a new faction

Users who are viewing this thread

sheek

Knight at Arms
Old Guard
Part one

Go to your M&B directory -> mods -> native

Open factions.txt in a text editor

From Mag7 v15

24
player_faction 0 0.900000 0.100000 -0.300000 0.000000 0.000000 -0.400000 0.000000 0.000000 0.000000 0.000000 0.000000 -30.000000 0.000000 -0.300000 0.100000 -0.200000 -0.200000 -0.300000 -0.300000 0.100000 0.100000 -0.500000 -0.500000 0.000000
commoners 0 0.100000 0.100000 -0.600000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 -0.200000 -0.200000 0.000000 0.000000 -0.700000 -0.700000 0.000000
outlaws 33280 -0.300000 -0.600000 0.500000 0.000000 -0.050000 0.000000 -0.800000 -0.800000 -0.050000 -0.050000 0.000000 0.000000 0.000000 0.000000 -0.600000 0.000000 0.000000 0.000000 0.000000 0.000000 -0.100000 0.000000 0.000000 0.000000
neutral 0 0.000000 0.000000 0.000000 0.100000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
innocents 0 0.000000 0.000000 -0.050000 0.000000 0.500000 -0.900000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
dark_knights 0 -0.400000 0.000000 0.000000 0.000000 -0.900000 0.500000 -0.200000 0.000000 -0.050000 -0.050000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
swadian_caravans 0 0.000000 0.000000 -0.800000 0.000000 0.000000 -0.200000 0.500000 0.000000 0.000000 -0.200000 0.000000 -0.050000 0.000000 0.000000 0.000000 -0.050000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
vaegir_caravans 0 0.000000 0.000000 -0.800000 0.000000 0.000000 0.000000 0.000000 0.500000 -0.200000 0.000000 0.000000 -0.050000 0.000000 0.000000 0.000000 0.000000 -0.050000 -0.050000 -0.050000 0.000000 0.000000 0.000000 0.000000 0.000000
swadians 0 0.000000 0.000000 -0.050000 0.000000 0.000000 -0.050000 0.000000 -0.200000 0.500000 -0.600000 0.000000 -0.020000 0.000000 0.000000 0.000000 -0.020000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
vaegirs 0 0.000000 0.000000 -0.050000 0.000000 0.000000 -0.050000 -0.200000 0.000000 -0.600000 0.500000 0.000000 -0.020000 -0.500000 0.000000 0.000000 0.000000 -0.020000 -0.020000 -0.020000 0.000000 0.000000 0.000000 0.000000 0.000000
khergits 0 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.500000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 -0.100000 0.000000 0.000000 0.000000 0.000000
black_khergits 0 -30.000000 0.000000 0.000000 0.000000 0.000000 0.000000 -0.050000 -0.050000 -0.020000 -0.020000 0.000000 0.500000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
rebel_peasants 0 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 -0.500000 0.000000 0.000000 0.500000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
inquisition 0 -0.300000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.500000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
manhunters 0 0.100000 0.000000 -0.600000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.500000 -0.600000 -0.600000 -0.600000 -0.600000 0.000000 0.000000 0.000000 0.000000 0.000000
swadian_deserters 0 -0.200000 0.000000 0.000000 0.000000 0.000000 0.000000 -0.050000 0.000000 -0.020000 0.000000 0.000000 0.000000 0.000000 0.000000 -0.600000 0.500000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
vaegir_deserters 0 -0.200000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 -0.050000 0.000000 -0.020000 0.000000 0.000000 0.000000 0.000000 -0.600000 0.000000 0.500000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
mountain_bandits 0 -0.300000 -0.200000 0.000000 0.000000 0.000000 0.000000 0.000000 -0.050000 0.000000 -0.020000 0.000000 0.000000 0.000000 0.000000 -0.600000 0.000000 0.000000 0.500000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
forest_bandits 0 -0.300000 -0.200000 0.000000 0.000000 0.000000 0.000000 0.000000 -0.050000 0.000000 -0.020000 0.000000 0.000000 0.000000 0.000000 -0.600000 0.000000 0.000000 0.000000 0.500000 0.000000 0.000000 0.000000 0.000000 0.000000
antler_knights 0 0.100000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 -0.100000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.500000 -0.700000 0.000000 0.000000 0.000000
tagars 0 0.100000 0.000000 -0.100000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 -0.700000 0.500000 0.000000 0.000000 0.000000
ghouls 33280 -0.500000 -0.700000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.500000 0.000000 0.000000
undeads 33280 -0.500000 -0.700000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.500000 0.000000
slavers 0 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.100000

The first line says the number of factions that there are

The total number of lines in the txt must be equal to that number +1

Each of the next lines describes a faction

The first entry gives the faction name. It must be a single word or linked by a '_'

The second entry is a number. It is always '0'. Only the undead have a different number

Each of the numbers following the second entry give the relations with a faction. The first gives your new faction's relations with the first faction, the second entry your relations with the second faction etc

So if you want to create a new faction first increase the number in the very first line by one. Then go to the bottom of the txt file and enter a new line. Replace the data in [] with your own data

[your_faction_name] 0 [relations with faction_1] [relations with faction_2] ... [relations with your_faction_name]

Finally add a number for the relations of the old factions with the new factions. You need to add a number at the end of each of the previous 24 lines
 
I'm making a faction myself that's why I'm doing this. I'm planning to go through the whole system in different parts. The next part will be how to change the conversations settings and how to create new troops.
 
Yeah but the editors are not at all straight-forward. They help enormously but you still have to work out a lot of things for yourself.
 
Adding siege's is almost impossible (far as i know) without atleast the mod tool's , and if added , is most likely going to be by the Dev's.

1 thing im doing also is trying to make all the 'new unit's ive created spawn on the map.
 
holybandit said:
Nice, sounds like your recreating the game...Maybe you can add seiges yourself and update this game before the real admins do.

This stuff has been covered months ago. There's a sticky at the top of the forum with links to info on most of the text files in M&B that can be easily edited. Adding "siege" (pretty broad concept you have there, but more concise things have been posted in the Suggestions forum, as well as some discussion here on how one might do it given the constraints of how M&B works) is not something than can be done easily, and essentially will wait until we get model exporter scripts.
 
Back
Top Bottom