Repository navigation
Releases
Releases · HellboundGlory/ModFoundry-DayZ
ModFoundry 2.3.1
Draft for testing; the changelog is in CHANGELOG.md.
ModFoundry 2.3.0
Added
- A mod's dependencies can live in the mod:
mf deps addandremovenow write.modfoundry/dependencies.json
(Workshop ids, and folders relative to the mod), so every clone, git worktree or moved folder has them.--machine
(MCPwhere: "machine"onproject.edit_dependencies) keeps this machine's own list as before.mf lint, the game
check,mf layout check, the launches andmf deps listread both lists; the file's rows come first and a machine
row for the same mod replaces them.mf deps listends each row with(file),(machine)or(defaults)
(project.dependenciesreturns anorigin). mf deps removetakes the namemf deps listprints, a Workshop id, or a folder path from the working folder or
relative to the mod.mf layout render <file.layout>(MCPlayout_render) draws a.layoutto a PNG without starting the game: boxes and flat
colours,ImageWidgetpictures from the game's imagesets and textures, and text in the game's own fonts, at any
--size. It lists what it cannot draw (MF-L2xxhints, with line numbers);--jsonlists every widget's box. Text
size and placement are approximations. It reads the game's BC7, DXT1 and DXT5.eddstextures (the 72-point fonts),
named images inside imageset groups, a style's default colour, and keeps exact sizes underfixwidth; text widgets
(plain, multiline and rich) are no longer stretched byfixaspect. Styled panels and boxes are drawn from the style's images (a tiled centre, edges and
corners; border sizes are an assumption,MF-L237); a style with no image draws nothing, and a widget whose style
has only other slots (such asBarCenter) or no style row keeps itsMF-L210outline. Text widgets withsize to textand grid, wrap and plain spacers withSize To Contentare sized
from their text and children (the game's exact rule is not measured, so each render with them says so,MF-L238). A spacer nested more than 8 deep inside other
content-sized spacers keeps its written size (MF-L240). Spacers that script fills in the game are empty here
and collapse, so a few vanilla layouts lose placeholder text.MF-E4005: when the game refuses a module and none of its findings lie on the linted path,mf lintand
script.lintreport one error naming the module, the builds, and the first compile error or the missing addons,
instead of saying "ok".mf new --patch-class <name>sets theCfgPatchesclass, and--required-addon <name>(repeatable) adds to its
requiredAddons.
Changed
mf newrefuses a--patch-classor--required-addonthat is not a safe class name.- A shared dependency file that does not parse is an error in every command that reads it, and
mf deps remove
refuses a name two rows share (use--machineor the folder path). - The shared dependency file is written outside the undo stack; the opposite
mf depscommand undoes it. mf layout checkreads a mod's and the game's.imagesetfiles with the same strict reader asmf layout render, so images inside imageset groups are known; a file the reader refuses is a warning naming the file and the line.mf layout renderwrites<layout name>.render.pngin the current folder when--outis not given.mf deps addandremovewrite the mod's file unless--machineis given; before, they wrote this machine's list.- A new mod's
CfgModsentry carries aversionline, and its starter script isMissionServer.c.
ModFoundry 2.2.0
Draft for testing; the changelog is in CHANGELOG.md.