-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #40 from Taraman17/dev
Prepare v2.0.0-beta.4
- Loading branch information
Showing
18 changed files
with
1,453 additions
and
1,225 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Technical background on map handling | ||
|
||
## Read available maps | ||
In the new CS2 dedicated server, there is no single function to list all maps available. | ||
The internal maps are accessible as before with the ```maps *``` command. However there are lots of entries in the answer that are not real maps. | ||
Workshop maps from a hosted collection are available by calling ```ds_workshop_listmaps```. This only lists the filenames of the maps and no workshop id. Unfortunately, the filenames are not available in the stamAPI, so there is currently no way to match the output fo ```ds_workshop_listmaps``` to preview pictures from the steamAPI. | ||
For the Official maps the filenames are available in the API. | ||
|
||
Therefore I decided to work with a static list for the official maps and get the workshop maps of a collection directly via the steamAPI. | ||
|
||
```ds_workshop_listmaps``` is only a backup in case the API is not reachable for some reason. | ||
|
||
## Change maps | ||
To change a map, there are also different commands whether it's a built in or a workshop map. | ||
|
||
- ```map <mapfilename>``` is used to change level to a built in map. | ||
- ```ds_workshop_changelevel <mapfilename>``` is used to change level to a map present in the hosted workshop collection. | ||
- ```host_workshop_map``` ist used to change to any workshop map. | ||
|
||
This cs2-api takes either the map-filename, the workshop-id or the title from the workshop details and matches it to a map-details object. Depending if it's an official of a workshop map, the respective command is called. If the workshop-id is not available for a workshop map, ```ds_workshop_changelevel``` is used. | ||
|
||
For that reason, a workshop collection id has to be set in the config if workshop maps are to be used. | ||
|
||
Alternatively one could call ```host_workshop_map``` via rcon command using the ```/rcon``` endpoint. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,37 @@ | ||
{ | ||
"ar_baggage": 125440026, | ||
"ar_monastery": 125440154, | ||
"ar_shoots": 125440261, | ||
"cs_agency": 1464919827, | ||
"cs_assault": 125432575, | ||
"de_boyard": 2926953717, | ||
"de_chalice": 2926952684, | ||
"cs_climb": 2537983994, | ||
"cs_insertion2": 2650330155, | ||
"cs_italy": 125436057, | ||
"cs_militia": 133256570, | ||
"cs_office": 125444404, | ||
"de_ancient": 2627571649, | ||
"de_anubis": 1984883124, | ||
"de_crete": 1220681096, | ||
"de_bank": 125440342, | ||
"de_basalt": 2627569615, | ||
"de_blagai": 2791116183, | ||
"de_breach": 1258599704, | ||
"de_cache": 2606407435, | ||
"de_canals": 951287718, | ||
"de_cbble": 205239595, | ||
"de_dust2": 125438255, | ||
"de_extraction": 2650340943, | ||
"de_hive": 2539316567, | ||
"de_inferno": 125438669, | ||
"de_iris": 1591780701, | ||
"de_lake": 125440557, | ||
"de_mirage": 152508932, | ||
"de_nuke": 125439125, | ||
"de_overpass": 205240106, | ||
"de_prime": 2831565855, | ||
"de_ravine": 2615546425, | ||
"de_safehouse": 125440714, | ||
"de_shortnuke": 2131550446, | ||
"de_stmarc": 125441004, | ||
"de_sugarcane": 125440847, | ||
"de_train": 125438372, | ||
"de_tuscan": 2458920550, | ||
"de_vertigo": 125439851, | ||
"dz_ember": 2681770529, | ||
"dz_vineyard": 2587298130, | ||
"gd_cbble": 782012846 | ||
} | ||
[{ | ||
"name": "ar_baggage", | ||
"id": 125440026 | ||
},{ | ||
"name": "ar_shoots", | ||
"id" : 125440261 | ||
},{ | ||
"name": "cs_italy", | ||
"id": 125436057 | ||
},{ | ||
"name": "cs_office", | ||
"id": 125444404 | ||
},{ | ||
"name": "de_ancient", | ||
"id": 2627571649 | ||
},{ | ||
"name": "de_anubis", | ||
"id": 1984883124 | ||
},{ | ||
"name": "de_dust2", | ||
"id": 125438255 | ||
},{ | ||
"name": "de_inferno", | ||
"id": 125438669 | ||
},{ | ||
"name": "de_mirage", | ||
"id": 152508932 | ||
},{ | ||
"name": "de_nuke", | ||
"id": 125439125 | ||
},{ | ||
"name": "de_overpass", | ||
"id": 205240106 | ||
},{ | ||
"name": "de_vertigo", | ||
"id": 125439851 | ||
}] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.