Loading...
Beta Modpages Unclaimed

rpcDrive

RedPower 2 - ComputerCraft disk drive compatibility add-on.

0 Likes
52 Downloads
Created by asiekierka

Description

In the 1980s, it wasn't at all uncommon to see software development houses use a more powerful computer to create and debug software for a less powerful machine. In this spirit, rpcDrive is a mod for Minecraft which adds cross-mod compatibility between RedPower 2's Disk Drives and ComputerCraft's Computers, allowing using Lua scripts to read data from and write data to RedPower 2's 65EL02-based computer ecosystem.

In addition, the mod comes with a built-in (automatically installed) utility called rpc/drive, which allows performing basic read, write and copy operations on RP2 floppies.


ComputerCraft API Documentation


RP2 Disk Drives are registered as peripherals of type rp_drive. It is important to note that Floppy Disks from that mod are operated on in terms of 128-byte sectors; the rp_drive peripheral provides an internal 128-byte buffer, from which sectors are read from and written to.

Indexes and sector counts are provided 1-indexed, as is the case across Lua.

Name Arguments Description
isPresent - Returns true if a floppy disk is present.
hasData - Returns true if a floppy disk contains data.
isReadable - Returns true if the inserted floppy disk can be read from.
isWritable - Returns true if the inserted floppy disk can be read from.
getSerialNumber => string Returns the floppy disk's internal identifier (its "serial number") in the form of a string.
getLabel => string Gets the floppy disk's displayable label.
setLabel newLabel (string) Sets the floppy disk's displayable label.
getBytesPerSector => number Returns the number of bytes in a sector; typically 128.
getSectorCount => number Returns the number of sectors currently written to the inserted floppy.
getSectorSize => number Returns the number of total sectors on the inserted floppy, including ones which have never been written to.
readSector sectorIndex (number) Read a sector from the disk to the internal buffer.
writeSector sectorIndex (number) Write a sector from the internal buffer to the disk.
erase - Erase the floppy disk's contents.
initialize - Initialize an empty floppy disk; this gives it a new serial number. Note that writing a sector to an empty floppy disk initializes it automatically.
getBufferByte index (number) Read a byte from the internal buffer.
setBufferByte index (number), value (number) Write a byte to the internal buffer.
 


AD Become Premium to remove Ads!

What means Verified?

  • Compatibility: The mod should be compatible with the latest version of Minecraft and be clearly labeled with its supported versions.
  • Functionality: The mod should work as advertised and not cause any game-breaking bugs or crashes.
  • Security: The mod should not contain any malicious code or attempts to steal personal information.
  • Performance: The mod should not cause a significant decrease in the game's performance, such as by causing lag or reducing frame rates.
  • Originality: The mod should be original and not a copy of someone else's work.
  • Up-to-date: The mod should be regularly updated to fix bugs, improve performance, and maintain compatibility with the latest version of Minecraft.
  • Support: The mod should have an active developer who provides support and troubleshooting assistance to users.
  • License: The mod should be released under a clear and open source license that allows others to use, modify, and redistribute the code.
  • Documentation: The mod should come with clear and detailed documentation on how to install and use it.

AD Become Premium to remove Ads!

How to Install

1

Download Forge & Java

Download Forge from the offical Site or here. If you dont have Java installed then install it now from here. After Downloading Forge you can run the file with Java.

2

Prepare

Lounch Minecraft and select your Forge istallation as Version this will create a Folder called Mods.

3

Add Mods

Type Win+R and type %appdata% and open the .minecraft Folder. There will you find your Folder called Mods. Place all Mods you want to play in this Folder

4

Enjoy

You are now Ready. Re-start your Game and start Playing.

More Mods like this

Mystical Agradditions

Adds tier 6 crops, Tinkers' support, Paxels and more to Mystical Agriculture!

Reborn Storage

Refined Storage add-on adding multi-block crafters and larger disks

Ex Compressum

Ex Nihilo Addon. Attempts to reduce grind by adding pre-automation tools like compressed hammers.