Results 1 to 4 of 4

  Click here to go to the first Developer post in this thread.  

Thread: Attention: getPlayerUID compatibility note

  1.   Click here to go to the next Developer post in this thread.   #1
    BI Developer Suma's Avatar
    Join Date
    Jun 27 2001
    Location
    Czech Republic
    Posts
    3,708

    Exclamation Attention: getPlayerUID compatibility note

    Beware, following compatibility note was added to http://community.bistudio.com/wiki/getPlayerUID:

    Note: while for ArmA 2 or ArmA 2: Operation Arrowhead the result always contains a number, it should be always handled as an opaque string. Converting it to a Number can cause precision problems , as Number cannot accurately represent integers above 16777216 (2^24). Moreover, future game versions may provide a non-numeric value as a result.
    We are preparing a significant new features in handling the playerId for Operation Arrowhead, significantly improving their security and reliability. However, it is impossible for us to keep the current size limitations for the playerId, and therefore it is important that addon and missions makers adapt their scripts to be able to accept non-numeric (or large numeric) values as well, besides of the small numeric values seen until now. Before implementing and publishing those features we would like to be sure the community content is ready for the change.
    Last edited by Suma; Jun 21 2012 at 14:58.
    Ondrej Spanel, BIS Lead Programmer

  2. #2
    Gunnery Sergeant armatech's Avatar
    Join Date
    Jan 11 2007
    Location
    United Kingdom
    Posts
    505
    would this mean that all players UID's will need to be updated with the new numbering system or just new downloads/CD's purchased

  3. #3
    When you say a opaque string, it includes any type of chars i supose, am I right?, i am using UID as part of a variable name, so it would be a problem for example if the string can content restricted chars for variable names.
    Last edited by columdrum; Jun 21 2012 at 19:22.

  4.   This is the last Developer post in this thread.   #4
    BI Developer Suma's Avatar
    Join Date
    Jun 27 2001
    Location
    Czech Republic
    Posts
    3,708
    Author of the Thread
    Quote Originally Posted by columdrum View Post
    When you say a opaque string, it includes any type of chars i supose, am I right?, i am using UID as part of a variable name, so it would be a problem for example if the string can content restricted chars for variable names.
    OK. This is a restriction we can impose on our future implementations. The UID will only contain numbers and upper case letters.

    ---------- Post added at 11:09 ---------- Previous post was at 09:49 ----------

    Quote Originally Posted by armatech View Post
    would this mean that all players UID's will need to be updated with the new numbering system or just new downloads/CD's purchased
    The UIDs for Operation Arrowhead products will stay the same. The UIDs for all other products will change automatically once a version of engine including this change is published for them. The first visible change will be for players using Reinforcements or Arma X license, which will have they UID changed once they use the new executable, and therefore they will appear as a new players to all systems using the UID (including DayZ hive).

Similar Threads

  1. onPlayerDisconnected and getPlayerUID
    By MAD T in forum ARMA 2 & OA : MISSIONS - Editing & Scripting
    Replies: 4
    Last Post: Feb 20 2011, 11:19
  2. getplayerUID problems
    By Tankbuster in forum ARMA 2 & OA : ADDONS - Configs & Scripting
    Replies: 0
    Last Post: Feb 19 2010, 19:58
  3. Devs please note
    By Axel88 in forum ARMA 2 & OA : MISSIONS - Editing & Scripting
    Replies: 8
    Last Post: Dec 8 2009, 11:19
  4. getPlayerUID unit
    By Rommel in forum ARMA 2 & OA : MISSIONS - Editing & Scripting
    Replies: 3
    Last Post: Jun 22 2009, 08:26
  5. Muah, Just a note
    By chiefbosn in forum ARMA - GENERAL
    Replies: 1
    Last Post: Apr 22 2007, 16:39

Posting Permissions

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