Restarting problem?

Discussion in 'Help and Support' started by 0wnage0tter, Jun 27, 2012.

  1. 0wnage0tter New Member

    Hello,
    When I want to start my Terraria server, it keeps saying that I didn't close the server in the correct way. It also keeps spamming my console with
    "Server Restarting....

    Tshock was improperly shut down. Please avoid this in the future, world corruption may result from this."
    My logs say the following;

    2012-06-27 18:38:47 - TShock: INFO: TShock was improperly shut down. Please avoid this in the future, world corruption may result from this.
    2012-06-27 18:38:47 - TShock: ERROR: Fatal Startup Exception
    2012-06-27 18:38:47 - TShock: ERROR: Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: . Line 1, position 1.
    bij Newtonsoft.Json.JsonTextReader.ParseValue(Char currentChar)
    bij Newtonsoft.Json.JsonTextReader.ReadInternal()
    bij Newtonsoft.Json.JsonTextReader.Read()
    bij Newtonsoft.Json.Serialization.JsonSerializerInternalReader.ReadForType(JsonReader reader, Type t, JsonConverter propertyConverter)
    bij Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType)
    bij Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)
    bij Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)
    bij Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings)
    bij TShockAPI.ConfigFile.Read(Stream stream)
    bij TShockAPI.ConfigFile.Read(String path)
    bij TShockAPI.FileTools.SetupConfig()
    bij TShockAPI.TShock.Initialize()



    EDIT: I even can't type anything, it just spams me with:
    "Server Restarting....

    Tshock was improperly shut down. Please avoid this in the future, world corruption may result from this."

    So, Is there a solution how to fix this without losing a world, and how to properly shut down the server?
    Because when I do /off it only restarts, and I don't see any further commands to stop the server.
    Please help me.

    -0wnage0tter
  2. JohnEBH New Member

    Well, typing in "exit" (without the quotes) in the console or /off in game are two of the proper ways to shutdown your server.
    To fix the issue, I would grab a fresh copy of TShock. The world should be fine, the worlds aren't stored in the TShock folder, they're in C:\Users\USERNAME\Documents\my games\Terraria\Worlds.
  3. 0wnage0tter New Member

    Thanks for the help, but the /off command restarted the server for me , but exit helped. (tryed it before and didn't work, probably a typo.)
    And my world is now corrupted... I can access it from another server without TShock and with, but it will show a black screen, and the server will just boot me and others.
    Any ways how I can de-corrupt my world, or is it just basically gone?
  4. JohnEBH New Member

    Can you access it on single player? (Try it =P)
    If you can, try it again with the server. If you can't, check out TEdit, see if it can open the world file.
  5. Olink TShock Developer

    2012-06-27 18:38:47 - TShock: ERROR: Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: . Line 1, position 1.

    You broke your config file, you shouldnt fiddle with things and not check for correctfulness
  6. 0wnage0tter New Member

    I did not "fiddle" with things. I never even knew that there was that config file. I couldn't open it with either Notepad, or Eclipse. I may have a old version of Eclipse, but I never opened it.
  7. Olink TShock Developer

    I'd watch your tone.

    bij TShockAPI.ConfigFile.Read(Stream stream) <----says there was an issue reading the config file.
    bij Newtonsoft.Json.JsonTextReader.ParseValue(Char currentChar) <--- It had troubled parsing a value
    2012-06-27 18:38:47 - TShock: ERROR: Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: . Line 1, position 1. <----says you opened the file and broke it. I don't care how you broke it( I can make some wild guesses and tell you that you should probably set your pc to use american standards, and not whatever regional settings you have on for whatever country that isnt america.) but the issue is your config file. Delete it, and restart tshock. There are plenty of guides that explain the basics of running a tshock server.
  8. 0wnage0tter New Member

    I'm sorry, I was a bit annoyed when my world got corrupted. I shouldn't be mad at you nor Tshock, it was actually my own stupid fault. And thanks for the information, I will test it right now and see if it works.

Share This Page