• Home
  • Index
  • Search
  • Download
  • Server Rules
  • House Roleplay Laws
  • Player Utilities
  • Player Help
  • Forum Utilities
  • Returning Player?
  • Toggle Sidebar
Interactive Nav-Map
Tutorials
New Wiki
ID reference
Restart reference
Players Online
Player Activity
Faction Activity
Player Base Status
Discord Help Channel
DarkStat
Server public configs
POB Administration
Missing Powerplant
Stuck in Connecticut
Account Banned
Lost Ship/Account
POB Restoration
Disconnected
Member List
Forum Stats
Show Team
View New Posts
View Today's Posts
Calendar
Help
Archive Mode




Hi there Guest,  
Existing user?   Sign in    Create account
Login
Username:
Password: Lost Password?
 
  Discovery Gaming Community Discovery Development Discovery Developers Forum Discovery Unofficial Development Discovery Mod FLHook Projects
1 2 Next »
Suggestion: Autobuy jump batteries

Server Time (24h)

Players Online

Active Events - Scoreboard

Latest activity

Suggestion: Autobuy jump batteries
Offline Remnant
03-20-2018, 09:50 PM, (This post was last modified: 03-20-2018, 10:03 PM by Remnant.)
#10
Member
Posts: 2,206
Threads: 248
Joined: Apr 2012

Oh, that's fantastic. I was looking at the prospects of simply adding it to the config, although I was under the impression that it was treated as commodity instead of something which slotted in with the cloaking batteries. That being said..

I'm slightly concerned about the limits still. I don't think the configuration listed above should be implemented, and here's why.



Note the configuration. You specify an item to check for, and if it exists, you feed it an entry from weapon_equip.
The one listed above is mine01_mark01_ammo

Lets take a look at that part. There's more to it, but to show the relevant bits..
Code:
[Mine]
nickname = mine01_mark01_ammo
explosion_arch = mine01_mark01_explosion
loot_appearance = ammo_crate
units_per_container = 10
requires_ammo = true
ammo_limit = 1000

Note ammo_limit being 1000. That's why you were given 1000 ammo when autobuy kicked in.
I don't like that value being a flat 1000. I think it should be scaled depending on what equipment you're using, and how much space your vessel has. It's not a very 'smart' approach when the system makes decisions on what you should, and should not have, given only a flat value. If you're aiming for convenience, tailor the system a little more to give just the right amount. Even if you have to do that using a custom supplied flat-value for each cloak, fine. Using some vague mine entry with a value of 1000 doesn't really have any correlation to how much fuel each jumpdrive should have. (I'm not saying it's a bad ballpark value mind you!)

Scaling it can be done in two ways.
A) A mathematical formula which is run whenever it checks if you need jump batteries which would use: Your ship max limit, your jumpdrive type, the amount of batteries currently available
or
B) A new addition to the plugin/ini file where you can set flat values. (Something like: item = dsy_hspace_jump_drive_1, 1200 (Being kept under a different ini tag so it doesn't automatically get an ItemID for the supplied value))

Either of these options would be a more proper approach.



While you're at it, just make an option to enable it. (/autobuy jump on)

Note: I'm already 85% done with implementation of the above. I'd wait a day. Or a few hours. You'll get a Github pull request in a bit. I'd say just get the plugin updated if you want this. It's a new category. Let it be added as such.



Which do you folks think is more appropriate?
- Being able to simply define a number in the configuration, and add the autobuy section?
- Trusting a mathematical formula to decide how much is appropriate, or if it should attempt to buy them at all if numbers aren't within correct bounds.

Honestly, the flat value isn't that bad of an idea. It'd be easier to do as well. The problem with the config file right now though, is that it runs all of the ammolimit values through a function which creates the internal ID reference which may or may not match another object loaded in through 'weapon_equip' or 'misc_equip'. (Which is great for actual ammo values! Jumpdrives are a special case, along with cloaks.)
Reply  


Messages In This Thread
Suggestion: Autobuy jump batteries - by Skorak - 01-31-2018, 06:44 PM
RE: Suggestion: Autobuy jump batteries - by Teresa Brooks - 01-31-2018, 06:45 PM
RE: Suggestion: Autobuy jump batteries - by Chronicron - 01-31-2018, 06:50 PM
RE: Suggestion: Autobuy jump batteries - by Sand-Viper - 01-31-2018, 06:55 PM
RE: Suggestion: Autobuy jump batteries - by Remnant - 03-20-2018, 08:22 PM
RE: Suggestion: Autobuy jump batteries - by Laz - 03-20-2018, 09:27 PM
RE: Suggestion: Autobuy jump batteries - by Skorak - 03-20-2018, 09:32 PM
RE: Suggestion: Autobuy jump batteries - by Enkidu - 03-20-2018, 09:32 PM
RE: Suggestion: Autobuy jump batteries - by Laz - 03-20-2018, 09:32 PM
RE: Suggestion: Autobuy jump batteries - by Remnant - 03-20-2018, 09:50 PM
RE: Suggestion: Autobuy jump batteries - by Laz - 03-20-2018, 10:00 PM
RE: Suggestion: Autobuy jump batteries - by Remnant - 03-20-2018, 10:07 PM
RE: Suggestion: Autobuy jump batteries - by Skorak - 03-20-2018, 10:06 PM
RE: Suggestion: Autobuy jump batteries - by ronillon - 03-20-2018, 10:18 PM
RE: Suggestion: Autobuy jump batteries - by Giorgio - 03-20-2018, 10:21 PM
RE: Suggestion: Autobuy jump batteries - by Remnant - 03-20-2018, 10:21 PM
RE: Suggestion: Autobuy jump batteries - by Laz - 03-20-2018, 10:23 PM
RE: Suggestion: Autobuy jump batteries - by Remnant - 03-20-2018, 10:26 PM
RE: Suggestion: Autobuy jump batteries - by Laz - 03-20-2018, 10:28 PM
RE: Suggestion: Autobuy jump batteries - by ronillon - 03-20-2018, 10:42 PM
RE: Suggestion: Autobuy jump batteries - by Alex. - 03-24-2018, 06:50 PM
RE: Suggestion: Autobuy jump batteries - by Remnant - 03-24-2018, 07:05 PM

  • View a Printable Version
  • Subscribe to this thread


Users browsing this thread:
1 Guest(s)



Powered By MyBB, © 2002-2026 MyBB Group. Theme © 2014 iAndrew & DiscoveryGC
  • Contact Us
  •  Lite mode
Linear Mode
Threaded Mode