Raised This Month: $51 Target: $400
 12% 

[CS:GO] Workshop Map Loader (v0.13.0, 2014-06-27)


Post New Thread Reply   
 
Thread Tools Display Modes
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 01-07-2014 , 10:31   Re: [CS:GO] Workshop Map Loader (v0.0.2)
Reply With Quote #11

Only thing I can suggest is to see how Updater works
__________________
View my Plugins | Donate
TnTSCS is offline
Nefarius
Member
Join Date: Sep 2010
Old 01-07-2014 , 15:09   Re: [CS:GO] Workshop Map Loader (v0.0.2)
Reply With Quote #12

Finally made some progress; downloading and parsing community map info works now:



Now I'll write the new menu code. Stay tuned
Nefarius is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 01-07-2014 , 15:29   Re: [CS:GO] Workshop Map Loader (v0.0.2)
Reply With Quote #13

Quote:
Originally Posted by Nefarius View Post
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.
The game mode is likely stored inside the file itself, although it's possbile that CS:GO works exclusively on the map's filename. I know you can generally find out map types by checking netprops on the game's gamerules entity when the map is actually running (or at least you can on TF2). Of course, with csgo, you already set the gamemode and gametype commands (cvars?) on startup...

(Of course, TF2 has its own special little hell by only supporting 5 distinct game modes (4 plus General/Single Player) which are then subdivided into game types from there... but for CP maps, you can't just find out which of the 3 types (A/D CP, 5CP, TC) is running from the gamerules and specific entities alone. To this day, I don't know how the game internally determines this.)
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 01-07-2014 , 17:12   Re: [CS:GO] Workshop Map Loader (v0.0.2)
Reply With Quote #14

w00h00 - would be nice if Valve documented their API (more/better/period).
__________________
View my Plugins | Donate
TnTSCS is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 01-07-2014 , 17:19   Re: [CS:GO] Workshop Map Loader (v0.0.2)
Reply With Quote #15

Quote:
Originally Posted by TnTSCS View Post
w00h00 - would be nice if Valve documented their API (more/better/period).
They supposedly have a WebService for that, but it's blocked where I work.
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
Nefarius
Member
Join Date: Sep 2010
Old 01-08-2014 , 04:09   Re: [CS:GO] Workshop Map Loader (v0.0.2)
Reply With Quote #16

Quote:
Originally Posted by Powerlord View Post
The game mode is likely stored inside the file itself, although it's possbile that CS:GO works exclusively on the map's filename. I know you can generally find out map types by checking netprops on the game's gamerules entity when the map is actually running (or at least you can on TF2). Of course, with csgo, you already set the gamemode and gametype commands (cvars?) on startup...
This is exactly what I didn't want to rely on. I'm fetching the info from the Web API now. My first Idea was indeed analyzing Game Type, has Map Buy Zone and so on but these methods suck cause you have to load the map, run your analysis code, change the game mode/type if mismatch and reload the map again. Not mentioning that overhead just for building a map menu

EDIT: the game is actually dumber than you think; it (without SourceMod) relies entirely on the game_type and game_mode variables, who may be set correctly on map change but not restricted by the map itself. If you load an Arms Race Map in Casual Mode it works but without the Buy Zone you can only do knife fights unless you heavily mod your server with a Buy Zone Simulator and so on. At this time I myself have ~30 plugins running to make CS:GO playable for my tastes

Quote:
Originally Posted by Powerlord View Post
(Of course, TF2 has its own special little hell by only supporting 5 distinct game modes (4 plus General/Single Player) which are then subdivided into game types from there... but for CP maps, you can't just find out which of the 3 types (A/D CP, 5CP, TC) is running from the gamerules and specific entities alone. To this day, I don't know how the game internally determines this.)
Good question, never thought of that in all my years of playing TF2. Fortunately my code at this stage can retrieve info about TF2 Items as well:


Last edited by Nefarius; 01-08-2014 at 04:18.
Nefarius is offline
Nefarius
Member
Join Date: Sep 2010
Old 01-08-2014 , 13:48   Re: [CS:GO] Workshop Map Loader (v0.1.0)
Reply With Quote #17

Version 0.1.0 released!

This is quite a major release, please consolidate the first post for new features and installation instructions.

The changes in short
  • New Top-Level Menu with map categories
  • Loads map title and tags from steam workshop
  • Automatically adjusts the current game type/mode to match the users selection

Happy testing/fragging
Nefarius is offline
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 01-08-2014 , 14:56   Re: [CS:GO] Workshop Map Loader (v0.1.0)
Reply With Quote #18

outstanding Thank you for the update.
__________________
View my Plugins | Donate
TnTSCS is offline
Nefarius
Member
Join Date: Sep 2010
Old 01-08-2014 , 21:48   Re: [CS:GO] Workshop Map Loader (v0.1.1)
Reply With Quote #19

Version 0.1.1 released!

This doesn't add new features but fixes some parts under the hood. Please update.

The changes in short
  • Fixed a few menu memory leaks
  • Added loads of comments to code
  • Interception changing game mode/type now only happens on map change. This is important 'cause the previous version may conflict with existing mode changer plugins.
    My implementation gracefully bypasses following behavior you may encounter in your server logs:
    Code:
    L 01/09/2014 - 02:50:45: -------- Mapchange to workshop/203499188/fy_poolparty_v6 --------
    GameTypes: initializing game types interface from GameModes.txt.
    GameTypes: merging game types interface from gamemodes_server.txt.
    GameTypes: missing mapgroupsSP entry for game type/mode (custom/custom).
    Suck on that, map groups!

Happy testing/fragging Good night!

Last edited by Nefarius; 01-08-2014 at 21:50.
Nefarius is offline
Nefarius
Member
Join Date: Sep 2010
Old 01-09-2014 , 11:41   Re: [CS:GO] Workshop Map Loader (v0.1.2)
Reply With Quote #20

Version 0.1.2 released!

This doesn't add new features but fixes some parts under the hood. Please update.

The changes in short
  • Plugin version Cvar now inhibited to show up in config file
  • API Key validation included
  • Plugin will now never try to connect to Steam API until a valid Key has been supplied

Happy testing/fragging
Nefarius is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:55.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode