Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to define custom map groups? #79

Open
PfefferT opened this issue Jan 17, 2024 · 7 comments
Open

How to define custom map groups? #79

PfefferT opened this issue Jan 17, 2024 · 7 comments
Assignees
Labels
documentation Improvements or additions to documentation

Comments

@PfefferT
Copy link

PfefferT commented Jan 17, 2024

On old CS:GO it was possible to set GameMode_server.txt to define maxplayers and custom map groups. I am currently missing this inside the container. Is there anything new in this section? How can i achieve a custom mapgroup and where should I store this config?

@labaland
Copy link

i want to know too!

@joedwards32 joedwards32 self-assigned this Feb 21, 2024
@joedwards32 joedwards32 added the documentation Improvements or additions to documentation label Feb 21, 2024
@joedwards32
Copy link
Owner

This is possible. I just tested it.

I'll write up some doc shortly.

@joedwards32
Copy link
Owner

gamemodes_server.txt

Here's an example map group config. I've updated https://github.com/joedwards32/CS2/raw/main/examples/cs2.cfg.tgz to include an example of this in action, for use with CS2_CFG_URL.

If you are using a persistent volume for the CS2 docker image, you can drop the file in /var/lib/docker/volumes/examples_cs2/_data/game/csgo/gamemodes_server.txt.

Once the file is in place, you can set CS2_MAPGROUP="mg_tournament"

@carsonl
Copy link

carsonl commented Feb 22, 2024

Would this work for workshop maps mixed with official maps?
e.g.

host_workshop_map 3070584943 #  Agency (cs_agency)
map cs_office

For a dedicated server I look after, we only play workshop maps, and use the "workshop collection" method. In CS:GO they used to provide the "current" (and old) version of maps on the workshop as well, so I just included the official maps in the collection and we could have a mix...

If no one else responds, I'm sure I'll get a chance to test this myself at some point in the near future (and will report back )

@joedwards32
Copy link
Owner

I don't have much experience with workshop maps. If you figure this out @carsonl please let us know :)

@labaland
Copy link

Would this work for workshop maps mixed with official maps? e.g.

host_workshop_map 3070584943 #  Agency (cs_agency)
map cs_office

For a dedicated server I look after, we only play workshop maps, and use the "workshop collection" method. In CS:GO they used to provide the "current" (and old) version of maps on the workshop as well, so I just included the official maps in the collection and we could have a mix...

If no one else responds, I'm sure I'll get a chance to test this myself at some point in the near future (and will report back )

Please tag me if u find a solution! i want this too!

@carsonl
Copy link

carsonl commented Mar 10, 2024

Yeah, I had a bit of a google to see if others are doing it, and then some naive entries in gamemodes_server.txt like the following, none of which worked: (I did test them one at a time)

                "3070584943" "1"
                "workshop/3070584943/cs_agency" "1"
                "cs_agency" "1"

I'll keep my eyes and ears open for any blogs/announcements

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

4 participants