Code Monkey home page Code Monkey logo

Comments (4)

adepierre avatar adepierre commented on June 20, 2024 1

Yes moving the assets with binary is what I meant when I said "copying the required assets". I think this is the best approach.

I'm not a fan of user based storage because of two reasons:

  1. you need to write OS-specific code to deal with it
  2. removing botcraft from a computer is generally done by simply deleting a folder, and I'd like to keep it this way so there are no lost files lying you don't know where

from botcraft.

adepierre avatar adepierre commented on June 20, 2024 1

Done with latest version. You can use BOTCRAFT_OUTPUT_DIR in cmake to specify a custom output folder.

from botcraft.

adepierre avatar adepierre commented on June 20, 2024

Yeah I agree it's not ideal. The main problem here is that the exe expects the assets to be located at ../Assets/<version> so if the output is moved, nothing would work.

I might eventually rework this system one day, perhaps by copying all the required assets at the right location, but this is clearly not a priority.

from botcraft.

maxsupermanhd avatar maxsupermanhd commented on June 20, 2024

Why not move assets with binary? Or store them in user-based storage like in ~/.local/share

Not that this is very bad but it is super annoying to deal with. You also can bake assets right into binary, not only it can speed stuff up but will provide self-contained binary that relies on no environment

from botcraft.

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.