20463 Posts in 3435 Topics - by 6848 Members - Latest Member: ninjastryk

Author Topic: [Mod] ScrapyardPlus (v1.2.0)  (Read 198 times)

dnightmare

  • Newbie
  • *
  • Posts: 3
    • View Profile
[Mod] ScrapyardPlus (v1.2.0)
« on: September 14, 2017, 12:39:53 AM »
ScrapyardPlus
Description

Your salvaging ops are longer then 60 minutes?
You want to get something in return for grinding all the precious reputation?

With ScrapyardPlus you can:
  • buy up to 8 hours total (depending on your reputation)
  • increment your current license in variable intervals from 5 minutes all the way up to 3 hours per order
  • get discounts for bulk orders and your current standing with the owner of the scrapyard
  • buy a personal license even as a member of an alliance

Installation

Spoiler: show
- download & extract the mod into your avorion folder

- insert the following code at the very end of the original scrapyard file located at:
Quote
data/scripts/entity/merchants/scrapyard.lua

Code: [Select]
-- DNightmare/ScrapyardPlus START
if not pcall(require, "mods/ScrapyardPlus/scripts/entity/merchants/scrapyard") then print("Failed to load ScrapyardPlus") end
-- DNightmare/ScrapyardPlus END
!!! If you are using the MoveUI-Mod as well, ScrapyardPlaus has to be inserted BEFORE that !!!

- done


Screenshots

Spoiler: show

-- Version 1.2.0




-- Version 1.0.0



Roadmap

Implemented:
- extend your current license instead of overwriting it
- longer maximum duration for your license
- reputation based benefits (max duration and discount)
- flexible duration selection via slider
- add support for mod-configuration
- split the license system into private & alliance so you can buy a personal one even if you are in an alliance

Planned:
- lifetime license
unsure how I will implement it, but I'm thinking about some sort of 'level-up' system with every purchase and at a certain reputation + level you unlock the lifetime license
- I've learned quite a lot in the last couple of days and worked with Dirtyredz on his MoveUI -> Maybe develop some sort of support/integration for MoveUI, so it's easier to query & display all active licenses on screen all the time. -> Completely covered by MoveUI now.

Notes

As I was not satisfied with the current salvaging-license model, I got to work and learned a bit of lua and modified the original script.
So far you can stack your licenses, so if you buy 5 minutes two times, you get 10 minutes total.
As this is my first mod for Avorion apart from some small private things here and there, don't expect the cleanest code in the world but I did my best to test it on my local machine and my dedicated server and haven't encountered anything game-breaking so far.
It's available at GitHub if someone wants to contribute.

Constructive feedback what I could change/implement/extend upon or fix in case you find a bug is more than welcome!

Project-URL: https://github.com/ctcDNightmare/avorion-scrapyardplus

Shoutout to Dirtyredz - We're working together on each others mods now and without him I wouldn't have gotten into publishing this mod at all.

Changelog

Spoiler: show

Version 1.2.0 "purebred-terrestrial"
  • buy personal licenses even as alliance member
  • fixed vanilla notifications
  • notify all online members of an alliance if time is running out
  • pricePerMinute and alliancePriceFactor are now configurable
  • add clickable coordinates to notifications

Version 1.0.0 "preantiseptic-lingual"
  • variable maxDuration based on reputation
  • revamped UI with discounts for bulk-order & reputation
  • bought time is added to current one instead of overwriting it


DNightmare out!
« Last Edit: September 17, 2017, 11:36:14 AM by dnightmare »
"In the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move."

Dirtyredz

  • Full Member
  • ***
  • Posts: 128
  • David McClain - Dirtyredz
    • View Profile
    • Dirtyredz.com
Re: [Mod] ScrapyardPlus (Alpha, v1.0.0)
« Reply #1 on: September 14, 2017, 06:05:18 AM »
Looks promising, cant wait to try it out. As we discussed earlier, im hoping to get the MoveUI ScrapyardLicense up and running, Just today, I lost track of time and ran out of time on my pathetic 60 min license. costed me my ship and faction rep. This Mod and ScrapyardLicense that you started will be a big help. Thanks again
David McClain - Dirtyredz
Programmer, Web Development, Modder
http://www.Dirtyredz.com


Hammelpilaw

  • Full Member
  • ***
  • Posts: 142
    • View Profile
    • Scrap Yard - Factory calculator
Re: [Mod] ScrapyardPlus (Alpha, v1.0.0)
« Reply #2 on: September 15, 2017, 04:41:55 PM »
The roadmap looks great. We already use extended license times, up to a lifetime license. It makes you able to put some captain controlled ships into scrapyard and let them farm without killing reputation.

dnightmare

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: [Mod] ScrapyardPlus (v1.2.0)
« Reply #3 on: September 17, 2017, 11:37:13 AM »
Version 1.2.0 is out now!
- buy personal licenses even as alliance member
- fixed vanilla notifications
- notify all online members of an alliance if time is running out
- pricePerMinute and alliancePriceFactor are now configurable
- add clickable coordinates to notifications
"In the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move."