Code Monkey home page Code Monkey logo

Comments (4)

apocalyptech avatar apocalyptech commented on September 27, 2024 1

Okay, so in the end I think I'll probably leave the JSON/Protobuf import commands the way they are. That is, in the end, just down to laziness - To support creating saves from scratch, I'd have to take a closer look at all the GVAS stuff in there and at least try to do the right thing in relation to those. And I'm afraid I just don't care enough to spend the time on it. :) So! We'll just make do with the extra stuff in the docs that I added.

In re: having the editing utils write to the same file they're editing (which I realize is a bit offtopic for the Issue, but eh), I'd thought I'd put in a check to disallow that, but it looks like I never did, and the app will happily overwrite the same file you're working on, if you specify the filename twice. So! That's good enough for me. I'm gonna change the wording of the overwrite? prompt a bit, when the same file's specified twice, but otherwise that too is good enough for me.

Thx again for the report!

from bl3-cli-saveedit.

apocalyptech avatar apocalyptech commented on September 27, 2024

Ah, y'know, I should probably be more clear about that in the docs - when importing JSON (or Protobuf, for that matter), it does currently need an existing savefile to import to, even though you're basically overwriting the whole thing.

I agree it's a bit inconsistent, since it's pretty much the only time the utils expect to overwrite something, as opposed to the others which do everything they can to not do that. :) I'll look at updating the docs, and possibly altering the util so that it's a bit more inline with the rest of the utilities. (Though I've also been thinking I should probably implement a write-in-place option for the rest, too...)

from bl3-cli-saveedit.

NoneGiven avatar NoneGiven commented on September 27, 2024

Whoops, not sure why I thought it worked for ProtoBuf.

Calling it out in the docs is good enough. Now that I think about it for a second, it does make sense since you're only reading/writing the save payload and not the GVAS header.

from bl3-cli-saveedit.

apocalyptech avatar apocalyptech commented on September 27, 2024

Pushed some docs changes to this effect, but I'm honestly just wondering if it'd make sense to alter these so that they do just let you create a brand new file from scratch. That'd mean me collecting a bit of valid GVAS information to use for from-scratch files, of course... Still, perhaps that'd be a better way forward. Gonna let this sit in my brain for a bit.

from bl3-cli-saveedit.

Related Issues (20)

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.