tony56a / crp-parser Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
I was hoping I'd be able to edit some data in my save game, unfortunately CrpParser crashes when it attempts to open a userSaveGame
asset type. Here's the output when I try to run the tool:
.\CrpParser.exe -f '.\Christmas Village.crp' -v -s ./vals.txt
Package Name:Christmas Village
Package Author:Unknown
Package Format Version:6
Package Version:0
Main Asset Name:Christmas Village
Content Begin Index:370
# of Assets:4
Asset Name:Christmas Village_Data
Asset Checksum:cba46932306f6e07b0d5d1e70b9a140c
Asset Type:data
Asset Offset Begin:0
Asset Size:10040137
Asset Name:Christmas Village_SteamPreview
Asset Checksum:43df6252402afa62140521b0d0f4c8d6
Asset Type:texture
Asset Offset Begin:10040137
Asset Size:529519
Asset Name:Christmas Village_Snapshot
Asset Checksum:3e9ffe709e41e975ac443b64472220fe
Asset Type:texture
Asset Offset Begin:10569656
Asset Size:211516
Asset Name:Christmas Village
Asset Checksum:dd0412205f667e1c8fc05860d02e1a8d
Asset Type:userSaveGame
Asset Offset Begin:10781172
Asset Size:16147
Unhandled Exception: System.ArgumentException: Illegal characters in path.
at System.IO.Path.CheckInvalidPathChars(String path, Boolean checkAdditional)
at System.IO.Path.GetFileName(String path)
at System.IO.FileStream..ctor(String path, FileMode mode)
at ConsoleApplication1.AssetParser.parseObject(Int32 length, String format, Boolean saveFile, String saveFilePath, Boolean verbose) in C:\Users\applecobbler\Documents\Visual Studio 2015\Projects\ConsoleApplication1\ConsoleApplication1\AssetParser.cs:line 50
at ConsoleApplication1.CrpDeserializer.parseAssets(CrpHeader header, Int32 index, Boolean saveFiles, Boolean isVerbose) in C:\Users\applecobbler\Documents\Visual Studio 2015\Projects\ConsoleApplication1\ConsoleApplication1\CrpDeserializer.cs:line 120
at ConsoleApplication1.CrpDeserializer.parseFile(Options options) in C:\Users\applecobbler\Documents\Visual Studio 2015\Projects\ConsoleApplication1\ConsoleApplication1\CrpDeserializer.cs:line 58
at ConsoleApplication1.Program.Main(String[] args) in C:\Users\applecobbler\Documents\Visual Studio 2015\Projects\ConsoleApplication1\ConsoleApplication1\Program.cs:line 44
Does it not like the path from which I'm running the tool? It's E:\Users\Glen\Downloads\CrpParser
which I can't image would be invalid.
I was just sort of curious what you thought about moving CRP-Parser in to a dedicated class library for a project. This would allow other developers to build applications that can read (and maybe write?) CRP files. I've already made a branch in my fork to do this, but I can make a pull request if you're interested!
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.