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

What happens when one boots a CC computer?

Started by Lupus590, 23 June 2016 - 08:42 PM
Lupus590 #1
Posted 23 June 2016 - 10:42 PM
So I got curious of what files are run when a ComputerCraft computer is opened, after some digging in the mod zip's lua files, I made this:


http://imgur.com/a/XoTUL

Hopefully, someone will find this useful, or at least interesting.

Edit: redid the image in a proper flowchart program. I still think I've used the syntax wrong. And the forum keeps shrinking my image so that it's not readable.
Edited on 19 September 2016 - 03:00 PM
KingofGamesYami #2
Posted 23 June 2016 - 10:49 PM
Very interesting, maybe add in things for non-advanced and command computers?
Lupus590 #3
Posted 23 June 2016 - 11:21 PM
Very interesting, maybe add in things for non-advanced and command computers?

It'll be just the same, with the path and loaded APIs being different
Edited on 23 June 2016 - 09:24 PM
Bomb Bloke #4
Posted 24 June 2016 - 01:41 AM
Looks to me like the first disk found with a startup file gets used, but none of the others do. There's no loop around the shell.run() call.

You may also consider adding in rednet.run(), and perhaps noting which settings get loaded and when.
Selim #5
Posted 24 June 2016 - 08:29 PM
I just would like to point out the typo in the title. "What heppens when…" -> "What happens when…"
Edited on 24 June 2016 - 06:30 PM
PossieTV #6
Posted 26 June 2016 - 06:35 AM
Wait, so theoretically, could one change the bios.lua to make regular computers the same as advanced computers? Or is there something in the java code that says that non-advanced computers can't have color.
Edited on 26 June 2016 - 04:36 AM
Bomb Bloke #7
Posted 26 June 2016 - 06:45 AM
bios.lua doesn't decide whether the system is advanced or not; it merely checks.
Lupus590 #8
Posted 23 August 2016 - 02:27 PM
OP Edit: redid image, now has more detail and should be clearer on file separation and location
Bomb Bloke #9
Posted 24 August 2016 - 03:21 AM
That's much better. Good job! :)/>

One minor point (which only really matters outside of the boot process) - the shell script only calls rom/startup if it's the "parent shell". The first shell instance launched by multishell / bios.lua (during boot) counts as such and therefore does, and all instances started after that are children of that parent and therefore don't.
Lupus590 #10
Posted 24 August 2016 - 03:51 AM
Fixed
Edited on 24 August 2016 - 02:00 AM
TheRockettek #11
Posted 24 August 2016 - 09:05 AM
Wait, so theoretically, could one change the bios.lua to make regular computers the same as advanced computers?

Its like saying irl:

":P/> i set my wam to 64gb even though i only have 4gb"

(Yo.o)Y tis not possibles
Sewbacca #12
Posted 19 September 2016 - 04:38 PM
I have three questions:
First:
KingofGamesYami and Lupus590 did such structures seeing similar. WHICH PROGRAM DO YOU USE???
and my second question is:
I thought that the disk startup can be blocked through the .settings data.
Last but not the least:
Runs just the multishell parallel with the rednet and not the normal shell (if it isn't an advanced computer) or apply the text also for the second option?
Lupus590 #13
Posted 19 September 2016 - 04:58 PM
I have three questions:
First:
KingofGamesYami and Lupus590 did such structures seeing similar. WHICH PROGRAM DO YOU USE???
and my second question is:
I thought that the disk startup can be blocked through the .settings data.
Last but not the least:
Runs just the multishell parallel with the rednet and not the normal shell (if it isn't an advanced computer) or apply the text also for the second option?
  1. https://sourceforge.net/projects/dia-installer/
  2. good point, I will check and add
  3. clarified in image now
Sewbacca #14
Posted 27 September 2016 - 10:48 AM
I have three questions:
First:
KingofGamesYami and Lupus590 did such structures seeing similar. WHICH PROGRAM DO YOU USE???
and my second question is:
I thought that the disk startup can be blocked through the .settings data.
Last but not the least:
Runs just the multishell parallel with the rednet and not the normal shell (if it isn't an advanced computer) or apply the text also for the second option?
  1. https://sourceforge..../dia-installer/
  2. good point, I will check and add
  3. clarified in image now
Thank you, also for the program =).
By the way, your diagram is awesome.
Sewbacca