Jump to content

Welcome to the Forum!

The best place to exchange builds and ideas! Vote for the best ideas and suggestions here.

Join the Avorion Discord!

Connect with other passionate players and talk about the latest news.
Discord

DLC Avorion Into the Rift Out Now!

Now available on Steam!
Steam

How to make a faction pack


TESL4
 Share

Recommended Posts

I am attempting to make a faction pack with the Neulance Armada ships I am currently making.  Unfortunately I am a complete noob when it comes to mods and creating them.  Would anyone be able to show a step by step approach or link one?  I would research and learn it myself, but after working 12 hr shifts on nights I don't have any mental fortitude to try and learn something new.  Any help would be appreciated.

 

Link to comment
Share on other sites

I also don’t know how to create one, but here’s what someone on Reddit said when it was in the beta branch:

“...create a new mod in the main menu - you'll get the option to make it a faction pack. Look at the folder and the files to see what to put where.”

Sounds fairly simple, if that’s the true process.

Link to comment
Share on other sites

There is a limit to the number of turrets for faction-packed ships.

I think it's probably the same as a random generator.

It seems to be 10 at most.

If the ship has a turret base, it is placed on the turret base.

However, the turret base edge is ignored.

If there is no turret base, it seems to be placed randomly.

 

The ship block is valid.

If the ship has a shield generator, it can be launched into the iron zone.

The energy of a ship looks infinite like NPC.

 

cheering ;D

Please use it as a sample.

https://steamcommunity.com/sharedfiles/filedetails/?id=2012662704

Link to comment
Share on other sites

I've just followed the directions I quoted, and at first glance, it seems confusing because of all the text. But the more I read, the more I realized that the code comments are all just very simple instructions. Thanks, Deep, for providing your pack as an example; looking between yours and my default files made it easier to understand. I'll now summarize how I understand each of the simple variables in the two files.

 

To locate Deep's faction pack after subscribing, go to this file location: C:\Program Files (x86)\Steam\steamapps\workshop\content\445220\2012662704

It's probably the same for you.

 

After creating and naming your new faction pack from the mods menu in Avorion, find it here: C:\Users\YOURNAME\AppData\Roaming\Avorion\mods

 

Start in the 'modinfo' LUA file. I use Microsoft's Visual Studio to open files like this.

 

Start from the top.

id - Steam determines this when it's uploaded to the workshop, as I understand it. Just be sure there aren't two folders with your faction pack name in your computer.

name - Deep simply made this the (misspelled) acronym of his pack ("FPSF")

title - The name on the workshop.

type = "factionpack", as opposed to "mod".

description - describe it briefly so people know it when they hover their mouse in the mod menu—that's my guess.

authors - just your steam name.

version - other mod makers use this value from other mods to define compatibility and incompatibility by versions.

dependencies - just read the example list they made. Deep didn't need to edit, and I doubt you will.

the last four - probably don't need to edit those. Read if you want.

 

You're done with 'modinfo'!

Now open the other file, 'factionpack'.

Here you will decide which ships to include, and organize them by type. Have a look at the different types of ships the game wants: "ships", carriers, freighters, miners, fighters, and all station types.

Read lines 10 and 11. They say to put all the .xml files of your chosen ships into the same folder that has the two files. Every ship you have made is saved in C:\Users\YOURNAME\AppData\Roaming\Avorion\ships, and it makes three files. Deep put all three files of each ship into the folder, which doesn't seem like a bad idea.

Here's how Deep wrote each list: {"awing.xml","awingr.xml","ywing.xml","xwing.xml"}

Spaces, tabs, and returns don't affect the list, but you need to follow the basic format of {"name.xml", "name2.xml"}

 

The minDist and maxDist must refer to the distances from the center that your ships will appear at.

 

Your faction pack becomes immediately load-able in the Avorion mod menu as soon as it's created. Just enable it. Remember, though, that I've never done this before. TLDR; the instructions in the two generated files are simple to understand. Subscribe to Deep's pack to see that it's not hard.

Link to comment
Share on other sites

For their tests, the range is "minDist = 50,"

maxDist = 450,.

The starting faction uses them.

If there is no error in LUA, it is a high probability.

About 60%.

Other than that, it is hard to find them. :-\

 

 

Misspelling is my passive skill. :'(

Link to comment
Share on other sites

That was actually pretty easy.  I'm not sure its working though.  I couldn't find my ships used anywhere in the 320-150 range.  Not sure how to upload it to the workshop either to show it

 

Do the minDist and maxDist variables have the “--“ dashes before them? Maybe you forgot to let them not be code comments. For now I think you should let the range go to 500 just so you can better check if they exist. Maybe try to find Deep’s ships to get an idea about where yours are.

Link to comment
Share on other sites

I figured it out, it was a dumb mistake on my part lol. 

 

I feel like that ship in particular will have the most issues since most of its turret hardpoints are sloped, and from what I've read turrets don't get put on sloped hardpoints.  I'm so glad that you were able to find some of my ships though!  Idk why But I haven't been able to see any custom ships from ship packs in my universes at all.  Kinda annoying.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...