Facepunch / garrysmod-issues

Garry's Mod issue tracker
144 stars 56 forks source link

con_filter concommands don't exists on Linux SRCDS #2575

Open 60percentCaffeine opened 8 years ago

60percentCaffeine commented 8 years ago

This 3 concommands don't exists on Linux SRCDS: con_filter_enable con_filter_text con_filter_text_out

iceman-twitch commented 8 years ago

not just linux it doesnt work on SRCDS only in client.

michak89 commented 5 years ago

Hello I don't want to load some entities on every map so I added simple check in few ents. if game.GetMap() == "x" then ent code here end

Since one update, everytime server starts or map changes console is full of: "Refusing to load something it is missing Type and Base keys!" This is usefull information but not in this case, so I tried to hide it using con_filter as I used to hide spam clientside.

In windows it is there: https://i.imgur.com/ysyvXLj.png Tried everything, not working. In linux it's not even there: Unknown command "con_filter_enable"

Any fix for that :question:

Kefta commented 5 years ago

Fix your entities that are causing those errors so that you don't have to filter them out.

thegrb93 commented 5 years ago

That's not an option for most end users

Kefta commented 5 years ago

It is when they are claiming to have added code to their own server. Those errors mean the entities aren't even being loaded which I would consider major and not something that should be filtered out.

thegrb93 commented 5 years ago

Oh, yea if game.GetMap() == "x" then ent code here end ain't gonna work.

robotboy655 commented 5 years ago

Sounds more like a request to have the ability to prevent an entity from spawning via a hook, which can also fulfill https://github.com/Facepunch/garrysmod-requests/issues/1308

The error @michak89 is getting is not something I can see easily fixed on their end, the engine tries to spawn an entity, but gets what's essentially an empty file on load, which causes those errors,

Kefta commented 5 years ago

They can use a conditional scripted_ents.Register instead. Looks uglier and you don't get the exact ENT file syntax, but it's still the best solution in the meantime.

michak89 commented 5 years ago

I do understand what is going on with the error, just tried to hide this spam and found out that con_filter works only clientside. Anyway, thanks for help everyone :1st_place_medal:

I will try your idea @Kefta And @thegrb93, it's working 6 months like that. Spam in console (:/) but works.