• Problems That Don't Need Their Own Thread v3.0
    5,003 replies, posted
[QUOTE=Z0mb1n3;48491267]apparently 'target' is a string?[/QUOTE] Fucking TTT honestly. You're right, its a string. Thanks :3
This keeps happening, I update my server ( Windows, Garrysmod build 6121 Aug 11 ) and it fixes it, then it just breaks again. happens on physics-ey things, like this car prop and the large sand block on dr_minecraft, as well as gravel blocks on deathrun_minecraft_pyramid. Anybody have info on this issue? [vid]https://d.maxfile.ro/wykymdypmp.webm [/vid]
I have a question about people that leaks gamemodes, i'm really worried about this since i'm coding a gamemode for someone and this guy wants this exclusive for him, i did a weed system, but someone got the files, how can i check if people can steal my files, I've divided server and client, but there's a way to steal or crawl my server files?
[QUOTE=gonzalolog;48491669]I have a question about people that leaks gamemodes, i'm really worried about this since i'm coding a gamemode for someone and this guy wants this exclusive for him, i did a weed system, but someone got the files, how can i check if people can steal my files, I've divided server and client, but there's a way to steal or crawl my server files?[/QUOTE] Getting clientside files are easy seeing as how they are downloaded on the client and you can get the lua files with a decrypter. Getting serverside files is a little more trickier, it requires using exploit scripts and getting around a anticheat if there one installed on the server.
[QUOTE=gonzalolog;48491669]I have a question about people that leaks gamemodes, i'm really worried about this since i'm coding a gamemode for someone and this guy wants this exclusive for him, i did a weed system, but someone got the files, how can i check if people can steal my files, I've divided server and client, but there's a way to steal or crawl my server files?[/QUOTE] Make sure you didn't put the Lua content on your fastdl (or other publicly available) server.
Make sure sv_allowdownload/upload is 0 as well, apparently the exploit with that is fixed, but there's been that many of them who knows if it actually is patched or not.
[QUOTE=Arizard;48491529]This keeps happening, I update my server ( Windows, Garrysmod build 6121 Aug 11 ) and it fixes it, then it just breaks again. happens on physics-ey things, like this car prop and the large sand block on dr_minecraft, as well as gravel blocks on deathrun_minecraft_pyramid. Anybody have info on this issue? [vid]https://d.maxfile.ro/wykymdypmp.webm [/vid][/QUOTE] I remember this was the reason why the ShouldCollide hook was made harder to use, perhaps you're using it?
Why is this code always teleporting me to 0.000001 4.000000 -74.968735? [CODE] local spawnpoints = { "2376.289063, -6000.000, -119.968750", "2376.289063, -6080.000, -119.968750", "2376.289063, -6160.000, -119.968750", "2376.289063, -6220.000, -119.968750" } local function SpawnPoints(ply) timer.Create("SpawnDelay", 1, 1, function() -- SpawnDelay's timer function local newSpawnPoint = Vector(table.Random(spawnpoints)) ply:SetPos(newSpawnPoint) end) end hook.Add("PlayerSpawn", "SpawnPoints", SpawnPoints) [/CODE]
[QUOTE=DaRkWoRlD1337;48493843]Why is this code always teleporting me to 0.000001 4.000000 -74.968735? [CODE] local spawnpoints = { "2376.289063, -6000.000, -119.968750", "2376.289063, -6080.000, -119.968750", "2376.289063, -6160.000, -119.968750", "2376.289063, -6220.000, -119.968750" } local function SpawnPoints(ply) timer.Create("SpawnDelay", 1, 1, function() -- SpawnDelay's timer function local newSpawnPoint = Vector(table.Random(spawnpoints)) ply:SetPos(newSpawnPoint) end) end hook.Add("PlayerSpawn", "SpawnPoints", SpawnPoints) [/CODE][/QUOTE] Because it's wrong, Vector() constructor doesn't accept a string. This is what you should do: [code] local spawnpoints = { Vector(2376.289063, -6000.000, -119.968750), Vector(2376.289063, -6080.000, -119.968750), Vector(2376.289063, -6160.000, -119.968750), Vector(2376.289063, -6220.000, -119.968750), } local function SpawnPoints(ply) timer.Simple(1.0, function() -- SpawnDelay's timer function local newSpawnPoint = table.Random(spawnpoints) ply:SetPos(newSpawnPoint) end) end hook.Add("PlayerSpawn", "SpawnPoints", SpawnPoints) [/code]
10/10 thanks mate!
Is there a way to run 'AddCSLuaFile' and 'include' inside of a function? I'm working on a multi-gametype gamemode and need it to only include certain files based on map entities, which aren't loaded before functions are called.
yes
[QUOTE=zerf;48496775]yes[/QUOTE] :smug: Do you have an example or a reference sheet that shows how to do this? I've been trying everything I can think of and searching the web for the last 2 hours, but nothing.
How can I ensure alpha blended SENTs actually render last? They look fine against brushes and larger props but smaller props and NPCs always draw over the top of my translucent SENTs and I can't find any answers on google as to why!
Is there a way to disable physics forces between a prop and a player? I've got this elevator entity that uses hydraulics (because I'm awful with applyforce and the likes), and when the player moves or jumps or does anything, the elevator spazzes out or flings the player off. So either that, or does someone know of a better way to make elevators?
[QUOTE=Leystryku;48493199]I remember this was the reason why the ShouldCollide hook was made harder to use, perhaps you're using it?[/QUOTE] I'll have another look tonight, but I'm 99% sure that I'm not using overwriting ShouldCollide anywhere. This was fixed when I "updated" to 6121 multiple times, then the server must've restarted and it began happening again. [editline]20th August 2015[/editline] [QUOTE=wranders;48496761]Is there a way to run 'AddCSLuaFile' and 'include' inside of a function? I'm working on a multi-gametype gamemode and need it to only include certain files based on map entities, which aren't loaded before functions are called.[/QUOTE] I think you'd have to call AddCSLuaFile() on all the files that you might need in every case, but once that's done you can call include() in the InitPostEntity hook (shared) which is run *after* the map and it's entities are loaded.
[QUOTE=Z0mb1n3;48498305]Is there a way to disable physics forces between a prop and a player? I've got this elevator entity that uses hydraulics (because I'm awful with applyforce and the likes), and when the player moves or jumps or does anything, the elevator spazzes out or flings the player off. So either that, or does someone know of a better way to make elevators?[/QUOTE] Hoverballs are the only thing that works well for elevators I've found. Hydraulics are so unstable I can't imagine any valid use for them.
[QUOTE=Arizard;48498341]I think you'd have to call AddCSLuaFile() on all the files that you might need in every case, but once that's done you can call include() in the InitPostEntity hook (shared) which is run *after* the map and it's entities are loaded.[/QUOTE] Ended up working around this by creating a whitelist of maps and their gametypes in shared and comparing things that way. That part works great now. -snip-
Is there an easy way to freeze a player while still allowing them to look around?
[QUOTE=Semajnad;48502085]Is there an easy way to freeze a player while still allowing them to look around?[/QUOTE] try [code]player:SetMoveType(MOVETYPE_NONE)[/code] ?
[QUOTE=Z0mb1n3;48502109]try [code]player:SetMoveType(MOVETYPE_NONE)[/code] ?[/QUOTE] Thanks, worked perfectly :) [editline]20th August 2015[/editline] [QUOTE=Z0mb1n3;48502109]try [code]player:SetMoveType(MOVETYPE_NONE)[/code] ?[/QUOTE] Do you know what you'd use to allow them to move again? I've tried MOVETYPE_WALK but it doesn't seem to work.
Users can't see uplaoded sprays Gamemode: TTT Any ideas?
[QUOTE=P4sca1;48502867]Users can't see uplaoded sprays Gamemode: TTT Any ideas?[/QUOTE] For people to be able to upload custom sprays with Source's spray system, you need to have sv_allowdownload (or upload, forgot which) set to 1, which then again, let's me grab all your servers files, so I suggest you go with an alternative spray system such as the [url=http://facepunch.com/showthread.php?t=1451605]SprayMesh[/url].
I believe you need both convars set to 1, one to allow people to upload sprays to server, and one to allow other clients to download the sprays from the server.
[QUOTE=Robotboy655;48503152]I believe you need both convars set to 1, one to allow people to upload sprays to server, and one to allow other clients to download the sprays from the server.[/QUOTE] I only had sv_allowupload "1". I will try it with sv_allowdownload "1" too. Does ot work with FastDL? [editline]20th August 2015[/editline] Oh I will just use SprayMesh, thanks for the link! :D
Anyone know why the following code would be setting data in the OnSelect function to the first arguement of the AddChoice? [lua]local presetVoices = vgui.Create( "DComboBox", dtts ) presetVoices:AddChoice( "Default", "[:nk]" ) presetVoices:AddChoice( "Stephen Hawking", "[:pp][:dv gv 60]" ) presetVoices:AddChoice( "Lower Voice", "[:nh]" ) presetVoices:AddChoice( "Out of Breath", "[:nf]" ) presetVoices:AddChoice( "Moonbase Alpha", "[:np]" ) presetVoices:AddChoice( "HL1 Announcer", "[:dv ap 10]" ) presetVoices:AddChoice( "Midget", "[:dv hs 1]" ) presetVoices.OnSelect = function( index, value, data ) print(data) -- Would come up as Default, Out of Breath, Midget, etc. LocalPlayer():ConCommand( "tts_preset_voice ".. data ) -- data should be stuff like [:nh] end [/lua] I would also rather not use presetVoices:SetConVar because that sets the label to 0 like so [url]http://i.imgur.com/iHLdhe5.png[/url] [QUOTE=P4sca1;48503285]I only had sv_allowupload "1". I will try it with sv_allowdownload "1" too. Does ot work with FastDL?[/QUOTE] sv_allowupload and sv_allowdownload don't affect FastDL at all.
[QUOTE=YourStalker;48504833]Anyone know why the following code would be setting data in the OnSelect function to the first arguement of the AddChoice? [lua]local presetVoices = vgui.Create( "DComboBox", dtts ) presetVoices:AddChoice( "Default", "[:nk]" ) presetVoices:AddChoice( "Stephen Hawking", "[:pp][:dv gv 60]" ) presetVoices:AddChoice( "Lower Voice", "[:nh]" ) presetVoices:AddChoice( "Out of Breath", "[:nf]" ) presetVoices:AddChoice( "Moonbase Alpha", "[:np]" ) presetVoices:AddChoice( "HL1 Announcer", "[:dv ap 10]" ) presetVoices:AddChoice( "Midget", "[:dv hs 1]" ) presetVoices.OnSelect = function( index, value, data ) print(data) -- Would come up as Default, Out of Breath, Midget, etc. LocalPlayer():ConCommand( "tts_preset_voice ".. data ) -- data should be stuff like [:nh] end [/lua] I would also rather not use presetVoices:SetConVar because that sets the label to 0 like so [url]http://i.imgur.com/iHLdhe5.png[/url] sv_allowupload and sv_allowdownload don't affect FastDL at all.[/QUOTE] So what does printing 'value' output, if data is the index?
[QUOTE=Z0mb1n3;48505039]So what does printing 'value' output, if data is the index?[/QUOTE] value just seems like random numbers even though it is supposed to be the first arg of AddChoice
I'm working on my first weapon here, and the code is just copy/pasted and edited. I'm trying to figure out how to make primary fire the rocket entity and left click fire an active grenade. Here's the error I get. Code is in the pastebin. [url]http://pastebin.com/qNrCqKzj[/url] [lua] [ERROR] addons/minegun/lua/weapons/minegun.lua:128: bad argument #1 to 'SetEntity' (string expected, got nil) 1. SetEntity - [C]:-1 2. FireGrenade - addons/minegun/lua/weapons/minegun.lua:128 3. unknown - addons/minegun/lua/weapons/minegun.lua:35 [/lua]
[QUOTE=YourStalker;48505211]value just seems like random numbers even though it is supposed to be the first arg of AddChoice[/QUOTE] hnggggg i don't know why I didn't see this, but you're invoking the method version (correct me if my terminology is wrong) and so the first argument ends up being the panel itself, so you're missing an argument. should be [code]presetVoices.OnSelect = function(self, index, value, data)[/code] [editline]20th August 2015[/editline] -snip- Vel, I don't see a function named FireGrenade in that code anywhere. Are you sure that's the full file?
Sorry, you need to Log In to post a reply to this thread.