Forum

> > CS2D > Scripts > Getting rid of "Lua: Adding function x to hook y"
Forums overviewCS2D overview Scripts overviewLog in to reply

English Getting rid of "Lua: Adding function x to hook y"

5 replies
To the start Previous 1 Next To the start

old Getting rid of "Lua: Adding function x to hook y"

Alistaire
User Off Offline

Quote
Pretty self-explanatory, I'm making a script which adds loads of console texts, and find it annoying to see every console fill up with loads of "Addhook" messages, that have no real use for the player anyways.

How to get rid of them?

old Re: Getting rid of "Lua: Adding function x to hook y"

DC
Admin Off Offline

Quote
It's more efficient to add one function to a hook which handles all possible input instead of adding X functions. Or did I get you wrong? So you shouldn't have many of those lines in the console.

You only see those lines once and only as server so just ignore them?! They are no problem and they are important so people know what is influenced by the script.

old Re: Getting rid of "Lua: Adding function x to hook y"

VADemon
User Off Offline

Quote
Use the SilentLoading™ Technology

1
2
3
4
if config.silent_loading then parse("debuglua 0") end
addhook("join","func.cache.addentries")
addhook("leave","func.cache.clearcache")
if config.silent_loading then parse("debuglua 1") end
PS: Mah idea! rawr! ; )
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview