Giter VIP home page Giter VIP logo

Comments (3)

Kruptein avatar Kruptein commented on August 17, 2024

Work has started on overhauling the asset management system.

In commit 6df4cc0 the first steps have been taken to change the appearance of the asset list in game.

An out of game interface will be created to do more advanced asset management changes like creating folders, moving assets, giving assets metadata (e.g. size, HP, AC, ...).
No in game support will be provided for these things initially as they are typically only needed during preparation and not during actual gameplay which means these features would only add clutter to the game interface. A button to open the asset management interface in a new tab/window should be readily available though.

Another big change will be how assets are actually stored on disk. The current implementation simply mimics the file directory under /static/img/assets/ and is public for all users.
The current plan is to change this making it so that the assets folder will be a flat file directory with all assets (with their names renamed to their hash). The game server should maintain a datastructure that is able to associate folder hierarchies and matching files with the actual files on disk, using hashes to relate them.
This allows for a flexible system in which file separation/permissions/sharing are all easy to implement all while not wasting disk space to duplicate files.

from planarally.

Kruptein avatar Kruptein commented on August 17, 2024

The assetmgmt branch now uses the earlier proposed system to keep track of assets, whereby all data is stored in a flat directory (currently /static/assets/ and each user having a personal directory/file structure that links to the actual image along with metadata.

The in-game assets list gained a small icon to open a full asset manager in a new tab. In this asset manager some common operations from a file browser are mimicked like: creating directories, renaming, removing and moving folders/files as well as uploading files from disk.

This means users are now able to upload images themselves and no longer have to rely on the server owner to put the images in the correct folder.

This also means that you can no longer access your assets through command line or file browser as all actions have to go through the new asset manager

from planarally.

Kruptein avatar Kruptein commented on August 17, 2024

This ticket needs to be split up in smaller digestible parts.

from planarally.

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.