Elvisman2001 Posted March 2, 2018 Share Posted March 2, 2018 Is there a way to mod the appearance of NPC ships? i am really growing tired of fighting sticks and various other dull things. Link to comment Share on other sites More sharing options...
Laserzwei Posted March 2, 2018 Share Posted March 2, 2018 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 Ugly code example: https://github.com/Laserzwei/AvorionQoL/tree/master/mods/extendedStations Link to comment Share on other sites More sharing options...
Elvisman2001 Posted March 2, 2018 Author Share Posted March 2, 2018 Actually using workshop ships or creating some from scratch and having the game use them for each faction was what I had in mind. Link to comment Share on other sites More sharing options...
T4Ken Posted March 3, 2018 Share Posted March 3, 2018 someone is allready working on this see here : http://www.avorion.net/forum/index.php/topic,3905.0.html Link to comment Share on other sites More sharing options...
Elvisman2001 Posted March 4, 2018 Author Share Posted March 4, 2018 someone is allready working on this see here : http://www.avorion.net/forum/index.php/topic,3905.0.html Nice. But unfortunately, there has been no word from the person working on it since Nov 2017 and there is no download link. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now