Comments (3)
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.
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.
This ticket needs to be split up in smaller digestible parts.
from planarally.
Related Issues (20)
- [BUG] [GAMEBOARD] No ability to delete, move or rename assets HOT 1
- [FEAT] Default name of newly placed asset to the name of the asset (optionally, add a number to the name as well) HOT 4
- [FEAT] Click map to autozoom it to fit the window HOT 2
- [BUG] Firefox browser covers PA Right Click menu items HOT 4
- [FEAT] Color Picker tool HOT 3
- [FEAT] Include the ability to resize the sidebar HOT 2
- [FEAT] Remove file extension from uploaded assets
- [FEAT] Add ability to play sounds through annotation text
- [FEAT] Tool to autogenerate FOW walls HOT 5
- [FEAT] Make the text tool more robust HOT 2
- [FEAT] Asset manager multiselect HOT 1
- [FEAT] Add a basic 'browser' to the locations bar HOT 1
- [BUG?] Location name unnatural segmentation HOT 1
- [BUG] Dice Roller doesn't work when using subpath HOT 1
- [BUG] 3D rendered dice sit on top of menu dialogs HOT 2
- [FEAT] Keybind: Escape key closes all opened windows HOT 1
- [FEAT] showing a "return to content" button
- Collision detection causes tokens to shift from grid HOT 6
- [VIRUS?] Kaspersky reported PlanarAllyServer.exe as virus. HOT 3
- [FEAT] Option to disable right click pan HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from planarally.