Powder Toy Multiplayer Script

  • cracker64
    December 2013 Developer 33 Permalink
    This script is exactly what it sounds like, it adds fully working multiplayer in TPT. It is MUCH different from my previous one, there is now a master server, where clients connect and can chat. You can create channels and invite friends into your channel name for private sessions.

    To get started, run '/connect' in the main chat window, you'll be connected into the lobby room. To join a more private room, type '/join [name]' . Simply give that channel name to anyone you want to play privately with and have them join.

    To Install, open the console (~ key) and enter tpt.getscript(2, "autorun.lua", 1)
    Alternate Script server link (v0.9)

    I highly recommend also using my Script Manager, which makes loading and updating scripts WAY easier. To get the script manager, enter tpt.getscript(1, "autorun.lua", 1) into the console. Then simply open it, go to the Online tab, and download "TPTMulti". It will be downloaded and then automatically run every time you open TPT. If there is ever an update to tptmp, simply open the online tab again and there will be an "Update" button next to the script.

    You can see the entire source and follow progress on my github: https://github.com/ThePowderToy/tptmp

    V.9:
     Support TPT 91.4
     Fix walls
     Other fixes which make this not compatible with TPT 91.3 or TPTMP .87

    V.87: Support TPT 91.0
    V.86 Fix jacob1's mod being very broken
    V.85 Fix AIR and VAC being reversed

    V.84:
     Update server address to eventually point to new location, tptmp.starcatcher.us
     Rate limit messages sent to the server
     Better line wrapping
     Support AIRBLOCK wall
     Support Lua 5.2

    v.83 save /size info if script manager >= 3.2 is loaded, fix some window defocusing issues, fix /kick and /send
    v.82 add /size, support CAPS LOCK, and fix legacy heat syncing issue
    v.81 Fix error when sending stamps
    v0.8 Support replace mode and specific delete

    v0.72 Chat history with up/down arrows. Various other fixes
    v0.71 New server location, update needed
    v0.7 More fixes to ensure the best experience.

    v0.6 Fixes from Jacob1, ESC key closes chat window, Change a few message colors

    v0.52 Various Fixes
    v0.5 Initial Release


    Bugs:
    Stickmen can't be controlled
    Signs don't sync either -> fixed for TPT 91.0 & TPTMP 1.0
    Maybe some other syncing issues, /sync can fix these

    [[screenshots here]]
    Album with some more pictures: https://imgur.com/a/WYUDd
    Edited 39 times by cracker64, jacob1. Last: 3rd June
  • boxmein
    December 2013 Moderator 1 Permalink
  • Schicko
    December 2013 Member 0 Permalink

    Many thanks cracker! I'm pretty sure you hear this a lot, but you are osum.

     

    Unfortunately, I can't test this out till 6 hours later as my internet has been automatically disabled :L

    Stupid Kaspesky!

     

    Edit: @mniip (View Post) OK, didn't know you worked on it as well, sorry. You're osum too ^_^

    Edited 2 times by Schicko. Last: December 2013
  • mniip
    December 2013 Member 0 Permalink
    @Schicko (View Post)
    that [REDACTED] never even credited me for the server :(

    EDIT: i'm working on the ui :\
    Edited 2 times by mniip, jacob1. Last: September 2014
  • jacob1
    December 2013 Developer 0 Permalink
    very fun, a lot of people from irc like me, @cracker64, @wolfy1339, @4722202468, @cj646464 were all on (not all at once, but up to 4 at once which is much better than the original)

    And it doesn't even require port forwarding :) you just download the script and the server is always on.

    @mniip (View Post)
    lol. The UI got many last minute improvements that would be hard to live without. But an entire redo would be nice if it looks good. Keep in mind that the chatbox gets in the way often, figure out some way to fix that.
    Edited once by jacob1. Last: December 2013
  • Box-Poorsoft
    December 2013 Banned 2 Permalink
    This post is hidden because the user is banned
  • mniip
    December 2013 Member 0 Permalink
    @jacob1 (View Post)
    he was talking more about the whole ui lib, i.e a set of OOP-based components, not just the location and look of buttons
  • jacob2
    December 2013 Member 1 Permalink
    Yes, I did say 'redo', I know it was going to be a separate lib usable for anything. It just needs the features to make this specific script work well.
  • Schneumer
    December 2013 Member 0 Permalink

    Heck yeah! So beta multiplayer? Gotta get one! WOOOOT

    Edit: I downloaded both and put them in the folder of all my tpt stuff (the game and whatever comes with it) now what?

    Edit: Wait, i downloaded as notepad....and i not supposed to? I don't have a autorun.lua thing......

    Edited 2 times by Schneumer. Last: December 2013
  • Cacophony
    December 2013 Member 0 Permalink

    @Schneumer (View Post)

    Save the file as autorun.lua and put it in the same folder as TPT.

    or if you've the manager:

    Save it as (anyname).lua and put it in the scripts folder (make one if you don't have one) Click on the Lua button on the right side.

    or:

    Save as (anyname).lua and load the console.Type in dofile("(nameofscript).lua")

    Edited once by Cacophony. Last: December 2013