Giter Club home page Giter Club logo

crp-parser's People

Contributors

tony56a avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

crp-parser's Issues

Possibility to edit userSaveGame(s)?

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.

Moving to a class library?

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!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.