Jump to content

[MOD] Auto Research (Systems only for now)


DracoNB

Recommended Posts

https://github.com/draconb/avorion-autoresearch

 

Before:

 

2wXhc5l.png

 

After:

 

icmnhPe.png

 

Features

  • Will not remove favorited items! Research without worry :)
  • Allows you to limit how high of rarity it will auto-research items (capped at Exceptional since I didn't want people accidently making all their exotics into one legendary, you can add it if you want!)
  • Allows you to select all systems or specific ones
  • Will research from lowest to highest, so only one click needed!

 

Install

 

Backup your "Steam\steamapps\common\Avorion\data\scripts\entity\merchants\researchstation.lua" file

 

Download the latest release from https://github.com/draconb/avorion-autoresearch/releases and unzip it or just download the lua script and place it in "Steam\steamapps\common\Avorion\data\scripts\entity\merchants\researchstation.lua".

 

It will replace the existing researchstation.lua file in there, so make sure to back it up.

 

Usage

 

Fly to research station (found at faction "home" sectors and randomly through the galaxy)

 

Select MAX item rarity to research (capped at Exceptional so you don't research away your exotics!)

 

Select the system or leave it at All

 

Click on "Auto Research", it will disable the button and re-enable once completed. Depending on how many items you might have quite a delay on the right side of the screen of it showing the added/removed items.

 

Uninstall

 

To uninstall, replace the file with the original one you backed up, or verify files in steam (will remove all mods!)

 

Requirements

 

Needs to be installed on both **client and server**.

 

 

Known issues

 

* Some systems don't properly combine if they have differing attributes, the names are different so they don't get grouped together.

 

TODO

 

* Add extra UI space for placing the minimum required. Currently only researches if 5 are available (for 100% success).

* Add auto researching for weapons as well? Have to determine how and also need custom UI for the options.

 

 

Note:

 

The original researchstation.lua doesn't use a namespace, so thats why I edited everything inline, I might move it to a separate file at some point in the future.

Link to comment
Share on other sites

do you already have an idea how to implement turret research?

maybe I could send you some code snippets that a friend of mine made, editing the mod that I linked earlier.

I'm wondering if you could add some settings/profiles then....

 

for example:

 

1. mining xanion

2. mining trinium

3. laser independent

4. laser

5. railgun

6. ...

 

processing:

1. all xanion mining turrets are researched, later ignored

2. all trinium mining turrets are researched, later ignored

....

 

 

another great addition for the more risky players would be the possibility to set the mininum_count_for_research to 4 or even 3 instead of 5 ...

Link to comment
Share on other sites

  • 2 weeks later...

Hallo,

 

finde die Idee von "Auto Research" echt genial und hoffe du kannst auch die Geschütztürme noch einbauen.

 

jetzt zu meinen Problem! Leider kann ich die meisten "systemsupgrade" nicht einer automatisches Upgrade unterziehen. Ich habe es versucht selbst zu lösen und denke das diese nicht gefunden werden.

Hier die Liste(die durchgestrichenen können nicht Upgegradet werden):

    systemSelection:addEntry("All"%_t)

    systemSelection:addEntry("Battery Upgrade"%_t)

    systemSelection:addEntry("Cargo Upgrade"%_t)

    systemSelection:addEntry("Energy To Shield Converter"%_t)

    systemSelection:addEntry("Engine Upgrade"%_t)

    systemSelection:addEntry("Generator Upgrade"%_t)

    systemSelection:addEntry("Hyperspace Upgrade"%_t)

  systemSelection:addEntry("Mining System"%_t)

    systemSelection:addEntry("Object Detector"%_t)

    systemSelection:addEntry("Radar Upgrade"%_t)

    systemSelection:addEntry("Scanner Upgrade"%_t)

    systemSelection:addEntry("Shield Booster"%_t)

    systemSelection:addEntry("Shield Reinforcer"%_t)

    systemSelection:addEntry("A-TCS"%_t)

  systemSelection:addEntry("C-TCS"%_t)

    systemSelection:addEntry("M-TCS"%_t)

    systemSelection:addEntry("Technology Fragment"%_t)

    systemSelection:addEntry("Tractor Beam"%_t)

  systemSelection:addEntry("Trading System"%_t)

    systemSelection:addEntry("Velocity Security"%_t)

 

könntest du mir da weiter helfen?

lg

Sarok

 

Link to comment
Share on other sites

Hallo,

 

finde die Idee von "Auto Research" echt genial und hoffe du kannst auch die Geschütztürme noch einbauen.

 

jetzt zu meinen Problem! Leider kann ich die meisten "systemsupgrade" nicht einer automatisches Upgrade unterziehen. Ich habe es versucht selbst zu lösen und denke das diese nicht gefunden werden.

Hier die Liste(die durchgestrichenen können nicht Upgegradet werden):

    systemSelection:addEntry("All"%_t)

    systemSelection:addEntry("Battery Upgrade"%_t)

    systemSelection:addEntry("Cargo Upgrade"%_t)

    systemSelection:addEntry("Energy To Shield Converter"%_t)

    systemSelection:addEntry("Engine Upgrade"%_t)

    systemSelection:addEntry("Generator Upgrade"%_t)

    systemSelection:addEntry("Hyperspace Upgrade"%_t)

  systemSelection:addEntry("Mining System"%_t)

    systemSelection:addEntry("Object Detector"%_t)

    systemSelection:addEntry("Radar Upgrade"%_t)

    systemSelection:addEntry("Scanner Upgrade"%_t)

    systemSelection:addEntry("Shield Booster"%_t)

    systemSelection:addEntry("Shield Reinforcer"%_t)

    systemSelection:addEntry("A-TCS"%_t)

  systemSelection:addEntry("C-TCS"%_t)

    systemSelection:addEntry("M-TCS"%_t)

    systemSelection:addEntry("Technology Fragment"%_t)

    systemSelection:addEntry("Tractor Beam"%_t)

  systemSelection:addEntry("Trading System"%_t)

    systemSelection:addEntry("Velocity Security"%_t)

 

könntest du mir da weiter helfen?

lg

Sarok

 

I'm guessing it has to do with localization, I'm doing a string check against those values and they must be named differently in other locals. Not sure the best way to support that :(

Link to comment
Share on other sites

Hallo,

 

finde die Idee von "Auto Research" echt genial und hoffe du kannst auch die Geschütztürme noch einbauen.

 

jetzt zu meinen Problem! Leider kann ich die meisten "systemsupgrade" nicht einer automatisches Upgrade unterziehen. Ich habe es versucht selbst zu lösen und denke das diese nicht gefunden werden.

Hier die Liste(die durchgestrichenen können nicht Upgegradet werden):

    systemSelection:addEntry("All"%_t)

    systemSelection:addEntry("Battery Upgrade"%_t)

    systemSelection:addEntry("Cargo Upgrade"%_t)

    systemSelection:addEntry("Energy To Shield Converter"%_t)

    systemSelection:addEntry("Engine Upgrade"%_t)

    systemSelection:addEntry("Generator Upgrade"%_t)

    systemSelection:addEntry("Hyperspace Upgrade"%_t)

  systemSelection:addEntry("Mining System"%_t)

    systemSelection:addEntry("Object Detector"%_t)

    systemSelection:addEntry("Radar Upgrade"%_t)

    systemSelection:addEntry("Scanner Upgrade"%_t)

    systemSelection:addEntry("Shield Booster"%_t)

    systemSelection:addEntry("Shield Reinforcer"%_t)

    systemSelection:addEntry("A-TCS"%_t)

  systemSelection:addEntry("C-TCS"%_t)

    systemSelection:addEntry("M-TCS"%_t)

    systemSelection:addEntry("Technology Fragment"%_t)

    systemSelection:addEntry("Tractor Beam"%_t)

  systemSelection:addEntry("Trading System"%_t)

    systemSelection:addEntry("Velocity Security"%_t)

 

könntest du mir da weiter helfen?

lg

Sarok

 

versuch doch mal, die spracheinstellungen auf englisch zu stellen. wenn es dann funktioniert (wovon ich ausgehe), ist zumindest DracoNBs vermutung bestätigt, dass es an der lokalisierung liegt.

 

 

(for our non-german readers: try to change language settings to "english". if it works, then at least DracoNB's guess is verified.)

Link to comment
Share on other sites

Hallo,

 

finde die Idee von "Auto Research" echt genial und hoffe du kannst auch die Geschütztürme noch einbauen.

 

jetzt zu meinen Problem! Leider kann ich die meisten "systemsupgrade" nicht einer automatisches Upgrade unterziehen. Ich habe es versucht selbst zu lösen und denke das diese nicht gefunden werden.

Hier die Liste(die durchgestrichenen können nicht Upgegradet werden):

    systemSelection:addEntry("All"%_t)

    systemSelection:addEntry("Battery Upgrade"%_t)

    systemSelection:addEntry("Cargo Upgrade"%_t)

    systemSelection:addEntry("Energy To Shield Converter"%_t)

    systemSelection:addEntry("Engine Upgrade"%_t)

    systemSelection:addEntry("Generator Upgrade"%_t)

    systemSelection:addEntry("Hyperspace Upgrade"%_t)

  systemSelection:addEntry("Mining System"%_t)

    systemSelection:addEntry("Object Detector"%_t)

    systemSelection:addEntry("Radar Upgrade"%_t)

    systemSelection:addEntry("Scanner Upgrade"%_t)

    systemSelection:addEntry("Shield Booster"%_t)

    systemSelection:addEntry("Shield Reinforcer"%_t)

    systemSelection:addEntry("A-TCS"%_t)

  systemSelection:addEntry("C-TCS"%_t)

    systemSelection:addEntry("M-TCS"%_t)

    systemSelection:addEntry("Technology Fragment"%_t)

    systemSelection:addEntry("Tractor Beam"%_t)

  systemSelection:addEntry("Trading System"%_t)

    systemSelection:addEntry("Velocity Security"%_t)

 

könntest du mir da weiter helfen?

lg

Sarok

 

versuch doch mal, die spracheinstellungen auf englisch zu stellen. wenn es dann funktioniert (wovon ich ausgehe), ist zumindest DracoNBs vermutung bestätigt, dass es an der lokalisierung liegt.

 

 

(for our non-german readers: try to change language settings to "english". if it works, then at least DracoNB's guess is verified.)

 

Hallo und Danke für deinen tip!!

Ich habe es auf englisch geschaltet und es funktuniert.

 

lg

Sarok

Link to comment
Share on other sites

so it's definitely a localization issue.

@DracoNB I'm pretty sure you could access the localized strings instead of the hardcoded text that you're using at the moment. unluckily, I'm not deep enough into Avorion modding to help you out here. I'd start looking for this in the localization subforum.

Link to comment
Share on other sites

Thank you for making a new research mod,  the old one broke twice and after the last  time nobody was able to get it working properly.

 

Looking forward to turrets being added but for now this will make our players happy for sure!

Link to comment
Share on other sites

  • 3 weeks later...

Hey, I've tried your mod few days ago but uninstalled it right after.

I made the mistake to contact the station and start researching items without beeing docked but the script gone crazy and I had to restart client and server, I can't keep this installed if it can hang everything like this, that's too bad because the auto research is a really nice feature !

 

Also, as this overwrite the original script file, do players can run into bugs if having the script installed on server BUT not on their client ?

Link to comment
Share on other sites

  • 1 month later...
  • 3 months later...

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