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


  • Content Count

  • Joined

  • Last visited

  • Days Won


PixelToast last won the day on May 7 2014

PixelToast had the most liked content!

About PixelToast

  • Rank
    Junior Member

Profile Information

  • Gender
    Not Telling

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. computer.users(): string, ...A list of all users registered on this computer, as a tuple. To iterate the result as a list, use table.pack on it, first. Please see the user rights documentation. computer.addUser(name: string): boolean or nil, stringRegisters a new user with this computer. Returns true if the user was successfully added. Returns nil and an error message otherwise. The user must be currently in the game. The user will gain full access rights on the computer. computer.removeUser(name: string): booleanUnregisters a user from this computer. Returns true if the user was removed, false if they weren't registered in the first place. The user will lose all access to this computer. When the last user is removed from the user list, the computer becomes accessible to all players. so basically once you call addUser, it gives that person permission to use the computer
  2. PixelToast

    #OC Bot Commands

    ^v help: .r .releases .release : links downloads for releases .w .h .help .wiki : lists help for functions/wiki pages .j .build .beta : links downloads for jenkins .require .req : generates code to require a component or api .tell : tells a person something the next time they talk .openprg : compiles and pushes openprograms site .luaj .lj : executes lua 5.2 code .l53 .lua53 : executes lua 5.3 code .l .lua : executes lua 5.2 code .bc .calc : calculates large numbers .f .forums : links to the forums .borkluaj .blj : executes lua 5.2 code .github .git : links to the oc github .commits : OC commit statistics .downloads .dlstats : oc github download statistics .openp .openprograms : links to the openprograms site and github .rules : links to the channel rules .openc .opencomponents : links to the opencomponents jenkins .mcdown .mc .mcstats .mcstat : checks if mojang's servers are down
  3. no, thats the socket protocol
  4. https://github.com/P-T-/TCPNet This API allows for infinite cross range, cross server communication with the internet card. It uses a external Lua server which requires luasocket (should work on both 5.1 and 5.2) on ubuntu/debian you can use apt get install luarocks and then luarocks install luasocket on windows: https://code.google.com/p/luaforwindows/downloads/list others you will have to find/compile binaries once you have a server set up and forwarded you can access it in OC with your computer's external IP (or localhost if you changed the tcp blacklist) API local handle=tcpnet.new([ip[,port]]) connects to the server, ip defaults to localhost and port defaults to 25476 handle:receive([timeout[,port]]) returns port,data or just data if the port parameter is given handle:send(port,data) sends data to port handle:open(...) opens ports handle:close(...) closes ports event "tcpnet_message",port,data Protocol every message and response is a table serialized ports can be strings or numbers it does serialize the data, but because computer.pushSignal doesnt support tables, my api wont allow them but it is really easy to write your own api {"send",port=port,data=data} sends data to everyone listening on port {"open",ports={[port]=true,[port]=false}} open/close ports {"message",port=port,data=data} you receive this when you get a message
  5. This is completely possible but nobody has done it yet you would have to make a fake filesystem component then use modems to send file changes when close/flush is called this was done in CC but that required heavy filesystem hooking, the lua side filesystem api makes it easier in OC
  6. was april fools, work3 hasnt come out yet
  7. work3 was just released and guess what they added? thats right i am loving the new syntax, it takes so much less time converting code from other languages
  8. Here is how the integer system works: numbers are ints if they dont have a decimal point, otherwise they are floats this isnt compatability breaking though, the math operators automatically convert them there is also the new // operator which does division on ints, basically math.floor(a/b) the reason for this is that we can now divide huge numbers, ones that are too big for floats also, all numbers are 64 bit, even when compiled 32 bit here are all the new bitwise operators: band: a & b bor: a | b bxor: a ~ b bnot ~ a -- not sure how this one works blshift: a << b -- same as a*(2^ brshift a >> b -- same as a//(2^ i hope they add a+=b, a++, etc
  9. i agree D: ill bug the dustbin thar, it now be so
  10. Lua 5.3 is still in the "what the hell do we add" stage but you can find the source here: http://www.lua.org/work/ or windows binaries made with MinGW: https://dl.dropboxus.../lua53work2.zip It is almost identical to 5.2 but has some major things we have all wanted like integers, bitwise operators, and utf8 support the list is small but here are the changes from 5.2: http://www.lua.org/work/doc/#changes Main changes: support for integers (64-bit by default) better support for small architectures ("Small Lua" with 32-bit numbers) bitwise operators basic utf-8 library utf-8 escapes in literal strings functions for packing/unpacking numbers userdata can have any Lua value as uservalue strip option in lua_dump/string.dump Lua standalone interpreter: Can be used as calculator; no need to prefix with '=' i can probably compile this for OC, give me a bit.
  11. happened to me too, you have to cd C:\ first for some reason
  12. PixelToast


    from what i can tell it will be hard, lots of math to figure out what position a block is at
  • Create New...

Important Information

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