liamcottle / rustplus.js

Unofficial NodeJS library for controlling Smart Switches in the PC game Rust
224 stars 46 forks source link

new markers update ?? #55

Closed C74K closed 1 year ago

C74K commented 1 year ago

new markers update ?? can download map with markers ?

olijeffers0n commented 1 year ago

They never updated the mobile application

paccerdk commented 1 year ago

No update needed for rustplus.js, the new markers are already supported, and are returned by the rustPlus.getTeamInfo, see response.teamInfo.mapnotes, (type 1, the type 0 one is "last death position"-marker) You'll have to draw the markers on the map yourself, there's no way to "download map with markers" directly. Heres an example of the data structure:

{
   "response":{
      "seq":5,
      "teamInfo":{
         "leaderSteamId":"12345678912345678",
         "members":[
            {
               "steamId":"12345678912345678",
               "name":"playername",
               "x":102.802490234375,
               "y":2059.05615234375,
               "isOnline":true,
               "spawnTime":1682498745,
               "isAlive":true,
               "deathTime":1682478559
            }
         ],
         "mapNotes":[
            {
               "type":0,
               "x":2118.802978515625,
               "y":2334.864013671875
            },
            {
               "type":1,
               "x":1507.614990234375,
               "y":1992.879638671875
            },
            {
               "type":1,
               "x":2194.95849609375,
               "y":2052.648681640625
            },
            {
               "type":1,
               "x":1808.3277587890625,
               "y":2467.2958984375
            },
            {
               "type":1,
               "x":1389.94482421875,
               "y":2515.8583984375
            },
            {
               "type":1,
               "x":2202.429443359375,
               "y":2717.57861328125
            }
         ]
      }
   }
}