Skip to content

Commit

Permalink
Add debug for settings_json
Browse files Browse the repository at this point in the history
  • Loading branch information
sonroyaalmerol authored Feb 13, 2024
1 parent cd860f3 commit 01ee29c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 1 addition & 2 deletions scripts/files/WorldOption.json.template
Original file line number Diff line number Diff line change
Expand Up @@ -305,8 +305,7 @@
"struct_type": "PalOptionWorldSettings",
"struct_id": "00000000-0000-0000-0000-000000000000",
"id": null,
"value": {
},
"value": {},
"type": "StructProperty"
}
},
Expand Down
6 changes: 6 additions & 0 deletions scripts/generate-worldoption.sh
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,12 @@ fi
# Generate JSON settings from parsed configuration
settings_json=$(generate_json_config "$parsed_config")

if [ "${DEBUG,,}" = true ]; then
echo "====Debug===="
echo "$settings_json"
echo "====Debug===="
fi

# Update JSON data with generated settings
json_data=$(jq --argjson new "$settings_json" '.properties.OptionWorldData.value.Settings.value = $new' <<< "$worldoption")

Expand Down

0 comments on commit 01ee29c

Please sign in to comment.