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

[MOD] Weapon Engineering (Turret Editor)


darkconsole
 Share

Recommended Posts

ABOUT

 

By the time we reach Jupiter Station, I don't want their engineers to have a thing to do but give us a wash and a wax.

 

No longer must you play research station lottery or the shopping list game to fill a factory if you already have a turret you like. This mod allows you to cannibalize other turrets to upgrade an existing one. Please consider this mod BETA - while I have play tested it myself quite a bit, nevertheless it is still new and doing things nothing else is and nobody else documented.

 

Latest Version: v1.5.0 (2020-03-09)

See the Install/Update section for updating instructions.

 

Last Tested On: v0.33.6 (2020-03-09)

Minimum Version: v0.32.2

 

W6fHVUf.png

 

You select the turret you want to upgrade and drag it to the big box. Then you can select up to 5 additional turrets to destroy and drag them to the smaller boxes. The more turrets you select, the bigger the upgrade performed to the selected turret. The tech level of the turrets you scrap is also part of the upgrade math, use turrets greater than or equal to the tech level of the turret you want to upgrade for maximum effect. The rarity of the turrets you are scrapping also affects the final result.

 

The better the turret you are trying to upgrade, and the better weapons you use to upgrade it, the bigger the upgrade will be. Here I upgraded the damage on a crappy turret using more crappy turrets.

 

dZeuIlm.png

 

5pEhomq.png

 

Additionally, autotargeting can be added, and the colour of the projectiles and beam can be customised for credits. You want red beams and bullets? Then get some red beams and bullets.

 


 

Upgrade Options

 

  • Heat Sinks - Reduces the heat generated per shot, and increases the cooldown speed.
  • Capacitors - Reduces the base power requirement of a turret.
  • Transformers - Reduces the rate the energy use climbs.
  • Ammunition / Power Amps - Increase the flat damage of the turret.
  • Drive Motors - Increase how fast the turret can turn.
  • Barrel / Lenses - Increase the range a turret can hit at.
  • Trigger Mechanism - Increase the rate of fire.
  • Stabilizers - Increase the accuracy rating.
  • Phase Filters - Increase the efficiency rating of mining or scav gun.
  • Targeting - Add or remove self targeting for the turret.
  • Colour HSV - Drag the sliders to change the colour of the beam or projectiles.
  • Fix Auto Nerf - Undo the game's nerfing of turrets that are generated with auto-targeting. Must not have been upgraded yet.
  • Convert Anti-Fighter to Flak Cannon - For at least 3 other AF turrets you can convert one into a Flak Cannon. https://streamable.com/0bbso
  • Reinforced Mounting - For 5 other orange or better turrets, reduce the slot cost of a turret.

 


 

Install / Update

 

If you do not know how to manually install mods you should be installing this via the Steam Workshop: https://steamcommunity.com/sharedfiles/filedetails/?id=2017677089

 

If you wish to customize the settings of this mod you may copy ConfigDefault.lua to moddata/DccWeaponEngineering/Config.lua then any changes you make will persist when this mod gets updated.

 

MULTIPLAYER NOTE: This must also be installed on the server to work. You know, so you can't just level up turrets without everyone else being able to as well. If installed on the server, clients are not required to install it if they do not intend to use it.

 

[*]To allow players to use the /tmod command you will need to add it to the admin.xml file for the galaxy. See this post for info.

 


 

Usage

 

While in one of your ships use the chat command /tmod this will attach the Engineering Weapons Bay to your ship, adding an icon to open the main window in the top right corner of the screen. It looks like a little turret with a wrench on top of it.

 

NE8ybtU.png

 

1) Drag the turret you want to upgrade to the big box.

 

2) Drag 1 to 5 more turrets to the smaller boxes. These are the turrets you will destroy to upgrade the selected turret. Each turret you add will change the percentage displayed above the scrap bin. For example, if this says 2%, and you want to upgrade a turret that does 10 damage, after it will do 10.2 damage. If the turret does 20 damage, after it will do 20.4 damage.

 

3) Click one of the avaialble upgrade choices. If your weapon heats up too fast, then upgrade the heat sinks. If your turret fires too slow, upgrade the trigger mechanism. Hover over each button, the tooltip tells you what will happen. Clicking one of these buttons will consume the turrets in the scrap bin and upgrade the selected turret.

 

Stats which are already maxed out, or do not apply to the selected turret, will be greyed out.

 

4) You can add targeting and change the colour of the weapon for money. If you if you are just doing targeting and colour, you do not need to add any turrets to the scrap bin.

 


 

Notes

 

Targeting only costs money because I believe if you are paying the gunners to sit there then they can do their one job of pointing the damn gun for you. Consider the money an investment in a really comfortable chair for the douche that's gonna sit there and aim it.

 

The colour you set will change after clicking the button. That is because the code takes the colour you choose, and then modifies it a bit to try and produce laser beams that won't look as stupid as the colour you picked.

 

Item rarity and tech level are both used as part of the math to try and keep the usage of the Weapons Bay balanced. To get a good upgrade you are going to have to sacrifice good parts.

 

If you think a turret disappeared, double and triple check your inventory to be sure it did not stack with another. Avorion does a little bit of a dumb with the inventory where it stacks items after rounding their values, so if a turret is really close to another one in stats but not exact it can still be stacked. To combat this problem, every time a turret is upgraded it will have a Mark Number added to the name. "Double Mining Mk 2 Turret" means this is a turret you have upgraded twice, but I've totally stacked Mk 2 turrets before. It is not perfect.

 


 

Future Plans

 

Make it a system upgrade chip that drops from combat/scavving instead of the chat command to attach it to your ship.

 

If they ever allow adding custom blocks via mods, it will become an actual weapons bay where the quality of the mods is determined by how much weapons bay you build. Probably shouldn't hold our breath on this though.

 


 

Changelogue

 

v1.5.0 -2020-03-09

* Steam Workshop Install-n-Go

* Right click to send turrets up and down the UI.

* Added Reinforced Mounting.

* Added Flak Cannons.

* Added Fix Auto Nerf

* Fix Railguns showing Lenses instead of Barrel

* Filterable widget.

 

v1.3.0 -2019-03-09

* Fix upgrading mining laser efficiency with the 0.21 mining changes that introduce a new type of mining laser.

* Enabling Coaxial on a turret will now scale its damage the same amount as the game originally would have generated it. IF YOU HAVE USED THE WEAPONS BAY TO TURN SOMETHING COAXIAL, TURN IT BACK TO NORMAL BEFORE INSTALLING THIS UPDATE TO GET THE DAMAGE SCALED PROPERLY. ELSE THE DAMAGE IT IS NOW IS WHAT IT IS.

* New ability: edit turret size with new server side config option.

 

v1.2.1 -2019-02-24

* Add coaxial toggle. If You Are Playing On A Multi Player Server Your Server Must Update Before This Will Work Fam

 

v1.2.0 - 2019-02-11

* Update for the scripting API callable stuff in 0.20.0+

 

v1.1.1 - 2018-03-13

* Fix Accumulating Energy (Transformers) buffing the wrong direction.

 

v1.1.0 - 2018-03-09

* The Config.lua thing is now technically optional.

* Values missing from Config.lua are pulled from ConfigDefault.lua

* Clients now fetch config values from server side so admins can set the settings.

* Tweaked colour settings to try and produce slightly nicer beams.

* Made the colour tweaks settings that can be tweaked in the config file.

* Lot of little optimizations.

* Fix where it wouldn't work for alliance ships.

 

v1.0.0 - 2018-02-24

* Initial release

 

 

Link to comment
Share on other sites

Umm

 

2. Copy the file mods\DccTurretEditor\ConfigDefault.lua to Config.lua and tweak if you want.

 

Please clarify where its going (folder location) or if its just a renaming of the file from ConfigDefault.lua to Config.lua while maintaining its location in the DccTurretEditor folder  ;)

 

EDIT: Ahh it's 2. Rename the file mods\DccTurretEditor\ConfigDefault.lua to Config.lua and tweak if you want.

Link to comment
Share on other sites

Umm

 

2. Copy the file mods\DccTurretEditor\ConfigDefault.lua to Config.lua and tweak if you want.

 

Please clarify where its going (folder location) or if its just a renaming of the file from ConfigDefault.lua to Config.lua while maintaining its location in the DccTurretEditor folder  ;)

 

EDIT: Ahh it's 2. Rename the file mods\DccTurretEditor\ConfigDefault.lua to Config.lua and tweak if you want.

 

same folder. i say copy so that you always have a backup of the original. updated the main post, thanks.

Link to comment
Share on other sites

Question: is it compatible with the combat update currently on the beta branch?

 

probably, most of it is self contained. i didn't stay on 0.16 long it wasn't too playable for me. make a backup of the saves if you're feeling frisky. edit a crap turret and pull down the scripting error console (the ' key for me) to check for lua errors if you get there before me.

Link to comment
Share on other sites

Would you be able to create a similar mod for turret copying?

Requiring material and credit input in order to copy a turret you've found - perhaps even using the assembly blocks (similar to fighter production)

 

i will have to research finding the sell cost of a turret and decide on a way to make it immersive. don't want this to become a cheat engine so it can be used in multiplayer. the price is not a pre-calculated property on the turret itself according to the documentation.

Link to comment
Share on other sites

Boy am I lovin this mod already, I had so many useless turrets lying around, I just sacrificed them all for a greater cause thanks to this mod!!  8)

 

The turret factory mod (One can create dozens of excotic turrets, at various costs), AND THIS MOD... I am the ruler of the ... MY galaxy.

Link to comment
Share on other sites

Seemed to work on the beta branch but I didn't check for any errors.

 

My one piece of feedback is that this mod allows you to add auto targeting to any turret without any reduction in damage. I'm not exactly opposed to this since in the future you'd expect everything to be auto targeting but it does mean there's no point in building auto targeting turrets in a turret factory or seek them out at an equipment dock since you can just add it with this mod.

Link to comment
Share on other sites

My one piece of feedback is that this mod allows you to add auto targeting to any turret without any reduction in damage.

 

if this is true then i am glad, the gunners are being paid to do one job, gun a gun, the fact that i have to have a reduction in damage for this is stupid. it is bad enough i have to pay a bunch of morons EVERY TWO HOURS with the title "gunner" and then they don't even do that one job. no the vanilla game gunners only know how to point where you point, and don't understand the concept of "fire at will" come on give me a break koon!

 

however, i do not believe it, because the tooltips still say it and that should be handled by the game code, because you can still manually target guns and get the damage back before this mod. the reduction in my experience was only while autofire was engaged. manual targeting the same turret always presented full damage.

 

if i am wrong and it doesn't really work like that and my tests have just been placebo, then koon can fix it in the game code where it should be fixed if they wanna keep punishing us for making gunners do their job heheh

 

this gunner thing is the entire reason i even started this mod. then i was like "well, while we are here, what else can i screw with"

Link to comment
Share on other sites

Not sure what i did wrong but I'm not getting scrap percentages.

 

did you download the v1.0.0, or did you get the master from github? did you follow the config.lua instructions?

 

master is not always working that is the live development.

 

hit the ' key to bring down the console to show lua errors and screenshot that

Link to comment
Share on other sites

Ok different problem this time. Using version 1.0.0 and avorion 0.15.8 r10262 its not giving me the weapon. Screenshot shows the logs. I haven't changed anything from the download except copy configdefault and rename it.

Link to comment
Share on other sites

is this a multiplayer server or a local game?

 

when you went back to the v1.0.0, please make sure you exit/enter the ship and retype /tmod to update the script on the ship just to make sure.

 

i would suggest removing the DccTurretEditor folder, loading, saving, quitting, installing v1.0.0 fresh, and /tmod again just to make sure.

 

sorry this normally would not be a big deal but your very first original error i had already identified as a bug in the master branch so now you have to work backwards to the proper release.

 

 

Link to comment
Share on other sites

I'm getting some errors too, just trying to add targeting to a turret, as well as errors trying to combine and upgrade them. I deleted and readded the mod as suggested, redownloaded from the provided link. Not sure whats happening here. Hope this console information helps.

20180307212837_1_1.jpg.a5e905ff8d5b2f41b07b83c6e0d6bddc.jpg

20180307212837_1_2.jpg.428d4bdd1d65cb021593a83e4c529ac2.jpg

Link to comment
Share on other sites

Would love to see a config option to remove/disable the adding of autotargeting as it counteracts the immersion of finding a good autotargeting turret at turret factories and it helps with balancing as well as the game already generates stronger stats for the turrets without autotargeting.

 

Will give it a try in singleplayer but I'm afraid it can break the balance in multiplayer, will report further on that ;)

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...