Garry's Mod

Garry's Mod

Otillräckligt med betyg
Random Starting Map
   
Utmärkelse
Favorit
Favoritmarkerad
Avfavoritmarkerad
Content Type: Addon
Addon Type: ServerContent
Addon Tags: Fun
Filstorlek
Lades upp
Uppdaterades
5.529 KB
4 jul, 2023 @ 23:20
30 jan, 2024 @ 8:59
5 ändringsnotiser ( visa )

Abonnera för att ladda ner
Random Starting Map

I 1 samling av The Stig
The Stig's TTT Mod List
286 artiklar
Beskrivning
Don't like how Gmod servers only let you start on a single pre-defined map? Well, no longer!

Have your server start on a newly added map, or a completely random one with lots of filtering options with this mod!


How it works
1. You can use the settings below to tweak the list of maps available for your server to start on below.

2. Decide if you want the map chosen to be biased towards newly added maps (pick maps more newly added to the server more often).

3. Choose a map to be the designated map to switch from to a random map, i.e. the map you set your server to start on!


Settings/Convars
rsm_map_to_switch_from default: gm_flatgrass
This map cannot be played on and is automatically blacklisted and switched from to a random map when the server loads it, this should be the map your server starts on (Your server's '+map' parameter)

rsm_true_random default: 0
Whether the random starting map should be truly random (1), or try to pick new maps (0)

rsm_map_prefixes default: ttt_
What prefixes a map's name has to start with in order to be in the pool of random starting maps (unless on the blacklist/whitelist), separated by commas (E.g. the "ttt_" prefix is for maps made for the "Trouble in Terrorist Town" gamemode)

rsm_map_blacklist default: gm_flatgrass,gm_construct
What maps should be excluded in the pool of random starting maps regardless of its prefix, separated by commas (Takes precedent over the whitelist)

rsm_map_whitelist default: [nothing]
What maps should be included in the pool of random starting maps regardless of its prefix, separated by commas
10 kommentarer
The Stig  [skapare] 30 jan, 2024 @ 9:00 
@EntranceJew Should hopefully be fixed now
EntranceJew 14 jan, 2024 @ 22:45 
[Random Starting Map] lua/autorun/server/random_starting_map.lua:91: attempt to index upvalue 'mapStats' (a nil value)
1. ChangeMap - lua/autorun/server/random_starting_map.lua:91
2. unknown - lua/autorun/server/random_starting_map.lua:116

Something strange going on.
Excentyl 7 aug, 2023 @ 6:24 
Thanks for making a fixed version :)
hashbrown pussy 25 jul, 2023 @ 20:46 
Works! Brilliant, brilliant, thank you.
The Stig  [skapare] 25 jul, 2023 @ 20:25 
@Dill I've updated the mod, let me know what happens. It is working for me again now after the update.
The Stig  [skapare] 25 jul, 2023 @ 4:57 
So I think I have fixed this by adding an extra attempt to change maps after the sever has loaded some more in case the first try fails for whatever reason. So hopefully it will work now.

Just have to wait for my internet to come back for me to upload the fix.
hashbrown pussy 24 jul, 2023 @ 13:48 
When I start up my server, it says in the console:

Can't changelevel, not running server
Executing dedicated server config file server.cfg
Using map cycle file cfg/mapcycle.txt.
hashbrown pussy 24 jul, 2023 @ 13:24 
It continues to load flatgrass regardless.
The Stig  [skapare] 7 jul, 2023 @ 22:25 
@Dill Oh? Can you describe what happened? It is obviously working for me.
hashbrown pussy 7 jul, 2023 @ 15:48 
This addon randomly decided to stop working lmao