Avorion

Avorion

Galaxy at War
Okabig  [developer] 9 Oct, 2021 @ 6:17pm
How this simple mod was made for those who are interested.
As the mod description indicates, achieving this could prove easy to do since this mod only modifies a few line of code. The hardest part should be finding the file and following the rules of the game.


These instructions will show you how to modify my mod
Step 1: Open your steam folder then navigate to this address, (the address of my mod):
steamapps\workshop\content\445220\2416624076
Step 2: Open the only folder there and keep opening folders until you find the factions.lua
file.
Step 3: Open factions.lua

From there you should see among other things the line:
traits = {
{name = "aggressive", from = 4, to = 4},
{name = "brave", from = -3, to = 3},
{name = "greedy", from = -3, to = 3},
{name = "honorable", from = -3, to = 3},
{name = "mistrustful", from = -3, to = 3},
{name = "forgiving", from = -3, to = 3}
},
All I did was force aggressive to equal 4 on every line where aggressive appeared equal some number

Now if you want to force a different trait to be in every faction then all you need to do is do what I did to the aggressive trait to your respective trait.

Just don't modify anything other then what I am saying to modify and the mod should work just fine.

Here is a list of every trait in the game and their opposite traits:
"peaceful", "aggressive"
"careful" "brave"
"generous", "greedy"
"opportunistic", "honorable"
"trusting", "mistrustful"
"forgiving"

If you want a peaceful galaxy then just set aggressive to equal -4 on every line I made it equal 4.

When you are done just save the file and close it and start the game. At this point you would have successfully modified your copy of my mod. So just make sure that mod is enabled and start a new game then see if you modified the game files correctly.

If you want to revert the changes you made, you can just resubscribe to this mod or just follow these instructions but replace your changes with what I said I modified on the homepage.

Good luck and happy modding!

TLDR: I just forced aggressive equal 4 in faction.lua on every line where aggressive appears to equal a number.
Last edited by Okabig; 19 Aug, 2022 @ 8:58pm
< >
Showing 1-1 of 1 comments
Okabig  [developer] 9 Oct, 2021 @ 7:03pm 
If you want to make your own trait mod then make sure to look up how to make an Avorion mod and change the image file and the parts of the other files that relate to my mod personally.
(You do not want to make a mod about peaceful generous AI factions only for it to have a title of Galaxy at War after all)
It is up to you if you want to give me credit for any of it simply because if you are making your own mod, then you probably modified the few lines of code this mod modifies. So you would have modified the few things I changed, thus nullifying my involvement in your mod.
Last edited by Okabig; 18 Aug, 2022 @ 3:56pm
< >
Showing 1-1 of 1 comments
Per page: 1530 50