Update project-zomboidmetaconfig.json - #1956
Conversation
Added config to allow AMP to edit {{servername}}_SandboxVars.lua file like it was editing the {{servername}}.ini file
Edited regex in .lua file to avoid nested values like
Map = {
-- If enabled, a mini-map window will be available.
AllowMiniMap = false,
-- If enabled, the world map can be accessed.
AllowWorldMap = true,
-- If enabled, the world map will be completely filled in on starting the game.
MapAllKnown = false,
-- If enabled, maps can't be read unless there's a source of light available.
MapNeedsLight = true,
},
Same key Value in .lua and .ini can create conflicting updates.
|
I see that you added the metaconfig side but from a spot check I don't see that any settings are configured that exist in the lua file. |
|
That's the thing this PR fixes, and I have a before/after for it. project-zomboidconfig.json already declares settings whose ParamFieldName also exists as a top-level key in {servername}_SandboxVars.lua — MinutesPerPage, HoursForLootRespawn, MaxItemsForLootRespawn among them. On an unmodified b42 instance I changed MinutesPerPage from the UI and it updated the .ini only; the .lua was untouched, because there was no ConfigFile entry for it. After adding the metaconfig entry, the same change reaches both files. So those settings are already silently not applying today. That's what the entry addresses. It only works partially, though.
|
|
Gotcha. Let me look at it closer with those settings in mind then and see if this can be accepted. |
|
Okay, I see what's going on with it now. The devs moved a few of the settings to the lua file but also changed the names of some other settings. I'm going to make some commits that include all the changes but keep backwards compatibility soon. |
|
Understood, thanks for the help. |
Added config to allow AMP to edit {{servername}}_SandboxVars.lua file like it was editing the {{servername}}.ini file