{"action":"created","issue":{"url":"https://api.github.com/repos/alliedmodders/sourcemod/issues/350","labels_url":"https://api.github.com/repos/alliedmodders/sourcemod/issues/350/labels{/name}","comments_url":"https://api.github.com/repos/alliedmodders/sourcemod/issues/350/comments","events_url":"https://api.github.com/repos/alliedmodders/sourcemod/issues/350/events","html_url":"https://github.com/alliedmodders/sourcemod/pull/350","id":89458258,"number":350,"title":"Fuzzymap plugins","user":{"login":"powerlord","id":2437606,"avatar_url":"https://avatars.githubusercontent.com/u/2437606?v=3","gravatar_id":"","url":"https://api.github.com/users/powerlord","html_url":"https://github.com/powerlord","followers_url":"https://api.github.com/users/powerlord/followers","following_url":"https://api.github.com/users/powerlord/following{/other_user}","gists_url":"https://api.github.com/users/powerlord/gists{/gist_id}","starred_url":"https://api.github.com/users/powerlord/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/powerlord/subscriptions","organizations_url":"https://api.github.com/users/powerlord/orgs","repos_url":"https://api.github.com/users/powerlord/repos","events_url":"https://api.github.com/users/powerlord/events{/privacy}","received_events_url":"https://api.github.com/users/powerlord/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-19T03:52:46Z","updated_at":"2015-06-20T04:12:22Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/alliedmodders/sourcemod/pulls/350","html_url":"https://github.com/alliedmodders/sourcemod/pull/350","diff_url":"https://github.com/alliedmodders/sourcemod/pull/350.diff","patch_url":"https://github.com/alliedmodders/sourcemod/pull/350.patch"},"body":"NOTE:  Since this branch was based on the Fuzzymapnative branch, it includes all the changes made in pull request #348 as well.\r\n\r\nThis adds two new stocks to sourcemod.inc : \r\n\r\n* GetFriendlyMapName changes a CSGO or TF2 workshop path to just the base mapname.  This is intended for display purposes in various plugins and/or plugins that need compatibility with existing names.\r\n\r\n  Note that in TF2, at this time you can't get the proper map path for a workshop map unless you `tf_workshop_map_sync` the map after the server start so that the server is actively tracking it.\r\n\r\n* ProduceResolvedMapList runs ResolveFuzzyMapName on every entry in an ArrayList and places the resolved name in the second ArrayList.  Also has the side effect of clearing the target ArrayList first.\r\n\r\nThe following plugins have all been updated to make calls to ResolveFuzzyMapName and GetFriendlyMapName as appropriate:\r\n\r\n* MapChooser\r\n* Nominations\r\n* NextMap\r\n* BaseVotes\r\n* BaseTriggers\r\n"},"comment":{"url":"https://api.github.com/repos/alliedmodders/sourcemod/issues/comments/113705922","html_url":"https://github.com/alliedmodders/sourcemod/pull/350#issuecomment-113705922","issue_url":"https://api.github.com/repos/alliedmodders/sourcemod/issues/350","id":113705922,"user":{"login":"powerlord","id":2437606,"avatar_url":"https://avatars.githubusercontent.com/u/2437606?v=3","gravatar_id":"","url":"https://api.github.com/users/powerlord","html_url":"https://github.com/powerlord","followers_url":"https://api.github.com/users/powerlord/followers","following_url":"https://api.github.com/users/powerlord/following{/other_user}","gists_url":"https://api.github.com/users/powerlord/gists{/gist_id}","starred_url":"https://api.github.com/users/powerlord/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/powerlord/subscriptions","organizations_url":"https://api.github.com/users/powerlord/orgs","repos_url":"https://api.github.com/users/powerlord/repos","events_url":"https://api.github.com/users/powerlord/events{/privacy}","received_events_url":"https://api.github.com/users/powerlord/received_events","type":"User","site_admin":false},"created_at":"2015-06-20T04:12:22Z","updated_at":"2015-06-20T04:12:22Z","body":"Based on input from John S. from Valve, all plugins that use the ProduceResolvedMapList function should be rewritten and the ProduceResolvedMapList stock removed entirely.\r\n\r\nThis is based on his comments about how tf_workshop_map_sync can be delayed."}}