Comments (6)
If you can please upload your file, it's more useful than screenshot open in Notepad++
from reton.
Hello there,
I have the same issue.
-> copy pp.dat from phone to desktop
-> run rton2json
-> edit
-> run json2rton
-> rename to pp.dat
-> copy to phone
-> black screen, app shuts down
Used with the newest 3.1.2 release.
I've added my original pp.dat (pp_original.dat), the modified pp.json and the new pp.dat into this Google Drive.
Hope it helps.
from reton.
Firstly RETON seems to have sorted the keys which is not supposed to happen, this might shuffle #comments around.
However a much bigger problem seems to be the fact that not the correct data types are used, this will require manual configuration and a major code rewrite ...
This is what my tool spits out (https://github.com/Nineteendo/PVZ2tools/tree/master/RTONS_PARSER, https://github.com/Nineteendo/PVZ2tools/tree/master/JSONS_PARSER):
pvz2-rton2json.zip
Conversions that happened (> = my tools, >RTON> = your tool):
Unmodified(pp_original.dat > pp_original.json > pp_original_from_rton.dat)
Modified(pp.json >RETON> pp.dat > pp_from_json.dat > pp_from_json_from_rton.dat)
Modified(pp.json > pp_from_rton.dat) webfussel should be able to use this if still interested
Note that my tool is not perfect, just a few bytes get changed.
from reton.
Used with the newest 3.1.2 release.
Can you try it again with 3.1.3?
from reton.
Firstly RETON seems to have sorted the keys which is not supposed to happen, this might shuffle #comments around.
However a much bigger problem seems to be the fact that not the correct data types are used, this will require manual configuration and a major code rewrite ...
This is what my tool spits out (https://github.com/Nineteendo/PVZ2tools/tree/master/RTONS_PARSER, https://github.com/Nineteendo/PVZ2tools/tree/master/JSONS_PARSER):
pvz2-rton2json.zipConversions that happened (> = my tools, >RTON> = your tool):
Unmodified(pp_original.dat > pp_original.json > pp_original_from_rton.dat)
Modified(pp.json >RETON> pp.dat > pp_from_json.dat > pp_from_json_from_rton.dat)
Modified(pp.json > pp_from_rton.dat) webfussel should be able to use this if still interestedNote that my tool is not perfect, just a few bytes get changed.
About the sorted keys: it's a bug because I using std::map
to save the json data when converting json to rton, it should be fixed by 3.1.3 release (I switch to nlohmann::fifo_map
)
And the other part, the data type: this kinda headache because
- We can't infer the data type from json format
- By default, RETON using the upper bound limit of the data type (e.g use
double
for real number instead offloat
, use8-byte RTON number
for integer) to cover as widest range as possible - However, some specific RTON keys appear to have predefined data type, maybe I can try to implement this into RETON?
from reton.
Well, I think the format is not so strict as first imagined.
You don't have to use the predefined datatype, but you do have to respect the RTON format.
Maybe it was just the fact that the keys were sorted, I will check at 17 hours which files are accepted.
from reton.
Related Issues (20)
- Pp.dat parse error HOT 7
- Error: vector::_M_range_check: __n (which is 112414) >= this->size() (which is 112414) HOT 3
- ENHANCEMENT: New feature, or a new tool to "ENCRIPT" .RTON files HOT 9
- Empty dictionaries are listed as "null" HOT 3
- Some files cannot be unpacked correctly HOT 3
- Feature request: Implement non-interactive use HOT 1
- Improving RTON format and hopefully some other issues HOT 2
- Rton-Json working fine, but json-rton not HOT 6
- 0x84 - empty rtid HOT 1
- "invalid vector subscript" HOT 8
- Exception when decode Unicode
- WRONG RTON number header hex 0x49 HOT 2
- I need your help
- About rton>json>rton HOT 3
- Error reading pp.dat HOT 8
- Value type 0x40 HOT 1
- Problem about float type HOT 3
- Another Error Reading pp.dat HOT 3
- The key type 0x52 cannot read 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 reton.