ComputerCraft Forums

ComputerCraft => Ask a Pro => Topic started by: Cervis Iam on Jul 15, 2020, 04:45 PM

Title: Automatic programming
Post by: Cervis Iam on Jul 15, 2020, 04:45 PM
I would like to create self enlarging structure with computercraft, but the structure will need more computers as it gets bigger, and I'm not exactly keen on running to every placed computer to copy and run needed programs. Is it possible to make turtle copy program to computer and then run it?
Title: Automatic programming
Post by: Lupus590 on Jul 15, 2020, 07:48 PM
Computers will use startup files on disks instead of the ones on their internal drive if they find a disk while starting up. Combine this with being able to copy programs with the FS API and reading config files that are made for that computer, you can have your program change it's behaviour with the config without having to rewrite the whole program each time.