Avorion

Avorion

84 ratings
Torpedo Assembly
2
2
2
   
Award
Favorite
Favorited
Unfavorite
Mods: Mod
File Size
Posted
Updated
901.458 KB
15 Jul, 2022 @ 5:24am
21 Aug, 2022 @ 9:03am
13 Change Notes ( view )

Subscribe to download
Torpedo Assembly

Description
Torpedo Assembly expands the original idea of assembly blocks and turns them into necessary part of ship even on starting ships. It allows player to produce torpedoes based on unlocked material knowledge, if ship has installed relevant blocks: Assembly and Torpedo Storage. Do remember that it will not deposit produced torpedoes into launchers directly. In addition, torpedo production lines are completely separate from hangar production lines, so you can use both of them at the same time.

Torpedo Parts Unlocks:
Iron - Orca-Class Body, Nuclear Warhead and Common Rarity.
Titanium - Hammerhead-Class Body, Neutron & Fusion Warheads.
Naonite - Stingray & Ocelot-Class Bodies, Kinetic Warhead and Uncommon Rarity.
Trinium - Lynx & Panther-Class Bodies, Plasma & Ion Warheads and Rare Rarity.
Xanion - Osprey-Class Body, Tandem Warhead and Exceptional Rarity.
Ogonite - Eagle-Class Body, EMP & Sabot Warheads and Exotic Rarity.
Avorion - Hawk-Class Body, Anti-Matter Warhead and Legendary Rarity.

Torpedo Production:
I'll leave up to the player to discover exact torpedo productions costs (and I'm pretty sure they will need more balancing), but do remember that beside body and warhead, rarity and tech level also affect torpedo's cost and production time. If you acquired new material knowledge, be sure to enter drone and return back to ship to update list of available torpedo parts!

Backend Work Logic:
The script of the Torpedo Assembly is attached to player and not to the entity. Script will automatically register every ship you've switched to and iterate through every production line on the server side. And will continue to deposit new torpedoes into ships' torpedo storages as long as there is available space. All processing and torpedo generation is done on the server side as well, while server only sends to player UI-related update data so it will look seamless. I haven't actually tested if it properly works over all registered ships spread through different sectors, but in theory it should.

Error/Lags Instructions:
If you started seeing that game excessively slows down or Torpedo Assembly stopped working, it means error has occurred. In that case, follow these instructions (script's data will be reset):
1) Verify that you're running latest stable/release version of the game.
2) Verify that you're running latest version of mod on client and server.
3) Via chat send command: /run Player():removeScript('lib/torpedo_assembly.lua')
4) Via chat send command: /run Player():addScriptOnce('lib/torpedo_assembly.lua')
5) Take client log from: %userprofile%\AppData\Roaming\Avorion\
6) Take server log from: %userprofile%\AppData\Roaming\Avorion\galaxies\save_name\
7) Go to Avorion's official discord, #mod-discussion channel.
8) Upload these log files there and ping me @WarStalkeR#0001

P.S. When I started playing Avorion for the first time, I felt very uncomfortable that I can build Assemblies, Torpedo Storages and Torpedo Launchers from Iron, but they can only decorate ship as props due to lack of usefulness. Also, thanks to The Devil, whose code I've used as reference to make neat looking UI and some other neat functions.

Sadly, right now I'm lacking in free time, so any development of this mod is on hold. If anybody is eager, you can update it and re-release, so it will be compatible with latest game version.
Popular Discussions View All (1)
1
22 Jul, 2022 @ 4:39am
Came across this error in client log
andyevans
91 Comments
神楽坂喵 11 Jul @ 3:38am 
I uploaded a new version that merged Chinese localization and alliance fix, and limited the use of alliance resources for alliance fix to only be effective when driving an alliance ship.
https://steamproxy.net/sharedfiles/filedetails/?id=3286774302
Cerberus12113 6 Jul @ 9:26pm 
is there a up to date version of this mod?
Marxon 3 Jul @ 9:58pm 
Figured out my issue btw I was forgetting to put a turret on the station to set the tech level.
WarStalkeR  [author] 3 Jul @ 1:30am 
@Marxon, yep. You can read all of it in description.
Marxon 2 Jul @ 10:40am 
I know how that be, made a ship for producing torpedoes and that worked, amazing mod just...
Does one need ogonite knowledge to get torpedoes?
WarStalkeR  [author] 1 Jul @ 9:00pm 
@Marxon, mod isn't being updated by me. If anybody wants, they can update and re-release it. I right now don't really have time for it.
Marxon 1 Jul @ 1:13pm 
BUG:
Stations seem to only be capable of producing tech 1 torpedoes.
Echo 11 Dec, 2023 @ 2:16am 
To anybody having issues with "the slider":

Remove the "Alliance Fix" version of this mod: https://steamproxy.net/sharedfiles/filedetails/?id=2852941857
or put resources into the alliance vault.

With the above mod enabled, it always tries to use your alliance's resources over your private ones. If the alliance vault is empty, the slider stays stuck at 0 as it can not produce anything.
x1xcerberusx1x 20 Oct, 2023 @ 9:15pm 
I had the same issue with saving designs and moving the slider to add to production and i got mine to work finally and below is what i did, had to break it into 2 comments due to the 1000 character limit, meh, see below and try step 3 at least and read step 4 for sure
x1xcerberusx1x 20 Oct, 2023 @ 9:03pm 
1. I had torpedo production from a while back active so i disabled that first.
2. After loading into my galaxy i noticed i still could not design torpedoes and i read in the description that i had to be sure to enter my drone (T) then go back to ship and that made it to where i could at least design but i still could not save or add to production
3.I figured well entering my drone (T) allowed me to at least design them what happens if i enter it again, I did and i flew around and then i rentered my sthip again and now i can save and add torpedoes to production and actually start producing them.
4. Only problem is that when you exit the game to go play in the real world for a bit, you will have to repeat step 3 each time you restart the game. You will need to enter drone, return to ship to get the design function to work, then yo will need to enter drone again, fly about 2km away from ship and then renter and the save design and slider function will work