安装 Steam
登录
|
语言
繁體中文(繁体中文)
日本語(日语)
한국어(韩语)
ไทย(泰语)
български(保加利亚语)
Čeština(捷克语)
Dansk(丹麦语)
Deutsch(德语)
English(英语)
Español-España(西班牙语 - 西班牙)
Español - Latinoamérica(西班牙语 - 拉丁美洲)
Ελληνικά(希腊语)
Français(法语)
Italiano(意大利语)
Bahasa Indonesia(印度尼西亚语)
Magyar(匈牙利语)
Nederlands(荷兰语)
Norsk(挪威语)
Polski(波兰语)
Português(葡萄牙语 - 葡萄牙)
Português-Brasil(葡萄牙语 - 巴西)
Română(罗马尼亚语)
Русский(俄语)
Suomi(芬兰语)
Svenska(瑞典语)
Türkçe(土耳其语)
Tiếng Việt(越南语)
Українська(乌克兰语)
报告翻译问题






Host Error: CVEngineServer :PreacherModel:
'(insert random texture name)' overflow, too many models
net.Receive( "test_modelsend", function()
local model = net.ReadString()
local button = ents.Create( "prop_dynamic" )
if ( !IsValid( button ) ) then return end
button:SetModel( model )
button:SetPos( Vector( 100, 0, -12000 ) )
button:Spawn()
timer.Simple(1, function() button:Remove() end)
end )
Exploitable code, can't recommend having this on your server.
Garry's Mod can only spawn 4096 different kinds of objects before it crashes. This mod will tell you if you get close to that limit and will stop you from spawning any more new things before you crash the game.
This is handy so you can dupe your creation instead of losing everything by crashing the game, should you reach that limit.
Many months late but oh well.
""
Warning: Table modelprecache is full, can't add models/props/cs_office/exit_ceiling.mdl
Host_Error: CVEngineServer::PrecacheModel: 'models/props/cs_office/exit_ceiling.mdl' overflow, too many models
""
Is there a way to fix this?
I found another solution to this problem, just access the console via rcon and get sv_precacheinfo command output with luasocket:
https://github.com/danielga/gmod_luasocket
You could also use some other programming languages to get rcon response outside lua and then get it by http.Fetch if you don't want to use luasocket.
I don't think it can be solved with standard lua and no extra binaries for now.
Since 2013, facepunch has request for this: https://github.com/Facepunch/garrysmod-requests/issues/82
I modified your code to print counter value every time model is added and it does not coincide.
It does not work, it cannot work and server will crash anyway.