TPT Multiplayer Mod

  • FeynmanLogomaker
    22nd Mar 2014 Member 5 Permalink

    All credits to cracker64 for the original, I'm just making modifications.

    (By the way, cracker64: if you want me to take this down, feel free to tell me so and I will, I won't mind)

     

    Features:

         Only runs if you aren't using Jacob1's mod: if you use both his mod and standard release in the same folder,

              it still won't be run twice.

     

         New commands:

              /nick: set your nickname. I will very soon be adding safeguards to prevent abuse

     

         tpt.create will soon send created particles to other connected users

              (Right now the script just breaks tpt.create so that it only works if you're connected, but that will be fixed

              shortly)

         

    There are a few other features that will be added when I release the next version, most significantly:

         Moar commands:

              /reset: resets your connection (in case you had tpt's window minimized for a while and you are no longer 

                   connected)

              And other, less significant

     

         New color scheme (possibly black-on-white choice too)

     

         Fix the current tpt.create bug caused by the script, so that you can actually take advantage of that feature 

              and still be able to use tpt.create offline

     

         Ability to send Lua commands to other users using this mod

              (They will be run in a sandbox, and will give the recipients the option to avoid running the command. This

              is still in development)

     

    The link for the script is here: http://pastebin.com/n5NUvK0i

     

    Suggestions for new features are welcome.

     

    Again, all credits to Cracker64 for the entire script, I am just adding on to it.

     

    WILL BE UPDATED LATER TODAY

    Edited once by FeynmanLogomaker. Last: 27th Mar 2014
  • jacob1
    22nd Mar 2014 Developer 0 Permalink
    The next version of the real script and server will tell you when you get disconnected (so /reset won't be needed), and will most likely run commands in it's own lua sandbox too (making tpt.create useless :P). Also I guess you saw on irc why I didn't want /nick, it's always abused. But you can have /nick if you want, useful for people without TPT accounts maybe.

    Also instead of the large "if not jacobsmod then" around the entire script, why use return if jacobsmod is true, or error("asdf").
  • FeynmanLogomaker
    22nd Mar 2014 Member 0 Permalink

    I will probably remove the things in my mod that will be made obsolete when the next version of the official comes out, but for now, they could be useful.

     

    I suppose I could fix the /nick abuse problem by modifying that command so it sets the name to "[some_name]", rather than just "some-name".

     

    The poorly written jacob1's mod fix is at least functional, so I don't feel like making it less crappy :P

  • jacob1
    22nd Mar 2014 Developer 0 Permalink
    ok, that works :P

    Also right now there is a function enableMultiplayer(), which is called when you click the maximize button. Hooks are only partially loaded until then. I might make a similar function disableMultiplayer(), and if you call it it will unregister the few existing hooks so you can replace the TPTMP in my mod with an official one (or a mod)
  • electronic_steve
    23rd Mar 2014 Member 0 Permalink

    Chat to do so was downstairs sleva.i that it can be hidden. :3

  • zBuilder
    23rd Mar 2014 Member 0 Permalink

    will this also send console commands?

    i.e. !set life deut 750

     

  • FeynmanLogomaker
    24th Mar 2014 Member 1 Permalink

    @zBuilder (View Post)

     Nope, but I'm working on something like that

  • 6595659
    2nd Sep 2017 Member 0 Permalink

    how to connect to my friend ?

    Edited once by 6595659. Last: 2nd Sep 2017