Jump to content




Expenox's Programs


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

#21 Expenox

  • Members
  • 137 posts
  • LocationIn the depths of my computer.

Posted 16 December 2012 - 12:47 PM

Okay :P
Will probably start in on it in about 20 minutes, but since you're here I wanted to ask you something,
for my turtle I don't know what to do next I had it planned then forgot i'm making a function that digs the tree
So the code is
local function tree
  if turtle.detect() then
    turtle.select(16)
    turtle.compare()
I forgot at the compare.
I wanted it to compare if there was wood there or sapling so if there was wood it would harvest the tree and if sapling it would go to the next one.
Help?
I wanted to try if turtle.compare then
but I didn't know if it would be like
if turtle.compare(true) do
or what?

#22 Expenox

  • Members
  • 137 posts
  • LocationIn the depths of my computer.

Posted 16 December 2012 - 01:08 PM

View PostMechaTallon, on 16 December 2012 - 01:00 PM, said:

xD I don't know the turtle API much, sorry can't help you on that one.
But I'm sure that turtle.compare returns a boolean, which means
if turtle.compare( arguments ) then
would work.
Can there be multiple if loops in one function?

#23 Expenox

  • Members
  • 137 posts
  • LocationIn the depths of my computer.

Posted 16 December 2012 - 02:42 PM

View PostMechaTallon, on 16 December 2012 - 02:08 PM, said:

yeah there can!
Okay thanks :3

#24 Expenox

  • Members
  • 137 posts
  • LocationIn the depths of my computer.

Posted 16 December 2012 - 07:35 PM

New program "Expenox's Lumberjack"
Coming out tomorrow!

#25 Expenox

  • Members
  • 137 posts
  • LocationIn the depths of my computer.

Posted 17 December 2012 - 05:12 AM

Lumberjack is almost finished, just doing some major debugging! :P

#26 Expenox

  • Members
  • 137 posts
  • LocationIn the depths of my computer.

Posted 17 December 2012 - 02:27 PM

Lumberjack program was canceled I will try to make a alternative way.. There was a bug..
If anyone knows whats wrong take a shot at it
>> Code <<
>> Video <<

#27 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 17 December 2012 - 04:25 PM

View PostExpenox, on 17 December 2012 - 02:27 PM, said:

Lumberjack program was canceled I will try to make a alternative way.. There was a bug..
If anyone knows whats wrong take a shot at it
>> Code <<
>> Video <<

Sorry that I couldn't help you figure it out :(

#28 Expenox

  • Members
  • 137 posts
  • LocationIn the depths of my computer.

Posted 18 December 2012 - 12:49 PM

View PostTheOriginalBIT, on 17 December 2012 - 04:25 PM, said:

View PostExpenox, on 17 December 2012 - 02:27 PM, said:

Lumberjack program was canceled I will try to make a alternative way.. There was a bug..
If anyone knows whats wrong take a shot at it
>> Code <<
>> Video <<

Sorry that I couldn't help you figure it out :(
It's fine, hopefully new way works. Just might be a bit weird, but working. :P

#29 Expenox

  • Members
  • 137 posts
  • LocationIn the depths of my computer.

Posted 31 December 2012 - 03:11 PM

Okay, that idea I had. Scrapped it.
It's still going to be a lumberjack but with one tree, that auto-replants, and.. Well I don't want to spoil it. ;)

#30 Expenox

  • Members
  • 137 posts
  • LocationIn the depths of my computer.

Posted 02 January 2013 - 03:27 PM

Lot's of new programs coming soon! Just need to get a mining turtle in my survival :P

#31 Expenox

  • Members
  • 137 posts
  • LocationIn the depths of my computer.

Posted 09 January 2013 - 03:35 PM

Finally in the debugging stage again, for my turtle lumberjack. Completely re-wrote it, because it's for one tree now.

#32 spyman68

  • Members
  • 155 posts

Posted 05 March 2013 - 01:00 PM

I would like to help you on the login program when you need a username AND password, I'll take your code and turn it into a username AND password real quick, it'll take about 5 minutes :) I actually just discovered this while making my own OS (It's not gonna be too great, just a menu with a lot of shell.run(" ") xD, well here is the login code, I used your code but added/changed some stuff:
term.clear()[/size]
local password = "expenox"
local user = "expenox"
term.setCursorPos(1,1)
textutils.slowPrint("Welcome to Expocraft v1.0 by Expenox")
sleep(1)
textutils.slowWrite("Username: ")
local input = read()
input = string.lower(input)
if input == user then
textutils.slowPrint("Correct username!")
textutils.slowWrite("Password: ")
local input = read("*")
if input == password then
textutils.slowPrint("Correct Password!")
sleep(2)
term.clear()
term.setCursorPos(1,1)
textutils.slowPrint("Expocraft V1.0")
else
textutils.slowPrint("Wrong password!")
sleep(2)
os.reboot()
end
else
textutils.slowPrint("Wrong Username!")
sleep(2)
os.reboot()
end
I did indeed test this, I hope you like it :D

#33 Expenox

  • Members
  • 137 posts
  • LocationIn the depths of my computer.

Posted 06 March 2013 - 03:59 PM

View Postspyman68, on 05 March 2013 - 01:00 PM, said:

I would like to help you on the login program when you need a username AND password, I'll take your code and turn it into a username AND password real quick, it'll take about 5 minutes :) I actually just discovered this while making my own OS (It's not gonna be too great, just a menu with a lot of shell.run(" ") xD, well here is the login code, I used your code but added/changed some stuff:
term.clear()[/size]
local password = "expenox"
local user = "expenox"
term.setCursorPos(1,1)
textutils.slowPrint("Welcome to Expocraft v1.0 by Expenox")
sleep(1)
textutils.slowWrite("Username: ")
local input = read()
input = string.lower(input)
if input == user then
textutils.slowPrint("Correct username!")
textutils.slowWrite("Password: ")
local input = read("*")
if input == password then
textutils.slowPrint("Correct Password!")
sleep(2)
term.clear()
term.setCursorPos(1,1)
textutils.slowPrint("Expocraft V1.0")
else
textutils.slowPrint("Wrong password!")
sleep(2)
os.reboot()
end
else
textutils.slowPrint("Wrong Username!")
sleep(2)
os.reboot()
end
I did indeed test this, I hope you like it :D
Hello, I downloaded this from pastebin to my computer, it failed to work.
:bios 338: [string "startup"]:1: unexpected symbol
Status: FIXED (Accidentaly put that [/size] in there lol!)

#34 spyman68

  • Members
  • 155 posts

Posted 11 March 2013 - 08:23 AM

Yeah, sorry about that lol. Did it work for you?

#35 Expenox

  • Members
  • 137 posts
  • LocationIn the depths of my computer.

Posted 11 March 2013 - 01:52 PM

View Postspyman68, on 11 March 2013 - 08:23 AM, said:

Yeah, sorry about that lol. Did it work for you?
Yes it did, thanks for that.
Now just editing the code a bit, and adding more stuff.

#36 spyman68

  • Members
  • 155 posts

Posted 15 March 2013 - 09:29 AM

What are you editing it to be? I would love to make an OS with you sir, I'll make a basic touch screen main OS, I'm still trying to figure out a touch screen login.

#37 LuaEclipser

  • Banned
  • 220 posts
  • LocationCleveland, Ohio

Posted 15 March 2013 - 10:04 AM

cool

#38 Expenox

  • Members
  • 137 posts
  • LocationIn the depths of my computer.

Posted 16 October 2013 - 08:05 PM

I've been away quite a while mostly for summer, but I am now back and feel like a newbie again! Well, I will try to get more programs up ;-; Also, that turtle program is going to be.. delayed I cannot find the code for it so it will be a while.. lol.

#39 Dragon53535

  • Members
  • 973 posts
  • LocationIn the Matrix

Posted 17 October 2013 - 07:11 PM

Wishy washy charlie brown, make a new thread, DONT make a new thread. make up your mind :P

#40 Expenox

  • Members
  • 137 posts
  • LocationIn the depths of my computer.

Posted 17 October 2013 - 07:37 PM

View PostDragon53535, on 17 October 2013 - 07:11 PM, said:

Wishy washy charlie brown, make a new thread, DONT make a new thread. make up your mind :P
Yeah, I should really dig deeper before making a new one huh? Eh, it's plain me being impatient lol.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users