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.

SSC Question

Discussion in 'Help and Support' started by ridder654, Jul 5, 2015.

  1. ridder654

    ridder654 Level 0

    Joined:
    Jul 5, 2015
    Messages:
    2
    When new versions of tshock come out how do i transfer over the ssc i have on a previous version. i noticed with the version for before 1.3 my friends ssc are gone. what do i need to do to restore.

    Also if i make a new server will my friends be able to log on to past ssc? or will they have to start over.
     
  2. fabio_junior100082

    Joined:
    Sep 14, 2014
    Messages:
    113
    Copy the file "tshock.json" the older version located inside the folder "tshock", and paste in the folder tshock of the new version.
     
  3. ridder654

    ridder654 Level 0

    Joined:
    Jul 5, 2015
    Messages:
    2
    i dont have that file, is that the exact name?
     
  4. Patrick.D

    Patrick.D Level 1

    Joined:
    Jul 5, 2015
    Messages:
    20
    Hi !

    I've create an account except to write this thread .. but you have do before ^^ I have the exact same question, how to get my old SSC get work with this new release.

    I also have check, in folder tshock in my root server, and I don't find this file "tshock.json".
    I have perform a quick (not realy quick..) global search on root file, and system found nothing.

    With notpad++ I have open couple file, and the only one file seem to be the good one is called "tshock.sqlite", and it's sound good due to the db type in the config is set by default to mysqli, SO I have trying to copy/paste in the new folder release, and .. didn't work.

    I'm probably in the error at this point, anyone can handle me a hand to get out of this situation ?

    Thank's in advance;

    edit: I put a screenshot of my folder tshock, to show all files in.

    *I also want to take up a time to notice all staff work behind tshock, good job guy the global work is really an awesome job ! Thank's from QC, CA.
     

    Attached Files:

    • info.png
      info.png
      File size:
      239.9 KB
      Views:
      311
    #4 Patrick.D, Jul 5, 2015
    Last edited: Jul 5, 2015
  5. fabio_junior100082

    Joined:
    Sep 14, 2014
    Messages:
    113
    Oh, sorry is "tshock.sqlite"!
     
  6. Patrick.D

    Patrick.D Level 1

    Joined:
    Jul 5, 2015
    Messages:
    20
    Hi @fabio_junior100082,

     
  7. fabio_junior100082

    Joined:
    Sep 14, 2014
    Messages:
    113
    The file name is tshock.sqlite. I'm sorry!
     
  8. fabio_junior100082

    Joined:
    Sep 14, 2014
    Messages:
    113
    The file "config. json" does not work in the new version. You should delete the file config. json and run the server, so that the file be created again, after that you must configure it manually. Or if you are an advanced user, you can do the modification of the json file manually without having to create it again.
     
  9. nicatronTg

    nicatronTg Shank / hakusaro
    TShock Founder TShock Admin

    Joined:
    Jul 21, 2011
    Messages:
    723
    FYI the server side config file is "ssconfig.json," not "config.json."
     
  10. Patrick.D

    Patrick.D Level 1

    Joined:
    Jul 5, 2015
    Messages:
    20
    Hi @nicatronTg, @fabio_junior100082;

    So, I'm not the owner of this thread, in this sens I dont wanted to put my big troubleshoot to not take the place of the owner, but a this point, I think is appropriate.

    Here is what I exacly have do, juste to be sure all is clear like water.

    (server for 1.2.4.1 is running fine with SSC.)
    1. Download the prerelease 2 from github and extract into a new empty folder in my drive, c:/
    2. Start directly the terrariaserver from this package, select and load my proper existing map.
    3. open my terraria on my pc, connect to server without problems.
    4.Do all the steps to auth-verify, receive the green notice saying is success ..
    5. Close all, then manually modify the brand new config.json AND ssconfig.json created few second ago by tshock.
    6. Reopen server, reopen terraria, only check if serverside char' is enable, if I can resgiter and login too.. it's with success.
    7. Close again the client and server, copy from my old folder the file called "tshock.sqlite" and move to the new folder tshock.
    9. Reopen server, reopen the client game .. connect .. type login with the password, and at his point, the server say "There was an error processing your request". When I'm trying to type a false password, it's saying Invalid password, so, I can consider the system it's correctly loading the file, but not able to load the inventory.

    And now, I' stuck.. I have / will edit this post in fews second, with all the screenshot, and will added all the info from the config file to give all the information is possible to anyone can help me.

    Thank's in advance;

    Edit: It's here. If the file tshock.sqlite is needed to confirm is not corrupt or anything like this .. I can send by MP, I think it's the better way.

    It's possibly a bug from the new encryption system ? Or with the new prebuilt db ?

    {
    "InvasionMultiplier": 1,
    "DefaultMaximumSpawns": 5,
    "DefaultSpawnRate": 600,
    "ServerPort": 7776,
    "EnableWhitelist": false,
    "InfiniteInvasion": false,
    "PvPMode": "normal",
    "SpawnProtection": true,
    "SpawnProtectionRadius": 20,
    "MaxSlots": 8,
    "RangeChecks": true,
    "DisableBuild": false,
    "SuperAdminChatRGB": [
    255,
    255,
    255
    ],
    "SuperAdminChatPrefix": "",
    "SuperAdminChatSuffix": "",
    "BackupInterval": 0,
    "BackupKeepFor": 60,
    "RememberLeavePos": false,
    "HardcoreOnly": false,
    "MediumcoreOnly": false,
    "KickOnMediumcoreDeath": false,
    "BanOnMediumcoreDeath": false,
    "AutoSave": true,
    "AnnounceSave": false,
    "MaximumLoginAttempts": 5,
    "ServerName": "TerraFR",
    "UseServerName": true,
    "MasterServer": "127.0.0.1",
    "StorageType": "sqlite",
    "MySqlHost": "localhost:3306",
    "MySqlDbName": "",
    "MySqlUsername": "",
    "MySqlPassword": "",
    "MediumcoreBanReason": "Death results in a ban",
    "MediumcoreKickReason": "Death results in a kick",
    "EnableDNSHostResolution": false,
    "EnableIPBans": true,
    "EnableUUIDBans": true,
    "EnableBanOnUsernames": false,
    "DefaultRegistrationGroupName": "default",
    "DefaultGuestGroupName": "guest",
    "DisableSpewLogs": true,
    "HashAlgorithm": "sha512",
    "BufferPackets": true,
    "ServerFullReason": "Server is full",
    "WhitelistKickReason": "You are not on the whitelist.",
    "ServerFullNoReservedReason": "Server is full. No reserved slots open.",
    "SaveWorldOnCrash": true,
    "EnableGeoIP": false,
    "EnableTokenEndpointAuthentication": false,
    "RestApiEnabled": false,
    "RestApiPort": 7878,
    "DisableTombstones": true,
    "DisplayIPToAdmins": false,
    "KickProxyUsers": true,
    "DisableHardmode": false,
    "DisableDungeonGuardian": false,
    "DisableClownBombs": false,
    "DisableSnowBalls": false,
    "ChatFormat": "{1}{2}{3}: {4}",
    "ChatAboveHeadsFormat": "{2}",
    "ForceTime": "normal",
    "TileKillThreshold": 60,
    "TilePlaceThreshold": 20,
    "TileLiquidThreshold": 15,
    "ProjectileThreshold": 50,
    "ProjIgnoreShrapnel": true,
    "RequireLogin": false,
    "DisableInvisPvP": false,
    "MaxRangeForDisabled": 10,
    "ServerPassword": "",
    "RegionProtectChests": false,
    "DisableLoginBeforeJoin": false,
    "DisableUUIDLogin": false,
    "KickEmptyUUID": false,
    "AllowRegisterAnyUsername": false,
    "AllowLoginAnyUsername": true,
    "MaxDamage": 175,
    "MaxProjDamage": 175,
    "KickOnDamageThresholdBroken": false,
    "IgnoreProjUpdate": false,
    "IgnoreProjKill": false,
    "IgnoreNoClip": false,
    "AllowIce": false,
    "AllowCrimsonCreep": true,
    "AllowCorruptionCreep": true,
    "AllowHallowCreep": true,
    "StatueSpawn200": 3,
    "StatueSpawn600": 6,
    "StatueSpawnWorld": 10,
    "PreventBannedItemSpawn": false,
    "PreventDeadModification": true,
    "EnableChatAboveHeads": false,
    "ForceXmas": false,
    "AllowAllowedGroupsToSpawnBannedItems": false,
    "IgnoreChestStacksOnLoad": false,
    "LogPath": "tshock",
    "UseSqlLogs": false,
    "RevertToTextLogsOnSqlFailures": 10,
    "PreventInvalidPlaceStyle": true,
    "BroadcastRGB": [
    127,
    255,
    212
    ],
    "RestUseNewPermissionModel": true,
    "ApplicationRestTokens": {},
    "ReservedSlots": 20,
    "LogRest": false,
    "RespawnSeconds": 5,
    "RespawnBossSeconds": 10,
    "TilePaintThreshold": 15,
    "EnableMaxBytesInBuffer": false,
    "MaxBytesInBuffer": 5242880,
    "ForceHalloween": false,
    "AllowCutTilesAndBreakables": false,
    "CommandSpecifier": "/",
    "CommandSilentSpecifier": ".",
    "KickOnHardcoreDeath": false,
    "BanOnHardcoreDeath": false,
    "HardcoreBanReason": "Death results in a ban",
    "HardcoreKickReason": "Death results in a kick",
    "AnonymousBossInvasions": true,
    "MaxHP": 500,
    "MaxMP": 200,
    "SaveWorldOnLastPlayerExit": true,
    "BCryptWorkFactor": 7,
    "MinimumPasswordLength": 4,
    "VeryDangerousDoNotChangeEnableDrillContainmentUnit": false
    }

    {
    "Enabled": true,
    "ServerSideCharacterSave": 10,
    "LogonDiscardThreshold": 250,
    "StartingHealth": 150,
    "StartingMana": 40,
    "StartingInventory": [
    {
    "netID": -15,
    "prefix": 0,
    "stack": 1
    },
    {
    "netID": -13,
    "prefix": 0,
    "stack": 1
    },
    {
    "netID": -16,
    "prefix": 0,
    "stack": 1
    }
    ]
    }
     

    Attached Files:

    #10 Patrick.D, Jul 5, 2015
    Last edited: Jul 6, 2015
  11. Patrick.D

    Patrick.D Level 1

    Joined:
    Jul 5, 2015
    Messages:
    20
    So, anyone here ?
     
  12. Wight

    Wight Administrator
    TShock Admin TShock Mod Plugin Developer Zero Day Plugin Author

    Joined:
    May 20, 2012
    Messages:
    1,598
    SSC was not backwards compatible, but is now
     
  13. Patrick.D

    Patrick.D Level 1

    Joined:
    Jul 5, 2015
    Messages:
    20
    Hi,

    Yes, last night I have update for the lastest tshock, now I can login without any problems (from the old sqlite), thank's a lot @Wight :).
     
    • Friendly Friendly x 1