Jump to content


MineRobber___T's Content

There have been 23 items by MineRobber___T (Search limited from 10-February 22)


By content type

See this member's

Sort by                Order  

#272156 magiczockerOS

Posted by MineRobber___T on 22 November 2017 - 08:05 PM in Operating Systems

The calendar has a bug where the day is two days-of-the-week off. (Today, November 22, is a Wednesday, but the calendar says that it's a Friday.)



#271756 [Extremely short] No multishell & TLCO -- Kills multishell, runs normal s...

Posted by MineRobber___T on 11 November 2017 - 08:51 AM in Programs

View PostGeforce Fan, on 22 February 2015 - 11:47 PM, said:

-snip-
CC updates have broken Nevercast's TLCO, AND ElvishJerrico's.
-snip-

Actually, ElvishJerrico's TLCO still works. Just replace:
os.queueEvent('modem_message')
With:
os.queueEvent('modem_message',0)



#269247 Dash - L2drive a manual car!

Posted by MineRobber___T on 26 August 2017 - 01:21 AM in Programs

View PostDave-ee Jones, on 25 August 2017 - 01:12 AM, said:

-snip-
There's just..something..missing..It doesn't feel right..
I KNOW! NO SOUND!! UGHHHHHH! Driving me crazy!
-snip-

I suggest adding a condition where, if speakers are attached, you play a low note (like
speaker.playNote("guitar",100,0)
) continuously. That way, you get the hum of the running car.



#268995 ChenThread Image Format - Quality images on 1.8 ComputerCraft!

Posted by MineRobber___T on 13 August 2017 - 11:40 PM in Programs

The ComputerCraft viewer is failing for me. It says:

"ctif.lua:38:bad argument #1 (number expected, got table)"

I'm using the latest build.



#268575 Should the wiki be updated regarding Turtles?

Posted by MineRobber___T on 26 July 2017 - 06:04 AM in Wiki Discussion

As far as Turtle-related wiki pages are concerned, we're still using TurtleOS. This isn't correct. Someone should fix all the Turtle pages and templates. (i.e; "Additional TurtleOS Shell Programs"->"Additional Shell Programs for Turtles") I would do it myself but I can't figure out how to make an account and get editing permissions.



#268571 pyedit - a Python editor for CC

Posted by MineRobber___T on 26 July 2017 - 01:46 AM in APIs and Utilities

View PostVert3x, on 16 July 2017 - 07:58 PM, said:

I will probably work on a python interpreter (as I have made interpreters for languages like BASIC, shouldn't be too hard). And If I need I could make it run on a disk (it wont take too much space)

Issue is, Python isn't BASIC. (the programming language OR the adjective) There are many things in Python that are special use cases.

With all that Python requires, it would be easier to fork ComputerCraft and recode all Computers to use Python instead of Lua.



#268527 WoolPrint - Print your Pixelart!

Posted by MineRobber___T on 25 July 2017 - 03:42 AM in Turtle Programs

This program is similar to Bomb Bloke's Wool Image Printer but it assigns colors specific slots within the turtle.

To get:

pastebin get QWJVjBDz woolprint.lua

To use: (with Paint image X.nfp)

woolprint X.nfp

The slots are the same as the Paint sidebar. (White->Black, i.e; White in slot 1, Orange in slot 2, etc.)



#268520 Port CC to MC Pocket Edition?

Posted by MineRobber___T on 25 July 2017 - 12:46 AM in General

The issue is, the Behavior Pack system is not a real modding API. All it lets you do is mess with mobs and the like. This is why BlockLauncher hasn't died out yet. ModPE (and BlockLauncher by extension) allow for somewhat real mods, but Javascript probably isn't best for a ComputerCraft-like mod.



#268492 Editable Textfield (Persistent Value)

Posted by MineRobber___T on 24 July 2017 - 04:06 AM in Tutorials

umm... this is unnecessary?

for string data, just do:

local result = read(nil,nil,nil,data)

See the code. (https://github.com/d...a/bios.lua#L286)



#268321 Twitch Plays ComputerCraft

Posted by MineRobber___T on 18 July 2017 - 05:32 AM in General

Could you perhaps open-source your CCEmuX fork with this functionality? I'd love to mess around with a local copy.



#268273 chpal -- Palette changer for ComputerCraft 1.8 and later

Posted by MineRobber___T on 15 July 2017 - 09:49 PM in Programs

Regarding lines 39-45:

Quote

-- oh god why
local imgpath = "/tmpimg"..math.random(1, 9999)
local handle = fs.open(imgpath, "w")
handle.write(imgstr)
handle.close()
local img = paintutils.loadImage(imgpath)
fs.delete(imgpath)

I've submitted a PR to ComputerCraft so that that could be simplified to:

local img = paintutils.loadImage(imgstr,true)

PR here (https://github.com/d...rCraft/pull/378)



#268055 pyedit - a Python editor for CC

Posted by MineRobber___T on 06 July 2017 - 10:59 AM in APIs and Utilities

View PostExerro, on 04 July 2017 - 10:17 PM, said:

Nice, time to write a python interpreter so you can actually use this in CC ;)/>

if you want to go through the trouble of writing a Python interpreter that will probably take up the disk space of 3 or 4 Computers, be my guest. :P



#268050 Quartz OS. True sandboxed users.

Posted by MineRobber___T on 06 July 2017 - 06:05 AM in Operating Systems

View PostSxw, on 23 June 2014 - 09:07 PM, said:

-snip-
Posted Image
Suggestion: use error(msg,0) in your access denied messages. That makes it so that it simply shows "Access denied" instead of "[string "protect"]:43:Access denied"

Also, instead of disallowing read/write on files, simply use CC's inbuilt read-only files feature.

local oldIRO = fs.isReadOnly
function fs.isReadOnly(sPath)
  if isProtected(sPath) then --not sure how you do this
    return true
  end
  return oldIRO(sPath)
end



#268020 [CC1.64+] Wool Image Printer

Posted by MineRobber___T on 05 July 2017 - 02:30 AM in Turtle Programs

View PostAnavrins, on 05 July 2017 - 02:23 AM, said:

Never forget to fuel your turtles beforehand.
I turned fuel off (so it doesn't need fuel)



#268017 [CC1.64+] Wool Image Printer

Posted by MineRobber___T on 05 July 2017 - 01:46 AM in Turtle Programs

When I gave my turtle an image ( http://i.imgur.com/p1Y3HyT.png ) and told it to run, it gave me block totals. I gave it the required blocks, typed "y" at the Proceed prompt, and pressed Enter.

The turtle then just sat there. It didn't move, nothing appeared on the screen.

What have I done wrong? Using latest snapshot of CC.



#267979 pyedit - a Python editor for CC

Posted by MineRobber___T on 03 July 2017 - 02:44 AM in APIs and Utilities

I got bored, so I made this.

Features:
  • Syntax highlighting
  • IDLE-esque color scheme
To get:
pastebin get 8BeE5UKa pyedit

Images:

Posted Image

Posted Image



#267970 CraftOS 1.8 better colors.

Posted by MineRobber___T on 02 July 2017 - 06:10 PM in APIs and Utilities

(off-topic) I wonder how emulators will handle the new palette system when 1.8 is released.



#267819 Printerm API - Use a printer as a terminal!

Posted by MineRobber___T on 25 June 2017 - 11:24 PM in APIs and Utilities

Printerm API

Have you ever wanted to have an easy interface to a printer? (pretend you have)

Is interacting with a printer confusing? (pretend it is)

Do you want to be able to term.redirect to a printer? (pretend you do)

In that case, this API is for you!

Wrapping all functions required of a terminal object, (down to British spellings) and creating an object you can use took a while but it works (to the best of my knowledge, haven't tested fringe cases) as good as I can get it.

Example (with Printerm):

os.loadAPI("printerm")
local paperTerm = printerm.getTerm(...)
local oldTerm = term.redirect(paperTerm)
print("Testing 1,2,3")
paperTerm.endPage()
term.redirect(oldTerm)

Example (without):
local printer = peripheral.wrap(...)
printer.newPage()
printer.write("Testing 1,2,3")
printer.endPage()

The benefits of this API don't become apparent in this example. Let's say you have a program that displays info to a screen. (Lots of info, like the status of all machines in your base.) Using printerm, you get the benefit of auto-word-wrap (print() and write()) as well as the convenience of a printout.

How to get the API (link):
pastebin get GzSunvu9 printerm


Documentation is here.




#267769 Packman - A package management tool

Posted by MineRobber___T on 23 June 2017 - 02:26 AM in Programs

packman is broken in the master branch of ComputerCraft. package.load doesn't exist anymore. Possibly check for the existance of package.load and compensate for not having it (or possibly create it?)



#267763 [SHORT] How to get the latest and greatest in ComputerCraft!

Posted by MineRobber___T on 22 June 2017 - 07:48 PM in Tutorials

Now that ComputerCraft is open source, we have the ability to get in-progress versions of CC built straight from the official repo. However, if you aren't all that tech-literate and wish to get a fresh build, here's how.

CrazedProgrammer has graciously provided an automatic build server for ComputerCraft at http://cc.crzd.me. To get the main build, pick the first option. If you wish to play on later versions (i.e; 1.11.2 and 1.12) pick their respective builds. ("Update to 1.11.2" and "[WIP] Update to 1.12") When you click on the big link, you will get a jar file. Put that jar file into your mods folder, start up Forge, and enjoy!

Note from SquidDev about reporting bugs:

Quote

If you're using Minecraft 1.11.2/1.12 first check it doesn't occur on the 1.10 version and, if not, report it on the specific pull request. So: (Lupus590 has edited this quote for clarity)



#267499 How can I encrypt a string with a MD5 hash?

Posted by MineRobber___T on 09 June 2017 - 11:39 PM in Ask a Pro

View PostSewbacca, on 09 June 2017 - 10:18 PM, said:

View PostKingofGamesYami, on 01 June 2017 - 03:33 PM, said:

1) MD5 is a hashing algorithm, so encryptin with it is impossible
2) MD5, as a hash, is irreversable
3) MD5 is considered insecure and can be broken in under a second.

I suggest you find an encryption algorithm such as AES or stick to sha256.
You said that it can be broen in under a second, but how can it be broken, if the hash is irreversable?

Brute-force attacks.



#267497 CCEmuRedux - ComputerCraft Emulator Redux

Posted by MineRobber___T on 09 June 2017 - 11:06 PM in General

Now that ComputerCraft is open source, will this emulator become open-source?



#267229 The early stages of my Computercraft emulator

Posted by MineRobber___T on 26 May 2017 - 01:13 AM in Media

View PostAdmicos, on 18 May 2017 - 07:33 AM, said:

Pretty late update: I changed the renderer from using TTF fonts to using CC's term_font.png file. So the current rendering is pretty accurate i'd say.

Posted Image

Now I need to do key combinations, but I think that will need seperate files for each keyboard layout unless I can find a way to do it easier.

If I'm not mistaken, you just need to keep track of keydown and keyup events. on a keydown event where a status key (shift,ctrl,alt,etc.) is pressed, set a corresponding bool and when they are released, set the bool to false. If I knew where input was being handled, I could probably submit a PR to do this myself.

EDIT: using a test program, I found the key events for modifier keys:

Control key = 29
Alt key = 56
Shift key = 42

if you queue said events, programs should run without a hitch.