Moved all the things! Renamed all the things! Broke all the things!

Made most component ROMs into loot disks (except robot for hopefully obvious reasons).
Changed loot disk naming convention (this will break existing loot disks). Closes #1456.
Made all loot disks craftable by cycling through them by crafting one with a wrench (so e.g. craft OpenOS then cycle through).
This commit is contained in:
Florian Nücke 2016-05-27 13:32:12 +02:00
parent 6e271c79d8
commit b50d3872ee
307 changed files with 316 additions and 297 deletions

View File

@ -7,4 +7,4 @@ To add a disk, create a folder and put the files the disk should contain into th
You are invited to submit your own programs as pull requests! The more the merrier :-) You are invited to submit your own programs as pull requests! The more the merrier :-)
For example, say you have a program named "chat.lua". You'd create a folder, say `NetChat` or whatever the program likes to call itself, and put the `chat.lua` file into that folder. You then add the line `NetChat=chat` to the `loot.properties` file. And that's it. Make a pull request and your program is in OpenComputers - unless it fails the arbitrary quality check, of course. Feel free to submit pull requests for fixes to your submitted programs (or of others) at any time! For example, say you have a program named "chat.lua". You'd create a folder, say `netchat` or whatever the program likes to call itself, and put the `chat.lua` file into that folder. You then add the line `netchat=NetChat` to the `loot.properties` file. And that's it. Make a pull request and your program is in OpenComputers - unless it fails the arbitrary quality check, of course. Feel free to submit pull requests for fixes to your submitted programs (or of others) at any time!

View File

@ -1,27 +1,27 @@
local shell = require("shell") local shell = require("shell")
local data = require("data") local data = require("data")
local args = shell.parse(...) local args = shell.parse(...)
if #args == 0 then if #args == 0 then
local read = "" local read = ""
repeat repeat
local current = io.read("*a") local current = io.read("*a")
read = read .. current read = read .. current
until current ~= "" until current ~= ""
io.write(data.toHex(data.md5(read))) io.write(data.toHex(data.md5(read)))
else else
for i = 1, #args do for i = 1, #args do
local read = "" local read = ""
local file, reason = io.open(shell.resolve(args[i])) local file, reason = io.open(shell.resolve(args[i]))
if not file then if not file then
io.stderr:write(tostring(reason) .. "\n") io.stderr:write(tostring(reason) .. "\n")
os.exit(false) os.exit(false)
end end
repeat repeat
local current = file:read("*a") local current = file:read("*a")
read = read .. current read = read .. current
until current ~= "" until current ~= ""
file:close() file:close()
io.write(data.toHex(data.md5(read)) .. "\t".. args[i] .. "\n") io.write(data.toHex(data.md5(read)) .. "\t".. args[i] .. "\n")
end end
end end

View File

@ -5,15 +5,21 @@
# weight 2 is two times as likely to be generated than an item with # weight 2 is two times as likely to be generated than an item with
# weight 1. Weight 0 means it will not spawn at all. # weight 1. Weight 0 means it will not spawn at all.
#The color defaults to gray. It must be a dye's ore-dict name. #The color defaults to gray. It must be a dye's ore-dict name.
Builder=build:1:dyeYellow
MazeGen=maze:1:dyeOrange # General purpose.
Network=network:1:dyeLime network=Network (Network Stack):1:dyeLime
Plan9k=plan9k:1:dyeRed plan9k=Plan9k (Operating System):1:dyeRed
OpenIRC=irc:1:dyeLightBlue irc=OpenIRC (IRC Client):1:dyeLightBlue
OpenLoader=openloader:1:dyeMagenta openloader=OpenLoader (Boot Loader):1:dyeMagenta
OpenOS=openOS:0:dyeGreen openos=OpenOS (Operating System):0:dyeGreen
OPPM=oppm:0:dyeCyan oppm=OPPM (Package Manager):0:dyeCyan
# Higher chance to find the dig program, because it has the most immediate
# use - OpenOS is craftable and IRC can be downloaded once an internet card # Robot utilities.
# is available - which one needs anyway, to use the program... builder=Builder:1:dyeYellow
TheDig=dig:2:dyeBrown dig=Digger:2:dyeBrown
maze=Mazer:1:dyeOrange
# Drivers for components.
data=Data Card Software:0:dyePink
generator=Generator Upgrade Software:0:dyePurple
internet=Internet Card Software:0:dyeBlue

Some files were not shown because too many files have changed in this diff Show More