Jump to content
  • Sky
  • Blueberry
  • Slate
  • Blackcurrant
  • Watermelon
  • Strawberry
  • Orange
  • Banana
  • Apple
  • Emerald
  • Chocolate
  • Charcoal

Gangsir

Members
  • Content Count

    71
  • Joined

  • Last visited

  • Days Won

    8

Gangsir last won the day on July 16 2016

Gangsir had the most liked content!

1 Follower

About Gangsir

  • Rank
    Junior Member
  • Birthday August 21

Profile Information

  • Gender
    Male
  • Location
    TX, United States

Recent Profile Visitors

848 profile views
  1. Door 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.
  2. Yeah, this is a pretty rare issue. Not being able to load Eris libraries doesn't usually happen without something not working correctly.
  3. Simple. 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?
  4. The mod only supports lua, unfortunately.
  5. Gangsir

    .iso files

    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 something known to be light like XFCE) would be a bit too much for minecraft to run effectively. That's still a lot of code to convert, plus in the end you'd end up with another computer mod, this time java/C/assembly based. I feel like Lua or perhaps Python is still the best language for a mod like this to use. Anyway, that's my $0.02. Source: Linux hobbyist
  6. Gangsir

    .iso files

    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.
  7. Not really, that's the official wiki. I do believe one can sign up to make edits, though.
  8. I 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 places to look for files. For libraries, this will be /lib or /usr/lib. It looks for programs in /bin or /usr/bin or just /, etc. If you need to have different versions of libraries, they must simply be named differently, then in the program, referenced correctly.
  9. Do you have a wireless or wired network card installed in both computers? Ensure you do.
  10. !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/to/file.txt"> This program copies the file being sent, so don't worry about losing the original copy. And yes, this program is small enough to send itself. (Don't know why you would, since you need this program on the receiving end anyway.) I wouldn't recommend using gft to send the file that gft is running off of, since I have not tested what happens. Uses port 20 by default, the default port for FTP in real life. Requirements for program: -Tier 1 everything -Network card -Connection between sender and receiver, if wired How to get the program: The program can be found at my github like always: https://github.com/NoahNMorton/Gangsir_MC_LuaPrograms/blob/master/OpenComputers/GangsirsSimpleFileTransfer.lua Or can be wgetted with an internet card: wget https://raw.githubusercontent.com/NoahNMorton/Gangsir_MC_LuaPrograms/master/OpenComputers/GangsirsSimpleFileTransfer.lua gft.lua Thanks for reading, and as always, let me know if you have any feedback.
  11. Take a look at the wiki entry for it here: http://ocdoc.cil.li/component:hologram
  12. 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 game in a text editor, which has a much higher resolution and makes it much easier to edit and see mistakes. Additionally, there are features to using a good text editor, such as code completion so it's not needed to type each individual thing out, automatic indentation, etc. The bulk majority of my programs were written outside of game, then bugfixed. I personally recommend notepad++ for windows. As a Linux user, I would recommend Atom, gedit or vim/emacs. If you don't know the whole scope of your project all at once, then just write individual small tests, then piece them together. 2. Different people use OC for different reasons, and some people find development as fun as playing a game. I personally use OC as more of a tool for ingame automation than a toy, if you understand what I'm saying. Of course, if you don't want to break immersion, then that's fine, you do what you want. If you use OC a lot, I’ll still recommend developing outside of game, then copy+pasting your code in.
  13. 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.
  14. Gangsir

    Robot stops moving

    It'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.
  15. 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.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.