Forums » Community Projects
Extraction rate plugin
Hi everyone! I'm working on my first plugin, a little something to help gather data about mining...
I seem to have gotten myself a little stuck, and could use some advice:
Currently, my plugin can track the temperature of an asteroid and the asteroid's unique id, from the TARGET_SCANNED event.
It can track the time spent mining, the IDs and current extraction rates of your mining beams from the WEAPON_PROGRESS_START event.
My problems arise when I try to keep track of how many cu of ore have been mined. Sure, I can track the INVENTORY_ADD and INVENTORY_UPDATE events, but how do I know which beam is responsible for which INVENTORY event?
I guess I can fudge it for now, and get things working with only one mining beam, but I do need to get multiple beam support working. Any insight would be greatly appreciated! Also, THANK YOU draugath, for all the help you've given me in getting this far!
I seem to have gotten myself a little stuck, and could use some advice:
Currently, my plugin can track the temperature of an asteroid and the asteroid's unique id, from the TARGET_SCANNED event.
It can track the time spent mining, the IDs and current extraction rates of your mining beams from the WEAPON_PROGRESS_START event.
My problems arise when I try to keep track of how many cu of ore have been mined. Sure, I can track the INVENTORY_ADD and INVENTORY_UPDATE events, but how do I know which beam is responsible for which INVENTORY event?
I guess I can fudge it for now, and get things working with only one mining beam, but I do need to get multiple beam support working. Any insight would be greatly appreciated! Also, THANK YOU draugath, for all the help you've given me in getting this far!
Actually, I think I figured it out, though I'm still curious to hear what other people think. I'll post some spiffy data here once I turn it in to pretty pictures!
Is this to estimate an asteroid's thermal "mass" based on how fast it heats?
Yep!
Keeping in mind that this is a work in progress, here's a rough (but actual, in-game) example:
Keeping in mind that this is a work in progress, here's a rough (but actual, in-game) example:
Interesting. What beam(s) were used on what ore to gather this data? Or is this just a commonality across the board?
That particular graph is based on using a standard large port mining beam (rate 1, heat 1) on a decent sized carbonic rock, but the graph of mining rate vs. heat is basically constant across all beam types and rocks.