SHOW:
|
|
- or go back to the newest paste.
| 1 | - | --v2.0 by GraySloth 2013-Apr-30 For the miscperipherals mod with the Thaum Scanner Upgrade, based off of Direwolf20 video. |
| 1 | + | t=peripheral.wrap("right")
|
| 2 | - | --New aspect reference guide just type thaum list |
| 2 | + | x = t.getAspects() |
| 3 | - | --works well with this program http://pastebin.com/yigYBdad to startup on a monitor just edit the clock argument to thaum |
| 3 | + | aspectNumbers = {
|
| 4 | - | local tArgs = {...};
|
| 4 | + | "Aer", |
| 5 | - | local aspectNumbers = {};
|
| 5 | + | "Alienis", |
| 6 | - | local box = nil; |
| 6 | + | "Animus", |
| 7 | - | local song = nil; |
| 7 | + | "Aqua", |
| 8 | - | local action = 'mainList'; |
| 8 | + | "Aura", |
| 9 | - | local maxtoshow = 12; |
| 9 | + | "Bestia", |
| 10 | - | local startat = 1; |
| 10 | + | "Bestiola", |
| 11 | - | local sPath = shell.resolve( "aspectFile" ) |
| 11 | + | "Carus", |
| 12 | - | local tLines = {}
|
| 12 | + | "Cognitio", |
| 13 | - | |
| 13 | + | "Corpus", |
| 14 | - | function clear() |
| 14 | + | "Fabrico", |
| 15 | - | term.clear() |
| 15 | + | "Flos", |
| 16 | - | term.setCursorPos(1,1) |
| 16 | + | "Fractus", |
| 17 | "Fungus", | |
| 18 | - | |
| 18 | + | "Gelum", |
| 19 | - | |
| 19 | + | "Herba", |
| 20 | - | |
| 20 | + | "Ignis", |
| 21 | - | if tArgs[1] == nil then |
| 21 | + | "Imperito", |
| 22 | - | local tSide = nil |
| 22 | + | "Instrumentum", |
| 23 | - | for n,sthaumScannerSide in ipairs(rs.getSides()) do |
| 23 | + | "Lignum", |
| 24 | - | if peripheral.isPresent(sthaumScannerSide) and peripheral.getType(sthaumScannerSide) == "thaumScanner" then |
| 24 | + | "Lux", |
| 25 | - | tSide = sthaumScannerSide |
| 25 | + | "Machina", |
| 26 | - | break |
| 26 | + | "Malum", |
| 27 | - | end |
| 27 | + | "Messis", |
| 28 | - | end |
| 28 | + | "Metallum", |
| 29 | - | |
| 29 | + | "Mortuus", |
| 30 | - | |
| 30 | + | "Motus", |
| 31 | - | if not tSide then |
| 31 | + | "Mutatio", |
| 32 | - | print( "No thaumScanner attached" ) |
| 32 | + | "Obscurus", |
| 33 | - | return |
| 33 | + | "Pannus", |
| 34 | - | end |
| 34 | + | "Permutatio", |
| 35 | - | |
| 35 | + | "Potentia", |
| 36 | - | |
| 36 | + | "Praecantatio", |
| 37 | - | thaumScanner = peripheral.wrap("right")
|
| 37 | + | "Purus", |
| 38 | - | |
| 38 | + | "Sano", |
| 39 | - | while true do |
| 39 | + | "Saxum", |
| 40 | - | clear() |
| 40 | + | "Solum", |
| 41 | - | for i, j in pairs(thaumScanner.getAspects()) do |
| 41 | + | "Sonus", |
| 42 | - | print(i..":"..j) |
| 42 | + | "Telum", |
| 43 | - | end |
| 43 | + | "Tempus", |
| 44 | - | os.sleep(1) |
| 44 | + | "Tenebris", |
| 45 | "Tutamen", | |
| 46 | - | |
| 46 | + | "Vacuos", |
| 47 | - | elseif tArgs[1] == "list" or "print" or "printall" then |
| 47 | + | "Venenum", |
| 48 | - | local function load(_sPath) |
| 48 | + | "Victus", |
| 49 | - | tLines = {}
|
| 49 | + | "Vinculum", |
| 50 | - | if fs.exists( _sPath ) then |
| 50 | + | "Visum", |
| 51 | - | local file = io.open( _sPath, "r" ) |
| 51 | + | "Vitreus","Volito"} |
| 52 | - | local sLine = file:read() |
| 52 | + | while true do |
| 53 | - | while sLine do |
| 53 | + | term.clear() |
| 54 | - | table.insert( tLines, sLine ) |
| 54 | + | y=1 |
| 55 | - | sLine = file:read() |
| 55 | + | all=0 |
| 56 | - | end |
| 56 | + | while aspectNumbers[y]~=nil do |
| 57 | - | file:close() |
| 57 | + | if x[aspectNumbers[y]]~=nil then |
| 58 | - | end |
| 58 | + | print(aspectNumbers[y]..":"..x[aspectNumbers[y]]) |
| 59 | - | |
| 59 | + | all=all+x[aspectNumbers[y]] |
| 60 | - | if #tLines == 0 then |
| 60 | + | |
| 61 | - | table.insert( tLines, "" ) |
| 61 | + | y=y+1 |
| 62 | - | end |
| 62 | + | |
| 63 | print("All:"..tostring(all))
| |
| 64 | - | |
| 64 | + | sleep(1) |
| 65 | - | local aspectNumbers = {"Aer","Alienis","Animus","Aqua","Aura","Bestia","Bestiola","Carus","Cognitio","Corpus","Fabrico","Flos","Fractus","Fungus","Gelum","Herba","Ignis","Imperito","Instrumentum","Lignum","Lux","Machina","Malum","Messis","Metallum","Mortuus","Motus","Mutatio","Obscurus","Pannus","Permutatio","Potentia","Praecantatio","Purus","Sano","Saxum","Solum","Sonus","Telum","Tempus","Tenebris","Tutamen","Vacuos","Venenum","Victus","Vinculum","Visum","Vitreus","Volito"}
|
| 65 | + |