Jump to content




Expenox's Programs


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

#1 Expenox

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

Posted 28 October 2012 - 10:04 PM

Posted Image Posted Image





Here I will post all the programs I will make.

Thank you MechaTallon for helping me.
Thank you Dragon53535 for being epic.

Hateful comments will be ignored.

I've just came back from a long summer of laying back, and sadly losing some Lua knowledge, but I'm almost sure i'll get it all back!

If you would like up-to-date programs go to my GitHub! (I will always update the pastebin links, but it won't be instant!)

Also, if i've made a mistake with one of the links or something, please let me know! I want this to be a very clean forum and also very nice looking/working. Give me feedback on how my programs are, and always if you want to give me ideas! I'm not the greatest coder, but I enjoy what I do! :D
GitHub (Live Updates)


Expenox's Lock Code
Spoiler

>> Download <<
(pastebin get Td4KRY4e)
Pastebin

ExpeCraft
(Work in progress + Recoded)
Spoiler

>> Download <<
(pastebin get C4pytvNS startup) - Advanced Computer
(pastebin get w0MS3v12 startup) - Normal Computer
Pastebin (Advanced Computer)
Pastebin (Normal Computer)

Expenox's Quarry Management (With help of Dragon53535)
(Work In Progress)
Spoiler

>> Download <<
(pastebin get pJhTrRZ1)
Pastebin

Edited by Expenox, 10 November 2013 - 11:46 PM.


#2 tom2018

  • Members
  • 135 posts

Posted 28 October 2012 - 10:21 PM

change the read to read("*") and it will star out the entered characters
also ad os.pullEvent = os.pullEventRaw to prevent ctrl + t

#3 casr144

  • Members
  • 58 posts

Posted 28 October 2012 - 10:22 PM

Cool. Basic but cool.

#4 casr144

  • Members
  • 58 posts

Posted 28 October 2012 - 10:24 PM

There is the problem of people terminating the program, though. You can prevent this by typing: "os.pullEvent = os.pullEventRaw" at the start of the program.

#5 Expenox

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

Posted 28 October 2012 - 10:46 PM

Thanks guys. :D/>

#6 PixelToast

  • Signature Abuser
  • 2,265 posts
  • Location3232235883

Posted 29 October 2012 - 01:13 AM

i made a text box that might help :3
Spoiler
it also works for turtles and monitors :3

#7 Skullblade

  • Members
  • 470 posts
  • LocationThe Big Apple, NY

Posted 29 October 2012 - 01:19 AM

Not to be mean or anything but there are already WAY too many lock programs on the tutorial already and none of them are really all that different so as to saving space on the forum please (this goes to every1) don't post programs that are already here. Especially door locks...i mean there are only so many ways you can make a wheel and this isn't something new.

#8 PixelToast

  • Signature Abuser
  • 2,265 posts
  • Location3232235883

Posted 29 October 2012 - 01:30 AM

View PostSkullblade, on 29 October 2012 - 01:19 AM, said:

Not to be mean or anything but there are already WAY too many lock programs on the tutorial already and none of them are really all that different so as to saving space on the forum please (this goes to every1) don't post programs that are already here. Especially door locks...i mean there are only so many ways you can make a wheel and this isn't something new.
there is a near infinite space on the forums, just let these types of posts get buried due to lack of bumps

#9 Skullblade

  • Members
  • 470 posts
  • LocationThe Big Apple, NY

Posted 29 October 2012 - 01:43 AM

What i meant by 'space' was more just GUI space and not having tons of the same program clutter the forums

#10 Expenox

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

Posted 29 October 2012 - 05:24 AM

First off before you start complaining read the title "expenox's programs" there will be more then this.
And I'm quite happy with my lock code I can look back on it and be happy I made it,
And didn't copy and paste it.

#11 Expenox

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

Posted 29 October 2012 - 05:27 AM

View PostPixelToast, on 29 October 2012 - 01:13 AM, said:

i made a text box that might help :3
Spoiler
it also works for turtles and monitors :3
Awesome!

#12 Heracles421

  • Members
  • 258 posts

Posted 29 October 2012 - 05:51 AM

View PostSkullblade, on 29 October 2012 - 01:19 AM, said:

Not to be mean or anything but there are already WAY too many lock programs on the tutorial already and none of them are really all that different so as to saving space on the forum please (this goes to every1) don't post programs that are already here. Especially door locks...i mean there are only so many ways you can make a wheel and this isn't something new.
Ok, this might be yet another door lock, but tell me, you felt happy with the first program you ever made? Well, this guy does, just let it be

#13 Expenox

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

Posted 20 November 2012 - 10:36 AM

Sorry for no posts in a while! I've been trying to make my house computer controlled! :3
Will post some more programs soon!

#14 Expenox

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

Posted 16 December 2012 - 10:17 AM

Updated!
:D

#15 Expenox

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

Posted 16 December 2012 - 10:55 AM

View PostMechaTallon, on 16 December 2012 - 10:35 AM, said:

Can you please include the pastebin code in the post itself so we can just download it to our computers without clicking a link? Thanks! :) And good luck to your programs.

I want some color to the login system! :D
Ah, yes. Sorry for not doing that, and I will get working on the color for the login system, it was in my plans for it, but didnt have the time. Now I do! :D
+ Can now download from your computer in-game. :)

#16 Expenox

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

Posted 16 December 2012 - 11:11 AM

View PostMechaTallon, on 16 December 2012 - 11:07 AM, said:

xD Awesome!

:D also, in the login system, can you make it store the password information in a file?
And encode it in byte code?

string.byte - Encode
string.char - Decode

:3 thanks
I have never done that before, but sure I'll try :D

#17 Expenox

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

Posted 16 December 2012 - 11:43 AM

View PostMechaTallon, on 16 December 2012 - 11:27 AM, said:

:D awesome!
^-^ It'll be awesome looking if it has colors and encoding!
Lol i've been working on the file part for the last 20 minutes and haven't tested yet hope it works. =~=

#18 Expenox

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

Posted 16 December 2012 - 11:51 AM

View PostMechaTallon, on 16 December 2012 - 11:46 AM, said:

:3 the file part shouldn't be VERY complex.

If it doesn't work I'll give you some code. :P
Ran into some problems..
Spoiler


#19 Expenox

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

Posted 16 December 2012 - 12:31 PM

View PostMechaTallon, on 16 December 2012 - 12:23 PM, said:

Fixed, at least I think so.

term.clear()
term.setCursorPos(1,1)
local sFile = "pass.txt"
local sPass = ""
if fs.exists(sFile) then
ak = fs.open(sFile, "r")
sPass = ak:readAll()
ak:close()
else
print("Set your password: ")
	local sInput = read()
	if sInput ~= "" then
		print("Your password is " .. sInput .. "!")
		sPass = sInput
		hWrite = io.open(sFile, "w")
		hWrite.write(sPass)
		hWrite.close()
	 end
end
term.clear()
term.setCursorPos(1,1)
print("Welcome to Expocraft v1.0 by Expenox")
sleep(1)
term.write("Login: ")
local input = read("*")
input = string.lower(input)
if input == sPass then
print("Correct password!")
textutils.slowPrint("Getting account info...")
sleep(2)
term.clear()
term.setCursorPos(1,1)
print("ExpoCraft v1.0")
else
textutils.slowPrint("Wrong password!")
sleep(2)
os.reboot()
end
After set password
io:68; index expected, got nil
So basicly after that it just saves the pass as it is "" and asks for the pass next time.

#20 Expenox

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

Posted 16 December 2012 - 12:38 PM

Well I tried. =~= Not that advanced yet, so I can see why mine didn't work.
Sorry about that, but I will add those colors soon. :P
Working on my turtle Lumberjack right now.
And i'm stuck. I got to turtle.compare then just forgot what I was going to do.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users