Autogen configuration enabled
This commit is contained in:
@@ -12666,9 +12666,9 @@ func TestBuildNativeWithReleasedHeadVisualeffectsManifest(t *testing.T) {
|
||||
writeFile(t, filepath.Join(projRoot, "topdata", "base_dialog.json"), "{}\n")
|
||||
writeFile(t, filepath.Join(projRoot, "topdata", "data", "visualeffects", "base.json"), `{
|
||||
"output": "visualeffects.2da",
|
||||
"columns": ["Label", "Type_FD", "OrientWithGround", "Imp_HeadCon_Node", "OrientWithObject"],
|
||||
"columns": ["Label", "Type_FD", "OrientWithGround", "Imp_HeadCon_Node", "Imp_Root_H_Node", "OrientWithObject"],
|
||||
"rows": [
|
||||
{"key": "visualeffects:existing", "id": 17, "Label": "EXISTING", "Type_FD": "F", "OrientWithGround": "0", "Imp_HeadCon_Node": "****", "OrientWithObject": "0"}
|
||||
{"key": "visualeffects:existing", "id": 17, "Label": "EXISTING", "Type_FD": "F", "OrientWithGround": "0", "Imp_HeadCon_Node": "****", "Imp_Root_H_Node": "****", "OrientWithObject": "0"}
|
||||
]
|
||||
}`+"\n")
|
||||
writeFile(t, filepath.Join(projRoot, "topdata", "data", "visualeffects", "lock.json"), `{
|
||||
@@ -12682,6 +12682,26 @@ func TestBuildNativeWithReleasedHeadVisualeffectsManifest(t *testing.T) {
|
||||
"repo": "ShadowsOverWestgate/sow-assets",
|
||||
"ref": "test-manifest",
|
||||
"generated_at": "2026-04-25T00:00:00Z",
|
||||
"head_visualeffects": {
|
||||
"groups": {
|
||||
"head_accessories": {
|
||||
"prefix": "headaccessory",
|
||||
"model_columns": ["Imp_HeadCon_Node", "Imp_Root_H_Node"]
|
||||
},
|
||||
"head_features": {
|
||||
"prefix": "headfeature",
|
||||
"model_columns": ["Imp_HeadCon_Node", "Imp_Root_H_Node"]
|
||||
}
|
||||
},
|
||||
"strip_model_prefixes": ["hfx_"],
|
||||
"key_format": "{dataset}:{prefix}_{stem}",
|
||||
"label_format": "{prefix}_{stem_upper}",
|
||||
"row_defaults": {
|
||||
"Type_FD": "D",
|
||||
"OrientWithGround": "0",
|
||||
"OrientWithObject": "1"
|
||||
}
|
||||
},
|
||||
"entries": [
|
||||
{
|
||||
"group": "head_accessories",
|
||||
@@ -12758,9 +12778,9 @@ func TestBuildNativeWithReleasedHeadVisualeffectsManifest(t *testing.T) {
|
||||
}
|
||||
text := string(visualeffectsBytes)
|
||||
for _, want := range []string{
|
||||
"0\theadaccessory_BANDANA\tD\t0\thfx_bandana\t1",
|
||||
"1\theadfeature_HAIR_BANGS\tD\t0\thfx_hair_bangs\t1",
|
||||
"17\tEXISTING\tF\t0\t****\t0",
|
||||
"0\theadaccessory_BANDANA\tD\t0\thfx_bandana\thfx_bandana\t1",
|
||||
"1\theadfeature_HAIR_BANGS\tD\t0\thfx_hair_bangs\thfx_hair_bangs\t1",
|
||||
"17\tEXISTING\tF\t0\t****\t****\t0",
|
||||
} {
|
||||
if !strings.Contains(text, want) {
|
||||
t.Fatalf("expected visualeffects output to contain %q, got:\n%s", want, text)
|
||||
|
||||
Reference in New Issue
Block a user