Nanawatai 4 Posted February 28, 2017 I have attributes in all four markers files (AliveExtended, AliveNormal, DeadExtended, DeadNormal) that are the same. Is it possible to consolidate them somewhere, say like in markers.xc, where they can be in only one spot and easily read by all markers files? For example, I have the value "def.healthBar" defined in all four files and they share the same values. If I make a change to the healthBar in one file, I have to remember to make the same edit in the other three. I'd like the values for "healthBar" to exist in one location and in one entry. What is the easiest way of accomplishing this, or is there something that I can put at the beginning of markers.xc? Thank you in advance. Quote Share this post Link to post Short link Share on other sites
TornadoCat 1,027 #381782 Posted February 28, 2017 @Nanawatai, ye, u can put every section anywhere, just put right links in file u need ) 1 Quote Share this post Link to post Short link Share on other sites
konrad509 445 #381784 Posted February 28, 2017 (edited) Let's say you place the definition of the field healthBar in the file markers.xc. Then to use it in any of those four markers files, you replace the sections healthBar inside of them with "healthBar": ${"markers.xc":"healthBar"} That's IIRC... Correct me someone if I'm wrong. Edited February 28, 2017 by konrad509 1 Quote Share this post Link to post Short link Share on other sites
scyorkie 50 #381787 Posted February 28, 2017 (edited) I just tried what Tornado_Odan_Rot and konrad509 said above, and it works fine with damageText. Also, "damageText": ${"markers.xc":"damageText"} works only if "damageText" is the top-level section within markers.xc. If you have it under another "def" section, use "damageText": ${"markers.xc":"def.damageText"}. Edited February 28, 2017 by scyorkie 1 Quote Share this post Link to post Short link Share on other sites
Nanawatai 4 #381805 Posted February 28, 2017 Ah, thank you gentlemen! Worked like a charm. I was able to consolidate all of my marker def.* values into marker.xc which cleaned things up immensely (using scyorkie's suggestion so that I could put everything in its own "def" section). Now, when I change a variable, I only need to change it in one place and the value is shared throughout all four files. For future reference, don't forget to modify your textField lists by doing the same: // Block of text fields (extended format supported, see extra-field.txt). "textFields": [ ${ "markers.xc":"def.iconEnemyTankWR" }, ${ "markers.xc":"def.tankName" }, ${ "markers.xc":"def.tankPtsInteger" }, ${ "markers.xc":"def.topTankers" }, ${ "markers.xc":"def.position" } ] Quote Share this post Link to post Short link Share on other sites