Comments (4)
@Jleagle I've opened the PR. See if it's OK.
from steam-go.
Thanks!
from steam-go.
From my observation, the issue comes from escaped backslash followed by escaped quotation mark \\\"
.
Looking at the key-value pair,
"arguments" "\"Client.exe code:1622 locale:USA env:Regular ver:246 logip:35.162.171.43 logport:11000 chatip:54.214.176.167 chatport:8002 setting:\\\"file://data/features.xml\\\" sn:{tracking_uid} sid:{tracking_sessionid} /P:{passport} -Steam\" --nx:title=Mabinogi --nx:serviceId=880915460"
the error reports it broke at i
in \\\"file
.
If I am correct, it broke on f
, not i
and the error reports the wrong location (and character)!
This is what I see it reads:
"arguments": "\"Client.exe code:1622 locale:USA env:Regular ver:246 logip:35.162.171.43 logport:11000 chatip:54.214.176.167 chatport:8002 setting:\\\"
and then it breaks on f
because it expects quotation marks to start the new key, not the i
.
I implemented a temporary "fix" by replacing all \\\"
marks with \"
and it works. However, that's a hack.
b := app.GetBuffer()
kv, err := steamvdf.ReadBytes(b)
if err != nil {
// temporary recover
b = bytes.ReplaceAll(b, []byte(`\\\"`), []byte(`\"`))
kv, err = steamvdf.ReadBytes(b)
if err != nil {
ph.steamClient.appBin.err = fmt.Errorf("[steamvdf.ReadyBytes] failed to read vdf: %w", err)
return
}
}
from steam-go.
Hey, thanks for the report. I think globalsteam.online gets this same error on prod and i never got to the bottom of it. Don't really have time to look into it but happy to accept a PR.
from steam-go.
Related Issues (3)
- Add LICENSE
- Examples HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from steam-go.