pubgsh / client Goto Github PK
View Code? Open in Web Editor NEWThe client component of https://pubg.sh
The client component of https://pubg.sh
Bots introduced in the PUBG patch 7.2 do not show properly in the replay. They blink in and out.
This should be fixed.
Also bots could be have some visual difference compared to real players. (Maybe different colour in the replay?)
Player circles appear to be teleporting/bouncing after one of the latest updates.
4:35 mark at https://pubg.sh/BOT_Andre/pc-na/14e6c4c7-d4f5-4c29-af53-44451ee0105b
This will require changes in API. Also depends on #32
Hi,
I am using your software via PUBGlookup. On my android phone and older desktop it works fine, but on this brand new Windows 10PC, the map comes up in color, but all the player dots, name ID's on the map and red zone are solid black.
Something changed in the PUBG telemetry that's resulting in kills not being correctly tracked. While they show correctly on the match listing (which is handled server-side and comes from the match listing endpoints -- not telemetry), they're not registered on the replay page.
@lovethebomb Maybe you're interested in taking a look? I'm fairly certain it'll be contained to Telemetry.parser.js
. No worries if not, just figured I'd ask since you sorted out the missing assets :)
See: https://pubg.sh/RelliDom/xbox/58255f25-610c-4aea-bc41-f2ee1e6aa8fe
$ curl 'https://api.pubg.sh/graphql' -X POST -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:93.0) Gecko/20100101 Firefox/93.0' -H 'Accept: */*' -H 'Accept-Language: en-US,en;q=0.5' --compressed -H 'Referer: https://pubg.sh/' -H 'content-type: application/json' -H 'Origin: https://pubg.sh' -H 'DNT: 1' -H 'Connection: keep-alive' -H 'Sec-Fetch-Dest: empty' -H 'Sec-Fetch-Mode: cors' -H 'Sec-Fetch-Site: same-site' -H 'TE: trailers' --data-raw '{"operationName":null,"variables":{"matchId":"58255f25-610c-4aea-bc41-f2ee1e6aa8fe"},"query":"query ($matchId: String!) {\n match(id: $matchId) {\n id\n shardId\n gameMode\n playedAt\n mapName\n durationSeconds\n telemetryUrl\n players {\n id\n name\n rosterId\n stats {\n kills\n winPlace\n __typename\n }\n __typename\n }\n __typename\n }\n}\n"}'
# response
{"data":null,"errors":[{"message":"getaddrinfo EAI_AGAIN api.pubg.com:443","locations":[{"line":2,"column":3}],"path":["match"]}]}%
This is a feature request/idea.
As a pretty bad player it saddens me when I can no longer replay my few chicken dinners when they fall out of the recent matches.
Since telemetry is just a JSON file, the user could download it and retain the ability to play it locally via <input type="file" />
and FileReader
(no server interaction needed).
I have experience working on offline apps using FileReader
, and I'm willing to work on this if you're interested in the idea.
See the similar PR #78 here.
The official API now returns custom matches. Identify these and add them to pubg.sh
UTC times aren't very useful for me - usually I'm looking up matches that just happened and it gets a bit confusing to see UTC.
That, coupled with a relative time indicator (e.g. "20 minutes ago") would make browsing matches much easier
When the player is killed by playzone, the icon's hint at TimeSlider
just shows Killed By:
.
What do you think about the hint shows Killed By: Playzone
rather the current behaviour?
See the similar issue here https://github.com/pubgsh/client/pull/78/files
The reason for this is if you look at the in-game data for the map image, it's loaded as 8128x8128 pixels but exports as 8192x8192
8128/8192 = 0.9921875
"InImageSizeX": 8128.0,
"InImageSizeY": 8128.0,
"ImageSizeX": 8192.0,
"ImageSizeY": 8192.0,
"Bounds": [
812775.0,
812775.0
],
And in the telemetry case, it's 8160 / 8192 = 0.99609375
This should pan the map around keeping the focused player in the center of the screen.
Can also consider a toggle to zoom into the center of the bluezone instead of a player.
User story:
As a end user i would like to see if someone is using new tactical gear. Mainly Spotter Scopes or Drone.
Everything is shifted top-right. Seems like an error due to Vikendi being 6x6, but default size seems to be 8x8.
Can you help me to get this running?
I did
npm install
yarn run
If you search for my nickname 'Dinx_x', it says "An error occured :")!
Please fix it....
Good day. Maps have changed, the position of buildings and objects. Can you update?
Error loading telemetry: latestPlayerStates[playerName] is undefined index.js:63:24
Game with error:
https://pubg.sh/M0nk3yK0nG/xbox/241a7ec1-bf55-433a-bbfe-e53ac7c2a142
iirc pubg doesn't save the telemetry forever, so I've saved it here:
https://gist.github.com/dalanmiller/30083373d916d6914b3f941a20edf935
I'm not sure if it's related to the expired certificate on the website or not, but even if you agree to continue and search for a player name, it returns the message An error occurred :(
this.telemetryWorker.addEventListener('message', ({ data }) => {
const { success, error, state, globalState, rawTelemetry } = data
if (!success) {
console.error(`Error loading telemetry: ${error}`)
this.setState(prevState => ({
telemetryError: true,
}))
return
}
const telemetry = Telemetry(state)
this.setState(prevState => ({
rawTelemetry,
telemetry,
telemetryLoaded: true,
rosters: telemetry.finalRoster(params.playerName),
globalState,
}))
})
Getting: Error loading telemetry: curState.players[_characterName] is undefined
Example match: https://pubg.sh/kaoD-/steam/11691cfb-975a-4112-bafe-e8422443023b
Maybe the new white ghillie?
What do you think about displaying the winner in the roster list?
I was thinking a crown icon or maybe just a gold border around the roster for the player/squad who ends up winning
edit: more than happy to action this myself
Right now the new map Taego is shown with the name Tiger_Main and when trying to look at the replays it doesn't show the actual replay and gives a bunch of errors.
Support for the new maps should be added similar way as was done with Paramo and other new maps.
See similar commits for Paramo for reference:
7665668
f3632eb
https://pubg.sh/SiulOner/steam/887b034b-3fa3-4c83-8554-ff1abd7abbf9
My friend fell on Cave and DBNOed himself, getting 100 damage in the player list.
I was seeing the project board looking for something that I could contribute. So I saw this card https://github.com/orgs/pubgsh/projects/1#card-10815648 and I think that I could work on it.
@apazzolini, what do you think?
This is necessary for color-blindness support.
It looks like a missing image (based on map name) is stopping it from loading.
Example
https://pubg.sh/shawn42/steam/629e5a11-df03-4895-8984-f8da33b78e91
It seems that custom matches from 30th August are not displaying. I played some custom matches day after that and they are not listed. It is probably because of the change in API, where gameMode for custom games includes team size (solo/duo/squad) and perspective (fpp) in addition to 'normal'.
client/src/routes/Player/index.js
Line 85 in e4517f1
@apazzolini love the site, but it appears to be broken right now. Don't know if you are aware?
Looks like V12 of the APIs went live on Thursday (20th June). Since then trying to load any game in pubg.sh results in "An error occured" when it is trying to load telemetry
V12 changes here: https://documentation.pubg.com/en/changelog/changelog.html#v12-0-0
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.