Jump to content




Event driven reactor prog.


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

#1 mrrg

  • New Members
  • 9 posts

Posted 09 April 2012 - 11:37 AM

Hi this is a reactor program that has no sleep in it just events and timer. Also it uses ccSensors to control temperature and refill with cooling cells when needed. It also controls power lines and displays reactor content.

Youtube movie:




Code:

Spoiler

Enjoy the code :P/>

#2 Leo Verto

  • Members
  • 620 posts
  • LocationOver there

Posted 09 April 2012 - 12:28 PM

Wow, all these mods combined in a truly amazing way!

One thing, how do you produce the ice? Do you have to input anything?

#3 mrrg

  • New Members
  • 9 posts

Posted 09 April 2012 - 02:22 PM

No, you put a ic2 pump next to a compressor to make snow, and then you compress the snow to make ice.

The ic2 pump pumps directly into the compressor if it is right next to it, also make an infinite water source below the pump and you are set.

View PostLeo Verto, on 09 April 2012 - 12:28 PM, said:

Wow, all these mods combined in a truly amazing way!

One thing, how do you produce the ice? Do you have to input anything?


#4 Leo Verto

  • Members
  • 620 posts
  • LocationOver there

Posted 09 April 2012 - 05:59 PM

View Postmrrg, on 09 April 2012 - 02:22 PM, said:

No, you put a ic2 pump next to a compressor to make snow, and then you compress the snow to make ice.

The ic2 pump pumps directly into the compressor if it is right next to it, also make an infinite water source below the pump and you are set.
Thanks for your answer! So is this system completely closed?
And how do you power the machines? Do you use the reactor?

#5 mrrg

  • New Members
  • 9 posts

Posted 09 April 2012 - 06:38 PM

View PostLeo Verto, on 09 April 2012 - 05:59 PM, said:

Thanks for your answer! So is this system completely closed?


Quote

Yes it is with, one exception the system that makes coolant cells, needs tin.

The system supplies a constant stream of ice..and refills also with collant cells but leaving a slot left for ice blocks.

You could feed more ice to make it a much more efficient reactor, but I did not want to have a gigantic ice machinery.

And how do you power the machines? Do you use the reactor?

Quote

Yes. With temperature control the reactor can run without ice blocks and coolant cells..
However with them it makes the on period longer.



#6 yoskaz01

    Featured on Reddit!

  • New Members
  • 92 posts

Posted 14 April 2012 - 10:48 AM

looks cool
great to see the sensors put to good use :)/>

I've updated the lua API in build 014pre-rel - you can add to your control room mfsu monitoring as well :)/>

sample snapshot:
Spoiler

let me know if there is any feature you thought could be useful or make things easier...

#7 Fallout301

  • New Members
  • 1 posts

Posted 15 April 2012 - 06:43 PM

Hey, I feel like a COMPLETE moron here, but.. how do I set this up? eh heh heh.. it keeps telling me can not get readings from reactor core, Here are a couple of screenshots, mind if i ask what I'm doing wrong?

http://i.imgur.com/XhZbR.png
http://i.imgur.com/PEgzJ.png
http://i.imgur.com/FRmAA.png
http://i.imgur.com/gNjqr.png
http://i.imgur.com/97OGr.png

EDIT: doesn't matter if i put it in creative or normal mode, and it is using frequency 1 red, I crafted the stuff legitimately.

#8 mrrg

  • New Members
  • 9 posts

Posted 17 April 2012 - 06:09 PM

First read: http://www.computerc...addonccsensors/

Then there was an issue with the order you added sensorcontrollers and sensors.. try Ctrl+R to rebbot the computer.

Also the name of the sensor need to match the program, I see you figured that one out :)/>

View PostFallout301, on 15 April 2012 - 06:43 PM, said:

Hey, I feel like a COMPLETE moron here, but.. how do I set this up? eh heh heh.. it keeps telling me can not get readings from reactor core, Here are a couple of screenshots, mind if i ask what I'm doing wrong?

EDIT: doesn't matter if i put it in creative or normal mode, and it is using frequency 1 red, I crafted the stuff legitimately.


#9 Wolvan

  • New Members
  • 384 posts
  • LocationIn the TARDIS

Posted 17 April 2012 - 08:10 PM

Nice! I like it ;D +1 for you buddy

#10 Wired2coffee

  • Members
  • 46 posts
  • LocationThe Coffee Maker

Posted 18 April 2012 - 02:16 AM

That is the best program I've seen for reactor controlling ever! Nice work!

#11 mrrg

  • New Members
  • 9 posts

Posted 18 April 2012 - 05:17 PM

View PostWired2coffee, on 18 April 2012 - 02:16 AM, said:

That is the best program I've seen for reactor controlling ever! Nice work!

Thank you!
It is my first LUA program though so there might be things in there that are bad.

#12 monzyer

  • New Members
  • 1 posts

Posted 29 April 2012 - 06:42 PM

Just wanted to start off and say this is a great program. If you would help a fellow computer guy out, could you make a video of your reactor so i can see the wiring.

thanks,

#13 kikotte

  • New Members
  • 4 posts
  • LocationSwedish

Posted 18 May 2012 - 03:21 PM

Hi,

how do you get it to work?


Attached Image: 2012-05-18_17.08.09.png

kikotte

// Fuck Max 500K

#14 Stockium

  • New Members
  • 3 posts

Posted 19 May 2012 - 07:03 PM

Hey. I'm looking to create the same sort of thing. Would it be possible to upload the map :P/> I'm not going to copy your work I just want to use it on my SSP world
Thanks
Stockium

#15 Mega1mpact

  • New Members
  • 15 posts

Posted 20 May 2012 - 01:56 PM

epic!

Can you upload a DL of the world?

#16 kikotte

  • New Members
  • 4 posts
  • LocationSwedish

Posted 21 May 2012 - 10:06 PM

Hi,

what could be the problem?

http://i.imgur.com/lIVLPh.jpg
http://i.imgur.com/bb6p0h.jpg
http://i.imgur.com/fcOBIh.jpg

kikotte

#17 devilclarke

  • New Members
  • 1 posts

Posted 09 July 2012 - 09:43 AM

HI
Please help i have the same problem as
kikotte

#18 Wayno

  • New Members
  • 1 posts

Posted 03 August 2012 - 05:00 AM

Hello, love the look of this.

but i have a issue, i been trying to work out why this isnt working.

so i read over code found that
targets = sensors.getAvailableTargets(side,sensor)
for i=1,#targets do
target=targets[i]
local status = sensors.setTarget(side,sensor,targets)
print(" Found "..targets.." sensor target/targets.")
isnt working anyone help plz?

#19 cgctech

  • New Members
  • 1 posts

Posted 09 August 2012 - 07:17 PM

Same issue as kikotte, has anyone found a solution


http://i.imgur.com/lIVLPh.jpg
http://i.imgur.com/bb6p0h.jpg
http://i.imgur.com/fcOBIh.jpg

#20 Megaprr

  • New Members
  • 1 posts

Posted 25 August 2012 - 01:24 AM

@yoskaz01 hey. i'm a bit of a noob here :D/>. I'm very new to Computercraft. I was looking online to learn how to make that menu that you had in that image and I can't find anything on it. I've also seen an image with the exact same layout as that, in the tekkit wiki (i believe it was in the ccsensor part.). Could you possibly help me out? or post the code?





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users