[CS:GO] Workshop Map Loader (v0.13.0, 2014-06-27)
9 Attachment(s)
Workshop Map Loader
Advanced Workshop Map Loader and Game Type Adjuster Description This plugin searches for workshop maps in your servers map directory and assists the admin in handling those. It will also ensure that the current game mode will get automatically adjusted, if requested by the admin. The plugin was developed for CS:GO and will not work in other games. Features Admin menu The Top-Level menu is dynamically built depending on your servers' workshop maps and their community tags: http://www0.xup.in/exec/ximg.php?fid=19801421 Each category hosts the corresponding map: http://www0.xup.in/exec/ximg.php?fid=12963802 Note, that a map may appear in multiple categories depending of it's tags. Vote menu It's possible to interact with the stock MapChooser plugin or the MapChooser Extended plugin. http://www0.xup.in/exec/ximg.php?fid=35241326 Commands
Snippet for your adminmenu_custom.txt: Code:
"ServerCommands" This plugin generates it's config file in csgo/cfg/sourcemod/wml.cfg after first load.
Translations
Plans/TODOs Suggestions welcome!
Changelog
Spoiler
Upgrading If you are upgrading from a version pre-0.3.x please process the following steps:
Optional Dependencies
Installation/Requirements
...or head over to the project site for more information Important: this plugin can't be compiled on the Forum, please use the provided download link to get the ready-to-use plugin or source code to compile by yourself. Demonstration A small unspectacular demo video showing WML doing it's job: |
Re: [CS:GO] Workshop Map Loader (v0.0.1)
Outstanding... was such a PITA to manually update the map files when we changed up our collection. This is going on my CS:GO servers STAT. Thank you!
...:: TnT Edit ::... If only Valve offered some sort of xml page that had info on the collection (map names, update date, file size, mapId, etc). Then we could grab the list from that site with a different command so the list is populated with only maps from the collectionId |
Re: [CS:GO] Workshop Map Loader (v0.0.2)
Thank you kindly, I already shipped the first update :) It fixes the "Unknown command: sm_wml_reload" client error message. I also added an example snippet for the admin menu in my first post.
Well, Valve indeed offers a lot through their Web API, I'll have a look... |
Re: [CS:GO] Workshop Map Loader (v0.0.2)
Smart idea !
A first menu with map type (like ar_, de_, ze_ ...) could be a good idea to spend less time in navigation don't you think ? |
Re: [CS:GO] Workshop Map Loader (v0.0.2)
Cool, hopefully one exists. The updated .sp still has version 0.0.1
Quote:
...:: TnT Edit ::... Actually, you could just look at the information from the collectionIds site (http://steamcommunity.com/sharedfile...ollection#Here), it has all information in there. Tells you how many maps are in the collection Code:
<div class="workshopItemDescriptionTitle"> |
Re: [CS:GO] Workshop Map Loader (v0.0.2)
Corrected the version number, thanks.
As for the suggestion: oh no, nested menus! :D Well, grouping the maps needs an unique identifier within the map name like the de_, cs_ and so on prefixes. This would imply that the workshop maintainer uses "standardized" names; everything else would reside in a sub menu like "Other". Any suggestions for the top menu item names? Like:
EDIT: OK I'll read into the steam API. |
Re: [CS:GO] Workshop Map Loader (v0.0.2)
Awesome job!
|
Re: [CS:GO] Workshop Map Loader (v0.0.2)
3 Attachment(s)
Good god, finding this undocumented API took me ages but here we have it :)
Workshop Items through Steam Web API Actually on host_workshop_map the server builds the following query: Code:
https://api.steampowered.com/Service/PublishedFile/GetDetails/v1/?format=vdf&publishedfileids[0]=206674556&key=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&minimal_details=1
Spoiler
where publishedfileids[0] is equal to the id Attribute in the Steam Community request: Code:
http://steamcommunity.com/sharedfiles/filedetails/?id=206674556 https://forums.alliedmods.net/attach...1&d=1389045688 So far so good, I'll let this information flow into the further improvement of the plugin. Sadly I haven't yet found out where the supported Game Mode is stored, as it would make a nice criterion for categorizing the maps. EDIT: Sleep suxx so I'm still on it and finally got rewarded for my patience it seems :) Here comes the real deal: https://forums.alliedmods.net/attach...1&d=1389050021 Yay! Now, good night :D |
Re: [CS:GO] Workshop Map Loader (v0.0.2)
Outstanding - great find and thank you for looking for this - looking forward to seeing this integrated :)
|
Re: [CS:GO] Workshop Map Loader (v0.0.2)
Well well well... It seems I got stuck at a pretty silly step: how does SourceMod networking work? I tried several extensions like Steamtools which refused to load complaining it couldn't find libvstdlib_srv.so plus the author doesn't support CS:S/GO. Then there is the cURL implementation, which complains I didn't pass a valid URL but couldn't find any obvious errors of mine. The provided example self test fails too. The Sockets extension has a bad reputation and would need to re-invent an HTTP client from zero. I'm running
Code:
SourceMod Version Information: Code:
Metamod:Source version 1.10.0 |
All times are GMT -4. The time now is 01:27. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.