Comments (4)
That's a good idea, I was planning to spend some time updating this project over the holidays already, and I can definitely add some examples.
from dorfcad.
Also, it's worth considering that a standard configuration allows for image plans to be easily shared among users, or even for setting up a shared online repository. They are images, which makes them easy to render online for preview.
This might belong in another issue, but how about keeping the default configuration in whatever system folder is adequate for the platform (/usr/lib/dorfcad
on Linux, for example), and allowing the user to keep an override somewhere else (~/.config/dorfcad
on Linux, for example). This kind of thing is fairly standard on Linux. I have no idea about Windows, but putting everything in a zipfile and keeping it in the same folder would likely work just fine, and users would probably simply edit that file.
For this to be useful, dorfcad would have to first load the default config, and then load the user config, which might contain only a few keys the user wants added/changed from the default.
Also, do you happen to know whether the output csv
files are compatible with the dfhack buildfort
and fortplan
plugins?
from dorfcad.
This is actually already implemented in the 1.3 branch, it uses the paths generated by cabal-install
which is something like /usr/local/.cabal/dorfCAD/
on linux, and then looks for files named aliases
, aliases-user
, config
, and config-user
. I think right now it just uses the user files instead of the default if it finds one though.
It looks like the output files should also be compatible with buildfort
and fortplan
, those plugins are supposed to be compatible with quickfort blueprints.
from dorfcad.
The user is not meant to write their personal stuff to /usr
, since files installed there are expected to be overwritten with package updates. The norm is to use a $XDG_CONFIG_HOME/<program/
folder, where $XDG_CONFIG_HOME
should default to ~/.config/
. I'm not sure cabal handles that for you.
Either way, with the idea of using a more complete standard configuration, this concern is somewhat secondary, but still useful for someone who makes extensive usage of dorfcad, since it makes it very easy for him to keep personal additions and changes separate from the distributed config.
from dorfcad.
Related Issues (10)
- Add command to produce a generic alias.json from a DF install. HOT 1
- Add ability to handle RGB8 files.
- See about adding ability to handle any int backed image format.
- Write a better README HOT 1
- Fails silently if no phase is passed to command line
- .png extension isn't stripped off filenames when using input file to generate output name.
- Improve command line option handling.
- Starting position is seperated by ',' instead of ';'
- dorfCAD doesn't build with ghc 7.10
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 dorfcad.