I had actually figured out there was some sort of syntax error with the "not equals" operator. I simply changed the syntax to read "equals" (obviously altering the program slightly) but it functions now. I am familiar with c and java so this is slightly different .
Do you happen to know how to use the print() function to handle multiple data types (idk how to explain this)
for instance in java i would say | System.out.println("You have: " + t + "attempts."); to execute a print string where t is a calculated value
or in c++ i would say | cout << "You have: " << t << "attempts." << endl;
i would like to do the same thing with this.
Let's say a = 1 and we wanted to print text with that. The symbol used to separate different data types/variables is actually just '..', so all you have to do is:
Hey, I've been playing around with ComputerCraft the last couple days, but in one of my projects I have found the need to be able to put variables in variable names, for a login server. For example, I would like to do something like this:
id, message rednet.receive()
id = tonumber(idn)
if message = "login "..id.." "..(idn.."pass") and (idn.."logged") = false then
(idn.."logged") = true
rednet.send(0, "Logged in. Welcome, "..id)
Is there a way to do this? I've googled it but I can't find anything on it.
EDIT: Nevermind, figured out a better way to make my login system.
Hi, I'm just wondering if you can access your programs on disks or computers outside of game if you made them on a tekkit server, I'm trying to write a program and I want to be able to work on it and not have to be on the server, I am the server admin, so I can access the server through FTP if needed.
Could you add onto your tutorial it helped alot but not to the extent that I need :3, BUT I really appreciate this tutorial really helped. It would be cool to teach how to do "startup" programs or how to work with outputs and other types of things.
The Meaning of Life, the Universe, and Everything.
Can anyone help me?
Im trying to set my rule board up with monitors and I havent a clue how to program with lua.
if anyone could help me translate this
1) No griefing*, if you are caught griefing you will be banned.
2) No client hacks or mods*.
3) Do not argue with, lie to or otherwise disrespect staff members.
4) No offensive behaviour*, swearing, talking in all caps, skins or usernames.
5) Do not ask staff members to give you anything.
6) Do not engage in exploitative behaviour.
7) Do not engage in general misbehaviour.
8) Don’t hide behind the rules.
9) Do not advertise other servers, or advertise our server to others without consent.
10) Leaking machines will be destroyed.
Full list of rules with explanations and definitions are viewable at
Thanks for the great article, very helpful, ver well-written. Unfortunately, I just can't understand even the simplest coding. It's not your fault, it's just me. I'm not stupid, or anything, it's just computers confuse me. *sigh*...
im making my first program ever, and ive ran into a problem, i keep getting a "attempt to call nill" with this code
if redstone.chekcOutput("back", true) then
input = read()
input = "back to left"
input = "back to right"
input = "back to bottom"
input = "bottom to top"
input = "shutdown"
if input == ("back to left") then
print("Diverting from BACK to LEFT...")
if input == "back to top" then
print("Diverting from BACK to TOP...")
if input == "back to bottom"
print("Diverting from BACK to BOTTOM...")
if input == "back to right"
print("Diverting from BACK to RIGHT...")
if input == "shutdown"
any help is great. i should mention this is my first programming language im learning, so cut me some slack if i did something retarded. thanks!
Ok, im a crazy mod person. Now that we have established that, i have a question.
is there any way to connect the computer to bundled cable and have it output say only to green wires connected to that bundled cable (im talking redpower cable and alloy wires) and if so, what are the commands? also can u make it respond to a green wire signal from a bundled cable? if so, what are the commands? another question - is it possible to set variables with 1 program, but have a completely seperate program (on the same computer) access that variable? if so, how?
-- this will really help me out dude
also A+ on ur tutorial
Edit: sorry about the "dude" if ur a girl then change that to "dudett"
Rollback Post to RevisionRollBack
I came up with the idea for Mo' Armor, a mod being developed by CORE modders.
When I type cd rom/programs/custom ,it tells me "Not a directory". I've put the folder and the file exactly where you instructed us to put it and it gives me that message. Do you know what the problem is?