Skip to content

v0.96.8: Presets in _presets.json ignored in build #989

@ali4000

Description

@ali4000

Bug report

Basic Information

Mission version:
v0.96.8

Map used:
Any

Mods used:
N/A

Dedicated or local game:
N/A

Source of the mission file (URL):

Individual Things

Did you edit anything within the mission files?
No

If yes, what did you edit exactly?

Short Issue Description

All the presets in _presets.json are ignored when building because the variable names in the file
don't match those in the KPLIB_config.sqf template, so the gulpfile replaces nothing during build, meaning all
preset values end up being zero like in the template.

Expected Behaviour

Values in _presets.json take effect in built missions

Steps to Reproduce the Issue

Build the v0.96.8 branch and check build\kp_liberation.*\KPLIB_config.sqf

Screenshots, Serverlog or any other helpful Information

I haven't gotten around to clone the repo on github yet for my own private branches, but here's
a patch to demonstrate the error and the fix. Thanks for continuing work on Liberation, cheers!

0001-presets.json-Fix-variable-name-mismatch-with-KPLIB.patch

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions