1. The forums are scheduled for deletion on or after December 31, 2024 (JST). Please back up or archive any data you find important to you. If you do not have an account, you cannot login or create an account.

2.1 TSWVote 2.3

Allows in-game voting using the tserverweb.com platform.

  1. XGhozt

    Plugin Developer

    Joined:
    May 12, 2012
    Messages:
    171
    The CAPTCHA is not live yet. Ya'll will have some time to update the plugin on your server(s) before the old version stops working. :cool:
     
  2. IcyPhoenix

    TShock Contributor

    Joined:
    Jul 27, 2012
    Messages:
    367
  3. Simon311

    Simon311 TShock Contributor; Moderator
    TShock Contributor Plugin Developer

    Joined:
    Feb 23, 2013
    Messages:
    337
    I'll be forking it today and adding some stuff, I'll make sure to do that :).
     
  4. OFF

    OFF
    Account Probation Banned Rating Banned

    Joined:
    Nov 28, 2013
    Messages:
    208
    [TServerWeb] Vote failed! Please contact an administrator.

    Erhm..

    Code:
    [TServerWeb] TSWVote Error: Vote failure. Reason: Connection failure: System.Not
    SupportedException: WebClient does not support concurrent I/O operations.
      at System.Net.WebClient.ClearWebClientState()
      at System.Net.WebClient.DownloadStringAsync(Uri address, Object userToken)
      at TSWVote.TSWVote.tswQuery(String url, Object userToken)
      at TSWVote.TSWVote.validateCAPTCHA(CommandArgs e)
      at TSWVote.TSWVote.Vote(CommandArgs e)
     
  5. OFF

    OFF
    Account Probation Banned Rating Banned

    Joined:
    Nov 28, 2013
    Messages:
    208
  6. Simon311

    Simon311 TShock Contributor; Moderator
    TShock Contributor Plugin Developer

    Joined:
    Feb 23, 2013
    Messages:
    337
    Well, I had the feeling that re-using same WebClient() all over again would have some concurrency issues, but I just trusted Icy on this one =/
     
  7. XGhozt

    Plugin Developer

    Joined:
    May 12, 2012
    Messages:
    171
    This is an issue on tserverweb.com, not with the plugin. Will be fixed soon.
     
  8. OFF

    OFF
    Account Probation Banned Rating Banned

    Joined:
    Nov 28, 2013
    Messages:
    208
    I don't want to be rude, but it doesn't work at all and sometimes crashes my server whole with the following error:

    Code:
    Unhandled Exception: System.NullReferenceException: Object reference not set to
    an instance of an object.
      at TSWVote.TSWVote.WebClient_DownloadStringCompleted(Object sender, Download
    tringCompletedEventArgs e)
      at System.Net.WebClient.OnDownloadStringCompleted(DownloadStringCompletedEve
    tArgs e)
      at System.Net.WebClient.DownloadStringOperationCompleted(Object arg)
      at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(Object st
    te)
      at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionC
    ntext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
      at System.Threading.ExecutionContext.Run(ExecutionContext executionContext,
    ontextCallback callback, Object state, Boolean preserveSyncCtx)
      at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWo
    kItem.ExecuteWorkItem()
      at System.Threading.ThreadPoolWorkQueue.Dispatch()
      at System.Threading._Threa
    And it usually just keeps telling me in console that the website/server is offline, while tserverweb is clearly online.
     
  9. XGhozt

    Plugin Developer

    Joined:
    May 12, 2012
    Messages:
    171
    Will be releasing a fix within 24 hours.
     
  10. IcyPhoenix

    TShock Contributor

    Joined:
    Jul 27, 2012
    Messages:
    367
    Yeah my bad there, pushed a fix for it to xghozt - should now be working as intended. (this is what happens when you are only testing with one person)
     
  11. Loganizer

    Plugin Developer

    Joined:
    Dec 2, 2012
    Messages:
    212
    • Like Like x 1
  12. CyberzOwl

    CyberzOwl Level 2

    Joined:
    Nov 24, 2013
    Messages:
    38
    Thank you Loganizer. I almost thanked XGhozt, I'm tired and weary at this hour!
     
    • Like Like x 1
  13. OFF

    OFF
    Account Probation Banned Rating Banned

    Joined:
    Nov 28, 2013
    Messages:
    208
  14. Wight

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

    Joined:
    May 20, 2012
    Messages:
    1,598
    What...
    Code:
    [ApiVersion(1, 15)]
        public class TSWVote : TerrariaPlugin
    
     
  15. IcyPhoenix

    TShock Contributor

    Joined:
    Jul 27, 2012
    Messages:
    367
    Shes talking about the release description on github
     
  16. Tauriel

    Tauriel Level 4

    Joined:
    Apr 30, 2014
    Messages:
    67
    Honestly, I've just heard from my co-owner that the vote plugin does not work and lagged the server like hell, and due to that my journal got corrupted. FML
     
  17. Simon311

    Simon311 TShock Contributor; Moderator
    TShock Contributor Plugin Developer

    Joined:
    Feb 23, 2013
    Messages:
    337
    You probably didn't update to 2.1
     
  18. Tauriel

    Tauriel Level 4

    Joined:
    Apr 30, 2014
    Messages:
    67
    Already updated to 2.1, lags upon voting. Server crashed & my journal got corrupted.
     
  19. Tauriel

    Tauriel Level 4

    Joined:
    Apr 30, 2014
    Messages:
    67
    And even then, I think the plugin should prevent the server from crashing and just send an exception.
     
  20. Simon311

    Simon311 TShock Contributor; Moderator
    TShock Contributor Plugin Developer

    Joined:
    Feb 23, 2013
    Messages:
    337
    I am not having any problems. However, I am not using the release version either