Cypher Posted February 10, 2017 Share Posted February 10, 2017 As the name suggests this mod adds the option to do automated research for both System Upgrades & Turrets. This is easily done by selecting the rarities in the Research Station window and selecting Automatic (See image below). Currently it will only research exact matches for system upgrades. For turrets it will take into account the material, weapon type (e.g. Railgun) and the number of weapons. Research is done when atleast 3 of the items are available and add the 4th and 5th if possible. It does Not mess around with the Xsotan Artifacts! If you do come across bugs please take the time to let me know, i have tested it time and time again but most likely did not try any sequence of events you guys might. Furthermore if you have any suggestions or ideas feel free to share them. Also if it might be an idea for a different mod ;) Enjoy! Installation To install: Copy the data folder in AutoResearch to the Avorion install folder. This is usually located in your steam installation folder under: .../Steam/SteamApps/common/Avorion To uninstall: Copy the data folder in Restore to the Avorion install folder, and (optional) manually remove the autoresearch.lua in .../Steam/SteamApps/common/Avorion/data/scripts/entity/merchants Planned features: Setting for minimum amount needed before research is done Setting for filling empty slots with lower or higher Rarity Setting for filling emtpy slots with turrets of a different material/weapon count Visualisation for items used in research[1] [1] This is currently turned off to improve performance, also the inventory in the window will not be updated until all research is complete for the same reason. Images AutoResearch.zip Link to comment Share on other sites More sharing options...
Jeric_ Posted February 10, 2017 Share Posted February 10, 2017 Uh Yaaas please! I will sure test these out. Link to comment Share on other sites More sharing options...
Kane Hart Posted February 10, 2017 Share Posted February 10, 2017 Great idea and future features :) Link to comment Share on other sites More sharing options...
Cypher Posted February 10, 2017 Author Share Posted February 10, 2017 Thanks for the kind words :D Most of the planned features should not take too long to implement. I just wanted to get a version out. If you notice anything of or got any ideas for improvement let me know :) Link to comment Share on other sites More sharing options...
Freaky89 Posted February 11, 2017 Share Posted February 11, 2017 wow thank you. that should be integrate into vanilla game :D Link to comment Share on other sites More sharing options...
metalim Posted February 11, 2017 Share Posted February 11, 2017 Hey, great idea! Does the mod work on client side, or it needs to be installed on server as well? Also, is it really 1 line of code? Or it has issues with line ending chars? Link to comment Share on other sites More sharing options...
Cypher Posted February 11, 2017 Author Share Posted February 11, 2017 Does the mod work on client side, or it needs to be installed on server as well? The way modding currently works it does need some changes to the server side script for the researchstation. I have tried to get around this but have not yet managed to do this succesfully. Currently the game developer is working on better mod support so in the future it might be possible. Also, is it really 1 line of code? Or it has issues with line ending chars? No, it is a minified version of my code where variable names have been replaced and comments are removed including line endings. The reason i did this because in the past i have had code stolen without any credit given in another modding community. So i did it this way to atleast to some degree make it harder for the people who do steal other people's code, shamelessly modify it a tiny bit, and call it their own. This however does not mean that i'm not willing to share my approach, ideas & solutions. If you (or anyone else) is interested in how i did certain things you are free to send me a PM about it :) Link to comment Share on other sites More sharing options...
metalim Posted February 12, 2017 Share Posted February 12, 2017 The way modding currently works it does need some changes to the server side script for the researchstation. I don't know if the server I am playing at has added support, or it just works, but... It just works :-) Thanks! Link to comment Share on other sites More sharing options...
Cypher Posted February 12, 2017 Author Share Posted February 12, 2017 Oh does it? is there a way for you to check if the server has it? It can work mostly cliently side i just haven't been able to test that yet Link to comment Share on other sites More sharing options...
metalim Posted February 12, 2017 Share Posted February 12, 2017 Pretty sure it is just vanilla Beta branch server. Link to comment Share on other sites More sharing options...
metalim Posted February 12, 2017 Share Posted February 12, 2017 Found an issue. Stacked turrets are ignored. For example if I have 5 turrets in a stack, they are ignored by AutoResearch. Although it's easy to research them manually, just 5 clicks. Link to comment Share on other sites More sharing options...
Cypher Posted February 12, 2017 Author Share Posted February 12, 2017 Ah ok thanks for letting me know, ill fix that with the next update then :) Link to comment Share on other sites More sharing options...
jimos87 Posted February 16, 2017 Share Posted February 16, 2017 why does it only let you use it once ? also it is not processing all the items i'm still being left with some. Link to comment Share on other sites More sharing options...
Cypher Posted February 16, 2017 Author Share Posted February 16, 2017 That it only allows you to use it once is a bug that can happen, which i already fixed in the update im working on. Currently it only works when you have 3 to 5 of the same item. The update will have options to have it make matches with lower/higher rarities and different materials. This was already mentioned in the first post. I expect this update to be finished today or tomorrow. Link to comment Share on other sites More sharing options...
DougJunior Posted February 16, 2017 Share Posted February 16, 2017 Nice Mode. Could You make it possible that You can say only turrents or Moduls and only stuff with quality to or with Level Green, pink etc? Would be nice advance. Somethink that i miss really in this game is to Mark stuff AS Blocked, or how sayed that it can Not ussed from Amy System and that You Not even can sell it without unblocking. Link to comment Share on other sites More sharing options...
Cypher Posted February 16, 2017 Author Share Posted February 16, 2017 The checkboxes already give you the possibility to pick which Rarities should be used to upgrade or which to not upgrade Link to comment Share on other sites More sharing options...
DougJunior Posted February 16, 2017 Share Posted February 16, 2017 Ok sry Not have Seen it. And is there a way for the Lock Feature? Link to comment Share on other sites More sharing options...
Cypher Posted February 16, 2017 Author Share Posted February 16, 2017 No there isn't an easy way to do this, the manual easiest way to not upgrade things u dont want to is to place them on your ship temporarily Link to comment Share on other sites More sharing options...
eastwood6510 Posted February 16, 2017 Share Posted February 16, 2017 This looks awesome! I'll try it out today :) Link to comment Share on other sites More sharing options...
Fueld_By_Coffee Posted February 16, 2017 Share Posted February 16, 2017 Not sure if its just me or not, but my turrets seem to not auto research. And if i click the legendary box? it will remove the legendary turrets and not yield anything. Not sure what i expect to get but is there a reason for that? edit: i guess legendaries combined will yield a different legendary, had to run some tests. But im still having trouble getting lower grade turrets to research. Link to comment Share on other sites More sharing options...
Cypher Posted February 16, 2017 Author Share Posted February 16, 2017 As i mentioned a bove, currently it only matches exact turrets. At this moment im implementing the option to combine higher/lower rarities and materials so more research can be done. This mod does not change anything about the actual researching, it only automates the process the user normally does. The original research depends on what input it is given. Currently the mod already works with a minimum of 3, but for this a setting has been implemented which can be used in the next update of the mod to set the minimum amount possible. To see what the chances of getting a better item are check the Avorion wiki page on research stations here: http://avorion.gamepedia.com/Research_station I hope i can release the update to the mod soon Link to comment Share on other sites More sharing options...
Astus Posted February 21, 2017 Share Posted February 21, 2017 When can we expect the update which allows one to set the minimum amount? I don't want to wast 40% of the stuff that I only have 3 of. I'd do the changes to your script myself but even after breaking it into lines it's still a pure nightmare to read. (You were pretty successful in securing your script) Link to comment Share on other sites More sharing options...
Cypher Posted February 22, 2017 Author Share Posted February 22, 2017 I'm sorry i'm a bit caught up at the moment with RL this week, i most likely have time to finish it all up this weekend :) Link to comment Share on other sites More sharing options...
Guswut Posted February 27, 2017 Share Posted February 27, 2017 When can we expect the update which allows one to set the minimum amount? I don't want to wast 40% of the stuff that I only have 3 of. I've modified the script by changing two parts of line one (the one and only line, the one line to rule them all and in the darkness automatically research them (so long as it's more than or equal to five)) as follows: https://www.diffchecker.com/QWCPZwJs Specifically, change "if#L>=3" to "if#L>=5", and "if#P>=3" to "if#P>=5". I tested on (a copy of) my current game and it worked perfectly well. This, of course, isn't adjustable in-game, but I don't think that's much of an issue until Cypher has a chance to update the mod. I'd do the changes to your script myself but even after breaking it into lines it's still a pure nightmare to read. (You were pretty successful in securing your script) Yeah, when I first opened autoresearch.lua I was overwhelmed by the uhhh, let's call it lack of whitespace. Thankfully I understood the concept of what the script was doing (find three of the same item) and knew to search for the number three. I tried to read through what, exactly, the script was doing at those parts but I quickly gave up and just changed it to a five, and all was well. Good luck, and thanks Cypher for the awesome mod! Link to comment Share on other sites More sharing options...
Quellcrest Posted February 27, 2017 Share Posted February 27, 2017 I also made a tiny tweak to allow research to use multiple types of the same weapon to be researched together(Single + Double + Quads, etc). Since the number of weapons has no impact on dps, there's no reason to not do this. Change if W[A].item.itemType==T and W[A].item.material==Z and W[A].item.weaponPrefix==_ and W[A].item.numWeapons==a0 then To: if W[A].item.itemType==T and W[A].item.material==Z and W[A].item.weaponPrefix==_ then I haven't thoroughly tested it, but the few times I did it worked as I intended. 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