Jump to content




no more worries BigReactors-Turbine script


  • You cannot reply to this topic
2 replies to this topic

#1 AceScottie

  • Members
  • 9 posts

Posted 11 June 2016 - 12:12 AM

This is a simple single Turbine script which will keep a turbine about 1800 RPM.
No GUI or monitors needed.
Simple and barebones.
Prints to the computer.

Includes:
- RPM counter
- Energy per Tick
- Efficiency calculator (requires to updates blades variable in code)
- OverSpeed Protection
- Self correction (if the turbine stops or overspeeds will correct its self)

http://pastebin.com/4YEchZ95

Edited by AceScottie, 02 July 2016 - 06:06 PM.


#2 PossieTV

  • Members
  • 62 posts

Posted 11 June 2016 - 12:58 AM

Wouldn't it be simpler to define a blades variable at the beginning and just put that calculation on line 28 so it would look like this

  print("Efficiency: ", math.floor(Steam/(blades*25/100)), "%")

Other than that, nice work. Its neat, simple, and gets the job done without overcomplicating things.

Also on a side note, efficiency was spelled wrong.

Edited by PossieTV, 11 June 2016 - 12:59 AM.


#3 AceScottie

  • Members
  • 9 posts

Posted 02 July 2016 - 06:01 PM

Ok redone some of the code (rotor overspeed wasnt working due to not updating the RPM value)
Also added in the efficiency calculation (and corrected spelling :)/> )
new code is here: http://pastebin.com/4YEchZ95
Computer code:
pastebin get 4YEchZ95 startup

Edited by AceScottie, 02 July 2016 - 06:01 PM.






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users