SpaiR / StrongDMM

Robust map editor for BYOND
GNU General Public License v3.0
125 stars 73 forks source link

Feature Request: Load preferences from project/environment #316

Open FluffyGhoster opened 1 month ago

FluffyGhoster commented 1 month ago

Problem to be solved

When a new contributor starts mapping for a codebase, he opens the map using StrongDMM and does the changes, then files a PR for it to be merged.

The issue is, there is no way to ensure the settings he has are consistent, eg. in our codebase we require that all vars are sanitized, all maps are in TGM, and nudge is done with pixel_x/y, but we have no way to enforce that, we can just hope the contributor will read the readme and configure those settings

Sugest a solution

When an environment is loaded (.DME) alongside a map, look in the same directory of the .DME for a file whose settings will be used instead of preferences.json inside said environment

Only the settings specified in said file are overriding the preferences in preferences.json