• What do you need help with? V3
    6,419 replies, posted
[QUOTE=InfernalCookie;38173935]I was allowed in GM12... I can make the file manually with the '!' in it... Think Gmod doesn't allow it?[/QUOTE] The filesystem was changed a lot in 13, it might not be allowed anymore. Try without it anyway so we can at least rule it out.
[QUOTE=InfernalCookie;38173935]I was allowed in GM12... I can make the file manually with the '!' in it... Think Gmod doesn't allow it?[/QUOTE] Well of course you can manually make a file there, gmod isn't going to attempt to deny your computer access from creating it. It simply doesn't load it anymore, I believe.
Oh. That was it.... :/ I guess no more "!" in files.... Now I get to convert over 100 files from using "!" to "-" manually since the server won't even DETECT the file....
Why when I change a file in a gamemode it tries to reload it, instantly breaking the gamemode and kicking all players. How am I supposed to update without shutting the server down first? Must be some sort of convar to set? [editline]24th October 2012[/editline] Why does util.BlastDamage seem to have a bigger than set radius when damaging the attacker? Can be killed atleast 512 units away from something set at 128 while people standing next to it are hardly damaged.
I've been trying to fix a prop pack that I've been working on since before the update to GMod 13 for the past several hours, and I still can't get it to work. I'm not 100% sure if it's because of something with the lua, or if it's because I'm missing something that should be easily noticeable. The only thing I have that might help would be this: [thumb]http://cloud.steampowered.com/ugc/578971082815845022/FA8CDC59963F83299777EA5DF994E039514B7EA0/[/thumb] Would anyone know what the problem is? I honestly don't know what to do at this point.
I'm getting the following file not found error and I can't for the life of me find how to fix it. I have similar addons including files the same way and it works just fine. I do not get this error for the server side code (init.lua). [code]Couldn't include file 'weapons\weapon_stickyrifle\shared.lua' (File not found) (@addons/sticky_rifle/lua/weapons/weapon_stickyrifle/cl_init.lua (line 1))[/code]
[QUOTE=Mitsudigi;38174720]Why when I change a file in a gamemode it tries to reload it, instantly breaking the gamemode and kicking all players. How am I supposed to update without shutting the server down first? Must be some sort of convar to set? [editline]24th October 2012[/editline] Why does util.BlastDamage seem to have a bigger than set radius when damaging the attacker? Can be killed atleast 512 units away from something set at 128 while people standing next to it are hardly damaged.[/QUOTE] sv_kickerrornum 0 stops players from getting kicked for errors sv_autorefresh 0 turns off the auto-refresh system [editline]25th October 2012[/editline] [QUOTE=Crazy Quebec;38175467]I'm getting the following file not found error and I can't for the life of me find how to fix it. I have similar addons including files the same way and it works just fine. I do not get this error for the server side code (init.lua). [code]Couldn't include file 'weapons\weapon_stickyrifle\shared.lua' (File not found) (@addons/sticky_rifle/lua/weapons/weapon_stickyrifle/cl_init.lua (line 1))[/code][/QUOTE] Did you AddCSLuaFile it?
[QUOTE=Drakehawke;38175517]Did you AddCSLuaFile it?[/QUOTE] Thanks! It's been a while so I need to get back into this stuff. edit : Nevermind, still seems to be doing it. edit : I'm pretty sure it doesn't matter if I do or not. This is for a packaged workshop addon and I get this error localy.
[QUOTE=Crazy Quebec;38175537]Thanks! It's been a while so I need to get back into this stuff. edit : Nevermind, still seems to be doing it. edit : I'm pretty sure it doesn't matter if I do or not. This is for a packaged workshop addon and I get this error localy.[/QUOTE] It does matter, it should look like this init.lua [lua]AddCSLuaFile( "cl_init.lua" ) AddCSLuaFile( "shared.lua" ) include( "shared.lua" ) [/lua] cl_init.lua [lua]include( "shared.lua" )[/lua] Is that what you have?
[QUOTE=Drakehawke;38175643]It does matter, it should look like this init.lua [lua]AddCSLuaFile( "cl_init.lua" ) AddCSLuaFile( "shared.lua" ) include( "shared.lua" ) [/lua] cl_init.lua [lua]include( "shared.lua" )[/lua] Is that what you have?[/QUOTE] That's exactly what I have.
[QUOTE=Crazy Quebec;38175655]That's exactly what I have.[/QUOTE] Are you sure there isn't an error in the file? (the server wont send it to the client if it finds errors)
[QUOTE=Drakehawke;38175660]Are you sure there isn't an error in the file? (the server wont send it to the client if it finds errors)[/QUOTE] Apparently my changes didn't save properly. It works now.
Hello people, I'm a bit new to Lua and I can't find a good base gamemode for gmod13. A simple deathmatch gamemode would do, akin to the one in the old versions. I really need it to learn the new folder structure and such. If anyone has a good gamemode base for me to use, that'd be great!
i nee help fixing nuke pack 4
[QUOTE=G4MB!T;38172256]a && b is now bit.bor(a, b) and a && b is not bit.band(a, b) [/QUOTE] So [lua] if ( A && B ) then [/lua] would be [lua] if bit.bor( A, B ) then [/lua]?? what about multiple? would that be: [lua] if bit.bor( A, B, C, D, E, .. ) then [/lua] ?? and [lua] if ( A && B || C ) then [/lua] what would that be? Thanks for help, until now. :)
A & B == bit.band(A, B) A | B == bit.bor(A, B) I would imagine multiple arguments would work but I'm not sure.
[QUOTE=ralle105;38177771]A & B == bit.band(A, B) A | B == bit.bor(A, B) I would imagine multiple arguments would work but I'm not sure.[/QUOTE] Woah, I need up to 3 or 4 args sometimes. I am learning something new today on my birthday lol. What is the difference between a single | or & and two || or &&. I always thought a pair would mean a bitwise "or" (||) and an "and" (&&) What about single ones? | &? Thanks for taking time to help me. :)
| is a bitwise operator, along with &. && and || are just 'and', and 'or' operators. [url=http://en.wikipedia.org/wiki/Bitwise_operation]bitwise operations[/url]
How would I check if an instance of a Derma Frame is already created? I've tried doing this; [lua]hook.Add("Think", "F1Pressed", function() if input.IsKeyDown( KEY_F1 ) and !TeamFrame then TeamMenu() end end )[/lua] But it still makes one every time it 'Thinks', making around 20 per press. Same goes with using [I]GM:ShowHelp [/I](TeamFrame is the name of the main panel)
[QUOTE=JustSoFaded;38178151]| is a bitwise operator, along with &. && and || are just 'and', and 'or' operators. [url=http://en.wikipedia.org/wiki/Bitwise_operation]bitwise operations[/url][/QUOTE] Ok, I get it. | and & are bitwise operators. && and || are just normal 'and', and 'or' operators. But what does bitwise mean exactly? Just need to be sure now (Wikipedia does it a bit complicated for me.) :/ Thanks!
[QUOTE=TheTrueAndy;38178272]But what does bitwise mean exactly? Just need to be sure now (Wikipedia does it a bit complicated for me.) :/[/QUOTE] Bitwise operators are for binary numbers. Two examples: & = [code] 100101001 110001101 = 100001001[/code] | = [code] 100101001 110001101 = 110101101[/code]
[QUOTE=TheTrueAndy;38177704]So [lua] if ( A && B ) then [/lua] would be [lua] if bit.bor( A, B ) then [/lua]?? what about multiple? would that be: [lua] if bit.bor( A, B, C, D, E, .. ) then [/lua] ?? and [lua] if ( A && B || C ) then [/lua] what would that be? Thanks for help, until now. :)[/QUOTE] really sorry about the confusion i meant a & b is now bit.band(a, b) a & b & c is bit.band(a, b, c) [takes a vararg] and a | b is now bit.bor(a, b) [also takes a vararg]
[QUOTE=Persious;38148480] [editline]23rd October 2012[/editline] Does anyone know if Spacetech will update his gmsv_teleport module?[/QUOTE] Anyone? Or could anyone re-compile it with the new headers?
Anyone know any VGUI elements I could use to remake the Source console's text area in Lua, i.e. supports color, scrolling, [i]and[/i] text selection? RichText seems perfect for everything else, but I'd have to do an ungodly amount of bullshit to get text selection, or something kinda like it. Has that even been tried before? e: Never mind, rate me box. Ended up using DHTML instead. Don't know why I didn't think of it before.
Gah, fuck. I'm running out of steam. Anybody come up with a fix for sprites that look like shit, with the black box and no alpha changes? That is, fixing shit [url=http://i.imgur.com/OmoTB.jpg]that looks like this?[/url]
[QUOTE=G4MB!T;38178601]really sorry about the confusion i meant a & b is now bit.band(a, b) a & b & c is bit.band(a, b, c) [takes a vararg] and a | b is now bit.bor(a, b) [also takes a vararg][/QUOTE] Thanks, can you give me another example for this: [lua] if (YES && !NO) then -- if yes and not no [/lua] [editline]:[/editline] Nvm.. the gmod wiki just got updated with bitwise operators. I'll check it myself. :D Thanks for helping out!
[QUOTE=TheTrueAndy;38182712]Thanks, can you give me another example for this: [lua] if (YES && !NO) then -- if yes and not no [/lua] [editline]:[/editline] Nvm.. the gmod wiki just got updated with bitwise operators. I'll check it myself. :D Thanks for helping out![/QUOTE] Sorry if I'm wrong but [lua]if (YES and not NO) then[/lua] should work..
how would i go about removing a players head from their player model clientside
[QUOTE=Coffeee;38182816]Sorry if I'm wrong but [lua]if (YES and not NO) then[/lua] should work..[/QUOTE] haha yes it does. I got irritaded. It's the single & and | which got removed. && and || can still be used as operators for 'and' and 'or'.
I have this: [CODE]surface.CreateFont("Trebuchet", 34, 400, false, false, "Trebuchet34" )[/CODE] and Garry's Mod is telling me I need a table instead of a number. How do I fix?
Sorry, you need to Log In to post a reply to this thread.