scyorkie Posted June 22, 2017 Share 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 Link to comment Short link Share on other sites More sharing options...
sirmax Posted June 22, 2017 Share 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 Link to comment Short link Share on other sites More sharing options...
scyorkie Posted June 22, 2017 Author Share Posted June 22, 2017 Awesome, thanks! @ Quote Link to comment Short link Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.