[QUOTE=Robotboy655;51420122]Try again in ~1 hour please.[/QUOTE]
Seems to have extracted and loaded the addons. Thanks.
iirc, it's not possible to center the text of a DTextEntry element? Is this something that could be looked into?
[QUOTE=smithy285;51421331]iirc, it's not possible to center the text of a DTextEntry element? Is this something that could be looked into?[/QUOTE]
Could use [URL="https://dl.dropboxusercontent.com/u/104427432/Scripts/centered_dtextentry.lua"]this snippet[/URL].
Of course that's a hacky solution.
Hello why is echo blacklisted
[QUOTE=Kevlon;51427963]Hello why is echo blacklisted[/QUOTE]
Why would you need it? Just use print() instead.
[QUOTE=Kevlon;51427963]Hello why is echo blacklisted[/QUOTE]
Did you try [url]http://wiki.garrysmod.com/page/game/ConsoleCommand[/url]
IIRC it doesn't block as many as RunConsoleCommand does.
Will NW2 replace NW-Vars?
Would be awesome to have stdout fixed for Linux servers, been an issue for a long time and the console.log output misses engine errors and possibly crash causes.
[QUOTE=Alex_grist;51432740]Would be awesome to have stdout fixed for Linux servers, been an issue for a long time and the console.log output misses engine errors and possibly crash causes.[/QUOTE]
I don't even remember when it last worked. It's been an outstanding issue for so long...
[QUOTE=Revenge282;51432797]I don't even remember when it last worked. It's been an outstanding issue for so long...[/QUOTE]
I think it broke around December 2015 after an update.
Wasn't Windowed No Border added to the graphics settings menu like years ago? It doesn't seem to be there now, it definitely should be.
[QUOTE=Alex_grist;51432740]Would be awesome to have stdout fixed for Linux servers, been an issue for a long time and the console.log output misses engine errors and possibly crash causes.[/QUOTE]
It was only fixed for a few months iirc; it didn't work while Garry was around.
Can we get SetPlayerColor moved from Player to Entity? I want to set the playercolor of my nextbots.
[QUOTE=bobbleheadbob;51442864]Can we get SetPlayerColor moved from Player to Entity? I want to set the playercolor of my nextbots.[/QUOTE]
Does it not work if you do
[code]nextbot.GetPlayerColor = function()
return Vector(1, 0, 0) -- red
end[/code]
Do the above for whatever entities you want. I don't think overriding entity.GetPlayerColor is a good idea because that's how this stuff has always worked.
[QUOTE=Willox;51442931]Do the above for whatever entities you want. I don't think overriding entity.GetPlayerColor is a good idea because that's how this stuff has always worked.[/QUOTE]
That's a really lame reason not to update things.
I doubt it would break anything anyway. If people wrote their own functions like that for it then they would just be overriding the new default behavior.
[QUOTE=bobbleheadbob;51443110]That's a really lame reason not to update things.
I doubt it would break anything anyway. If people wrote their own functions like that for it then they would just be overriding the new default behavior.[/QUOTE]
The metatables have higher precedence than ordinary values set on entities.
[QUOTE=Willox;51443174]The metatables have higher precedence than ordinary values set on entities.[/QUOTE]
[lua]function ENTITY:GetPlayerColor(...)
local override = rawget(self, "GetPlayerColor")
if override then return override(self, ...) end
-- ...
end[/lua]
(this is pseudocode because (A) it wouldn't be in lua anyway (right?) and (B) I haven't even checked if rawget works on entities like that)
[img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/Global/LanguageChanged]LanguageChanged[/url] would be very useful to have in the client state. Could even be useful on the server state. Yes, gmod_language exists on the server as well.
[QUOTE=sannys;51444094][IMG]http://wiki.garrysmod.com/favicon.ico[/IMG] [URL="http://wiki.garrysmod.com/page/Global/LanguageChanged"]LanguageChanged[/URL] would be very useful to have in the client state. Could even be useful on the server state. Yes, gmod_language exists on the server as well.[/QUOTE]
Isn't it easier to just do this?
[lua]cvars.AddChangeCallback( "gmod_language", function( name, old, new ) end, "something unique" )[/lua]
No overriding involved, so anyone can hook into it easily.
[QUOTE=Mista Tea;51444188]Isn't it easier to just do this?
[lua]cvars.AddChangeCallback( "gmod_language", function( name, old, new ) end, "something unique" )[/lua]
No overriding involved, so anyone can hook into it easily.[/QUOTE]
I already tried that. It doesn't work.
[QUOTE=sannys;51444207]I already tried that. It doesn't work.[/QUOTE]
It certainly does work clientside. I use it in some of my tools via [URL="https://github.com/Mista-Tea/localify/blob/master/lua/includes/modules/localify.lua#L322L327"]here[/URL] and haven't had issues.
[QUOTE=Mista Tea;51444221]It certainly does work clientside. I use it in some of my tools via [URL="https://github.com/Mista-Tea/localify/blob/master/lua/includes/modules/localify.lua#L322L327"]here[/URL] and haven't had issues.[/QUOTE]
Wow. Works on the client indeed. I did my testing with the console, but it didn't work there. Strange it only works on the client.
[QUOTE=bobbleheadbob;51442864]Can we get SetPlayerColor moved from Player to Entity? I want to set the playercolor of my nextbots.[/QUOTE]
So funny you said this because I was thinking the same thing 2-3 days ago.
I ended up just using:
[code]
self.GetPlayerColor = function() return Vector( 1, 0, 0 ) end
[/code]
Inside my CL function (cl_init.lua)
[QUOTE=kpjVideo;51445102]Inside my ENT:Draw function (cl_init.lua)[/QUOTE]
so you're overriding the function every frame then...?
Will Gmod engine ever updated? Will linux srcds ever use all cores/threads? And what about fps? There is about 25-40 fps at rp_bangclaw with freeze every 3-5 secs, but it is all alright with my PC(i3-4130 HD7790 10GB RAM).
Loading can also be inexplicably slow sometimes. Not to mention several features from newer source engine versions are no available.
Yeah I know graphical updates and compatibility with newer source games is at the bottom of the priority list compared with what the community needs most right now, but having slight updates here and there would be nice.
You cant just update graphics, even more, what are better graphics, all content with baf graphics already exists
Shaders, prop lighting, several things need updating actually. This is why I mentioned compatibility with newer source games.
Look, I know improving these things takes a gargantuan amount of work, and that there are coding problems that have greater priority. Just saying small improvements now and then would be nice.
[QUOTE=Portugalotaku;51446631]Shaders, prop lighting, several things need updating actually. This is why I mentioned compatibility with newer source games.
Look, I know improving these things takes a gargantuan amount of work, and that there are coding problems that have greater priority. Just saying small improvements now and then would be nice.[/QUOTE]
The game loads slower when you have more content mounted. Try disabling some of your workshop addons and see the difference.
Sorry, you need to Log In to post a reply to this thread.