Replace build.txt with a publicly extendable manifest file #4170
Labels
Benefit - Medium
Complexity - Medium
Requestor-Modders
Issues or PRs adding or fixing TML modder API
Requestor-TML Maintainers
Issues or PRs improving or maintaining TML code base
Do you intend to personally contribute/program this feature?
Perhaps
I would like to see this change made to improve my experience with
tModLoader code as Contributor/Maintainer
Mod capability as a Modder
Summary
With obvious plenteous amounts of of inspiration from Minecraft's Fabric mod loader, I would like to propose that, for #2472, instead of moving all
build.txt
properties to.csproj
files and their XML, we upgrade the old concept of a companion metadata/manifest file, using a pleasant popular file format such as TOML.Reasoning
Changes Summary
TML.Mod.toml
as the new filename, to appear 1% less like the modding API monopoly we happen to be at the time.author
becomes at least two different arrays,Authors
andContributors
, under the[People]
table. Any other fields, likeSupporters
, can be added out of people's own volition.homepage
is replaced with an entire[Contact]
table, containing:Homepage
,Sources
,Issues
,Email
,Wiki
, and any amount of social links likeIRC
,Discord
,Youtube
,Patreon
,Kofi
, etc. Not every field has to actually have an effect in TML, especially right away.Example Uses
*.prefab.hjson
files for ambience track declarations, with*.tags.hjson
files planned in the future for set entry declarations. It would be excellent if mods were able to add the following to their manifests to make their assets scanned for such files by Overhaul:Sketch
What my mod would probably have in its manifest, with a bit of exaggeration for examples' sake:
The text was updated successfully, but these errors were encountered: