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

How to make a custom computer boot

Started by Custom Boot Maker, 01 May 2012 - 06:18 PM
Custom Boot Maker #1
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 :)/>/>
cant_delete_account #2
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!")
DrEckenbecker #3
Posted 04 May 2012 - 03:10 AM
This probably would go better in the tutorials section.
AnrDaemon #4
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 …
MathManiac #5
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…
Luanub #6
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.
Custom Boot Maker #7
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
Custom Boot Maker #8
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
makerimages #9
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.
HelenB #10
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
KlassifiedKiller #11
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]
robhol #12
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.
oeed #13
Posted 04 March 2013 - 07:18 PM
Code tagz please.
Cranium #14
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.