Jump to content


Photo
Question

GroupID and clanSteamID

node.js node-steam-user

Best Answer Dr. McKay , 25 April 2019 - 01:16 PM

That SteamID (like all 64-bit SteamIDs) is too big to be represented as a JavaScript number. It's being rounded.

 

TL17f.png

 

Wrap it in quotes.

Go to the full post


  • Please log in to reply
8 replies to this topic

#1 roughnecks

roughnecks

    Advanced Member

  • Member
  • PipPipPip
  • 58 posts

Posted 24 April 2019 - 07:25 AM

Hello.

 

I'm trying to join a group of mine but I have issues with IDs.

 

If I use <groupID64>number</groupID64> - taken from my group url after adding "/memberslistxml?xml=1" - in "chat.getClanChatGroupInfo" I get info about a group which isn't mine.

Then if I try to join my group, either by using groupID64 or groupID I can read while editing my group on Steam ( http://i.imgur.com/zCUqOcd.png ) i get an eresult 10 (Busy).

 

Can you clarify which ID is which and how do I get them?

Thanks



#2 Dr. McKay

Dr. McKay

    Developer

  • Administrator
  • 2,166 posts

Posted 24 April 2019 - 03:53 PM

There's no reason you shouldn't be able to use the <groupID64> number with getClanChatGroupInfo. That is your group's 64-bit SteamID.

 

The ID in your group edit page is the accountid portion of your group's SteamID. You can turn it into a full SteamID by putting it in this string: "[g:1:x]"

 

For example, the Valve group's accountid is 4, so we get https://steamcommunity.com/gid/[g:1:4]



#3 roughnecks

roughnecks

    Advanced Member

  • Member
  • PipPipPip
  • 58 posts

Posted 24 April 2019 - 04:44 PM

There's no reason you shouldn't be able to use the <groupID64> number with getClanChatGroupInfo. That is your group's 64-bit SteamID.

 

OK but, as I said earlier, I got a different group info using my groupID64 and when I try to join it returns "error code 10".



#4 roughnecks

roughnecks

    Advanced Member

  • Member
  • PipPipPip
  • 58 posts

Posted 24 April 2019 - 04:49 PM

    zed.manager._steam.chat.getClanChatGroupInfo(mygroupID64, function (err, response) {
        if (!err) {
            console.log(response);
        } else {
            console.log(err);
        }
    });


#5 Dr. McKay

Dr. McKay

    Developer

  • Administrator
  • 2,166 posts

Posted 24 April 2019 - 07:17 PM

Can you show the code you're using to try to join the group chat?



#6 roughnecks

roughnecks

    Advanced Member

  • Member
  • PipPipPip
  • 58 posts

Posted 25 April 2019 - 03:42 AM

zed.manager._steam.chat.joinGroup(groupId, function (err, response)

But I don't have the correct groupId, which I thought I'd get using "getClanChatGroupInfo" first and looking at response (chat_group_summary).



#7 roughnecks

roughnecks

    Advanced Member

  • Member
  • PipPipPip
  • 58 posts

Posted 25 April 2019 - 05:44 AM

Just to be clear.

    zed.manager._steam.chat.getClanChatGroupInfo(103582791464211888, function (err, response) {
        if (!err) {
            console.log(response);
        } else {
            console.log(err);
        }
    });

That is my actual group clan id, but in response I'm getting:

 

=======================================================

[11:37:11] [LOG]
[11:37:11] [LOG]    { chat_group_summary:
   { chat_rooms: [ [Object] ],
     top_members: [ [SteamID], [SteamID], [SteamID] ],
     role_ids: [],
     role_actions: [],
     party_beacons: [],
     chat_group_id: '5001420',
     chat_group_name: 'the lostlords clan',
     active_member_count: 3,
     active_voice_member_count: 0,
     default_chat_id: '15574067',
     clanid:
      SteamID { universe: 1, type: 7, instance: 0, accountid: 34690482 },
     chat_group_tagline: '',
     accountid_owner: null,
     chat_group_avatar_sha: null,
     rank: null,
     default_role_id: null,
     appid: null,
     chat_group_avatar_url: null,
     watching_broadcast_steamid: null } }
 
======================================================
 
Which is NOT my Group.
 
I was able to get my groupID using the "getInviteLinkInfo" method and now I'm testing chat messages and it works, but I need a way to get groupID inside the bot without an invite link.


#8 Dr. McKay

Dr. McKay

    Developer

  • Administrator
  • 2,166 posts

Posted 25 April 2019 - 01:16 PM   Best Answer

That SteamID (like all 64-bit SteamIDs) is too big to be represented as a JavaScript number. It's being rounded.

 

TL17f.png

 

Wrap it in quotes.



#9 roughnecks

roughnecks

    Advanced Member

  • Member
  • PipPipPip
  • 58 posts

Posted 25 April 2019 - 02:54 PM

Thank You DOC!! Solved  :)







Also tagged with one or more of these keywords: Question, node.js, node-steam-user

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users