1. These forums are being retired. Please ask all questions and help threads and any other type of discussions on GitHub. During this time, new threads and user registrations have been disabled.

1.25 (obsolete) User Specific Functions 1.4.8

//

  1. Kojiro_S

    Kojiro_S Level 11

    Joined:
    Feb 16, 2014
    Messages:
    659
    Done. And nothing happened. Still doesn't appear among the loaded plugins at startup, and once TShock fully loads, typing /us gives an "Invalid command" message.
    For the record, it worked without a problem before, so I'm pretty sure it was installed correctly. For now I'll just dig for the previous version on my backups folder.

    Nevermind. For some reason my .net was acting funny again for no reason. Reinstalled .net and now all is well. I don't even know what causes it to go weird every few months.
    Thanks for your time.
     
    #41 Kojiro_S, Nov 23, 2015
    Last edited: Nov 23, 2015
  2. Professor X

    Professor X Spam Cleaner 9000.5
    TShock Mod TShock Contributor

    Joined:
    Aug 18, 2014
    Messages:
    246
    Works fine for me. Also try ^
    Edit: Nevermind, your message didn't show until I posted a reply.
     
    #42 Professor X, Nov 23, 2015
    Last edited: Nov 23, 2015
  3. Professor X

    Professor X Spam Cleaner 9000.5
    TShock Mod TShock Contributor

    Joined:
    Aug 18, 2014
    Messages:
    246
  4. Professor X

    Professor X Spam Cleaner 9000.5
    TShock Mod TShock Contributor

    Joined:
    Aug 18, 2014
    Messages:
    246
    Again, use the link Grandpa-G posted. Something is obviously very wrong with the RM.
     
  5. Kojiro_S

    Kojiro_S Level 11

    Joined:
    Feb 16, 2014
    Messages:
    659
    Mmm, any chance that the usernames can recognize upper/lowercases? I've met with a few problems when trying to change users with the same name, but with different 'cases. The plugin will just refuse to do anything because it will find more than one match.
     
  6. Enerdy

    Enerdy Satellite Admin
    TShock Mod Plugin Developer Zero Day Plugin Author

    Joined:
    Nov 14, 2012
    Messages:
    507
    This is actually a serious problem, resulting from the use of the TShock.Users.GetUsersByName function without performing an exact match first. This makes it impossible to retrieve single users in the event that there are users with an "extended" version of our target's name. You'd never be able to target a player named "Nick" with this, for example, if another player named "nick2324" existed in the same database, forcing you to manually fetch their UserID and add the data to the table.

    When it comes to users, you should almost always check for a perfect match instead of finding users starting with the search string, although this feature can be kept as long as you perform a check for a perfect match beforehand.
     
  7. Professor X

    Professor X Spam Cleaner 9000.5
    TShock Mod TShock Contributor

    Joined:
    Aug 18, 2014
    Messages:
    246
    Will be fixed after I reinstall VS. Most likely tomorrow as it's really late, sorry.
     
    • Like Like x 2
  8. Professor X

    Professor X Spam Cleaner 9000.5
    TShock Mod TShock Contributor

    Joined:
    Aug 18, 2014
    Messages:
    246
  9. Kojiro_S

    Kojiro_S Level 11

    Joined:
    Feb 16, 2014
    Messages:
    659
    Thanks a lot for the fast fix. I'll report back after testing for a while.
    EDIT: I haven't stumbled with similar problems yet, and the plugin works as usual. I'd say it's working as intended. Thanks again.
     
    • Like Like x 1
    #49 Kojiro_S, Jan 9, 2016
    Last edited: Jan 20, 2016
  10. Professor X

    Professor X Spam Cleaner 9000.5
    TShock Mod TShock Contributor

    Joined:
    Aug 18, 2014
    Messages:
    246
  11. XxZenqxX

    XxZenqxX Level 4

    Joined:
    Aug 11, 2015
    Messages:
    53
    I got the update but came up




    at TerrariaApi.Server.HandlerCollection`1.Invoke(ArgsType args) at UserSpecificFunctions.UserSpecificFunctions.OnInitialize(EventArgs args) at UserSpecificFunctions.Database.LoadDatabase()System.NullReferenceException: Object reference not set to an instance of an object.[Server API] Warning Plugin "User Specific Functions" has had an unhandled exception thrown by one of its GameInitialize handlers:
     
  12. Dasha_000

    Dasha_000 Level 4

    Joined:
    Nov 14, 2015
    Messages:
    53

    Attached Files:

    • USF.PNG
      USF.PNG
      File size:
      9.4 KB
      Views:
      137
  13. Professor X

    Professor X Spam Cleaner 9000.5
    TShock Mod TShock Contributor

    Joined:
    Aug 18, 2014
    Messages:
    246
    https://www.sendspace.com/file/gosg7x (Use this link as Git is being annoying and RM isn't forwarding updates anyway) Should be fixed, it was actually setting the prefix instead of the suffix. Thanks for pointing it out.
     
    • Useful Useful x 1
  14. XxZenqxX

    XxZenqxX Level 4

    Joined:
    Aug 11, 2015
    Messages:
    53
    That website seems to be shady, and my antivirus said that the dll is unsafe :/
     
  15. Professor X

    Professor X Spam Cleaner 9000.5
    TShock Mod TShock Contributor

    Joined:
    Aug 18, 2014
    Messages:
    246
    The website is fine and your antivirus is lying. I'm not going to force you to download it, take it or leave it.
     
    • Like Like x 1
  16. Dasha_000

    Dasha_000 Level 4

    Joined:
    Nov 14, 2015
    Messages:
    53
    Thank you very much <3
     
  17. Professor X

    Professor X Spam Cleaner 9000.5
    TShock Mod TShock Contributor

    Joined:
    Aug 18, 2014
    Messages:
    246
  18. Kojiro_S

    Kojiro_S Level 11

    Joined:
    Feb 16, 2014
    Messages:
    659
    A couple of questions about permissions.
    If for some reason someone received the same permission 2 times (for instance, with an automated command), would the permission appear duplicated on the database or would the plugin notice it is a duplicate and skip adding it?
    And also, can ! permissions be added to disable permissions one has inherited the normal way?
    Thanks in advance.
     
  19. Professor X

    Professor X Spam Cleaner 9000.5
    TShock Mod TShock Contributor

    Joined:
    Aug 18, 2014
    Messages:
    246
    Yes, the plugin will check and prevent duplication in case a player already has the permission. As for negated permissions, of course. I'll add it to the plugin as soon as I am done with the upcoming exams.
     
    • Informative Informative x 1
  20. Professor X

    Professor X Spam Cleaner 9000.5
    TShock Mod TShock Contributor

    Joined:
    Aug 18, 2014
    Messages:
    246
    • Like Like x 1