This is a read-only snapshot of the ComputerCraft forums,
taken in April 2020.
[1.4] Extended redpower compability
Started by Xfel, 27 May 2012 - 08:37 AMPosted 27 May 2012 - 10:37 AM
Wouldn't it be nice if you could read/ write floppies from redpower with a computercraft diskdrive? This would enable better communication between RP and CC computers, wouldn't it?
Posted 27 May 2012 - 03:31 PM
The floppies are handled differently in CC and RP. In CC they have a folder with every file you create. In RP they are just a file with all the data you saved.
I don't think this is possible.
I don't think this is possible.
Posted 27 May 2012 - 03:37 PM
Well it could still write on RP2 floppies as a single file - not allowing you to make other files
Would be nice though to get programs to RP2 easier
Would be nice though to get programs to RP2 easier
Posted 27 May 2012 - 06:03 PM
but since they are "readed" by diffrend software/OS I don't thinks that it is possible (easely at least).
Posted 27 May 2012 - 06:39 PM
It's definitely possible. How do you think red power does it? CC could just do it the same way.
I'll look into it - at least as a peripheral.
I'll look into it - at least as a peripheral.
Posted 28 May 2012 - 08:23 AM
Yeah I agree with Cloudy. If RP and do it so can CC!
Posted 28 May 2012 - 09:11 AM
I looked into the rp control decompilation and found out that:
1) Disk informations are saved in an NBT Tag attached to the item stack.
2) It has two properties: "label" and "serno".
3) the disk file is located in <world_dir>/redpower/disk_<serno>.iso
4) Of interest are the methods of the class eloraam.core.DiskLib and the code in eloraam.control.TileDiskDrive.startDisk()
5) This doesn't handle special disk like the boot disk, but I don't think that these need to be accessed.
I would prefer it going into the main mod. The disk drive can already handle data and music disks seperately. Adding a switch for RP floppies would be the most convenient way.
1) Disk informations are saved in an NBT Tag attached to the item stack.
2) It has two properties: "label" and "serno".
3) the disk file is located in <world_dir>/redpower/disk_<serno>.iso
4) Of interest are the methods of the class eloraam.core.DiskLib and the code in eloraam.control.TileDiskDrive.startDisk()
5) This doesn't handle special disk like the boot disk, but I don't think that these need to be accessed.
I would prefer it going into the main mod. The disk drive can already handle data and music disks seperately. Adding a switch for RP floppies would be the most convenient way.
Posted 28 May 2012 - 10:28 AM
if its a NBT tag thingy just provide that as a nbtfile on the disk - people can write their own nbt reader
Posted 28 May 2012 - 12:15 PM
label and serno are stored in nbt, the data is still stored as seperate file.
Posted 29 May 2012 - 08:54 PM
so you would code in forma (how it's called) in a lua computer?
Posted 30 May 2012 - 03:55 PM
RP computers are great to control your factories, but only if they are programmed correctly. And I dislike FORTH and prefer assembler, but writing programs in asm can only be done outside minecraft. not good for servers. But if the assembler could be used from the cc computer…
Posted 30 May 2012 - 04:38 PM
Assembler??
Posted 30 May 2012 - 10:43 PM
We just need to be able to mount a disk as a single file in CC. Everything else can be done in Lua code. No decompilation is required either.
Labels would work using the same API as CC disk labels (but editing the "label" NBT tag on the item instead of whatever CC labels do)
Labels would work using the same API as CC disk labels (but editing the "label" NBT tag on the item instead of whatever CC labels do)
Posted 31 May 2012 - 07:08 PM
Forth is almost an assembler. Most reasons of it's slowness are efforts to keep it lagless and server friendly. Also it keep state through save/load unlike CC.RP computers are great to control your factories, but only if they are programmed correctly. And I dislike FORTH and prefer assembler, but writing programs in asm can only be done outside minecraft. not good for servers. But if the assembler could be used from the cc computer…