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

PixelToast

Members
  • Content Count

    19
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by PixelToast

  1. 14 (15 soon)

    infinikiller64

    ping, pong, v^, not^v, PixelToast, pingpong, notping,notpong pang, ds81482, ping|pong, ping|away, stoppingingme, stahppingingmeplease, abc, infinikiller64, VERSION, CadnamA, Gabe, steamsale, megalemming, gigalemming, PtISLEAtox

    • 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, string

      Registers 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): boolean

      Unregisters 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. ^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

    hashes:
    .RSA-SHA512 .sha512WithRSAEncryption .sha512 .SHA512 : SHA512 hash
    .SHA .RSA-SHA .sha .shaWithRSAEncryption : shaWithRSAEncryption hash
    .RSA-SHA384 .SHA384 .sha384WithRSAEncryption .sha384 : sha384 hash
    .whirlpool : whirlpool hash
    .md5 .ssl2-md5 .RSA-MD5 .MD5 .md5WithRSAEncryption .ssl3-md5 : ssl3-md5 hash
    .sha256WithRSAEncryption .SHA256 .sha256 .RSA-SHA256 : RSA-SHA256 hash
    .sha224WithRSAEncryption .RSA-SHA224 .SHA224 .sha224 : sha224 hash
    .dsaEncryption .RSA-SHA1-2 .DSA-SHA1-old .DSS1 .DSA .RSA-SHA1 .ecdsa-with-SHA1 .dsaWithSHA1 .dsaWithSHA .DSA-SHA .DSA-SHA1 .ssl3-sha1 .SHA1 .sha1 .dss1 .sha1WithRSAEncryption : sha1WithRSAEncryption hash
    .RSA-MD4 .MD4 .md4 .md4WithRSAEncryption : md4WithRSAEncryption hash
    .RSA-RIPEMD160 .ripemd160WithRSA .ripemd160 .RIPEMD160 .ripemd .rmd160 : rmd160 hash
    admin:
    .< : admin lua
    .unignore : unignore all users that match
    .ignore : prevents a user that matches from using a command
    .cmd : executes batch
    .> : admin lua
    .a> : asyncronous admin lua
    .raw : sends raw data
    esolangs:
    .fishencode : text to fishstacks generator
    .rl : outdated Gopher's robot bytecode
    .mb .malbolge : http://esolangs.org/wiki/Malbolge
    .barely : http://esolangs.org/wiki/Barely
    .encbarely : text to barely generator
    .gendfuck .gendumbfuck : text to dumbfuck generator
    .unmb : encodes normalized malbolge
    .] : http://esolangs.org/wiki/Right_bracket
    .ssbpl : incomplete http://esolangs.org/wiki/SSBPL
    .encodeag .encagony : text to agony generator
    .encbf .encbrainfuck : text to brainfuck generator
    .df .deadfish : http://esolangs.org/wiki/Deadfish
    .bf .brainfuck : http://esolangs.org/wiki/Brainfuck
    .sstack : http://esolangs.org/wiki/Super_Stack!
    .mbdbg .malbolgedbg : debug malbolge
    .cf .clusterfuck : http://esolangs.org/wiki/Clusterfuck
    .dumbfuck .dfuck : http://esolangs.org/wiki/Dumbf*ck
    .ag .agony : http://esolangs.org/wiki/Agony
    .fishstacks : http://esolangs.org/wiki/Fishstacks
    .rnmb : normalizes malbolge
    misc:
    .logmatch : finds random quote that matches
    .tohastebin : uploads to hastebin
    .ub64 .unb64 : base64 decodes
    .ip : gets the ip of a user
    .freq : word frequency statistics
    .host : gets the hostname of a user
    .acronym : generates words for acronyms
    .find : lists users that match ie .find ip 71.238.153.166
    .drama : asie's drama generator
    .lines : counts total lines of lua in the bot
    .hex .tohex : converts to hex
    .short .s : shortens url
    .pipe : pipes commands
    .hastebin : grabs hastebin id
    .random : random quote
    .b64 .tob64 : base64 encodes
    .account : gets the account of a user
    .rle .repnotate : rle encodes aaaaabbbb -> a5b4
    .fromhex .unhex : converts from hex
    .repeat .rep : repeats a string
    .v^ .p .ping : CTCP pings someone
    .paste : posts text to the webserver
    .say .spell .echo : echos
    .factor : factors a number
    .len : shows length of text
    .source .sauce : my source
    .pastebin : grabs pastebin id
    .reverse : reverses text
    .namegen : generates names using chanserv
    .pfind : lists users that match a pattern
    fun:

    .swank : unicode font
    .doublestruck : unicode font
    .blend : scrambles text
    .bm .benchmark : benchmarks lua 5.1 code
    .bold : unicode font
    .2^53 .9007199254740992 : 2048 clone
    .sdate : gets Eternal September time
    .wikipedia : generates random wikipedia page
    .newvote : creates a new vote
    .greek : unicode font
    .! : epic!!!!1!!!1!!!!1!!1!one
    .derpfont : randomizes the unicode font
    .serif : unicode font
    .ips : benchmarks instructions per second
    .lazyupdateoc : updates OC on my server automatically
    .fc .failcaps : scrambles caps
    .flipcaps .lc : flips caps
    .monospace : unicode font
    .ultrabold : unicode font
    .sksboard : siimulatees SKS''s kkeyboarrd
    .aeiou : aeiou rotate math -> meth blame gamax
    .endvote :
    .vote :
    .rb .rainbow : turns text into a rainbow
    .ip2num : converts a ip to a number
    .16384 .2^14 : 2048 clone
    .num2ip : converts a number to a ip
    .mispell : mispells text
    .rot13 : most secure encryption ever made
    .slap : slaps someone
    .derp : herp
    .failblend .fb : scrambles letters and caps
    .supermispell : super mispells text
    .herp : derp
    .ALOT .alot : links to alot is better than you at everything
    .2048 .2^11 : 2048 game
    .script : unicode font
    .steal .wouldsteal : links to 10/10 would steal
    .beep : boop
    .genesolang .geneso : fail esolang generator
    .boop : beep
    .dubstep .wobbo : WooooooobboooooWobboooooooooooooo
    .rot47 : second most secure encryption ever made

  3. Rj9rH3s.png

    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
  4. 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

  5. 0 + 1 - 1 - 1 + 1 = ...1?

    Either a+=1 is not doing what I think it should be doing (add 1 to a) or the new syntax has some math issues.

    was april fools, work3 hasnt come out yet
  6. Here is how the integer system works:

    cUkL1fa.png

    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

    G3Twh2o.png

    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^ B)
    • brshift a >> b -- same as a//(2^ B)
    i hope they add a+=b, a++, etc
  7. mXzUxvi.png


    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 '='

    kQAHZ1w.png

     

    i can probably compile this for OC, give me a bit.

  8. the menger function is the sierpinski carpet algorithm http://en.wikipedia.org/wiki/Sierpinski ... nstruction

    the bits function combines a series of bits into a number, because holograms use binary data for the Z axis

    for example:

    holo.set(24,24,1) will make a single block holo.set(24,24,2) will move the block up and holo.set(24,24,3) will make two blocks

    this is because 1 is 0b1 2 is 0b10 and 3 is 0b11

    so if you want a block at say z 10 you do holo.set(24,24,2^(10-1)) because 2^9 is 0b0000000001

    after that it generates a 2d sierpinski carpet in a table

    i calculate this before because if i put it in the 3d loop it would check the same coords over and over again

    then it iterates through x, y and z and maps the fractal to it

×
×
  • Create New...

Important Information

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