- Birthday August 21
TX, United States
Recent Profile Visitors
1315 profile views
To be removed
Gangsir replied to crafter123's question in MiscellaneousDoor yes, chest no. The 3D printer is capable of printing basic blocks and shapes, and it's possible to have the block change shape when right clicked, so the door would be possible, but the chest wouldn't work, since prints can't have an inventory.
what this message mean?
Gangsir replied to nb07890123's question in MiscellaneousYeah, this is a pretty rare issue. Not being able to load Eris libraries doesn't usually happen without something not working correctly.
Load "require" from another file
Gangsir replied to reteyez's question in ProgrammingSimple. Just require the library as usual, ex local lib = require("myLib") Then, use os.execute to run another program, and pass the library variable,(lib), to the executing script, like so: local lib = require("myLib") os.execute("otherprogram.lua lib") Of course, you will need to receive and reassign the variable in the executed program. Plus, this only works on the same computer, (ie, both programs on same computer), and the first program will suspend until the program inside os.execute yields. As a side note, why do this? Why not just put require in each of the programs?
Don't like Lua
Gangsir replied to Bananasrawesome's question in RequestsThe mod only supports lua, unfortunately.
I believe that plan9k (The alternative OS built into OC) is meant to be similar to a Unix-like system. That's really the closest thing to linux that OC has. Of course, re-making linux into a MC mod would require the conversion of C/assembly (The programming language most of the linux kernel is written in) into java so it can execute natively. (Or make ingame computers understand those languages, but then you're running an OS inside of an OS inside of a game inside of an OS. Yo Dawg) Plus you'd likely only be able to include a terminal anyway, as any sort of desktop environment (Even someth
I dont think it's actually possible to do this in minecraft, as it would require a full blown virtualisation client built into minecraft. Even if it was something light like linux it would still lag.
Updated API / Documentation
Gangsir replied to CrazyCode's question in MiscellaneousNot really, that's the official wiki. I do believe one can sign up to make edits, though.
Questions about : IDE | Project management | Libraries
Gangsir replied to takaqod's question in MiscellaneousI myself use Atom, a text editor for linux. It also has ports for other operating systems. It has code completion, auto indent, and can interface with VCS like github. You will need to install a plugin for it to handle lua, however. The way I do it, and I recommend it be done, is to just keep one repository for all OC programs, then subdivide it into folders if a project has more that one file. Making individual repos for each program is inefficient unless the project is huge with many files. The way require works is that it looks at your system path on the computer for pl
GFT | Simple Intra-network file transferDo you have a wireless or wired network card installed in both computers? Ensure you do.
GFT | Simple Intra-network file transfer!ereh Risgang I've written a simple program for transferring a medium sized text file (Less than about 8000 characters, roughly a small essay) over an OC network, wired or wirelessly. I've named it GFT, or "Gift", short for Gangsir File Transfer. This program is actually two small sub-programs, one for receiving and one for sending. To differentiate between them, the first argument changes the function of the program. Then, the second argument tells the file to operate on, for sending or receiving to. (To generate on receive.) Syntax is as follows: gft <send/receive> <"/path
OC hologram projector compatibility with computercraft
Gangsir replied to FHSgames990's question in ProgrammingTake a look at the wiki entry for it here: http://ocdoc.cil.li/component:hologram
1. Much of the info of apis is found on the wiki, plus after a while of doing it you'll likely find that you'll start to memorise what functions are available and their uses. As for testing, I realise that different people have different coding skills, and need to test more often, which after a while with lua I find myself doing less and less. However, it is much more efficient to use the wiki to write up a full rough draft of the program then just fix problems on the robot with the draft. Trust me, you'll find you can write stuff much faster and understand it better if you develop outside of
The way it's meant to work is that one would dev the program on a proper computer with a good screen, or out of game, then transfer the program to the robot. The reason robots don't have fancy screens is that there's no need for them, since robot's guis aren't often entered.
Robot stops moving
Gangsir replied to Zyme's question in MiscellaneousIt's unable to move, since robots can't freely fly be default, unlike ComputerCraft's turtles. You need a tier 1 or 2 hover upgrade installed in the robot so it can move with no supporting blocks.
Digging program that doesn't suck?If you need a robot to be able to float in the air, you need to install a hover upgrade in the robot, tier 1 or 2 depending on depth of the hole. I believe that the existing dig program provided on the loot floppy will resume where it left off if shut down, as long as it is started next to the chest.