Jump to content


iceman11a's Content

There have been 49 items by iceman11a (Search limited from 10-February 22)


By content type

See this member's


Sort by                Order  

#217804 Dead Simple Railcraft Tank Monitoring

Posted by iceman11a on 19 May 2015 - 05:49 PM in Programs

Thanks, I really need this to work with bundled cable like other machines work.



#217763 Dead Simple Railcraft Tank Monitoring

Posted by iceman11a on 19 May 2015 - 05:34 AM in Programs

Thanks for the lua code. It seems to be working fine. A note. The code crashes when the tanks are empty. and the 2nd questions is. What happens when a tank gets too low on what ever it's holding. Do you have a way to send a signal threw bundled cable. Or some thing when the tank gets too low.



#217714 Monitor 3 tanks from railcraft

Posted by iceman11a on 18 May 2015 - 07:19 PM in Ask a Pro

Thanks for the info. Sorry you miss under stood. I mean that the lua code. The one I downloaded and added to my computercraft pc. It has an option to connect to anoother pc via rednet. I have no idea what how to code the lua to monitor this. From what I see it sends tank info. to another cc pc. I didn't see a server code in the one I have. and I didn't see one added to this code. Just the client side. That monitors the tanks. I need the lua code that gets the info from the cc pc that monitors and sends the info



#217706 Monitor 3 tanks from railcraft

Posted by iceman11a on 18 May 2015 - 06:39 PM in Ask a Pro

Ok, That's good. Last thing, what about the rednet code. what do I do about the lua code to handle the code that gets sent..



#217652 Monitor 3 tanks from railcraft

Posted by iceman11a on 18 May 2015 - 08:51 AM in Ask a Pro

As I said, Yes I have all that installed. I need to klnow how to code a server. This code sends info to a server. I need to make a computercraft pc a server to get messages from the tanks.

and last, Do I have to put the pc next to the value. Is it possible to run a wired and wireless modem on the same pc.



#217602 Monitor 3 tanks from railcraft

Posted by iceman11a on 17 May 2015 - 07:22 PM in Ask a Pro

I still need to know how to setup this lus code. What do I need to attache to what and so on. I still need a server all so. and I have no idea what to do, Guys I can use some help here.



#217508 Monitor 3 tanks from railcraft

Posted by iceman11a on 16 May 2015 - 11:19 PM in Ask a Pro

Thanks for the info. I wanted some thing simple. Some thing that I can learn from.



#217504 Monitor 3 tanks from railcraft

Posted by iceman11a on 16 May 2015 - 10:52 PM in Ask a Pro

I'm looking for a way to monitor the amount of fluid in 3 tanks from the railcraft mod. Has any one every done this before. Does some one have a lua code to show me how to do this.

The idea is when the tank's fluid runs low if to send out a signal threw a bundled cables. and all so threw rednet. (I haven't played with rednet) I don't under stand a lot of it.



#215652 LUA Menu sample

Posted by iceman11a on 28 April 2015 - 12:44 AM in Ask a Pro

Thank you very much, That works.



#215587 LUA Menu sample

Posted by iceman11a on 27 April 2015 - 08:57 AM in Ask a Pro

That means then trial and error. I won't know just what to set those numbers too. Now. How can I add my own lines of code to this code. Lets say I wanted to send a red stone signal threw a bundled cable.



#215579 LUA Menu sample

Posted by iceman11a on 27 April 2015 - 02:43 AM in Ask a Pro

Thank you very much. That code works. Now do I add my own lines to this code. Lets say I wanted to turn a signal from a bundle cable, or some thing.

The idea is to add more lines to each button click. And last. I need to be able to add 5 buttons. How can I make the buttons smaller.



#215567 LUA Menu sample

Posted by iceman11a on 26 April 2015 - 09:43 PM in Ask a Pro

Sorry,. This doesn't seem to work. I'm not doing some ting right or I have no idea what to do. I'll have to come up with another idea on how to do some thing. The thing is that I don't know what I'm doing. This is why I wanted to stay a way from lua code.

I click on the button and nothing happens. and the 2nd button doesn't show. I need these buttons to show on the big monitor. Not just the little pc.



#215560 LUA Menu sample

Posted by iceman11a on 26 April 2015 - 08:06 PM in Ask a Pro

I'm sorry, This is very confusing, Let me see if I have this right. This is some kind of a API that lets me create buttons on the monitor of a PC from computercraft. It lets me click on a button and then I can do all most any thing. Now here's the hard part. How would I use this with a ticket machine.

I want so many buttons to make so many tickets using the ticket machine.

Location
-Nimrod Nimrod/pass
-Citysky Citysky/pass
-Mainbase Mainbase/pass
-City City/pass
-Station 1 Station1/pass



#215526 LUA Menu sample

Posted by iceman11a on 26 April 2015 - 05:24 PM in Ask a Pro

Thanks for the info. I just don't know how to use rednet. My idea was just to get a menu setup so that player could select from that menu and that ticket they could use it in a train to take with where ever they wanted to go. As for redned. I don't know what that would be for. I fount this code off another same world for single players, I couldn't load the world in because of some missing mods. the world just crash on me. So I couldn't get in to see how it all works.

All I want it a menu to select tickets and have it use a ticket machine to give the user a ticket.



#215513 LUA Menu sample

Posted by iceman11a on 26 April 2015 - 03:57 PM in Ask a Pro

What's I'm tring to do is run a lua code to creat tickets using the ticket machine from openmods. I have some code and sense I really don't get into lua code all that much. I thought I would ask for some help.


What I need to do is take this code I have and make a menu for it to display places to go and when a numbers is selected a tcket is created. The code below is what I wanted to use. I just don't know what the rednet is for. Can some one help with a menu for this code.


local TM = peripheral.wrap("top")
rednet.open("bottom")
function sea()
local booleanInfo = TM.createTicket("South/SeaStation")
end
function lake()
local booleanInfo = TM.createTicket("North/Lake")
end
while true do
eventType, sender, message, dist = os.pullEvent("rednet_message")
if message == "sea" then
  sea()
elseif message == "lake" then
  lake()
else
  print("invalid message")
end
end



#204619 Simple flashing lights using bundled cables and CC

Posted by iceman11a on 30 January 2015 - 10:30 PM in Ask a Pro

Thank you, That works



#204595 Simple flashing lights using bundled cables and CC

Posted by iceman11a on 30 January 2015 - 08:42 PM in Ask a Pro

The idea behind this is when a train comes by and starts a signal from a receiver box (railcraft) it sends a signal on the brown wire to the the computer. When the computer detects the signals. It starts light flashing on the red and white wires. The problem is that the code below looks ok to me. This coding in lua has to have some thing different. It doesn't work. I have code on other languages before and if statements were never a problem. This should work and doesn't. I was wonder what I'm doing wrong. Any one have some idea about this.

-- Simple Rail road crossing signals
local mon = peripheral.wrap("monitor_7")
rs.setBundledOutput("right", 0)
while true do
		  
  local isOn = rs.getBundledInput("right", colors.brown)
 
    if isOn == true then
    mon.clear()
    mon.setCursorPos(1,1)
    mon.setTextColor(colors.red)
    mon.write("train is coming thew")
    rs.setBundledOutput("right", 0)
    rs.setBundledOutput("right", colors.red)
    sleep(1)
    rs.setBundledOutput("right", 0)
    rs.setBundledOutput("right", colors.white)
    sleep(1)   
    else 
    rs.setBundledOutput("right", 0)
mon.clear()   
    mon.setCurorPos(1,1)
    mon.setTextColor(colors.green)
    mon.write("No Train yet")
    end
   --rs.setBundledOutput("right", 0)
   
end



#194026 Monitor Storage tanks lua script

Posted by iceman11a on 19 September 2014 - 11:00 AM in Ask a Pro

1) Thanks how ever, That doesn't give me samples on how to use the methods. That's where my problem is. I don't know what to do.

2) I'd sorta expect it to take vanilla squid ink? (I can't find any thing related to a vanilla squid ink)

I need to find some one that can help with some small samples. If I can monitor the pressure in a pipe. Then why can't I monitor the energy in a cable or conduit. See openp is limited on what it can do until a stable release of CC is released,

I was on irc chat last night until I2 midnight looking and no one wants to help. I been spending hours searching google for samples and only finding samples that are years old, and out dated. Let me show you some thing.

p = peripheral.wrap("back")
while true do
x = p.getPressure()
print("Current pressure " .. x)
if x < 4 then
rs.setOutput("right", true)
print("Pressure low, Starting Engines")
else
rs.setOutput("right", false)
end
sleep(5)
end

This small sample monitors the pressure in a pipe from the back. Well why can't I do the same thing with energy. I know there's a way to do it. I just haven't figured it out yet.

I want to be able to use the computer and monitor. I want to be able to use openp all so. Getting the info for the monitor is all ready online. The problem is that openp is not well documented with samples.

If you have any ideas please provide links.



#194013 Monitor Storage tanks lua script

Posted by iceman11a on 19 September 2014 - 04:10 AM in Ask a Pro

From what I saw in the config files. There's only 5 blocks that work. I been playing with them and trying to learn and it's not easy. It's just going to take a lot of time. Due to the fact that I can't find help with them, Here's a list of the 5 blocks openP does have working,

glasses bridge
peripheralproxy
pim
sensor
ticketmachine -- This one the ink is missing. So I can't even play with it.



#193978 Monitor Storage tanks lua script

Posted by iceman11a on 18 September 2014 - 09:31 PM in Ask a Pro

I didn't think to look at the configure file. There's 5 blocks.

glassesbridge -- All ready been playing with this block
peripheralproxy
pim
sensor
ticketmachine

Can some one tell me how to use these in CC = Computercraft. using the lua code. Oh and how do I report bugs. I see that the ink is missing for the ticket machine.



#193949 Monitor Storage tanks lua script

Posted by iceman11a on 18 September 2014 - 06:43 PM in Ask a Pro

From what I have done and what I learned. That most of the openperipheral doesn't have more then 1/2 of what it should have. I should be able to use a chest and that doesn't seem to work all so. So I need a list of what openperipheral has and what it supports. If any one has some ideas please let me know. In the mean time I'm going to try the IRC chat channel and see if I can get some real help this time.



#193922 Monitor Storage tanks lua script

Posted by iceman11a on 18 September 2014 - 10:33 AM in Ask a Pro

Here's what I fount,

OpenPeripheral 1.7 is not functional. We give no guarantee that unreleased snapshots are functional.

So I guess I'm screwed.



#193921 Monitor Storage tanks lua script

Posted by iceman11a on 18 September 2014 - 09:50 AM in Ask a Pro

Well it looks like he's using OpenP for MC 1.6.4. So maybe what I'm trying to do haven't been added in this version of OpenP. I see that the code was changed as it was in a earlier post. I still have the same problem on the same line. I get getting a nil value error

SO I'll have to check with openP and see just what they added and so. I'll have to contact the coders and see if i can find out just what's going on. I'll have to see if I can find an OpenP IRC chat room all so.

Guys, If any of you have an idea or 2, please let me know.



#193911 Monitor Storage tanks lua script

Posted by iceman11a on 18 September 2014 - 02:50 AM in Ask a Pro

OpenCCSensors is only version 1.6.4 of minecraft and I have the bata version of OpenP. It's beta all so. The problem is that they don't have a list of all the methods for the OpenP mod. It was a dream. I thought it would be great if i could monitor my tanks from the network control room.



#193849 Monitor Storage tanks lua script

Posted by iceman11a on 17 September 2014 - 09:09 PM in Ask a Pro

Hope. I'm not sure of any thing, I'm all so new to this. I fount this. It's an older tutorial. https://www.youtube....h?v=X-owrYlGCXI

He didn't say any thing about any requirements. So maybe you can see some thing I didn't.