2013-02-10

Buffer overflow

We had some errors in the server console of all Realism servers during server startup.
It was something like this:

...
Cbuf_AddText: buffer overflow
Cbuf_AddText: buffer overflow
Cbuf_AddText: buffer overflow
...

This caused that some plugin configurations were not loaded correctly.
Using "sm plugins reload [pluginname]" loaded the config correctly then.

After some searching I found a solution which seems to work.

The problem was that we had to many cvars defined in the server.cfg file itself.
This caused the buffer overflow messages and prevented some plugin cvar settings to be set correctly.

The solution was simple.
Move a whole bunch of cvars from the bottom of the server.cfg to a new file server2.cfg
Add the call "exec server2.cfg" at the end of the server.cfg to execute the cvar settings now from the new server2.cfg file.

So the buffer errors were gone and the plugins cvar configuration worked fine again.

I hope this problem is solved now.

Tell me if something is still not working properly.

No comments:

Post a Comment