scyorkie 50 Posted June 22, 2017 So you see $ref in various files, such as minimapLabelsTemplates, damageLog, etc. This is one example in minimapLabelsTemplates: "vtypeSpotted": { "$ref": { "path":"def.defaultItem" }, ... What I've noticed is that they always refer to a path within the same file. Is it possible to $ref to something in another file? Quote Share this post Link to post Short link Share on other sites
sirmax 5,499 #395880 Posted June 22, 2017 (edited) sure, you can see example in my config (e.g. configs\sirmax\sirmax-minimapLabels.xc): full format: ${"my_items.txt_player_alive_mog"}, { "$ref": { "file":"../default/minimapLabelsTemplates.xc", "path":"def.vehicleSpotted" }, "format": "..." }, simple format: ${ "../default/minimapLabelsTemplates.xc":"def.nickLost" }, Here the doc for JSONx format used for XVM configs: JSONx have this extensions for original JSON format: 1. Comments: Block: /* */ Line: // 2. References: Internal: "obj": ${"path.to.object"} External: "obj": ${"filename":"path.to.object"} Root object: "obj": ${"."} Full format: "obj": { "$ref": { "file": "<filename>", "path":"<path.to.object>" } } Override referenced values (full format only): "obj": { "$ref": { "file": "<filename>", "path":"<path.to.object>" }, "name": <value> } Edited June 22, 2017 by sirmax 3 Quote Share this post Link to post Short link Share on other sites
scyorkie 50 #395884 Posted June 22, 2017 Awesome, thanks! Quote Share this post Link to post Short link Share on other sites