Quick questions thread: Ask your "How do I?" and "Where is?" questions here.

Discussion in 'Help and Support' started by nicatronTg, Jan 18, 2012.

  1. seppus

    seppus Level 0

    Joined:
    May 1, 2018
    Messages:
    3
    I did this and placed/removed blocks are still being saved.

    The config file seems to load correctly though, flags like DisableBuild work just fine.

    One work-around would be killing the server process in the task manager, but I hoped it wouldn't have to come to that ;)
     
  2. xExekut3x

    xExekut3x Level 0

    Joined:
    Sep 25, 2018
    Messages:
    2
    On Linux: 4.18.9-arch1-1-ARCH

    Trying to figure out what arguments to pass to a systemd service I'm writing to automatically start TShock - automatically select world, basically.

    ExecStart=/usr/bin/tmux new-session -d -s tshock-session "mono --server --gc=sgen -O=all TerrariaServer.exe ARGUMENTS"

    I'm guessing either pass it a configuration file or specify world options? Problem, though, I went ahead and created a world, but there is no world file with the name I specified in the directory. Is that information kept in sqlite?
     
  3. nicatronTg

    nicatronTg Shank / hakusaro
    TShock Founder TShock Admin

    Joined:
    Jul 21, 2011
    Messages:
    714
    https://tshock.readme.io/docs/command-line-parameters

    You need IP, port, player count, and world, I think, as the minimum for an autostart. Just specify as much as you know beforehand and see what works.
     
  4. xExekut3x

    xExekut3x Level 0

    Joined:
    Sep 25, 2018
    Messages:
    2
    Thanks! That did it.

    Code:
    ExecStart=/usr/bin/tmux new-session -d -s tshock-session "mono --server --gc=sgen -O=all TerrariaServer.exe -worldpath ~/.local/share/Terraria/Worlds/ -world ~/.local/share/Terraria/Worlds/CorruptionSmall1.wld"
     
    • Friendly Friendly x 1
  5. ThatLittleArtist

    Joined:
    Feb 3, 2018
    Messages:
    3
    How can I un-ban all players from my server with a simple command?
     
    #1305 ThatLittleArtist, Oct 1, 2018
    Last edited: Oct 1, 2018
  6. ThatLittleArtist

    Joined:
    Feb 3, 2018
    Messages:
    3
    How do I get a list of all the registered users in my server?
     
  7. Zaicon

    Zaicon Spam Cleaner 9000
    TShock Mod Plugin Developer

    Joined:
    Feb 15, 2014
    Messages:
    799
    Both of those aren't built-in to tShock. If you have a database editor, you can use an SQL command for both of those requests.
     
  8. Cobalt

    Cobalt Level 0

    Joined:
    Feb 6, 2019
    Messages:
    2
    How to user TSPlayer.SendData?
    I am trying to send a ProjectileUpdate packet which has 10 parameters,but this function only has 7 parameters?
    THANKS
     
  9. quake1337

    quake1337 Level 1

    Joined:
    Aug 19, 2017
    Messages:
    7
    SendData works just like vanilla SendData. Study the game code (namely, NetMessage.SendData) to see how these packets are serialized and what inputs they take. Alternatively there was a .SendRaw method that allowed you to send a raw byte array down the wire.
     
    • Like Like x 1
  10. Cobalt

    Cobalt Level 0

    Joined:
    Feb 6, 2019
    Messages:
    2
    Got it,thanks alot.