cokebottle Posted August 5, 2016 Share Posted August 5, 2016 (edited) I'm currently using a single file configuration xvm.rc and my battleLabels part looks like this: "battleLabels": { "formats": [ // hitlog { // "enabled": true, "updateEvent": "ON_DAMAGE_CAUSED", "x": 270, "y": 0, "width": 500, "height": 500, "textFormat": { "color": "0xF4EFE8", "size": 15 }, "format": "{{hitlog-header}}\n{{hitlog-body}}" }, // totalHP { // "enabled": true, "updateEvent": "ON_PLAYERS_HP_CHANGED", "x": 0, "y": 30, "width": 200, "height": 40, "screenHAlign": "center", "shadow": { "distance": 1, "angle": 90, "alpha": 80, "blur": 5, "strength": 1.5 }, "textFormat": { "font": "mono", "size": 18, "align": "center" }, "format": "{{py:xvm.total_hp.text()}}" } ] }, In the file battleLabelsTemplates.xc it states that the default state for "enabled" is "false", so I assumed commenting out those lines would disable things, just like commenting out the "x" or "y" coordinates moved the labels to their stated defaults at "0". However, the code above will show both the hitlog and the totalHP, despite the "enabled" parts being commented out. Am I just showing my lack of coding knowledge here, or is this a bug? Or is it because I use a single file config? I have only tested this with replays and autoReloadConfig, not a live game. Edited August 5, 2016 by cokebottle @ Quote Link to comment Short link Share on other sites More sharing options...
Andyss Posted August 5, 2016 Share Posted August 5, 2016 if you dont want hitlog then "enabled": false @ Quote Link to comment Short link Share on other sites More sharing options...
cokebottle Posted August 5, 2016 Author Share Posted August 5, 2016 if you dont want hitlog then "enabled": false Yes, I know. I am just curious why I get different results from what I expected. @ Quote Link to comment Short link Share on other sites More sharing options...
sirmax Posted August 6, 2016 Share Posted August 6, 2016 Because you made a new extra field section, and "enabled" value for extra field is true by default. 1 @ Quote Link to comment Short link Share on other sites More sharing options...
cokebottle Posted August 6, 2016 Author Share Posted August 6, 2016 (edited) Thank you! I assumed it was because of something like that. But still, why does it say in battleLabelsTemplates.xc that the default state for enabled is "false"? Edited August 6, 2016 by cokebottle @ 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.