Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
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.