Counter-Strike 2

Counter-Strike 2

63 vurderinger
Host a workshop map on your dedicated
Av lopata
This guide will help you hosting map from the workshop without having to re-download the bsp for each update.
   
Utmerkelse
Favoritt
Favoritter
Fjern som favoritt
The old way
You can host a workshop map 2 different way on your dedicated server;

The easiest way, but you'll have to keep the map updated yourself is as follow:
  • Subscribe to the map with your own account
  • Launch cs-go, play the map offline with bots, you can close cs-go
  • Go to C:\Program Files (x86)\Steam\steamapps\common\Counter-Strike Global Offensive\csgo\maps\workshop\Map_ID
  • spot the map's name
  • Copy all the files that starts with the map's name
  • Upload them in your csgo/maps folder of your ftp
  • you usually have to generate your own cfg, nav file
  • Now you can add the map to your ftp's maplist.txt, mapcycle.txt... gamemodes_server.txt

This method won't automatically update the map from the author's changes. And people who play on your server might get pure files errors, map's doesn't match errors and even corrupted files error.

I recommend this method only if you are lazy, have poor knowledge or want to keep an old-dated version of the map.

I highly recommend you to rename the map adding a suffix so it won't cause errors with the same/different map on other servers.
The better way
In the following, I will describe how to make your server host a map directly from the workshop content.

If you want to switch to a workshop map just one time you just do
host_workshop_map Map_id

Your server doesn't need to subscribe to the map
But if you want to install the map on your server for long term you ll need:
An ftp access,
srcds parameters's launch access if the -authkey isn't already supplied
Step 1 Launch options
If your server provider didn't set it up already:
The srcds launch parameters must have an -authkey with a key generated from this page

(Note that you also must set +sv_setsteamaccount with a key generated from this page if it's note already set up)

Once, you ve done that, you can add those optional parameter only if you want the workshop map to be loaded when your server restarts:
  • +host_workshop_map ID_Map
    ID_Map being the numeric id of the workshop map after "filedetails/?id= " in the url of it.
  • +workshop_start_map ID_Map
  • +game_type X
  • +game_mode X
    if the workshop map you start the server with use a different game_type and mode than "competitive" 0
Step 2 Add the map reference to your ftp
  • Add:
    "workshop/ID_MAP/MAP_NAME"
    in a new line to maplist.txt, mapcycle.txt


  • Create a new "subscribed_file_ids.txt" file with each workshop map ids you want as a new line to your ftp's csgo folder
    ex;
    51650654
    69480498

  • add
    "workshop\ID_MAP\MAP_NAME" ""

    to gamemodes_server.txt 's map list of the mapgroup that your game_type/ game_mode is using (note: \ are important over /)

  • If the map use the game_type "custom" with custom cfg from the authors, you must check that your gamemodes_server.txt has the game_type custom in it,
    if it doesn't:
    Before "// Map groups" add:
    "custom"{"gameModes"{
    "custom"{
    "maxplayers" "30"
    // max players on server without spectators

    "exec"
    {
    // "exec" "custom_config.cfg"
    }
    "mapgroupsMP"
    {
    "mg_custom" ""
    }
    }}}


    And in the same file add the map: (after the last mapgroup closing bracket (in "mapgroups"):
    "mg_custom"
    {
    "name" "mg_custom"
    "maps"
    {
    // your other maps of custom group
    "workshop\MAP_ID\MAP_NAME" ""
    }
    }
Final Step, change the map with rcon
Once you've done step 1 and 2,

you can change the map to the workshop one either by entering the command:

  • rcon host_workshop_map MAP_ID

or if you have already added the id to the subscribed_file_ids.txt you can just do:
  • rcon map workshop/MAP_ID/MAP_NAME

If the map is using a different game_type game_mode, it will detect it from the gamemodes_server.txt, but in case you can always do these command before changing the map
rcon game_type X
rcon game_mode X
X being the appropriate number

or append the type name
for example
  • rcon map workshop/MAP_ID/MAP_NAME custom

done!
16 kommentarer
🅳🅴🅻🆄🆇🅴 13. sep. 2024 kl. 15.46 
And how to download a workshop item like models pack for zombie escape?
GoG |Nitro 6. nov. 2023 kl. 9.06 
First of all, thank you for the great contribution. :)

I think I still have an error in the gamemodes_server.txt. Can you please provide the complete gamemodes_server.txt?

Thank you very much!
thing 1 28. jan. 2023 kl. 19.43 
Does the account you setup the -authkey with need to be subscribed to the map?
or, will the server update the map on its own if it's in subscribed_file_ids.txt?
✪ Zyze (Lucas) 20. juli 2021 kl. 12.34 
The idea is to be able to download maps without using an ftp.
MacAttack 18. juni 2021 kl. 17.25 
Tried to follow instructions, but either something has changed since they were posted, or something has been left out. Not being a troll, I just can't make this work.
cheN 3. juni 2021 kl. 22.53 
RUS: Выберите что то одно из этого списка и напишите в моём профиле, отвечу тем же!
ENG: Copy&Paste one of these OR write whatever you want and I will rep you back
TR : Aşağıdakilerden birini seç ve profilime yapıştır. Ben de sana aynısını yapacağım
GR:Kane copy paste h grapse kati diko sou sto profil m kanw piso <3
+Rep Nice Aim
+Rep Only Headshot
+Rep
+Rep Good AK-47 Recoil
+Rep Good AK-47 SPRAY !
+Rep Awp King
+Rep Aimbot detected
+Rep Good Teammate
+Rep Friendly Person
+Rep Headmachine
+Rep ONE TAP MACHINE
+rep Great Player
+rep Killing Machine
+rep Nice to Meet You!
+rep Top Player
+rep Tnx For Carry
+rep Epic Comeback
+rep Great Teammate
黑手党 30. mai 2021 kl. 12.47 
nice
Ego 29. mai 2021 kl. 14.09 
RUS: Выберите что то одно из этого списка и напишите в моём профиле, отвечу тем же!
ENG: Choose the one that's on the list and write in my profile, I will answer the same!
TR: Bunlardan birini profilime at aynısını bende atıcam
+rep Good player 💜
+rep Amazing Tactics 👌
+rep Epic Clutch ✌
+rep Clutchmeister 👍
+rep Killing Machine *_*
+rep 1Tap Only 👊
+rep Insane Skills 👌
+rep One shot man!
+rep Top Player 🔝
+rep Thx for carry 👍
+rep Epic Comeback 👍
+rep Good Teammate 🎮
+rep Friendly Person 💜
+rep ONE TAP MACHINE 👍
+rep AWP GOD ✌
+rep AK GOD
+rep DEAGLE MASTER
ZEUS 5. juni 2020 kl. 12.29 
it just says "Invalid file id."
^o^Oreło^o^ 11. apr. 2020 kl. 13.31 
xd