{"action":"created","issue":{"url":"https://api.github.com/repos/otland/forgottenserver/issues/1394","labels_url":"https://api.github.com/repos/otland/forgottenserver/issues/1394/labels{/name}","comments_url":"https://api.github.com/repos/otland/forgottenserver/issues/1394/comments","events_url":"https://api.github.com/repos/otland/forgottenserver/issues/1394/events","html_url":"https://github.com/otland/forgottenserver/issues/1394","id":83278968,"number":1394,"title":"XML tag for each flag","user":{"login":"ranisalt","id":1993083,"avatar_url":"https://avatars.githubusercontent.com/u/1993083?v=3","gravatar_id":"","url":"https://api.github.com/users/ranisalt","html_url":"https://github.com/ranisalt","followers_url":"https://api.github.com/users/ranisalt/followers","following_url":"https://api.github.com/users/ranisalt/following{/other_user}","gists_url":"https://api.github.com/users/ranisalt/gists{/gist_id}","starred_url":"https://api.github.com/users/ranisalt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ranisalt/subscriptions","organizations_url":"https://api.github.com/users/ranisalt/orgs","repos_url":"https://api.github.com/users/ranisalt/repos","events_url":"https://api.github.com/users/ranisalt/events{/privacy}","received_events_url":"https://api.github.com/users/ranisalt/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/otland/forgottenserver/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-01T02:48:48Z","updated_at":"2015-06-02T09:10:23Z","closed_at":null,"body":"I have read this proposal on [1.2 roadmap](https://github.com/otland/forgottenserver/wiki/Roadmap-1.2) but I couldn't quite understand why.\r\n\r\nA numeric flag number can be arbitrary, and by itself has no meaning, and this is the single reason I thought on changing to more XML tags.\r\n\r\nOn the other hand, by using a flag tag for each possible flag, we would bloat the groups file a lot. We have currently 38 flags, and using the gamemaster group flag of `137438953471`, which has 37 flags set, would mean we need to add 37 new tags to the group, while the flag value is just an attribute.\r\n\r\nThis would hardly be pleasing to do by hand, and probably someone would create a tool for that. But what's the point, since [we already](http://comedinha.github.io/flags-calculator/) [got a ton of](http://opentibia.net/page/flagcalculator.html) [flag calculators](https://ranisalt.github.io/flags-calculator/)?\r\n\r\nIt also adds complexity since it would be necessary to parse the XML instead of just reading the int directly.\r\n\r\n<bountysource-plugin>\r\n---\r\nWant to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/19298408-xml-tag-for-each-flag?utm_campaign=plugin&utm_content=tracker%2F392151&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F392151&utm_medium=issues&utm_source=github).\r\n</bountysource-plugin>"},"comment":{"url":"https://api.github.com/repos/otland/forgottenserver/issues/comments/107877870","html_url":"https://github.com/otland/forgottenserver/issues/1394#issuecomment-107877870","issue_url":"https://api.github.com/repos/otland/forgottenserver/issues/1394","id":107877870,"user":{"login":"marksamman","id":636597,"avatar_url":"https://avatars.githubusercontent.com/u/636597?v=3","gravatar_id":"","url":"https://api.github.com/users/marksamman","html_url":"https://github.com/marksamman","followers_url":"https://api.github.com/users/marksamman/followers","following_url":"https://api.github.com/users/marksamman/following{/other_user}","gists_url":"https://api.github.com/users/marksamman/gists{/gist_id}","starred_url":"https://api.github.com/users/marksamman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marksamman/subscriptions","organizations_url":"https://api.github.com/users/marksamman/orgs","repos_url":"https://api.github.com/users/marksamman/repos","events_url":"https://api.github.com/users/marksamman/events{/privacy}","received_events_url":"https://api.github.com/users/marksamman/received_events","type":"User","site_admin":false},"created_at":"2015-06-02T09:10:23Z","updated_at":"2015-06-02T09:10:23Z","body":"The point is that you shouldn't need to use a flag calculator to update group flags."}}