Forum

Results 1 to 4 of 4
  1. #1
    Join Date
    July 2012
    Posts
    9

    Solved "i_icon_id" or "permvalue" value issue

    I've uploaded my custom icon onto teamspeak 3 server and it generated a 10 characters long id for it (4194963450).
    Now when I try to change my i_icon_id through server query with this command:
    Code:
    clientaddperm cldbid=113244 permid=142 permvalue=4194963450 permskip=0
    I get the "error id=1540 msg=convert\serror" error.
    But when I make the icon id 9 characters long then it executes perfectly.

    So the issue is that the "permvalue" or "i_icon_id" max length is equal to 9, when my icon id max length = 10.

    Could you guys please fix it?

  2. #2
    Join Date
    April 2011
    Location
    Germany
    Posts
    1,266
    That is to keep people calculating.

    Or said otherwise... the name generating sub routine generates 32bit unsigned interger as IDs for the name of a icon in the file system. The permission system uses 32 bit signed integer... So "4194963450" could not be expresed in 32 bit signed integer because it's max value is something like 2147483647. All you need to do is calculate a 32 bit unsigned to 32 bit signed conversion.

    Which of course is to be considered trivial. Just do a signed value = unsigned value - 2^(bit count) ... In your case signed value=4194963450-4294967296

  3. #3
    Join Date
    July 2012
    Posts
    9
    Thank you. Problem Solved!

  4. #4
    Join Date
    June 2011
    Location
    Germany
    Posts
    4,368
    Please note that editing servers and channels requires an unsigned icon ID (but reading them returns a signed one). Logic.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 2
    Last Post: July 8th, 2015, 11:39 AM
  2. [Evaluation] Add: Right-click users from "List All Clients" to view the "Server Groups Dialogue"
    By Morthawt in forum Suggestions and Feedback
    Replies: 1
    Last Post: February 22nd, 2014, 09:18 PM
  3. [Resolved] Add "Channel" Text Location to "Sent poke" and back to "Received poke"
    By PatPeter in forum Suggestions and Feedback
    Replies: 2
    Last Post: May 9th, 2013, 07:09 AM
  4. Can I use "whisper" to enable a "Public" and "Private" channel?
    By DadisAjax in forum General Questions
    Replies: 2
    Last Post: June 29th, 2012, 12:59 AM
  5. Replies: 15
    Last Post: June 20th, 2012, 01:51 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •