Comments (4)
Could you the a file that reproduces the issue?
from vdf.
https://raw.githubusercontent.com/dotabuff/d2vpkr/master/dota/resource/dota_english.txt
Ctrl+F and find '
.
from vdf.
So the issue is that when you dump
a dict
, then '
are escaped, correct?
Here are all the characters they escape from the SDK, which includes '
: https://github.com/ValveSoftware/source-sdk-2013/blob/0d8dceea4310fde5706b3ce1c70609d72a38efdf/mp/src/tier1/utlbuffer.cpp#L54-L69
I guess the only way to resolve this is introducing a parameter to enable/disable escaping. That will also resolve #28
from vdf.
Yes. But, I want to exclusion only '
.
I need to escape another characters.
The SDK is Source1.
Dota2's SDK is Source2.
Perhaps the parser of Source1 is not the same as the parser of Source2.
I'm using edited version of this library.
https://github.com/nihongoka/dota2/blob/7e19285702203957ecb2b50b88de97241305515b/scripts/vdf/__init__.py#L61
https://github.com/ValvePython/vdf/blob/master/vdf/__init__.py#L62
Sorry for late.
from vdf.
Related Issues (20)
- coverage not getting merged when using github actions HOT 1
- BinaryVDF.test_loads_utf16 not passed HOT 2
- Parsing error when escaped inside a string HOT 1
- When dumping Paths with double backslash it maintains the double backslash HOT 2
- Error when parsing Dota 2 item schema HOT 3
- unexpected EOF (open key quote?) HOT 2
- Not working with Python 3.10
- Should \x02 be UINT32? HOT 1
- Does not work on lists of objects
- Building python-vdf version 3.3 with python 3.10 fails HOT 4
- Test fails with new Python 3.11 HOT 1
- Fails to parse gameinfo.txt files
- UnicodeDecodeError: 'charmap' codec can't decode byte HOT 1
- Getting `SyntaxError: Unterminated cstring (offset: 1)` when trying to load shortcuts HOT 3
- Exception while trying the example on readme
- Add Type Hinting support/ Implement PEP 561
- "One too many closing parenthasis" error when there isn't any extra closing parenthasis
- Nested groups with duplicate keys trivially do not work, even with VDFDict HOT 1
- Request for convert vtex_c files to PNG. HOT 1
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 vdf.