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

Search the Community

Showing results for tags 'file'.

More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • OpenComputers
    • Announcements
    • Feedback
    • IRC
  • Code Central
    • Support
    • Showcase
    • Tutorials
  • Addons & More
    • Addons Mods
    • Architectures
    • OpenEngineering Task Force
  • General
    • Lounge
    • Forum Games
    • Showcase
    • Servers
  • Archives
    • Public Archives

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start





Website URL








Fediverse ID



Found 4 results

  1. Cell is a graphical file manager for OpenComputers that allows you to browse files and open them in other programs, such as the editor or simply running .lua files. You can also customize what programs can be used to open files through the programs.cfg file. Tutorials: Browsing files/directories Select files/directories by clicking on them in the panel on the right side of the screen If a directory contains a large amount of files or sub-directories, use the arrow buttons to scroll through pages To go up a sub-directory, click the up arrow To change directory to a sub-directory, select the sub-directory, and click on "Open..." in the options panel (bottom left) Using programs Select file/directory Select an option from the options panel (Run, Edit, Delete, etc.) Creating files/sub-directories Navigate to the directory where the file/sub-directory will be created Select "New File..."/"New Directory..." from the functions panel (top left) A prompt for the name will appear at the bottom of the screen. Enter the name for the file/directory Adding programs Open the programs.cfg file in the editor Add a new line for your program Warning: The syntax for the programs.cfg is very strict, and will not accept extra spaces/empty lines Enter this info separated by semicolons: Program name Text for the options menu File types (separated by commas, for all files put "all", for directories put "dir", for specific file types, put the extension including the ".") Command that runs the program ("?file?" is a wildcard for the selected file/directory) Additional options (separated by commas, does not require semicolon or comma at the end) "s" prevents Cell from erasing the screen before running the program For example, the line that add the editor is: OpenOS Editor;Edit...;all;edit ?file?; Minimum Requirements: Tier 2 Graphics Card Tier 2 Screen Tier 1 CPU 2x Tier 1 Memory Internet card only required for installation To install, run wget https://raw.githubusercontent.com/Elektron72/Cell/master/installer.lua installer.lua installer.lua At the prompt, enter the path where Cell should be installed. Since this is currently in beta, report bugs at https://github.com/Elektron72/Cell
  2. Hey, I haven't worked with Lua in a while and recently my friends and I started a new modded game. I'm currently trying to require another file from another, and to my knowledge have done it to how the syntax describes. However, OpenOS is giving me an error stating the following: However, when running the cd command it states that core.lua does indeed exist in the directory /home/ This is my code: -- core.lua function catch(inp) return inp[1] end function try(inp) status, res = pcall(inp[1]) if not status then inp[2](res) end return res end -- test.lua function dir() local str = debug.getinfo(2, "S").source:sub(2) return str:match("(.*/)") end -- this is where it breaks: require(dir() .. "core.lua") local http core.try { function() http = require("socket.http") local body, code = http.request('https://raw.githubusercontent.com/rxi/json.lua/master/json.lua') local f = assert(io.open('modules/json.lua', 'wb')) f:write(body) f:close() print('Successfully downloaded json.lua module.') end, core.catch { function(err) print('Caught Error: ' .. err) end } } If someone could please explain to me what I am doing wrong and more specifically how to fix the issue it would be greatly appreciated.
  3. !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.
  4. hello, i have a simple script right here that i will later use to recover recipes after a boot However the file i am editing never has any changes occur to it. no errors. I am pointing to the correct file (file:read returns what i edit in) local serialutil = require("serialization") local term = require("term") local fs = require("filesystem") file = fs.open("/data/recipes.txt",w) local a = serialutil.serialize("words, letters, phrases") file:write(a) file:close()
  • Create New...

Important Information

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