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.

Can I update the tshock plugin to version 1.3.4.4 now?

Discussion in 'Help and Support' started by NAGU, Dec 16, 2016.

  1. NAGU

    NAGU Level 5

    Joined:
    Mar 1, 2014
    Messages:
    110
    hello! Tshock family!

    I have a question.
    It will update the plug-in is sikilsu Can APIv2.0, OTAPI v2.0.0.15 version.
    Please let me know if you know!
     
  2. tanpro260196

    tanpro260196 Level 5

    Joined:
    Oct 30, 2015
    Messages:
    114
    Your question make no sense whatsoever, explain pls.
     
  3. NAGU

    NAGU Level 5

    Joined:
    Mar 1, 2014
    Messages:
    110
    I can't speak english very well.

    How do existing plugin mintaka the version can you change??
     
  4. tanpro260196

    tanpro260196 Level 5

    Joined:
    Oct 30, 2015
    Messages:
    114
    Did you meant "How to change plugin version to Mitaka?"
    Plugin version for tshock Mitaka is (2,0)
     
  5. NAGU

    NAGU Level 5

    Joined:
    Mar 1, 2014
    Messages:
    110
    yes it is!
     
  6. tanpro260196

    tanpro260196 Level 5

    Joined:
    Oct 30, 2015
    Messages:
    114
    Download the source code, open it in Visual Studio.

    Update the references:
    - On the right column, there is a references tab, right-click on it, choose "Add Reference".
    - In the new Windows just pop up, choose tab "Browse".
    - Click the Browse button and select these files from your tshock mitaka folder: "terrariaserver.exe, tshockapi.dll, OTAPI.dll, BCrypt.Net.dll, HttpServer.dll, Mono.Data.Sqlite.dll, MySQL.data.dll and Newtonsoft.Json.dll"
    - Make sure to check all of them and click ok.

    - Now, in one of those ****.cs files on the right column should contain a line like this:
    Code:
     [ApiVersion(x, x)]
    - Change whatever (x,x) is into (2,0).
    - Save and hit F5.
    - If you're lucky, no error will pop up and your new DLL will show up somewhere in the source code folder, find it.
    - If error(s) do show up though, search this forum for solution, if you can't find a solution, create a new post and ask, there are a lot of nice people here who can help you.
     
    • Winner Winner x 1
    • Informative Informative x 1
    #6 tanpro260196, Dec 17, 2016
    Last edited: Dec 17, 2016
  7. NAGU

    NAGU Level 5

    Joined:
    Mar 1, 2014
    Messages:
    110
    Thank you very much

    I am glad I have someone like you.
     
    • Friendly Friendly x 1
  8. Demonith

    Demonith Level 2

    Joined:
    Jan 16, 2012
    Messages:
    34
    So we can update plugins to new API to use on latest TShock server
     
    • Can't Search Can't Search x 1
  9. tanpro260196

    tanpro260196 Level 5

    Joined:
    Oct 30, 2015
    Messages:
    114
    Yes, though I do not recommend to update plugin older than 1.20 or extremely complicated plugin like Seconomy due to unexpected bugs/crashes.
     
    • Agree Agree x 1
    #9 tanpro260196, Dec 21, 2016
    Last edited: Dec 21, 2016
  10. Demonith

    Demonith Level 2

    Joined:
    Jan 16, 2012
    Messages:
    34
    Well all plugins are 1.25 so i shell do it without problems
     
  11. Demonith

    Demonith Level 2

    Joined:
    Jan 16, 2012
    Messages:
    34
    I dont understand this Tutorial up there what that u add amm i downloaded source latest and now open it now i dont know where to find thous files and do i need to add the plugins ****.dll files too
     
  12. tanpro260196

    tanpro260196 Level 5

    Joined:
    Oct 30, 2015
    Messages:
    114
    Those files are in you tshock folder.
    No, you don't need to add your plugin *.DLL

    P/s: Tshock forder is where the terraria-server.exe, serverplugins folder are kept.
     
    #12 tanpro260196, Dec 21, 2016
    Last edited: Dec 21, 2016
  13. Demonith

    Demonith Level 2

    Joined:
    Jan 16, 2012
    Messages:
    34
    Sry for so much asking i have aloot folders inside source folder or do i need to add from Tshock server folder
     
  14. tanpro260196

    tanpro260196 Level 5

    Joined:
    Oct 30, 2015
    Messages:
    114
    YOUR Tshock folder, not the source code folder.
     
  15. Demonith

    Demonith Level 2

    Joined:
    Jan 16, 2012
    Messages:
    34
    [​IMG]
    This is what i get when trying to add them
     
  16. tanpro260196

    tanpro260196 Level 5

    Joined:
    Oct 30, 2015
    Messages:
    114
    Delete the corresponding entry in the References list first (right click =>remove/delete). Then try again.
     
  17. Demonith

    Demonith Level 2

    Joined:
    Jan 16, 2012
    Messages:
    34
    Worked i can add but cant finde the version to change and build errors
     
  18. tanpro260196

    tanpro260196 Level 5

    Joined:
    Oct 30, 2015
    Messages:
    114
    Try to find in one of those *.cs files, it will be there.
    What error exactly?
     
  19. Demonith

    Demonith Level 2

    Joined:
    Jan 16, 2012
    Messages:
    34
    Well i try to watch yours and compile tutorial how to and tr to fix this error its like missing something ok i download
    TShock-mintaka-pre2-4.3.21-2.0-2.0.0.15.zip
    Open the TShock.sln
    [​IMG]
    This is what i get when i open in references
    [​IMG]
     
  20. tanpro260196

    tanpro260196 Level 5

    Joined:
    Oct 30, 2015
    Messages:
    114
    Wait, what are you doing? Why are you compling tshock?
    You need the Plugin's Souce code, not Tshock's source code.