Garry's Mod

Garry's Mod

评价数不足
Random Starting Map
   
奖励
收藏
已收藏
取消收藏
素材类型: 插件
插件类型: 服务器内容
插件标签: 快乐
文件大小
发表于
更新日期
5.529 KB
2023 年 7 月 4 日 下午 11:20
2024 年 1 月 30 日 上午 8:59
5 项改动说明 ( 查看 )

订阅以下载
Random Starting Map

在 The Stig 的 1 个合集中
The Stig's TTT Mod List
314 件物品
描述
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 条留言
The Stig  [作者] 2024 年 1 月 30 日 上午 9:00 
@EntranceJew Should hopefully be fixed now
EntranceJew 2024 年 1 月 14 日 下午 10: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 2023 年 8 月 7 日 上午 6:24 
Thanks for making a fixed version :)
hashbrown pussy 2023 年 7 月 25 日 下午 8:46 
Works! Brilliant, brilliant, thank you.
The Stig  [作者] 2023 年 7 月 25 日 下午 8:25 
@Dill I've updated the mod, let me know what happens. It is working for me again now after the update.
The Stig  [作者] 2023 年 7 月 25 日 上午 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 2023 年 7 月 24 日 下午 1: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 2023 年 7 月 24 日 下午 1:24 
It continues to load flatgrass regardless.
The Stig  [作者] 2023 年 7 月 7 日 下午 10:25 
@Dill Oh? Can you describe what happened? It is obviously working for me.
hashbrown pussy 2023 年 7 月 7 日 下午 3:48 
This addon randomly decided to stop working lmao