Posted 16 August 2015 - 11:16 AM
Hello everybody,
I'm new to the lua language, could anyone comment how am I doing ? Where can I improve this script ?
i've been cracking over the lua language all night today, I like it so far.
The purpose is just to monitor a reactor so it can activate the reactor for a bit once the internal battery is lower than 50%.
Also, i have some other computers hanging around with a simple 'progress bar' on the energy hogging process, they receive the percentage remaining through channel 1200.
The scripts are a work-in-progress, I plan on adding support for communicating with AE2 to get the yellorium ingots delivered.
Reactor computer: http://pastebin.com/RL5J3VY2
(and no, i did not cheat on this reactor, i actually placed ~1200 buckets of source buckets of gelid cryotheum in dw20 :D/>)
Monitoring computer(s): http://pastebin.com/zexcBn6q
I'm new to the lua language, could anyone comment how am I doing ? Where can I improve this script ?
i've been cracking over the lua language all night today, I like it so far.
The purpose is just to monitor a reactor so it can activate the reactor for a bit once the internal battery is lower than 50%.
Also, i have some other computers hanging around with a simple 'progress bar' on the energy hogging process, they receive the percentage remaining through channel 1200.
The scripts are a work-in-progress, I plan on adding support for communicating with AE2 to get the yellorium ingots delivered.
Reactor computer: http://pastebin.com/RL5J3VY2
(and no, i did not cheat on this reactor, i actually placed ~1200 buckets of source buckets of gelid cryotheum in dw20 :D/>)
Spoiler
Monitoring computer(s): http://pastebin.com/zexcBn6q