mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-14 17:56:34 -04:00
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:
parent
6e271c79d8
commit
b50d3872ee
@ -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 :-)
|
||||
|
||||
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!
|
||||
|
@ -1,27 +1,27 @@
|
||||
local shell = require("shell")
|
||||
local data = require("data")
|
||||
|
||||
local args = shell.parse(...)
|
||||
if #args == 0 then
|
||||
local read = ""
|
||||
repeat
|
||||
local current = io.read("*a")
|
||||
read = read .. current
|
||||
until current ~= ""
|
||||
io.write(data.toHex(data.md5(read)))
|
||||
else
|
||||
for i = 1, #args do
|
||||
local read = ""
|
||||
local file, reason = io.open(shell.resolve(args[i]))
|
||||
if not file then
|
||||
io.stderr:write(tostring(reason) .. "\n")
|
||||
os.exit(false)
|
||||
end
|
||||
repeat
|
||||
local current = file:read("*a")
|
||||
read = read .. current
|
||||
until current ~= ""
|
||||
file:close()
|
||||
io.write(data.toHex(data.md5(read)) .. "\t".. args[i] .. "\n")
|
||||
end
|
||||
end
|
||||
local shell = require("shell")
|
||||
local data = require("data")
|
||||
|
||||
local args = shell.parse(...)
|
||||
if #args == 0 then
|
||||
local read = ""
|
||||
repeat
|
||||
local current = io.read("*a")
|
||||
read = read .. current
|
||||
until current ~= ""
|
||||
io.write(data.toHex(data.md5(read)))
|
||||
else
|
||||
for i = 1, #args do
|
||||
local read = ""
|
||||
local file, reason = io.open(shell.resolve(args[i]))
|
||||
if not file then
|
||||
io.stderr:write(tostring(reason) .. "\n")
|
||||
os.exit(false)
|
||||
end
|
||||
repeat
|
||||
local current = file:read("*a")
|
||||
read = read .. current
|
||||
until current ~= ""
|
||||
file:close()
|
||||
io.write(data.toHex(data.md5(read)) .. "\t".. args[i] .. "\n")
|
||||
end
|
||||
end
|
@ -5,15 +5,21 @@
|
||||
# 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.
|
||||
#The color defaults to gray. It must be a dye's ore-dict name.
|
||||
Builder=build:1:dyeYellow
|
||||
MazeGen=maze:1:dyeOrange
|
||||
Network=network:1:dyeLime
|
||||
Plan9k=plan9k:1:dyeRed
|
||||
OpenIRC=irc:1:dyeLightBlue
|
||||
OpenLoader=openloader:1:dyeMagenta
|
||||
OpenOS=openOS:0:dyeGreen
|
||||
OPPM=oppm: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
|
||||
# is available - which one needs anyway, to use the program...
|
||||
TheDig=dig:2:dyeBrown
|
||||
|
||||
# General purpose.
|
||||
network=Network (Network Stack):1:dyeLime
|
||||
plan9k=Plan9k (Operating System):1:dyeRed
|
||||
irc=OpenIRC (IRC Client):1:dyeLightBlue
|
||||
openloader=OpenLoader (Boot Loader):1:dyeMagenta
|
||||
openos=OpenOS (Operating System):0:dyeGreen
|
||||
oppm=OPPM (Package Manager):0:dyeCyan
|
||||
|
||||
# Robot utilities.
|
||||
builder=Builder:1:dyeYellow
|
||||
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
Loading…
x
Reference in New Issue
Block a user