Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EU/flow meter #189

Closed
willis936 opened this issue Sep 22, 2015 · 8 comments
Closed

EU/flow meter #189

willis936 opened this issue Sep 22, 2015 · 8 comments
Labels

Comments

@willis936
Copy link

Suggestion to add functionality to the portable scanner or to make a dedicated scanner that observes statistics of GT tile entities so you can see fluid and EU in/out of pipes, cables, and machines. This would make debugging builds so much easier. For EU stats on the voltage observed (assuming it doesn't change) and total EU/t (max, min, and average). Fluid should be in L/t even though it's typically in L/s so that finer granularity is shown to the user.

@Blood-Asp
Copy link
Owner

Creating a tool to observe the "per Tick average over time" would be quite a lot of work. Especially to do that without creating a huge amount of lag.

@Blood-Asp Blood-Asp added the Idea label Sep 22, 2015
@pyure
Copy link
Contributor

pyure commented Sep 23, 2015

Yep, I've looked into this (a few times) and I always run into problems because of greg's separation of client/server data.

@Blood-Asp
Copy link
Owner

That client/server communication is not a problem. Just look at how the allready existing scanner does it. Then everything else to do is server side.

The problem ist, to be able to make average calculations, every transfer in every block, cable and pipe must be saved and ready to be called on click. That would create massive lag.

So that does not happen, the way would be to start logging on first click and show the results on a second click. Possible, but it would be at last 5 classes that need 50-100 lines of extra code to make it work. And this code would be directly in the core of all machines and cables. A place i really dislike to even touch.

@pyure
Copy link
Contributor

pyure commented Sep 23, 2015

Its funny, I don't see problems with the calculations lag (you just make sure it doesn't cycle every tick if necessary), but I can't figure out the server/client stuff to save my life :)

@SapientMC
Copy link

May be simple model could be used: just after click and for next 3 (or 5) seconds it calculates data and displays it after.

@mura3277
Copy link
Collaborator

As SapientMC said, recreating the old 1.4.7(I think) IC2 EU-Reader might be the best way to go.

It just recorded the average eu/t for the duration between your two clicks.

@perkinslr
Copy link
Contributor

Zetta Industries has an RF meter block that works quite well. It accepts power on only one side, and basically passes all add-power calls through to the block on the opposite side, then displays the amount of power it was last offered. It creates a break in the network, so it does slightly increase the server load (a little less than adding an energy cell at the same location). It should be fairly simple to do something similar specifically for battery buffers and transformers. It wouldn't tell you how much power is traversing an arbitrary point, but it also wouldn't increase the server load appreciably, and could just dump the info to the tricorder.

@Blood-Asp
Copy link
Owner

Added to idea collection

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants