Thank you all so much! Helps me alot. Didn't know that existed. Should be documented hehe. Thanks!
[QUOTE=Darrell;50312509]Thank you all so much! Helps me alot. Didn't know that existed. Should be documented hehe. Thanks![/QUOTE]
[QUOTE=MDave;50311880]Undocumented, because it can break your game really badly![/QUOTE]
[QUOTE=gonzalolog;50312633]blah[/QUOTE]
I think the "hehe" is here for the irony...
[QUOTE=Noi;50313752]idk [url]http://wiki.garrysmod.com/page/Global/1_of_R[/url][/QUOTE]
please remove this page
or at least encourage more proper behavior:
[url]https://facepunch.com/showthread.php?t=1497739&p=50106081&viewfull=1#post50106081[/url]
It is undocumented for a reason. If you want it patched ASAP just keep telling everybody about it
It's been more than 2 years since [url=https://github.com/Facepunch/garrysmod-requests/issues/149]the original request[/url].
Why is [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/surface/DrawOutlinedRect]surface.DrawOutlinedRect[/url] called what it is? It's been confusing me for months... you'd expect it to draw a rectangle with an outline, right? But no, it draws an outline without a rectangle. It really should be called surface.DrawRectOutline, shouldn't it?? It'd be good to see an update that renamed it, for my sanity's sake
[QUOTE=MPan1;50324273]Why is [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/surface/DrawOutlinedRect]surface.DrawOutlinedRect[/url] called what it is? It's been confusing me for months... you'd expect it to draw a rectangle with an outline, right? But no, it draws an outline without a rectangle. It really should be called surface.DrawRectOutline, shouldn't it?? It'd be good to see an update that renamed it, for my sanity's sake[/QUOTE]
Unfortunately for you I reckon many would rather see you go insane than have their addons broken by such name change. I know I would. Sorry for valuing your sanity lower than the backwards compatibility between gmod and my addons. It's not personal. Actually, it is, since we're weighing your sanity.
Sorry :v:
Maybe add an alias then? :(
[QUOTE=FPtje;50324380]Unfortunately for you I reckon many would rather see you go insane than have their addons broken by such name change. I know I would. Sorry for valuing your sanity lower than the backwards compatibility between gmod and my addons. It's not personal. Actually, it is, since we're weighing your sanity.
Sorry :v:[/QUOTE]
[lua]function surface.DrawRectOutline(...)
...
end
surface.DrawOutlinedRect = surface.DrawRectOutline -- backwards compatibility[/Lua]
Actually, that reminds me (although this is a bit off topic), does anyone know where the source code for the surface library is, even if it was made in C++? It'd be interesting to fix all of Garry's HORRIBLE MISTAKES
[QUOTE=MPan1;50324999]Actually, that reminds me (although this is a bit off topic), does anyone know where the source code for the surface library is, even if it was made in C++? It'd be interesting to fix all of Garry's HORRIBLE MISTAKES[/QUOTE]
First of all you wont find the source code unless its within the source sdk. The next thing would be, what kind of mistakes?
[QUOTE=NeatNit;50324975][lua]function surface.DrawRectOutline(...)
...
end
surface.DrawOutlinedRect = surface.DrawRectOutline -- backwards compatibility[/Lua][/QUOTE]
Might want to add the last line before you define the function, or else it kind of fucks over what you want to do.
It would be amazing if we could get native bindings for String Tables, the functionality of source net 3 (I have a working copy, and would be relatively easy to implement, it patches the memory to hook into the process message function), and lastly it would be amazing if we could have bindings for sockets by default.
Sockets are in common use (common enough), and I think for that reason alone, it should be offered by default. Source net just offered so much, and allowed developers to take advantage of a few neat features. String Tables because they already hold decent information (like the download table), amongst of things.
Or is there a better place to request these things? I posted it here once again to open up a debate and see how other people feel about it.
[url]http://extrem-team.com/hl2_160424_crash_2016_5_15T20_22_21C0.mdmp[/url]
Crashdump when loading a map
Socket support would be absolutely wonderful
[QUOTE=Banana Lord.;50327945]Socket support would be absolutely wonderful[/QUOTE]
With clientside sockets, you could possible make a botnet. :v: PLS
[QUOTE=edgarasf123;50328155]With clientside sockets, you could possible make a botnet. :v:[/QUOTE]
This is a pretty stupid post. For one thing, we already can with http! For another, there's no way it could persist after shutting down the game.
[QUOTE=zerf;50328169]This is a pretty stupid post. For one thing, we already can by posting data over http! For another, there's no way it could persist after shutting down the game.[/QUOTE]
[URL="http://steamcommunity.com/workshop/"]WORKSHOP[/URL]! Make some addon, model pack, or something. And add small botnet code.
Also http botnet is lame and slow.
[QUOTE=edgarasf123;50328171]WORKSHOP![/QUOTE]
??????
Are you talking about distributing the botnet via workshop? Well I suppose that's a fair concern, but like I said we already can get clients making mass requests via http. A socket lib wouldn't really change that.
My persistence point also still stands, it would still only be active as long as people had the game open.
HTTP botnets aren't necessarily lame and slow, even with the speed limitations of TCP you can still do a fair amount.
Well, also servers are using Workshop and most of the servers are 27/4. And servers have huge bandwidth both upload and download. Also each server has few players that could be used for botnet.
Yes, you could make botnet with http only, but you could also make more advanced and faster using sockets. Although I dont know how http works in gmod, but I would imagine it has an internal limit of requests, such as filling the callback arrays as it waiting for response or something.
function DDOS() http.Fetch("https://facepunch.com/showthread.php?t=1516664", DDOS) end DDOS()
Alright, I do agree that implementing sockets would allow those using these sorts of botnets and DDOS methods at a [B]slightly[/B] higher efficiency. However, any addon using this sort of botnet would be detectable and dealt with much in the way HTTP abuse and backdoors are dealt with currently, workshop moderation.
Well, if we're about to add modules ...
Add[URL="https://github.com/ExtReMLapin/TrackIR_GMod"] trackir[/URL] and [URL="https://github.com/GitHubUsername1/Gmod_oculus_head-pos_tracking"]oculus[/URL] ?
Edit : Ok bad idea :boxhide:
Hang on, hang on. Is this branch named mcore as in Multicore? As in Multicore Support?
[IMG]https://winteris.moe/share/2016-05-16_03-34-50.png[/IMG]
Source: [url]https://twitter.com/FacepunchBot/status/732018348154818560[/url]
If so, and if it works, I'm totally hyped.
[QUOTE=WinterPhoenix;50330445]Hang on, hang on. Is this branch named mcore as in Multicore? As in Multicore Support?
[IMG]https://winteris.moe/share/2016-05-16_03-34-50.png[/IMG]
Source: [url]https://twitter.com/FacepunchBot/status/732018348154818560[/url]
If so, and if it works, I'm totally hyped.[/QUOTE]
Just imagine CEF and multicore rendering in one single update, FPS increases by what could be upto 150%.
[QUOTE=WinterPhoenix;50330445]Hang on, hang on. Is this branch named mcore as in Multicore? As in Multicore Support?
[IMG]https://winteris.moe/share/2016-05-16_03-34-50.png[/IMG]
Source: [url]https://twitter.com/FacepunchBot/status/732018348154818560[/url]
If so, and if it works, I'm totally hyped.[/QUOTE]
Oh boy, oh boy, I have lived to ever see this day, mcore gets some love.
Willox, the hero we need.
[QUOTE=slayer3032;50330644]Just imagine CEF and multicore rendering in one single update, FPS increases by what could be upto 150%.[/QUOTE]
Last time I talked to Willox about CEF, he said it's on hold because CEF doesn't support 32 bits applications on OSX. Making gmod 64 bits is not an option.
[QUOTE=FPtje;50330681]Last time I talked to Willox about CEF, he said it's on hold because CEF doesn't support 32 bits applications on OSX. Making gmod 64 bits is not an option.[/QUOTE]
Uhh, wasn't the hardware in the 32-bit Macs not very good and struggled at even playing a basic flash game? It was basically low end hardware in 2006, Gmod doesn't even boot anymore(checked last in GM12) on my Intel integrated laptop from 2008. It became unplayable when shifting to the Orange Box engine and DX7 compatibility was broken even through I only ever ran it in DX8. It went from getting around 25fps to about 5fps anyways.
Pretty sure they only used non PowerPC 32-bit hardware for like a single year and Apple stopped supporting that hardware in like 2010 just a couple years after they sold them which pissed off a lot of people who bought into the whole switch over to Intel CPUs early on.
I would've thought he was referring to the effort behind moving to 64-bit when he said it was "not an option" rather than the hardware support.
[url]https://cefbuilds.com/[/url]
[img]http://i.imgur.com/UlAK3kw.png[/img]
And I'm talking about GMod being a 32 bits application. Not the OS nor the hardware.
Sorry, you need to Log In to post a reply to this thread.