• Sky
  • Blueberry
  • Slate
  • Blackcurrant
  • Watermelon
  • Strawberry
  • Orange
  • Banana
  • Apple
  • Emerald
  • Chocolate
  • Charcoal
Welcome to OpenComputers

Register now to gain access to all of our features. Once registered and logged in, you will be able to contribute to this site by submitting your own content or replying to existing content. You'll be able to customize your profile, receive reputation points as a reward for submitting content, while also communicating with other members via your own private inbox, plus much more!

This message will be removed once you have signed in.

  • Announcements

    • Lizzy Trickster

      Latest Stable OpenComputers Version   11/26/16

      The latest released version of OpenComputers is version 1.6.1 for MC 1.7.10, 1.8.9, 1.9.4 & 1.10.2. See more information here! Beta/Dev builds can be found at the Jenkins Build Server (ci.cil.li)
    • Lizzy Trickster

      README: FORUM DOWNTIME!   04/19/17

      These forums will be down from 2017-04-29 @ 1200 GMT for up-to 1 hour (1300 GMT). This is due to the host box needing a reboot to apply Kernel updates. I don't expect the update to take the full hour specified but I have allocated this timeframe in the event that stuff breaks.   Apologies for any inconvenience this causes

Magik6k

Members
  • Content count

    25
  • Joined

  • Last visited

  • Days Won

    8

About Magik6k

  • Rank
    Junior Member

Contact Methods

  • Minecraft
    magik6000
  • GitHub
    magik6k

Recent Profile Visitors

225 profile views
  1. Use ``` for line in io.lines("/home/file.txt") do --line is a string end ```
  2. Also, it would be fancy if one could use big battery as power buffer, as internal 10MRF is way too small for 1MRF/t+ reactor.
  3. You can use braille Unicode characters to give the bars more resolution as with OC font they are exactly 1/4 vert and 1/2 horiz of a full character block(the characters are "⣀", "⣤", "⣶", "⣿", "⡇")
  4. The following document is still a DRAFT and a subject to change, though protocol and assigned numbers should not change. 1. Purpose ON2 - OCNet L2 protocol - is a very simple standard is aimed at advanced network stacks. It provides protocol tagging and optional vlan separation for devices that support it. 2. Protocol ON2 utilizes the fact that OpenComputers network message can have multiple parameters. When a message(data frame) is sent using ON2 layer, the implementation sets first data parameter to protocol number and passes the data via second data argument. Port number(if supported by device) can be used as VLAN tag allowing network separation. Default port number(vlan) is 1 Here is an example modem call for sending data frame with protocol 0x46 (IP frame): component.invoke(modem, "send", dest, vlan, 0x46, ip_data) 3. Implementation recommendations Each network stack implementation should default to listening and sending on port 1. If packet of with unknown protocol number is received is should be silently dropped. Implementations should pass local/remote address and interface information(modem ID, vlan or interface object) to higher layers. 4. Protocol numbers: Protocols are identified by numbers assigned in table below. |-------------------------------------------------------------| | PROTOCOL NUMBER | PROTOCOL NAME | DEFINING STANDARD | |-----------------X--------------------X----------------------| | 0x0C | OC HOST DISCOVERY | Not standardized yet | |-----------------X--------------------X----------------------| | 0x46 | IPv4 or IPv6 Frame | RFC791 and RFC2460 | |-----------------X--------------------X----------------------| | Above 0xFFFF | User defined | N/A | |-------------------------------------------------------------| You can apply for assigning protocol number by a post in this thread.
  5. If you're that worried about people you lot on your server there is the whitelist option in internet section of the settings.json, where you explicitly say what's allowed.
  6. I was away from OC for pretty long now, and I haven't got time to play with it/fix existing errors. There is new version of mpt waiting in PR(https://github.com/MightyPirates/OpenComputers/pull/2094) which fixes mentioned bug. ssh and other network related programs are huge mess as of now because I'm in progress of rewriting network stack to real ipv4/v6(I have ipv4, udp, basic icmp, RIPv2 protocols implemented as of now, and ~30% of TCP implementation). Most network programs still need to be adjusted for this API(It's not hard, just needs to be done). I consider moving big chunk of Plan9k to GitHub(OPPM) to make contributions easier.
  7. You probably just want to use io.stderr:write() for that
  8. This seems doable in Plan9k with its multi-threading, you basically do `local pid = os.spawn(threadFunc)` and then optionally `require("pipes").joinThread(pid)` to wait for spawned thread(s).
  9. Super nice, but: * Scroll in license in installer is crashing * You should really consider using some package manager like OPPM/MPT for that * I have a strong feeling that this was ported from CC, structure of the files sort of doesn't fit OpenOS, have a look at this http://www.thebuzzmedia.com/wp-content/uploads/2007/09/linux_file_structure.jpg * With package manager packages wouldn't create mess in root directory * you REALLY, REALLY should use something like /home/[user]/Desktop/SomeApp.app, or at least /root/Desktop/some.app for app launchers, having all things inside the root (/) directory is not nice at all. Other loose suggestion for you is that you could adapt plan9k kernel(pipes package on mpt), to get multitasking and more security due to sandboxing. Learning how to use it may be a bit hard, but if you'd have a go at it you can catch me on IRC. Your entrypoint would be /bin/init.lua and you wouldn't have to modify Full OS to plug your functionality into something above BIOS level More on mpt: http://oc.cil.li/index.php?/topic/92-mpt-minecraft-packaging-toolbeta/ The whole system looks really nice. In case it'd stay on top of OpenOS, it only needs some work here-and-there, like translations of things, small bugfixes, and it would be even worth seeing it on loot disk. And YAY, first(?) proper gui based shell/os in OC world.
  10. The color value is just a integer, the way you obtain it is r*256*256 + g * 256 + b
  11. About the network floppy - it works over wireless networks, but is in a way broken when you move between different access points(i.e. physical nodes aren't auto-discovered for now). Also the network has dedicated API - use `man network`. Sending data to custom bound addresses via bare components won't work.
  12. Nah, at least for now consider this project dead and use the network floppy which gives way more flexibility and is easier to setup/use
  13. Closing connections was broken. The channel is basicly identifier of tcp connection.
  14. Hello, sorry for reponsing that late, but I'm not really into the forums, I'm reachable via IRC more. anyways, looking at code of server A I see the function incoming(origin, port, data) it should be function incoming(_, origin, port, data) This seems to be 99% of the problem
  15. tony1485, Thats what all this is meant for. The only thing I use github for here is secure authentication(secure even without using https). Repository are there to group packages, one repository can be used by more than one person. Packages are like file archieves, they also can say what other packages they'd like to be present in system(i.e. dependencies). You can develop your programs directly in the IDE, and after saving file instantly update it and test in OC computer