Very useful tool, king'd
Very useful tool, king'd
I've used this before, and it worked great. But When I got my hard drive wiped and re-installed it, it isn't working properly. First of all, when I enable it to snap to the points, the grid disappears and my mouse won't snap to the point. Second, when I enable it for all tools, the grid shows up when I use weapons. Any way to fix this?
That's what scriptenforcer is for, prevents all kinds of cheating, worse than SmartSnap.rcdraco posted:
If the grid disappears when you try to snap to the points, read the post towards the bottom of page 10, it should be a setting that you have activated. "Grid toggle delay", should be 0.Upgrade123 posted:
The whole point "enable for all tools" is that it shows up for weapons, they are the only ones that do not show a grid by default.
I used this for a while, then it stopped being able to snap. My use key works for everything but this. I press E like I would before and nothing happens.
EDIT: I checked around the thread, and I found a solution, nevermind.
Anyway, AMAZINGLY useful tool, thanks!
Has anyone said you forgot to update the info.txt?
it still says 0.9.5 :o
shame on you!
Nice and thanks for 2 new updates! (I was still running on 0.9.4)
I keep forgetting that, I knew I forgot to update once, but aparently forgot it the last time as well, haha.
I see what you mean now, what I was meaning was the custom snap points weren't on the grid itself, but instead were hanging in the air, so the snap point were exactly on the place you hit. This would probably be significantly more complex of course.Syranide posted:
Yeah, that's what I mean as well, but, say that you want to put a snap point on a marked X on a prop, you can't do it perfectly, because when you shoot the X, you shoot a few units outside of the X, meaning that you miss it and it will not be perfect, also, it makes it very odd when you look at the prop because they will actually look like they are in the air rather then the prop.fishface60 posted:
EDIT: Another way of describing it would be, put two PHX-plates together, make the top one transparent, and then try to place a thruster perfectly centered on the visible one. You can't really because the invisible one will be in the way offsetting your thruster equal to the angle of attack. This is basically how it is in-game, an thin invisible skin around all props, which is also the reason why there are gaps when you weld stuff.
Can't you just apply an offset based on the normal vector of the trace?
Yes, but the offset differs, that is why you have to specify it by hand, it differs even more if the surface isn't flat. Initially I had a default model offset for all models, but I found out later that it differed really much so that is why it has to be made by hand, and by eye.fishface60 posted:
I don't know what to do. "Use" (e) don't work for me! I can't snap to grid. I've rad all topic and I've tried every solution... nothing changed! Even after reinstall gmod. In game I don't have any errors. Binding "+snap" didn't work too. Any help?
Does the grid appear at all? If not, look around in the options panel.
Grid appear at all (when I look on it and press e). Even "snap_disableuse" is 0. Only thing which don't work is snapping to grid.
That's odd, check your console and make sure you aren't getting any errors.Frankess posted:
Also, the grid shows all the time? or is only when you press USE, or does it go away when you press USE?
(Also, none of the above happens, then just temporarily remove all your addons and see if it still persists, it is possible that some other addon is tampering with the USE-hook)
Ok... thanks for help (or just for trying). Problem wasn't exactly in smartsnap. It was Player Weld. When I removed it everything back to normal. Looks like it's collide with smartsnap.
Thank you very much, but I'll have gigabytes of stuff to put back in my Garry's Mod folderSyranide posted:
If you have gigabytes of addons then that is your problem. Garrysmod is not built for installing every single addon, and a lot of addons are really poorly implemented causing others to fail.josiahqh posted:
You should (if possible) Make it so that hollow props (Dumpsters, those blue barrels, etc.) can be smartsnaped on the inside.
That wouldn't be possible. The reason is that phys boxes are all CUBES, and not perfectly manufactured to fit every single prop. Therefore Smartsnap will not fit the curviture of the can AND you cannot snap to a point inside. Unless it's on the bottom, then go ahead.
Like killer_steel said. I've had thoughts about allowing "snap models" that would allow arbitrary snapping surfaces but it boils down to a lot of problems and massive amounts of work for each model.Dacheet posted:
This is the best addon so far because there isn't 10 updates like dismemberment mod, (1.1, 1.2, 1.3, 1.4, ect)
I seriously couldn't live without this!
Holy fucking shit! 45418 downloads!
What would you expect from one of the games best addons :P?
It works on everything, but the physgun, why is this?
If you snap while using the physgun, smartsnap will center the aim while the physgun will move the prop to the beam causing your aim to drift continously. If you really want it you can always snap with any tool and then just switch to the physgun while still snapping.JDMT posted:
(It's also because I didn't want the grid showing up all the time, but only when you are building)
It's best just activated on the toolgun.
I'm still suffering a large fps hit when the grid shows after the last update. I have an 8800gt, framerate will usually dump from 100+ to 2-3 fps every time i put the crosshair on a new prop. If I pull out the physgun the lags go away.
Then it is something else, the "fps drop" people were talking about is basically stuttering that would appear before, but it wouldn't be massive, it would just be every now and then.Jeramiah posted:
As for your problem I honestly have no idea, it could possibly be some other addon that messes up or some bug in garrysmod. But I doubt it is anything in SmartSnap considering its simple nature. Trying temporarily removing your other addons and see if it persists.
I wouldn't say its massive, it studders after highlighting props. I have tested it alone without other mods just to pinpoint the root cause and determined it to be this mod. Every time I highlight a prop it drops to 2fps for rougly half a second and comes back 50. If I then switch to the grav gun, the FPS shoots up to 200+. If I spawn 10 huge boxes around me and spin in a circle with a tool out, which puts a grid on all of them, and then stop spinning, It seems to then have 10 consecutive drops to 2 fps, evenly spaced out in the same frequency I highlighted the boxes, as if it takes a short time for the lags to begin. I have also insured to have the latest version.
Now that is interesting...I don't think we've encountered a problem like that...have you tried turning off the grid, see what happens without the draw code initializing? Oh, and check console for any lua problems.
That's odd, could be a worse case of the lua garbage collector (something must've broke in gmod or lua), which was the cause for the previous stuttering, which is currently fixed by increasing the rate at which the garbage collector is run.Jeramiah posted:
But, it is odd that it happens when the grid appears, because, there is no special code for showing the grid, it is the same code that is run every frame. Which makes me believe that it isn't the really the fault of SmartSnap.
Either it is some other addon that is conflicting in some weird way, or the lua garbage collector is going bonkers on you for some reason. If you want to fiddle some, you can open the smartsnap-lua file and look for "collectgarbage" and fiddle with the specified values and see if it makes any difference, but I doubt it will. If that doesn't help I have no idea what could be wrong.
Are you sure you aren't checking the phys box in a special way for the draw code? Because it might be a fault or a mistake in the collision check :S.
There are no collision tests or anything done, it simply reads the bounding box and then draws the grid. Next frame, read the bounding box, draw the grid, and so it goes. It does do some minor caching on the first frame, but it is really minor, and it was previously run every frame without any noticeable implact.Killer_Steel posted:
Just the fact that it drops from 200 to 50 for you leads me to believe there is something else wrong, I only notice a small drop in FPS when the grid is shown (nothing even close to 50%, much less 75%). And as far as I can tell, you seem to be the only one having this problem.
I may be the only one having the problem and it is a mystery. Having no other addons or client side luas installed it still exibits the same lag. Smartsnap alone lag when I highlight props to draw the grid, if I turn the grid off, it stops lagging. I will experiment with the garbage collector now and see what happens.
I don't know lua very well. All I found is this and don't understand what it does or how its causing a framerate drop.
if GetConVarNumber("snap_gcboost") != 0 then
Well I have a problem with smartshop, but i love the work it's just i bug :).
This is how it is when i join a server the smartsnap won't load and that mean i can't use it. But if i start singleplayer then join a server smartsnap load and it work, the thing is that i don't like the time it takes to join two servers insed for one.
It should work when you join servers, however, if you have an old version, or an incorrectly updated version (remote the entire folder!), then this might happen. It might also happen if the server has some conflicting version.sunike posted:
Okay, thanks, I think it's the server then, I got the newes version. I will soon find out about it :).Syranide posted:
What the hell is this doing all the way at page 3?
such a perfect and great tool should belong on the front page!!!
(sorry for the bump but i see to many not knowing this tool, AND THEY SHOULD!)