10 posts
Posted 01 May 2012 - 08:18 PM
to make a custome computer boot do thes steps
1)edit startup
CODE:
print("Welcome to Firmware Name 0.0.0 made by:Name")
sleep(1)
print("wait while Firmware Name loads")
sleep(1)
print("-")
sleep(1)
print("–")
sleep(1)
print("—")
sleep(1)
print("—-")
sleep(1)
print("System Files Loaded Please Wait 5 Seconds")
sleep(5)
print("Done")
or if you know the command to slow print text then use
This was mt first custome boot Please no bad comments i am just 10 :)/>/>
474 posts
Posted 02 May 2012 - 01:57 AM
This is improved code:
local firmwareName = "FIRMWARE NAME HERE" -- Change whats in the "s to your Firmware name
local name = "yourusername" -- Change whats in the "s to who made the firmware
local version = "0.1" -- Change whats in the "s to the version of the firmware
print("Welcome to "..firmwareName.."..version.." made by: "..name)
sleep(1)
print("Please wait while the firmware loads...")
for ijkl=1,4 do
local loadingBar = {"|","-","--","---","----"}
local x = ijkl+1
sleep(1)
term.clear()
term.setCursorPos(1,1)
print("Welcome to "..firmwareName.."..version.." made by: "..name)
print("Please wait while the firmware loads...")
print(loadingBar[1]..loadingBar[x]..loadingBar[1])
end
print("System files have been loaded... System initializing, please wait about 3 seconds.")
sleep(3)
print("Done loading!")
7 posts
Posted 04 May 2012 - 03:10 AM
This probably would go better in the tutorials section.
10 posts
Posted 04 May 2012 - 04:20 AM
You don't need to do anything of that to make yourself a custom startup script.
Only need to write what you actually want into /startup …
59 posts
Location
Washington, United States
Posted 17 May 2012 - 03:53 AM
print("Restarting...")
sleep(1)
local mousex, mousey = term.getMousePos()
local dashes = "-"
for _ = 1, 5 do
term.setCursorPos(mousex, mousey) -- keeps mouse in place
print(dashes)
dashes = dashes .. "-"
sleep(1)
end
term.clear()
term.setCursorPos(1,1) -- Clears the screen and sets cursor at the top-right
sleep(0.5)
print("Configuring System Files...")
sleep(3)
term.clear()
term.setCursorPos(1,1)
term.reboot() -- reboots the computer
How's this as a re-boot?
hmm… Maybe I should use restart to update files from a disk drive…
1111 posts
Location
Portland OR
Posted 17 May 2012 - 03:59 AM
local mousex, mousey = term.getMousePos()
To bad it won't work since getMousePos() is not a valid function in the term API.
10 posts
Posted 10 June 2012 - 11:51 AM
to make a custome computer boot do thes steps
1)edit startup
CODE:
print("Welcome to Firmware Name 0.0.0 made by:Name")
sleep(1)
print("wait while Firmware Name loads")
sleep(1)
print("-")
sleep(1)
print("–")
sleep(1)
print("—")
sleep(1)
print("—-")
sleep(1)
print("System Files Loaded Please Wait 5 Seconds")
sleep(5)
print("Done")
or if you know the command to slow print text then use
This was mt first custome boot Please no bad comments i am just 10 :)/>/>
Scrap this one is Crap i making a new one
10 posts
Posted 10 June 2012 - 11:52 AM
This is improved code:
local firmwareName = "FIRMWARE NAME HERE" -- Change whats in the "s to your Firmware name
local name = "yourusername" -- Change whats in the "s to who made the firmware
local version = "0.1" -- Change whats in the "s to the version of the firmware
print("Welcome to "..firmwareName.."..version.." made by: "..name)
sleep(1)
print("Please wait while the firmware loads...")
for ijkl=1,4 do
local loadingBar = {"|","-","--","---","----"}
local x = ijkl+1
sleep(1)
term.clear()
term.setCursorPos(1,1)
print("Welcome to "..firmwareName.."..version.." made by: "..name)
print("Please wait while the firmware loads...")
print(loadingBar[1]..loadingBar[x]..loadingBar[1])
end
print("System files have been loaded... System initializing, please wait about 3 seconds.")
sleep(3)
print("Done loading!")
Making a Better One
236 posts
Posted 21 July 2012 - 05:08 PM
a quick tip, add clear as the first line, so you wont get the craftOS v xxx thing.
27 posts
Posted 24 July 2012 - 10:19 PM
The best option is to modify CraftOS and make it your own! I'd like to see that. You wont be able to make firmware using the startup script. Take a look around in ~/.minecraft/mods/ComputerCraft/ and the CraftOS files should be in there somewhere! HAVE FUN! x
1 posts
Posted 27 February 2013 - 02:47 AM
I want a basic program that when a player turns on the computer, a list of my server rules pops up automatically. Can anyone help [programming noob]
175 posts
Posted 01 March 2013 - 01:47 AM
Just going to offer the opinion that adding an artificial time waste is pointless and annoying. If you're consciously wasting the user's time, you're doing something wrong.
2151 posts
Location
Auckland, New Zealand
Posted 04 March 2013 - 07:18 PM
Code tagz please.
3790 posts
Location
Lincoln, Nebraska
Posted 05 March 2013 - 02:28 AM
I want a basic program that when a player turns on the computer, a list of my server rules pops up automatically. Can anyone help [programming noob]
This is unforgivable thread necromancy from a year ago. There is a place for new members such as yourself to post. I suggest reading the stickies more often. LOCKED.