Jump to content

New to the modding of this game... Enemy Ships


Elvisman2001

Recommended Posts

First and foremost get familiar with lua and the modding API in /Avorion/documentation. Also look at the games script files in /data/scripts/*

 

Is there a way to mod the appearance of NPC ships? i am really growing tired of fighting sticks and various other

dull things.

In short: There sure are!

longer:

The easiest approach might be using workshop ships (get the permission of the Authors beforehand!) and use

LoadPlanFromFile(string file)

(See the API's function section for further research)

 

If you want to improve the procedural generation of the ingame ships, it gets dirty really quick:

The following API's are a must have

- BlockPlan

- BlockPlanBlock

- vec2

- vec3 (is much more important than vec2)

- Matrix

- Random

- Seed

- Sector

- Entity

- PlanBspTree (never used it myself, but would be useful)

Additionally fundamental knowledge of Analysis-math. (up to 3rd. dim. a must, 4th. dim. for rotation, scaling, etc...)

 

scripts to look at:

/scripts/lib/

- asyncpirategenerator.lua

- asyncshipgenerator.lua

- plangenerator.lua

- shipgenerator.lua

- stationextensions.lua

 

and how to use them:

- entitydbg.lua

- SectorGenerator.lua

- galaxy.lua

- pirategenerator.lua

- shiputility.lua

 

always have:

- utility.lua

 

And now comes the actual hard part:

Making your ships look good and have them working at the same time. And all of it just by starting with:

math.randomseed(seed)

I tried a little bit of it myselft a while back, but ultimately decided to work on other projects

 

 

 

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
×
×
  • Create New...