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

Maxplayer set at 18 #30

Closed
fantasylidong opened this issue May 1, 2022 · 6 comments
Closed

Maxplayer set at 18 #30

fantasylidong opened this issue May 1, 2022 · 6 comments
Labels
question Further information is requested

Comments

@fantasylidong
Copy link

fantasylidong commented May 1, 2022

Hello Sir,
I use the L4dtoolZ and have the same issue. I have same log as you.

maxplayers set to 18
Unknown command "mat_bloom_scalefactor_scalar"

Network: IP 10.0.0.41, mode MP, dedicated Yes, ports 2331 SV / 0 CL

maxplayers set to 31

But the maxplayers limit is still 18.

This is my test:
Then I use two server,one didn't install sourcetvsupports,one did.
This is server didn't install sourcetvsupports

hostname: Anne电信云服2[24特16秒]
version : 2.2.2.5 8491 secure (unknown)
udp/ip : 192.168.0.4:2334 [ public 106.13.221.250:2334 ]
os : Linux Dedicated
map : c2m1_highway
players : 1 humans, 0 bots (1 max) (not hibernating) (unreserved)

userid name uniqueid connected ping loss state rate
2 1 "⎛⎝东⎠⎞" STEAM_1:1:121430603 01:00 54 0 active 100000
7 "Boomer" BOT active
8 "Charger" BOT active
9 "Hunter" BOT active
10 "Smoker" BOT active
11 "(1)Smoker" BOT active
12 "Jockey" BOT active
13 "(1)Hunter" BOT active
14 "(2)Hunter" BOT active
15 "(2)Smoker" BOT active
16 "(1)Charger" BOT active
17 "(3)Hunter" BOT active
18 "(4)Hunter" BOT active
19 "(1)Jockey" BOT active
20 "(2)Jockey" BOT active
21 "(2)Charger" BOT active
22 "(3)Jockey" BOT active
23 "(4)Jockey" BOT active
24 "(5)Jockey" BOT active
25 "(5)Hunter" BOT active
26 "(3)Charger" BOT active
27 "(3)Smoker" BOT active
28 "(4)Charger" BOT active
29 "Spitter" BOT active
30 "(5)Charger" BOT active
end

This is the server use sourcetvsupports:

hostname: Anne电信1服[24特16秒]
version : 2.2.2.5 8491 secure (unknown)
udp/ip : 10.0.0.41:2331 [ public 124.230.192.36:2331 ]
os : Linux Dedicated
map : c2m1_highway
sourcetv: port 6666, delay 30.0s
players : 1 humans, 0 bots (1 max) (not hibernating) (unreserved)

userid name uniqueid connected ping loss state rate
2 "SourceTV" BOT active
3 2 "⎛⎝东⎠⎞" STEAM_1:1:121430603 01:54 22 0 active 100000
8 "Jockey" BOT active
9 "Charger" BOT active
10 "Hunter" BOT active
11 "(1)Jockey" BOT active
12 "Boomer" BOT active
13 "(1)Charger" BOT active
14 "(2)Charger" BOT active
15 "(1)Hunter" BOT active
16 "(2)Jockey" BOT active
17 "Smoker" BOT active
18 "(3)Charger" BOT active
19 "(3)Jockey" BOT active
20 "(4)Jockey" BOT active
21 "(1)Smoker" BOT active
22 "(2)Hunter" BOT active
23 "(5)Jockey" BOT active
end

Both server set SI limit at 24.
It does have maxplayer18 limitation.
Sorry for my bad english

@fantasylidong
Copy link
Author

fantasylidong commented May 2, 2022

I found a temporary solution。
this version of l4dtoolz can change the value of maxplayers in server.cfg.
For normal use just add maxplayers 32 to server.cfg after tv_enable and other cvars to lift the restriction, but still want sourcetvsupport to set maxplayers to 32.
Thanks for reading , appeaciating your work.

@accelerator74
Copy link

Use tv_enable 1 before starting the map, i.e. either in the autoexec.cfg file or in the server startup options +tv_enable 1 to avoid the problem of decreasing the maxplayers variable.

@fantasylidong
Copy link
Author

fantasylidong commented May 2, 2022

Thanks you, accelerator. It's work.
I use your latest l4dtoolz(1.1.0.1)and add this cvar into autoexec.cfg.

tv_enable 1
tv_autorecord 0
tv_maxrate 100000
tv_transmitall 1

server startup command:

./srcds_run -console -game left4dead2 -tickrate 100 -hltv +tv_port 6666 -port 2333 +maxplayers 31 +map "c2m1_highway"

The maxplayers valve set correctly after all set.

] maxplayers
Welcome user!
"maxplayers" is "31"
"mininum_maxplayers" is "18"
"absolute_maxplayers" is "18"
"default_maxplayers" is "18"
"max_splitscreen_players" is "2"

I hope this issue will help those people who have same issues.

@shqke shqke added the question Further information is requested label May 2, 2022
@fantasylidong fantasylidong reopened this May 3, 2022
@fantasylidong
Copy link
Author

I have noticed that autorecoder plugins stop work recently, So I checked the sourcetv status.

After the setting from the previous, The SourceTV is not active.

If you wrote tv_enable 1 to start server command.

] tv_enable 1
Unknown command "tv_enable"

It's useless. Because tv_enable 1 cann't be set before extension load.
wrote in autoexec.cfg, The valve will not change. The SourceTV will not active.
Sourcetv cvar Setting need extension load. So write in start command or autoexec.cfg is useless.

wrote in server.cfg, The maxslots will decrease as previous.
So, I still have the issue.

@shqke
Copy link
Owner

shqke commented May 3, 2022

You don't need to rely on sourcemod (sm_cvar) with configs.
Make sure your VSP has loaded with message

[STVS] SourceTV related convars (25 out of 25) were successfully exposed. Unloading...

This should unlock tv_* convars to be used as launch parameters, as well as in autoexec.cfg.

@fantasylidong
Copy link
Author

You don't need to rely on sourcemod (sm_cvar) with configs. Make sure your VSP has loaded with message

[STVS] SourceTV related convars (25 out of 25) were successfully exposed. Unloading...

This should unlock tv_* convars to be used as launch parameters, as well as in autoexec.cfg.

Yes, The VSP was not load appropriately.
I found my addons/sourcetvsupport_vsp_l4d2.vdf file is emety.
I changed the vdf file to load VSP appropriately.
Thank for your replys and times.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants