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

    1. Announcements

      OpenComputers official announcements.

      130
      posts
    2. Feedback

      Tell us what you think.

      440
      posts
    3. IRC

      #OC channel discussion
      irc.esper.net #oc

      26
      posts
  2. Code Central

    1. Support

      Ask for support from the OpenComputers community

      4.3k
      posts
    2. Showcase

      Showcase what you have created for OC. No 'malware' or other junk!

      3.1k
      posts
    3. Tutorials

      Help other users out. Please no 'false tutorials'

      140
      posts
  3. Addons & More

    1. Addons Mods

      Show off your OC addons mods

      247
      posts
    2. Architectures

      Discussions for Architectures

      183
      posts
    3. OpenEngineering Task Force

      Discussion board for the OETF documents

      97
      posts
  4. General

    1. Lounge

      Just lounge around or have an open discussion.

      338
      posts
    2. Forum Games

      Fight boredom!

      79
      posts
    3. Showcase

      Show off your creations! (not for your programs)

      157
      posts
    4. Servers

      A place to advertise your servers

      196
      posts
  5. Archives

    1. Public Archives

      OpenComputers public archive forum

      8
      posts
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Who's Online   1 Member, 0 Anonymous, 78 Guests (See full list)

  • Topics

  • Posts

    • Ok, weirdly chatGPT answered this correctly, all you need to do is add variable on start of the program that looks like this: local args = {...} and for each argument you wanna look at you just type "args[i]" where i is the number of the argument
    • I am trying to pass an argument into program to make robot different things base on the argument Lets say I have some program and I type ~ main "Ender Pearl" ~ in which main is my program and I want to pass Ender Pearl as a string into the variables inside, how do I do it, because I cant find anything about it on the internet, and tutorials I watched are so simplified that they are not telling anything about this
    • as far as i know, file extentions just straight up don't matter. Even if you have none, you can still run the file as a lua file. Running "hello" will check for a file named  "hello", and if it isn't there, it then checks for one called "hello.lua". I think you can change this in /lib/shell.lua (or /lib/core/full_shell.lua, can't remember exactly), it would be in the shell.execute function   Also, sorry for replying 7 years late
    • .shrc just runs whatever commands when sh.lua is started (in most cases, at boot) (shell run command) File color, when you do ls, is defined in /bin/ls.lua (which is what is ran when you do ls)
    • Hello! I have spent some time creating a package manager and repository. Github: https://github.com/Tavyza/TherOS_community_repo # Installation: wget -f -q https://raw.githubusercontent.com/Tavyza/TherOS_community_repo/main/pkg-man/source/tocr.lua /tmp/tocr.lua /tmp/tocr -i pkg-man rm /tmp/tocr.lua   To add a package to the repository: Fork it create a folder (this will be the package name) make a package.tc file (should contain the full raw github link to your program) dependencies.tc (same as package.tc but for libraries your package would need) add your package to the end of repo_list.tc in the root of the repository make a pull request.   Questions? Issues? Suggestions? Comment them or open an issue in the repo.
  • Popular Contributors

    Nobody has received reputation this week.

×
×
  • Create New...

Important Information

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