This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
qmarchi's profile picture

[OS] InfoOS

Started by qmarchi, 01 September 2012 - 08:52 AM
qmarchi #1
Posted 01 September 2012 - 10:52 AM
Whoo hoo! First post. Anyways… to what you came here for.

InfoOS
What this OS if going to do is (guess!) Give out info! This would mainly be for SMP servers and public Maps.

I was going to write these just for myself but I feel like being nice today. Also, I should warn you, I'm a newb when it comes to LUA. I try my best to make it error free the first time around but that never happens. But back on topic.

There will be between 2-4 Flavors. One will be like a kiosk like then the other's I could get other OS's and mesh the two. All with prior permission.

I'm currently done with the Kiosk version. There will be a simple 123 answer: Info, More info, and Login. If needed I can add more. The lines of text for info and more info will be easily configurable. I'll even do ASCII art for PM's if you want a really personalized verson for your Server/Map.

Also I've notice people putting them on Paste bin and Mediafire. I'll stick to paste bin so I can prove no viruses. :)/>/>

More info: the login will drop to craftOS until I mesh with other OSs. Also the Default username is going to be "administrator", and password, "pass2048".

Download: http://pastebin.com/vFwPXVPU

Just copy and paste into your world/computer/(computerID)/startup file.
Leonardoas111 #2
Posted 02 September 2012 - 04:23 PM
Interesting…
But I don't understand how this could be useful on a server…

Could you please give out more info?
BigSHinyToys #3
Posted 02 September 2012 - 04:39 PM
there are a few bugs
line 7 I think you want is to show the name
so you should use.

print("Welcome to "..name)
line 39 should have read("*") so it doesn't show the password as it is typed.

line 102 there is no exit() function. it only exists in the lua program so you have a way out of it. how else would you exit lua console.

a program will end when it has run out of lines to execute. just remove exit() it will be fine.

and a tip you could make a function for the . sleep . sleep . sleep section example


local function dots()
    for i = 1,4 do
	    write(".")
	    sleep(1)
    end
end
dots()