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

Energy #3

Closed
fnuecke opened this issue Jan 10, 2021 · 4 comments
Closed

Energy #3

fnuecke opened this issue Jan 10, 2021 · 4 comments
Labels
enhancement New feature or request

Comments

@fnuecke
Copy link
Owner

fnuecke commented Jan 10, 2021

Make computers use energy.

Give devices the ability to declare how much power they draw. Maybe do this in the provider, to make it clear this must be a constant value. VM then sums up the costs and consumes that per tick.

When energy runs out, VM will power off directly.

@fnuecke fnuecke added the enhancement New feature or request label Jan 10, 2021
@RGFTheCoder
Copy link

Will the vm power off safely or just kill the execution thread/state?

@fnuecke
Copy link
Owner Author

fnuecke commented Feb 4, 2021

Not sure what you mean by "safely", but the intent is to have it power off directly, as if pulling the plug.

@RGFTheCoder
Copy link

K, Maybe there could be a battery component so the user can program the pc to send exit signals to all running programs and then shuts down the computer safely.

@fnuecke
Copy link
Owner Author

fnuecke commented Feb 16, 2021

Oh, to answer to your remark: for now I expect it to remain necessary to have some other mod provide power. One of those will likely have some energy storage block, and those it will be possible to get storage readings from. So what you mention should be possible.

dequbed added a commit to Paranoidlabs/oc2 that referenced this issue Jan 30, 2022
dequbed added a commit to Paranoidlabs/oc2 that referenced this issue Jan 30, 2022
* feature/real-world-network:
  Re-enable configurability
  This should work
  More debugging!
  Debugging
  Prototype commit fnuecke#3
  Prototype commit 2
  First prototype vxlan hub
  Add initial work on the NetworkPortalBlock
Kilobyte22 pushed a commit to Paranoidlabs/oc2 that referenced this issue Feb 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants