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

rom files

Started by pokl1234567890, 02 August 2017 - 12:34 PM
pokl1234567890 #1
Posted 02 August 2017 - 02:34 PM
Hi, i just want to know if there is any way how to edit file in /rom.
I know i can edit it out of the game but i'm asking for in-game solution.
Every time i tried to save changes in any of file in /rom it wrote me "Access denied". I tried it with fs.open() too ( write and append mode ) but it acts like i didn't call it.

I'm currently using CC 1.33.
Link for bios: https://pastebin.com/q9arGAxr


I'm sorry for my english and hope it makes sense.
KingofGamesYami #2
Posted 02 August 2017 - 04:55 PM
You cannot. ROM stands for Read Only Memory, hence no editing allowed.

You can accomplish (nearly) anything you want without editing the rom though.
Dave-ee Jones #3
Posted 03 August 2017 - 12:44 AM
What you can do is copy a file from the ROM to the "/" root and then edit that file. Then (if it is an API) you can load it into your program using the "os.loadAPI()" method.
pokl1234567890 #4
Posted 03 August 2017 - 01:14 PM
What you can do is copy a file from the ROM to the "/" root and then edit that file. Then (if it is an API) you can load it into your program using the "os.loadAPI()" method.

I want to edit programs like startup (/rom/startup), edit… add some of mines and add apis into /rom/apis because it will load on every computer in the world/server not only one, if it was only for couple of computers, then i would use the way you wrote.
Bomb Bloke #5
Posted 03 August 2017 - 03:08 PM
There isn't an in-game solution for that.
Lupus590 #6
Posted 03 August 2017 - 03:56 PM
You will be wanting to use a resource pack for that, here's a tutorial.
Edited on 03 August 2017 - 02:03 PM