2427 posts
Location
UK
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/XoTULHopefully, 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
3057 posts
Location
United States of America
Posted 23 June 2016 - 10:49 PM
Very interesting, maybe add in things for non-advanced and command computers?
2427 posts
Location
UK
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
7083 posts
Location
Tasmania (AU)
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.
196 posts
Location
Hiding in Online Storage
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
67 posts
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
7083 posts
Location
Tasmania (AU)
Posted 26 June 2016 - 06:45 AM
bios.lua doesn't decide whether the system is advanced or not; it merely checks.
2427 posts
Location
UK
Posted 23 August 2016 - 02:27 PM
OP Edit: redid image, now has more detail and should be clearer on file separation and location
7083 posts
Location
Tasmania (AU)
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.
2427 posts
Location
UK
Posted 24 August 2016 - 03:51 AM
Fixed
Edited on 24 August 2016 - 02:00 AM
726 posts
Location
Rem is best girl
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
463 posts
Location
Star Wars
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?
2427 posts
Location
UK
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?
- https://sourceforge.net/projects/dia-installer/
- good point, I will check and add
- clarified in image now
463 posts
Location
Star Wars
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?
- https://sourceforge..../dia-installer/
- good point, I will check and add
- clarified in image now
Thank you, also for the program =).
By the way, your diagram is awesome.
Sewbacca