1. These forums are still being retired! Please use GitHub discussions or Discord. You cannot create new threads or new accounts now. If you need to contact some user of the forums, you should do it sooner, rather than later. This notice was last updated on May 30th, 2021.

Must Read Ultimate Guide: How to get help & common quick fixes

Discussion in 'Help and Support' started by nicatronTg, Jul 10, 2015.

  1. Broam

    Broam Level 1

    Joined:
    Oct 1, 2015
    Messages:
    5
    "If you have made no config file changes, delete the "config.json" file in the TShock folder."

    I found an issue where the system will crash with a NullReferenceException if the config.json file is 0 length. This happened while I was determining the package dependencies on Debian for the wiki.

    Probably not worth fixing, which is why I haven't filed an issue in Github.
     
  2. tyny

    tyny Level 0

    Joined:
    Jan 3, 2016
    Messages:
    1
    i have this error and nothing from there has no helped me:
    [01.03.16 21:19:56] [Server API] Verbose: TerrariaApi - Server v1.22.0.0 started.
    [01.03.16 21:19:56] [Server API] Verbose: Command line: "D:\Steam\steamapps\common\Terraria\TSHOCK\TerrariaServer.exe"
    [01.03.16 21:19:56] [Server API] Verbose: OS: Microsoft Windows NT 6.1.7601 Service Pack 1 (64bit: True)
    [01.03.16 21:19:56] [Server API] Verbose: Mono: False
    [01.03.16 21:19:56] [Server API] Error: Startup aborted due to an exception in the Server API initialization:
    System.InvalidOperationException: Plugin "TShock" has thrown an exception during initialization. ---> System.Exception: Fatal TShock initialization exception. See inner exception for details. ---> Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: y. Path '', line 0, position 0.
    at Newtonsoft.Json.JsonTextReader.ParseValue()
    at Newtonsoft.Json.JsonTextReader.ReadInternal()
    at Newtonsoft.Json.JsonTextReader.Read()
    at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.ReadForType(JsonReader reader, JsonContract contract, Boolean hasConverter)
    at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)
    at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)
    at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)
    at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings)
    at TShockAPI.ConfigFile.Read(Stream stream)
    at TShockAPI.ConfigFile.Read(String path)
    at TShockAPI.FileTools.SetupConfig()
    at TShockAPI.TShock.Initialize()
    --- End of inner exception stack trace ---
    at TShockAPI.TShock.Initialize()
    at TerrariaApi.Server.ServerApi.LoadPlugins()
    --- End of inner exception stack trace ---
     
  3. Kojiro_S

    Kojiro_S Level 11

    Joined:
    Feb 16, 2014
    Messages:
    659
    Code:
    Exception: Unexpected character encountered while parsing value: y. Path '', line 0, position 0
    @tyny I'm not sure, but I think you messed up your config file. Try deleting it and restarting, and when doing changes make absolutely sure that you haven't deleted any quotation mark or commas from where they are supposed to be.
    You can paste the content of your config file here: http://jsonlint.com to check if there are problems with the formatting. That also applies to most of the config files from other plugins, btw.
     
  4. Burnscars

    Burnscars Level 2

    Joined:
    Dec 23, 2012
    Messages:
    31
    *Retracting frustration*
    Rude rudeness is rude.
     
    #24 Burnscars, Jan 14, 2016
    Last edited: Jan 14, 2016
  5. Ivanfroste24

    Ivanfroste24 Level 0

    Joined:
    Jan 23, 2016
    Messages:
    2
    Hi, when I open the tshock server with terraria, and my friends connect with hamachi, they canĀ“t connect. I give them my hamachi IP.
    HELPPP
     
  6. Kojiro_S

    Kojiro_S Level 11

    Joined:
    Feb 16, 2014
    Messages:
    659
    Hamachi has nothing to do with TShock. If you need Hamachi support, ask in their website. :/
    You are free to ask for help in this forum, but on the appropiate subforum. But don't expect much. Usually people who uses TShock has no need for things like Hamachi.
     
  7. Ivanfroste24

    Ivanfroste24 Level 0

    Joined:
    Jan 23, 2016
    Messages:
    2
    But tshock it's for make a server, it have to solve problems, I think it's problem of the tshock, beacuse the normal server works, this no
     
    • Bad Reading Bad Reading x 1
  8. XxZenqxX

    XxZenqxX Level 4

    Joined:
    Aug 11, 2015
    Messages:
    53
    Thanks for this :D
     
  9. Varrin

    Varrin Level 0

    Joined:
    Dec 4, 2016
    Messages:
    2
    This is What im getting when i open TerrariaServer

    [12/04/16 15:12:04] [Server API] Verbose: TerrariaApi - Server v1.25.0.0 started.
    [12/04/16 15:12:04] [Server API] Verbose: Command line: "C:\Program Files (x86)\Steam\steamapps\common\Terraria\TerrariaServer.exe"
    [12/04/16 15:12:04] [Server API] Verbose: OS: Microsoft Windows NT 6.1.7601 Service Pack 1 (64bit: True)
    [12/04/16 15:12:04] [Server API] Verbose: Mono: False
    [12/04/16 15:12:05] [Server API] Info: Plugin TShock v4.3.20.0 (by The TShock Team) initiated.
    [12/04/16 15:12:07] [Server API] Error: Server crashed due to an unhandled exception:
    System.ArgumentNullException: Value cannot be null.
    Parameter name: path
    at System.IO.Path.GetFullPathInternal(String path)
    at System.IO.File.InternalGetLastWriteTimeUtc(String path, Boolean checkHost)
    at System.IO.File.GetLastWriteTime(String path)
    at Terraria.Main.DedServ()
    at Terraria.ProgramServer.InnerStart(String[] args)
     
  10. Varrin

    Varrin Level 0

    Joined:
    Dec 4, 2016
    Messages:
    2
    nvm it was a world issue