• 0

    posted a message on [1.1][Whitelist] Creative server! Let's code! [ComputerCraft][Mature community]
    Quote from Limeth

    Oh no, I hate tekkit. Please, stay with CC only, it's just an amazing mod and it would start lagging with tekkit, I'm sure.

    Well you can disable mods in tekkit and he could just disable everything except for cc...
    Posted in: PC Servers
  • 0

    posted a message on [1.1][Whitelist] Creative server! Let's code! [ComputerCraft][Mature community]
    * In game name: 1lann
    * Age (minimum 12 years): 13
    * Screenshot/world save/text file/anything that shows
    that you know programming: Well I really just want a server to test my concept of a very simple network (That may even develop into an internet in minecraft!) and I made this in 10 min in single player as a simple concept test:

    Send:
    print "Enabling networking..."
    rednet.open("left")
    write "Type a message to send: "
    input = read()
    print "Sending message..."
    if rednet.broadcast(input) then
    print "Message Sent!"
    else
    print "Message failed to be sent"
    end

    and Receive:
    print "Enabling networking..."
    rednet.open("left")
    print "Waiting for message..."
    from, message = rednet.receive(30)
    if from == nil then
    print "No message was recieved"
    else
    print ("You recieved a message from Computer ID: " , from)
    print ("The message says:")
    print (message)
    end

    And a router service which allows extended networks
    function startservice()
    rednet.close("left")
    rednet.open("back")
    print "Started router service!"
    source, data = rednet.receive(1000)
    if source == nil then
    print "Restarting service..."
    startservice()
    else
    rednet.close("back")
    rednet.open("left")
    print "Forwarding data..."
    rednet.broadcast(data)
    startservice()
    end
    end
    startservice()

    * Additional anything: I know quite a bit of Java (Could make a simple bukkit plugin if I had the time), Lua (Of course), HTML, JavaScript. I can understand Python and C.

    Hmm, Im also going to add this minecraft jar manager (Windows only) I made AGES ago (the code is very inefficient btw) If you want to see the source or a mac version, ask me!
    http://dl.dropbox.co...enshotMJarM.bmp - Screenshot! (I can't embed it onto minecraftforums for some reason :-/

    Download!
    Posted in: PC Servers
  • 0

    posted a message on ComputerCraft Program Library
    Quote from Mort96

    Assassin55 is right. As I wrote in the description (I think), It was originally written to set off an explosion :biggrin.gif:
    That's why it's named DoomOS too

    Ahh ok whoops, didn't see that. Cool!
    Posted in: Mods Discussion
  • 0

    posted a message on ComputerCraft Program Library
    Quote from Mort96

    I'm making an os-ish thing (or custom program launcher at least). It'll be the engine for many of my future programs, and its first function was to blow up a mountain. It's therefore named DoomOS Engine.

    Here's the code:

    term.clear()
    term.setCursorPos (1, 1)
    
    print("")
    print("--------------------------------------------------")
    term.setCursorPos (16, 10)
    print(" ---------------")
    term.setCursorPos (16, 11)
    print("| DoomOS Engine |")
    term.setCursorPos (16, 12)
    print(" ---------------")
    term.setCursorPos (1,20)
    print("--------------------------------------------------")
    sleep(1)
    term.setCursorPos (20, 14)
    print("Loading...")
    sleep (4)
    term.clear()
    
    pos = 1 
    menu = true
    while menu do
      term.setCursorPos (1, 5)
      print(" -------------")
      print("| Calculator  |")
      print("| Notepad     |")
      print("| Be awesome  |")
      print("| 2012        |")
      print("| shutdown    |")
      print(" -------------")
    
      if num == 200 then
        pos = pos - 1
      end
      if num == 208 then
        pos = pos + 1
      end
      if num == 28 then
        menu = false
      end
    
      if pos > 5 then
        pos = 5
      elseif pos < 1 then
        pos = 1
      end
        
      if pos == 1 then
        term.setCursorPos (15, 6)
        print("<--")
      end
      if pos == 2 then
        term.setCursorPos (15, 7)
        print("<--")
      end
      if pos == 3 then
        term.setCursorPos (15, 8)
        print("<--")
      end
      if pos == 4 then
        term.setCursorPos (15, 9)
        print("<--")
        if num == 28 then
          sleep(2)
          redstone.setOutput("back", true)
          sleep (2)
          redstone.setOutput("back", false)
        end
      end
      if pos == 5 then
        term.setCursorPos (15, 10)
        print("<--")
        if num == 28 then
          os.shutdown()
        end
      end
    
      type, num = os.pullEvent()
      term.clear()
    
    end

    I've not programmed in any features yet (except for shut down), only the framework is completed (or at least functional).

    Lets include the form too, shall we?
    Name of program: DoomOS Engine
    Functions: Custom launcher.
    Download link/Copy of code: look in the spoiler above
    A description (Optional): Not completed yet; only the framework is done. No programs programmed in so far.

    oooo that looks nice. And what does 2012 do? :3
    Posted in: Mods Discussion
  • 0

    posted a message on RedWorks Add-On Package For ComputerCraft - Beta 1.20
    Dammit I tried making a virus but couldn't because the damn internal shell files are read-only from the computers. Anyway since I noticed there was a lack of a change username/password option. I made one myself (Hope you like it! And hope that you guys haven't made one yet :-/) It's mostly based off the login screen at the startup so yeah, here it is. Also others, if you would like to get it now, its available cc-get. Use "cc-get install changelogin" on a computer to install it, then just run it by using "/bin/changelogin"
    -- Credits to Kyoshiku for login
    -- START COPIED AREA
    nUserList = 0
    
    
    local function inputBox(len, x, y, mask)
      local bInput = true
      local sOutput = ""
      term.setCursorPos(x,y)
      while bInput == true do
        local sEvent, param = os.pullEvent()
        if sEvent == "key" then
          if param == 28 then
            if string.len(sOutput) > 0 then
              bInput = false
            end
          elseif param == 14 then
            sOutput = string.sub(sOutput,1,string.len(sOutput)-1)
            term.setCursorPos(x+string.len(sOutput),y)
            io.write(" ")
            term.setCursorPos(x+string.len(sOutput),y)
          end
        end
        if sEvent == "char" then
          if string.len(sOutput) < len then
            sOutput = sOutput .. param
            term.setCursorPos(x,y)
            if not mask then
              io.write(sOutput)
            else
              for n=1,string.len(sOutput) do
                io.write("*")
              end
            end
          end
        end
      end
      return sOutput
    end
    
    local function drawBox(x, y, w, h)
      for n=0,h-1 do
        term.setCursorPos(x,y+n)
        if n == 0 then
          io.write("+")
          for n2=1,w-2 do
            io.write("-")
          end
          io.write("+")
        elseif n == h-1 then
          io.write("+")
          for n2=1,w-2 do
            io.write("-")
          end
          io.write("+")
        else
          io.write("|")
          for n2=1,w-2 do
            io.write(" ")
          end
          io.write("|")
        end
      end
    end
    
    local function textAt(x,y, str)
      term.setCursorPos(x,y)
      io.write(str)
    end
    
    local function form(str, msg, mask)
      term.clear()
      term.setCursorBlink(true)
      if msg ~= "" then
        textAt(26-(string.len(msg)/2),7,msg)
      end
      drawBox(16,9,20,3)
      textAt(14-string.len(str),10,str..":")
      local sData = inputBox(16, 18, 10, mask)
      return sData
    end
    
    -- END COPIED AREA
    
    function newPassword(n)
     nPassword = form("Password", SFormMsg, true)
     SFormMsg = "Enter the new password again"
     aPassword = form("Password", SFormMsg, true)
     if nPassword == aPassword then
      file = io.open("ACCOUNTS.F", "w")
       file:write(nUser .. "\n" .. nPassword .. "\n")
       file:close()
      term.clear()
      msg = "New username & password saved!"
            textAt(26-(string.len(msg)/2),13,msg)
      sleep(3)
      term.clear()
      term.setCursorPos(1,1)
     else
     SFormMsg = "Passwords do not match, Try again"
     newPassword()
     end
    end
    
    if fs.exists("ACCOUNTS.F") then
     file = io.open("ACCOUNTS.F", "r")
      showuser = file:read()
      showpass = file:read()
      file:close()
     SFormMsg = "Enter your current username & password"
     sUser = form("Username", SFormMsg, false)
     sPassword = form("Password", SFormMsg, true)
     if sUser == showuser and sPassword == showpass then
      SFormMsg = "Enter a new username"
      nUser = form("Username", SFormMsg, false)
      SFormMsg = "Enter a new password"
      newPassword()
     else
      term.clear()
        msg = "Incorrect username/password, Shutting down..."
            textAt(26-(string.len(msg)/2),13,msg)
      sleep(3)
      os.shutdown()
     end
    else
     term.clear()
      msg = "Error: Could not find your account data"
            textAt(26-(string.len(msg)/2),13,msg)
     term.setCursorPos(1,1)
    end
    Posted in: Mods Discussion
  • 0

    posted a message on ComputerCraft Program Library
    Quote from Darkhog

    Why noone use my function for lock mechanisms?
    With read() function roommate can see password over your shoulder and steal your stuff. With my function they will see this instead (of course "Enter password" thing is not part of function, you can set up whatever prompt you want):


    Not necessary, you just use read("*"), try it out yourself. That's what I do in my code.
    Posted in: Mods Discussion
  • 0

    posted a message on RedWorks Add-On Package For ComputerCraft - Beta 1.20
    Quote from bik1230

    PM streetstar5 if you wan't to join.

    And what do you wan't to do? Viruses, Networking, Smart-House Software, Games, Libraries?

    Ahh ok sure. As for what I would like to do... Hmmm, I could make a virus if I felt like it. It would inject itself into the rom startup file and possibly do something nasty like deleting your files, then deleting the shell, making the computer useless and to be be to execute commands remotely through the Internet. Nah I'm not evil, but if you really wanted me to do that I could try :3. I could also work on networking , However I don't have any eperience with PHP so I can't make anything as cool as casper's CIM :sad.gif:. I could make a smart house where everything can be controlled remotely from the Internet too.
    Posted in: Mods Discussion
  • 0

    posted a message on RedWorks Add-On Package For ComputerCraft - Beta 1.20
    Hello, I would like to apply to join the developers team of this awesome os with many awesome features. Especially Casper's CIM which is just awesome and cc-get is just epic. I have experience with java and started lua a few days ago, which is extremely easy to learn (for me). I can't do really complicated stuff like, uhhh, anything more harder than cc-get I suppose. Well, so far all I made is Also unfortunately, I suck at art :sad.gif:. So far the first and only program I made for computercraft so far is an advanced locking program http://www.minecraftforum.net/topic/895297-computercraft-program-library/page__view__findpost__p__11702697

    Oh and btw to sledger I actually accidentally added you as a friend when I was on my iPod and was trying to view your profile, whoops!
    Posted in: Mods Discussion
  • 0

    posted a message on ComputerCraft Program Library
    Quote from elrond1369

    I was messing around with this but the stuff entered doesn't change the file. So when I leave the map and come back to it the passwds were reset. Do you know a way to fix this? Other than that the code works perfectly.

    Reading the data at startup:
    if fs.exists("password.dat") then
    file = io.open("password.dat", "r")
    currentPassword = file:read()
    file:close()
    file = io.open("username.dat", "r")
    currentUsername = file:read()
    file:close()
    end


    Writing the data at changing your username/password
    file = io.open("password.dat", "w")
    file:write(currentPassword)
    file:close()
    file = io.open("username.dat", "w")
    file:write(currentUsername)
    file:close()


    Add them to the correct parts of the code and it should work. Also if you're planning to lock a safe/vault, try my program which also saves your data and has many features (2 posts above you!)
    Posted in: Mods Discussion
  • 1

    posted a message on ComputerCraft Program Library
    My first ever proper lua program. Yes, I know the code is messy but I hope you like it! :biggrin.gif:

    Name of program: SCAL - Secure Computer Authorised Lock
    Functions:
    Lock your vaults/safes safely and securely
    Obfuscated Password Prompt - Evasdroppers can't see what your password is.
    Easy to use interface with menus
    Change your password in-game
    Change the number of login attempts in-game
    Disable/enable login attempts in-game
    All your data is saved when you quit the game. When you load the world again, all your settings will be back.
    System Lockdown Mode when you run out of login attempts

    Download link/Copy of code:
    function readyToLock(n)
    write("Ready? ")
     command = read()
     if command == "lock" then
      print "Ok, locking your safe!"
      redstone.setOutput("right", false)
    lockSafe()
     end
     print "Sorry I don't understand what you said, try again"
     readyToLock()
    end
    
    function doLock(n)
    num = 0
    file = io.open("attempts.dat", "w")
    file:write(num)
    file:close()
    redstone.setOutput("right", false)
    redstone.setOutput("back", true)
    print "[SYSTEM LOCKDOWN]"
    nothing = read()
    doLock()
    end
    
    function lockSafe(n)
    term.clear()
    file = io.open("password.dat", "w")
    file:write(password)
    file:close()
    file = io.open("attemptset.dat", "w")
    file:write(numset)
    file:close()
    file = io.open("attempts.dat", "w")
    file:write(num)
    file:close()
    if attemptEnabled == true then aten = "true"
    end
    if attemptEnabled == false then aten = "false"
    end
    file = io.open("attempten.dat", "w")
    file:write(aten)
    file:close()
    redstone.setOutput("right", false)
    print "      [SAFE LOCKED]"
    print " [PRESS ENTER TO UNLOCK]"
    print "        SCAL v.1"
    enter = read()
    passwordAuth()
    end
    
    function passwordAuth(n)
    if num < 0.1 then
    doLock()
    end
    print "Enter your password to unlock your safe"
    if attemptEnabled == true then
    print ("You have " .. num .. " attempts remaining")
    end
    write "Password: "
    entry = read("*")
    if entry == password then
    print "Password Accepted!"
    sleep(2)
    num = numset
    file = io.open("attempts.dat", "w")
    file:write(num)
    file:close()
    redstone.setOutput("right", true)
    launchMenu()
    end
    print "Password Incorrect!"
    sleep(2)
    if attemptEnabled == true then
    numb = num
    num = numb - 1
    if num < 0.1 then
    doLock()
    end
    end
    lockSafe()
    end
    
    function changePassword(n)
    term.clear()
    print "Please enter you current password"
    print "Or type back to go back"
    write "Current Password: "
    cpassword = read("*")
    if cpassword == password then
    term.clear()
    write "New password: "
    password = read()
    print "New password set!"
    file = io.open("password.dat", "w")
    file:write(password)
    file:close()
    sleep(2)
    launchMenu()
    end
    if cpassword == "back" then
    launchMenu()
    end
    print "Password Incorrect! Locking safe"
    sleep(3)
    lockSafe()
    end
    
    function changeAttempts(n)
    term.clear()
    if attemptEnabled == true then
    result = "enabled"
    end
    if attemptEnabled == false then
    result = "disabled"
    end
    print ("Currently, attempts are " .. result)
    print ("and you can do " .. numset .. " login attempts")
    print "\nType toggle to enable/disable attempts."
    print "\nType set to set the number of login attempts one can do"
    print "\nType back to go back"
    cattempts = read()
    if cattempts == "toggle" then
    if attemptEnabled == true then
    attemptEnabled = false
    print "Attempts are now disabled!"
    if attemptEnabled == true then aten = "true"
    end
    if attemptEnabled == false then aten = "false"
    end
    file = io.open("attempten.dat", "w")
    file:write(aten)
    file:close()
    sleep(3)
    launchMenu()
    end
    if attemptEnabled == false then
    attemptEnabled = true
    print "Attempts are now enabled!"
    if attemptEnabled == true then aten = "true"
    end
    if attemptEnabled == false then aten = "false"
    end
    file = io.open("attempten.dat", "w")
    file:write(aten)
    file:close()
    sleep(3)
    launchMenu()
    end
    end
    if cattempts == "back" then
    launchMenu()
    end
    if cattempts == "set" then
    setAttempts()
    end
    print "Not a valid option!"
    sleep(3)
    changeAttempts()
    end
    
    function setAttempts(n)
    term.clear()
    print "Enter a number above 0 to set the number of login attempts"
    print "Type anything else to go back"
    nmbr = read()
    entern = tonumber(nmbr)
    if entern == nil then
    changeAttempts()
    end
    if entern > 0 then
    numset = entern
    num = entern
    print ("You can now only do " .. numset .. " attempts")
    file = io.open("attemptset.dat", "w")
    file:write(numset)
    file:close()
    file = io.open("attempts.dat", "w")
    file:write(num)
    file:close()
    sleep(4)
    launchMenu()
    end
    print "The number must be above 0"
    sleep(3)
    changeAttempts()
    end
    
    
    function lockdown(n)
    term.clear()
    print "This will lockdown your safe and you will have"
    print "to break it down. This would also stop the"
    print "computer from operating, if you are sure,"
    print "enter your password"
    print "or type back to go back"
    write "Password: "
    cpassword = read("*")
    if cpassword == password then
    term.clear()
    doLock()
    end
    if cpassword == "back" then
    launchMenu()
    end
    print "Password Incorrect! Locking safe"
    sleep(3)
    lockSafe()
    end
    
    function launchMenu(n)
    term.clear()
    file = io.open("password.dat", "w")
    file:write(password)
    file:close()
    file = io.open("attemptset.dat", "w")
    file:write(numset)
    file:close()
    file = io.open("attempts.dat", "w")
    file:write(num)
    file:close()
    if attemptEnabled == true then aten = "true"
    end
    if attemptEnabled == false then aten = "false"
    end
    file = io.open("attempten.dat", "w")
    file:write(aten)
    file:close()
    print "Welcome! The actions you can do are:"
    print "changepassword - Change your current password"
    print "changeattempts - Change the number of login"
    print "attempts you can do"
    print "lockdown - WARNING: Does a system lockdown"
    print "lock - locks your safe"
    write "Action: "
    action = read()
    if action == "lock" then
    print "Locking safe..."
    sleep(2)
    lockSafe() 
    end
    if action == "changepassword" then
    changePassword()
    end
    if action == "changeattempts" then
    changeAttempts()
    end
    if action == "lockdown" then
    lockdown()
    end
    print "Not a valid option!"
    sleep(3)
    launchMenu()
    end
    
    passwordexist = false
    if fs.exists("password.dat") then
    passwordexist = true
    file = io.open("password.dat", "r")
    password = file:read()
    file:close()
    file = io.open("attemptset.dat", "r")
    numsetz = file:read()
    file:close()
    numset = tonumber(numsetz)
    file = io.open("attempts.dat", "r")
    numz = file:read()
    file:close()
    num = tonumber(numz)
    file = io.open("attempten.dat", "r")
    aten = file:read()
    file:close()
    if aten == "true" then attemptEnabled = true
    end
    if aten == "false" then attemptEnabled = false
    end
    end
    if passwordexist == false then
    attemptEnabled = true
    num = 4
    numset = 4
    redstone.setOutput("right", true)
    redstone.setOutput("back", false)
    print "Oh hey there, I'm SCAL, which means"
    print "Secure Computer Authorized Lock"
    print "I see you're new here, go ahead and set a new"
    write "Password: "
    password = read ()
    term.clear()
    print "Ok you better remember that!"
    print "Go ahead and type in \"lock\" when you're ready"
    print "to lock your safe"
    readyToLock()
    end
    redstone.setOutput("right", false)
    redstone.setOutput("back", false)
    passwordAuth()

    A description (Optional):
    This program is designed for locking vaults/safes/chests. Not doors. This program also requires *no* programming experience at all or editing the file. Everything can be controlled from the computer.

    Setting Up:
    1. Make sure you set the program as the startup program
    2. The current configuration is that the right of the computer will control the vault/safe lock, while the back will control what will happen if a person runs out of login attempts. Guide: When the left side is on, it will open the vault. When the back is on, it will activate the what will happen if a person runs out of login attempts.

    Setting up the lock:
    1. Run startup
    2. Set a password at prompt
    3. Put stuff in your vault, then lock it

    Images (Coming Soon!)

    FAQ:

    Q: So what will happen if a person runs of login attempts or when I use the lockdown action from the menu?
    Q: Tell me about Lockdown Mode
    A: The computer will enter System Lockdown mode where no-one can gain access to the vault unless you break it down. It will also transmit a redstone signal at the back of the computer. Even when you exit and re-join the game, it will still be in lockdown mode. To get out of lockdown mode, you must locate your .minecraft files, then saves, the the world, then computers, then find which folder is the one with SCAL in it. Once you find it, open attempts.dat with notepad and change it to something like 4. Just make sure it's above 0. Re-run the program and you will be back at the password prompt and the system should be out of lockdown mode.

    Q: What do you mean by Obfuscated Password Prompt?
    A: When the computer asks you to enter your password (Apart form the times of creating a new password), it will show up like this when you type:
    Password: ****
    Cool, eh?

    Got any more questions or suggestions? Feel free to ask me.
    Posted in: Mods Discussion
  • 0

    posted a message on The Tomb Puzzle v0.1 [PRE-RELEASE] [PUZZLE]
    Quote from bukeprv5

    ok i will where is the link

    Whoops! I forgot to add the http://!
    Posted in: Maps
  • 0

    posted a message on The Tomb Puzzle v0.1 [PRE-RELEASE] [PUZZLE]
    The Tomb Puzzle
    v.0.1 - PRE-RELEASE

    Please be aware this map is quite short and this is a pre-release. This map only takes 10 - 30 min to complete.

    The Tomb Puzzle is about you wake up in a tomb underground and you don't know where you are. There are only 5 chambers/rooms/puzzles. We are going to add more. The chambers/rooms/puzzles can be done in any order. This map roughly took about 2 days to make with 2 people. Creators: 1lann, 1259mark. Thanks to Rupert138 for helping out on building the minefield, and The_Raydeo for testing it out. Please leave your feedback here.

    EDIT: Whoops forgot to mention you should play on Easy! or if you're really hardcore, Normal or Hard.

    Download Here! http://goo.gl/RyRty

    Screenshots:







    Posted in: Maps
  • 0

    posted a message on Portal 2 [spoileralert]
    I really want portal 2. I'll wait until it goes on sale. (I hope it does soon). I'm the type of person who likes spoilers and doesn't spoil the game. Also if you haven't read the comic (contains a small spoiler about portal 2) you should. Read it for free here: http://www.thinkwithportals.com/comic/ also try out this test thing for fun and post your result here! http://www.thinkwithportals.com/coop_survey.php

    My result was Wheatly :tongue.gif:
    Posted in: General Gaming
  • 0

    posted a message on The Jesters Of Luck (CLOSED)
    Me? How come noone's on the list yet?
    Posted in: Clans
  • 0

    posted a message on How do I play this game
    You can buy it here: http://www.minecraft.net/prepurchase.jsp
    Best to buy it before notch finishes the game!
    Posted in: Legacy Support
  • To post a comment, please .