Jump to content




On - Automatic Computer Activator

utility

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

#21 ze_robot

  • New Members
  • 1 posts

Posted 20 April 2015 - 06:38 PM

Nice program.

If you have Thermal expansion installed you can make it so you don't have to manually start ANY computers up.

On the computer that's running on, build this:
Spoiler

That's a thermal expansion autonomous activator set to right click when it receives a signal. You should be able to replace the cable w/ a piece of redstone.

Then set "startup" to:
redstone.setOutput("INSERT SIDE W/ TORCH HERE",true)
shell.run("INSERT PROGRAM NAME HERE")


#22 fishmeal

  • New Members
  • 2 posts

Posted 27 May 2015 - 09:30 PM

View Postze_robot, on 20 April 2015 - 06:38 PM, said:

Nice program.

If you have Thermal expansion installed you can make it so you don't have to manually start ANY computers up.

On the computer that's running on, build this:
Spoiler

That's a thermal expansion autonomous activator set to right click when it receives a signal. You should be able to replace the cable w/ a piece of redstone.

Then set "startup" to:
redstone.setOutput("INSERT SIDE W/ TORCH HERE",true)
shell.run("INSERT PROGRAM NAME HERE")
I was trying to do something like this, but with the "On" script you have to type 'r' in order to actually reboot any machines.
What part of the script would I remove/change in order to have 'startup' just go straight into rebooting all machines, without asking me to type x,b or r first?
I tried my hand at deleting things, but only managed to break it. I am extremely noobish to CC.

#23 Bomb Bloke

    Hobbyist Coder

  • Moderators
  • 7,099 posts
  • LocationTasmania (AU)

Posted 28 May 2015 - 12:13 AM

Without digging too far into things, it looks like a simple-ish way of automating it might be to change this block (around line 373):

if animations then
        parallel.waitForAny(checkForComps, keyPress, animateSpinLines, animateLoadBar)
else
        parallel.waitForAny(checkForComps, keyPress)
end

... to something like:

local function pressR()
	sleep(15)  -- Make sure all chunks that should load have time to do so.
	os.queueEvent("char", "r")  -- Simulate a press of "r".
	os.pullEvent("letMeSleep")  -- Coroutine will go dormant.
end
	
if animations then
        parallel.waitForAny(checkForComps, keyPress, animateSpinLines, animateLoadBar, pressR)
else
        parallel.waitForAny(checkForComps, keyPress, pressR)
end


#24 LDDestroier

  • Members
  • 1,095 posts
  • LocationACDC Town

Posted 28 May 2015 - 12:15 AM

Mm, your request is delicious. Anyhow, I just updated the program to do what you wanted it to do. All you have to do it reinstall it, then change the variable at the top of the program from false to true, then it will reboot the PCs at startup, hopefully.

Edited by LDDestroier, 28 May 2015 - 12:18 AM.


#25 fishmeal

  • New Members
  • 2 posts

Posted 28 May 2015 - 09:46 PM

View PostLDDestroier, on 28 May 2015 - 12:15 AM, said:

Mm, your request is delicious. Anyhow, I just updated the program to do what you wanted it to do. All you have to do it reinstall it, then change the variable at the top of the program from false to true, then it will reboot the PCs at startup, hopefully.
Dude...
You are my hero. You have made our ModSauce server super happy. Thanks. :D

#26 LDDestroier

  • Members
  • 1,095 posts
  • LocationACDC Town

Posted 29 May 2015 - 12:29 AM

View Postfishmeal, on 28 May 2015 - 09:46 PM, said:

View PostLDDestroier, on 28 May 2015 - 12:15 AM, said:

Mm, your request is delicious. Anyhow, I just updated the program to do what you wanted it to do. All you have to do it reinstall it, then change the variable at the top of the program from false to true, then it will reboot the PCs at startup, hopefully.
Dude...
You are my hero. You have made our ModSauce server super happy. Thanks. :D

Holy crap, I did? I'll have to do something about that! Can't have people be happy willy nilly!
But cereally, I'm glad I made a (whole?) server happy with my programming skills, or lack thereof. I really appreciate it! To be honest I didn't think very many people at all look at my programs, despite constant update. :D

#27 Lupus590

  • Members
  • 2,028 posts
  • LocationUK

Posted 19 January 2016 - 08:52 AM

Feature suggestion, run a file after turning on all computers

#28 LDDestroier

  • Members
  • 1,095 posts
  • LocationACDC Town

Posted 19 January 2016 - 01:50 PM

View PostLupus590, on 19 January 2016 - 08:52 AM, said:

Feature suggestion, run a file after turning on all computers

Done. It's in the config (which I should make more obvious in the menu).
To have a program run on startup, set 'startupProg' to the path of the file (with arguments like "less -d butt -u http://pastebin.com/R4DKXbzm") in the config file ('/.on_conf').

#29 scopeFX

  • Members
  • 25 posts
  • LocationGermany

Posted 28 July 2016 - 08:47 PM

Thanks for that program! That's exactly what i searched for.

#30 TheRockettek

  • Members
  • 547 posts
  • LocationRem is best girl

Posted 29 July 2016 - 07:52 AM

But how would you turn on the computer that turns the other computers on automaticaly, when you join that computer would be shutdown so you would have to make another computer turning the computer on that turns the computer on that turns all the computers on.

Paradox Status : On Hold

#31 LDDestroier

  • Members
  • 1,095 posts
  • LocationACDC Town

Posted 30 July 2016 - 05:09 AM

View PostTheRockettek, on 29 July 2016 - 07:52 AM, said:

But how would you turn on the computer that turns the other computers on automaticaly, when you join that computer would be shutdown so you would have to make another computer turning the computer on that turns the computer on that turns all the computers on.

Paradox Status : On Hold

You know too much. Take the blue pill like a good citizen.

#32 roger109z

  • Members
  • 53 posts
  • LocationCali beetch

Posted 28 August 2016 - 06:52 PM

just saying turning on 1000 computers at once kills servers
like it just murders them

#33 TheRockettek

  • Members
  • 547 posts
  • LocationRem is best girl

Posted 28 August 2016 - 07:30 PM

When you have thermal expansion, you can just use an autonomous activator d:

#2OBSOLETE4ME

#34 Lupus590

  • Members
  • 2,028 posts
  • LocationUK

Posted 29 August 2016 - 03:00 PM

View PostTheRockettek, on 28 August 2016 - 07:30 PM, said:

When you have thermal expansion, you can just use an autonomous activator d:

#2OBSOLETE4ME

Yeah, but this is cheaper.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users