Subscribe
 Post #1
 28th January 2007
Dunk's Avatar
June 2005
208 Posts
The Smart-Welder STool is designed to make welding large contraptions and forts easier and (much) faster.

Basically, you can select a contraption and the tool will weld it all together using intelligent weld placement to reduce the total number of welds needed. The smart-welding settings can be changed, and there is an auto-select feature that allows you to select an entire contraption in a single click.

Here is a video of the (old) Smart-Welder STool in action:
The auto-select is done by holding down use (default key is e) when left clicking on a prop. This will select any nearby props (and any props near those props and so on - selecting the entire contraption).


The way it works is that each prop is welded to a certain number of its closest neighbours, and then random cross-contraption welds can be added at the end to increase stability.
The default settings are that each prop is welded to its 3 nearest neighbours (it skips a neighbour if it's already welded to it), and each prop is welded to one random prop in the contraption. However, these settings can be changed to suit the contraption.

I hope people find this tool useful.

Here is the download at garrysmod.org:


By the way, the STool is packaged as a GMod 10 addon, so unzip the file into your "garrysmod/addons" directory.

Changelog:
v2.1 -
+Minor interface fixes and more script comments
+Disabled use of prop protection by default (current prop protection is in flux after the update)

v2.0 -
+Added welding/nocolliding over time to avoid crashes
+Weld to prop ability (hold use/run when right clicking)
+Settable weld forcelimit
+Props deselected after use and returned to their original colour
+Option to use the run key instead of the use key for smart-snap users
+Existing welds can be removed, using refresh welds mode
+Auto-freeze option to freeze props before the weld begins
+Tool moved to "Weld - Smart" on the constraints tab

v1.1 - Added radius nocollide, auto-unfreezing and ability to weld to any entity with physics.
 Post #2
 28th January 2007
Cazull's Avatar
June 2005
1,798 Posts
Does it also automatically noclollide every prop in the group or at least a setting to do that, because this will be one of my favorite most practical stools ever if so.
 Post #3
 28th January 2007
Dunk's Avatar
June 2005
208 Posts
Well there is a setting that nocollides between the props that weld together, so if you have 3 props, if prop A welds to prop B, A and B will be nocollided, but not A and C if there is no weld between them.

I guess you want every prop to nocollide with every other prop? I think there might be a script to do that already. Not sure where that would be useful though...

This script is for automatically welding contraptions, I didn't really have nocolliding in mind.
 Post #4
 28th January 2007
Cazull's Avatar
June 2005
1,798 Posts
I build a lot of things that have props merging into each other in every direction so if your stool doesn't nocollide all, please. please, PLEASE make it a setting.

There is a stool that does it but I would rather have it all be possible with your stool as it would remove an extra step of work. Awesome video by the way.
 Post #5
 28th January 2007
BTchaos's Avatar
January 2007
889 Posts
I was actually working on something like this myself, but if this works out well I'll probably just use this. I'll have to modify it to skip certain props, though.

Only thing you might want to add though is a limit somewhere to avoid creating too many constraint/nocollide ents. You'll crash the game if you do.
 Post #6
 28th January 2007
Cazull's Avatar
June 2005
1,798 Posts
I made a vehicle quick to show you the difference it makes with nocollide all.

On the right side of the pic is my contraption frozen in place by one prop and has your smartweldweld and mass nocollide added. The one on the left is held in place by the same single frozen prop and has been smart welded with your stool but not mass nocollided.

As I said before you should consider making that a default feature for those of us who literally sculpt out creations out of props which ends up with a lot of props inside of one another.
 Post #7
 28th January 2007
BTchaos's Avatar
January 2007
889 Posts
You know it's pretty easy to modify this to place no collides instead of welds, by the way.


(God, why does this addon forum even exist? No one uses it.)
 Post #8
 28th January 2007
Barri167's Avatar
August 2006
553 Posts
Wow, this has got to be the most practical and most useful tool out on the forums currently. Wonderful job! :D
 Post #9
 28th January 2007
Gold Member
spazthemax's Avatar
May 2006
3,184 Posts
Heh, you are the only one I know that has the same first name as me... I will be downloading this for sure.
 Post #10
 28th January 2007
Dunk's Avatar
June 2005
208 Posts
BTchaos posted:
(God, why does this addon forum even exist? No one uses it.)
Well since there's no Scripted Tool forum, and this is an addon, this is the most appropriate forum. It certainly seems like noone looks in here though...
Maybe I should just post in the base releases forum instead?
 Post #11
 28th January 2007
BTchaos's Avatar
January 2007
889 Posts
Dunk posted:
Well since there's no Scripted Tool forum, and this is an addon, this is the most appropriate forum. It certainly seems like noone looks in here though...
Maybe I should just post in the base releases forum instead?
Maybe garry should realize people don't seem to understand what differentiates this whole "addon" nonsense from normal releases in the first place (except installing it in one directory instead of another). Course that wouldn't be the only forum organizational oversight he's made thus far.
 Post #12
 28th January 2007
Gold Member
haloguy234's Avatar
August 2006
2,518 Posts
I am speechless.

You are the best! I hate having to weld pieces together one by one on a huge contraption. This really helps it.
Download + Lua King.
 Post #13
 28th January 2007
Gold Member
FPtje's Avatar
January 2006
3,357 Posts
*It's got to be, perfect:D*
I am singing right now

because this is perfect man!
 Post #14
 28th January 2007
Gold Member
Termy58's Avatar
September 2006
7,398 Posts
Good job, a very nice replacement for the normal Weld stool for large contraptions. I might spend more time building then teetering at Lua scripts.
 Post #15
 28th January 2007
Dunk's Avatar
June 2005
208 Posts
I've updated the STool to work with any kind of entity that has physics (so it works with vehicles like prisoner pods, sents like turrets etc.).

I have added a couple of options:
1. Radius nocolliding (so that props can be nocollided with nearby props)

2. Auto-unfreezing (so you can make your frozen contraption unfreeze itself when you smart-weld it)

The first post has been updated to show the new download (version 1.1).
 Post #16
 28th January 2007
Cazull's Avatar
June 2005
1,798 Posts
Dunk posted:
I've updated the STool to work with any kind of entity that has physics (so it works with vehicles like prisoner pods, sents like turrets etc.).

I have added a couple of options:
1. Radius nocolliding (so that props can be nocollided with nearby props)

2. Auto-unfreezing (so you can make your frozen contraption unfreeze itself when you smart-weld it)

The first post has been updated to show the new download (version 1.1).
Awesome work Dunk. I'm glad to have been a positive influence on your wonderful stool. Can't imagine anything better in this particular department of construction.
 Post #17
 28th January 2007
TheFoxz's Avatar
December 2006
974 Posts
This is definitely worth downloading!
 Post #18
 28th January 2007
BTchaos's Avatar
January 2007
889 Posts
You should use OBB boxes instead of radius for finding entities. Or at least to get a size estimate of the ents to tell how close they are by proximity to the current ent being welded. If that makes sense...
 Post #19
 28th January 2007
GMod Illuminati
andyvincent's Avatar
January 2005
2,231 Posts
Nice work!

(and I love the music in video - from War of the Worlds if I'm not mistaken ;) )
 Post #20
 28th January 2007
lord hobo's Avatar
June 2006
1,707 Posts
yeh you would be correct i think it's from the stage edition, i should i know my dad got it on dvd for xmas

on topic i love it so much help
 Post #21
 28th January 2007
Skurmedel's Avatar
November 2006
750 Posts
Awesome idea.. having to weld 30 blue barrels by hand amounts to headache.

PS. Next time, loose the music on the video thanks :) DS.
 Post #22
 28th January 2007
FireFox6000's Avatar
June 2006
160 Posts
That´s very helpfull!
 Post #23
 28th January 2007
Solo Wing's Avatar
September 2006
461 Posts
AWESOME. Lua king for you.
 Post #24
 28th January 2007
Pageuseun's Avatar
July 2005
599 Posts
This is awesome, one for the most useful STOOLS I've seen thusfar.

Nice work!
 Post #25
 28th January 2007
Blaat's Avatar
December 2006
1,181 Posts
Next to the stacker this is one of the most useful STOOLS ever.
It doesn't explain how to auto selects so, how do you?
 Post #26
 28th January 2007
Devilsson201's Avatar
January 2007
361 Posts
That seams very useful! Thanks!
 Post #27
 28th January 2007
Dunk's Avatar
June 2005
208 Posts
Blaat posted:
It doesn't explain how to auto selects so, how do you?
You auto-select by holding down the use key (by default e) as you left click on a prop.

It says this in the STool tips at the top of the screen when you select the Smart-Welder.
 Post #28
 28th January 2007
Someoneuduno's Avatar
November 2006
1,599 Posts
this is extremely handy good job :D
 Post #29
 28th January 2007
Rampage147's Avatar
April 2006
313 Posts
O.O, you have been in my dreams.
 Post #30
 28th January 2007
MrJelle's Avatar
July 2005
1,196 Posts
If it's a possibility, could you add an option to weld ALL to ALL? For instance, you've got props 1 through 4, it will weld:
1 to 2
1 to 3
1 to 4
2 to 1
2 to 3
2 to 4
3 to 1
3 to 2
3 to 4
4 to 1
4 to 2
4 to 3

(I know it'll duplicately weld, but it's possible to ignore props that've already been welded to eachother, right?)

If possible, please do make this option.

:edit: SuperV, what, exactly, in my post is dumb? I'm suggesting something here, and I'm pretty sure I'm not alone in wanting this.
 Post #31
 29th January 2007
Dunk's Avatar
June 2005
208 Posts
Did you try using the addon? Having everything welding to everything is simply a matter of setting the number of welds high enough. Doing this kind of weld is insanely wasteful of welds, and is impractical for large contraptions. The original weld tool in gmod10 had this "total welding" of all to all built in, but Garry took it out because it used too many welds. The formula for the number of welds in this case is (n*(n-1))/2. Think about it, if you have only 10 props, you have 45 welds, but 20 props you have 190. 30 props you have 435 welds - which would probably crash most servers.

So although it's possible to get this type of weld using the smart-welder, you really don't want to. The whole point of this addon is so you can automatically weld stuff together but without using so many welds.

If you were manually welding a contraption, you would naturally save welds by only welding adjacent props - this is the main operation of the smart-welder - to weld adjacent props for you. (there are other options as well but this is the main point).
 Post #32
 29th January 2007
Cazull's Avatar
June 2005
1,798 Posts
Well here's some images for you to use as a reference like you mentioned Dunk.



I also plugged your stool in the actual contraption topic it came from. :)

Thanks again!
 Post #33
 29th January 2007
slpnot4999's Avatar
January 2007
2 Posts
This seems to be a wonderful tool but I'm new to gmod and was wondering where I place this .lua file? Like what specific folder does it go in? Any help would be much appreciated.

Gmod Newb

Edit: I did do a search on the forums but nothing popped out at me since there are way to many threads with the word "install" and ".lua".
 Post #34
 29th January 2007
Dunk's Avatar
June 2005
208 Posts
To install the Smart-Welder addon (and any other scripts packaged as addons), unzip the file into your "garrysmod/addons" directory. This should create a folder inside the addons directory with the name of the new addon.

So for this addon, if you unzip the smart-welder zip file into the addons directory, you should get a new folder like this: "garrysmod/addons/smart_welding".
 Post #35
 30th January 2007
slpnot4999's Avatar
January 2007
2 Posts
Thank you very much Dunk, and thanks you for not beating me up cause I am a newb to the GMod world. Peace
 Post #36
 31st January 2007
Gold Member
StickyNade's Avatar
February 2005
3,853 Posts
Funkay demo movie music

Also I have to do a presentation on my interests, which includes GMod, for school, so this'll definitely help. You saved me from an F, you should feel fuzzy inside now.
 Post #37
 31st January 2007
HTF's Avatar
January 2007
655 Posts
This officially rocks, nice work.
 Post #38
 2nd February 2007
Gmod.com Admin
Dennab
October 2006
12,877 Posts
In a future version you should have the strength welds option so we can make vehicles destructable.
 Post #39
 2nd February 2007
Dunk's Avatar
June 2005
208 Posts
Well I just implemented settable force welds in like 5 minutes, it's just annoying having to create a new file profile on garrysmod.org every time I make a tiny update :(

Does anyone have any other ideas for changes before I have to upload again?
 Post #40
 2nd February 2007
acreech's Avatar
August 2005
83 Posts
I can't think of anything else I'd like to see to be honest. Very nice stool.
 Post #41
 2nd February 2007
BTchaos's Avatar
January 2007
889 Posts
Dunk posted:
Well I just implemented settable force welds in like 5 minutes, it's just annoying having to create a new file profile on garrysmod.org every time I make a tiny update :(

Does anyone have any other ideas for changes before I have to upload again?
I was gonna say if there was a way to check for props by proximity using OBB boxes instead of radius that might give better results for some complex contraptions. Or at least using the OBB center instead of GetPos.

Also maybe a nocollide-only and parenting -only mode so that you can attach detail props without constraint wobbling or lag.
 Post #42
 2nd February 2007
he_who_says_zonk's Avatar
March 2005
1,877 Posts
Is the demo music a remix / cover of Jeff Wayne's musical version of War Of The Worlds? Where can I get it?

Also: Awesome stool. I needed something like this literally yesterday and I came on the forums to look for it.
 Post #43
 2nd February 2007
Dunk's Avatar
June 2005
208 Posts
The music is a remix by Jeff Wayne for the War of the Worlds PC strategy game (which is quite old now, but still awesome).

If I don't receive any other ideas within the next 2 hours, I spose I'll just release what I have at the moment.
 Post #44
 3rd February 2007
BTchaos's Avatar
January 2007
889 Posts
I'm working on a way to do OBB checking, but it's a bit trickier than I thought. I don't have much time though so I might resort to using a little short cut I've come up with (still would work, though). Don't hold your breath for it though as my gmod is acting up so I won't get to test it until later tonight.
 Post #45
 3rd February 2007
SuperV's Avatar
March 2005
662 Posts
I want an option to select world. Or to weld all selected things to world.
 Post #46
 3rd February 2007
Instant Mix's Avatar
October 2006
280 Posts
Please send me the War of the Worlds music remix , and you are totally Gold star'd.
 Post #47
 3rd February 2007
Gold Member
elevator13's Avatar
December 2006
3,986 Posts
This is a really awesome STOOL. You could be a great inventor someday (making things that people need but never really would've thought of). Just downloaded v1.1!
 Post #48
 4th February 2007
kibmcz's Avatar
December 2006
396 Posts
Could you please post alternate download links... garrysmod.org is currently down.
 Post #49
 5th February 2007
Sam1661's Avatar
February 2007
13 Posts
This is a great idea. It looks like something that will be very popular.
 Post #50
 5th February 2007
kibmcz's Avatar
December 2006
396 Posts
Works great.... makes building many times easier. It would be cool if this feature got integrated into gmod.
 Post #51
 8th February 2007
makatut's Avatar
January 2006
777 Posts
i think I have spotted a bug sometimes when i use the smart-welder. it works fine the first 2 or 3 times but after that it stops working. i can select props but it won't weld them please help.
 Post #52
 8th February 2007
LittleDogX's Avatar
April 2005
1,462 Posts
makatut posted:
i think I have spotted a bug sometimes when i use the smart-welder. it works fine the first 2 or 3 times but after that it stops working. i can select props but it won't weld them please help.
I saw/see that bug too, But I wasn't sure if it was just the server being stupid.
 Post #53
 8th February 2007
Dunk's Avatar
June 2005
208 Posts
If someone wants to PM me with a more detailed bug report, I might be able to figure out what's wrong. Include any error console printouts. The only thing I can think of is that the list of selected props is getting out of date because you are deleting or undoing props that were selected - although there's code to fix this, it wasn't ideal since you can't tell when a player removes something using an undo.

If you make sure to press reload to fully reset the selection before choosing your props, this might fix it. I'd be interested to know if you still get problems even doing this.
 Post #54
 20th February 2007
Gold Member
Dennab
March 2006
6,702 Posts
Very, VERY handy tool. This should be getting more attention than it is right now. I am not sure that smartnocollide works the way it should, though. I have already modified it to give me the option to just do no-collides in place of welds. I will probably modify it further to give me the option to make maximum welds (n choose 2) welds with n the number of props selected. I truly believe that the collisions are far more computationally expensive than the constraints themselves. I will probably run a few experiments when I get home to test this hypothesis, and I will post results afterward.
 Post #55
 22nd February 2007
sexualpotato's Avatar
February 2007
5 Posts
There are no downloads, could you please add one?
 Post #56
 23rd February 2007
Seraphis's Avatar
December 2005
72 Posts
Yeah, garrysmod.org is back up, but now that link isn't working.
 Post #57
 26th February 2007
Sapremic's Avatar
February 2007
8 Posts
God, I love this thing! It helps for when I'm being a newbie and spawning copious amounts of barrels. Ha ha, I do use it for building towers and stuff, but that's kinda hard now because of this dumb glitch. Oh well, hope I can fix it soon.
 Post #58
 28th February 2007
Gold Member
DarellRay's Avatar
September 2005
883 Posts
I will love this tool. I am downloading it now. I will let you know what I think of the tool after I use it.

Very nice tool. I really like the way that this tool works. My boat contraception welded real well, (I have been having trouble welding things inside of things), but your tool welded inside props real good. Thanks.

I do have one idea. Move the tool to the next menu up, and place it right under the weld tool. Then we can select the weld tool, the easy weld tool, and the smart weld tool all from the same place.
 Post #59
 3rd March 2007
Gold Member
DarellRay's Avatar
September 2005
883 Posts
It has been a couple of days now and I still use the Smart weld tool. Wow it is real nice.
Maybe you can help me with this:
With your talent you could make a Script or mod that will change the balloons ropes to invisible. That is my greatest need for gmod10. But no one seems to be interested in doing this. I have posted a few time about this with no response. Since you are a lua king maybe I can get some kind of answer from you. I hope so. I have a post in the Lua/request section. Please look and see.
http://74.52.38.2/showthread.php?t=290070

Now back to the right post. I use this smartweld tool a lot. It is so easy to use. Before the Smartweld tool I would struggle with welding props to the inside of contraptions but not any more. Thanks.
 Post #60
 3rd March 2007
Dunk's Avatar
June 2005
208 Posts
I was under the impression that you could make ropes invisible by setting the rope width to 0.

Edit: Ah never mind, you mention that the rope width option isn't there in GMod10...that does seem rather odd...
 Post #61
 4th March 2007
Gold Member
Sgt Doom's Avatar
March 2005
23,637 Posts
Greatest STOOL ever.
 Post #62
 4th March 2007
CAT's Avatar
January 2006
282 Posts
Nice I needed this
 Post #63
 5th March 2007
Gold Member
Sudsmcgee's Avatar
June 2006
6,471 Posts
This stool is incredible, it makes making things so freaking easy it's not even funny.

Makes nice stable rockets in my favorite gamemode, spacebuild.
 Post #64
 7th March 2007
zerglingv2's Avatar
February 2006
1,638 Posts
This was awesome for making http://forums.facepunchstudios.com/s...46#post4753746 this and http://forums.facepunchstudios.com/s...d.php?t=291000 I LOVE this tool thank you so much for making it :excited:.
 Post #65
 8th March 2007
Nirik's Avatar
August 2006
40 Posts
WOW Awesome tool :D
Something more useful :D
 Post #66
 10th March 2007
-Taps-'s Avatar
March 2007
34 Posts
Very useful

Could you add a tool to make every selected item freeze?
I know there is currently an option to unfreeze every item
 Post #67
 11th March 2007
Shadekill's Avatar
November 2006
1,822 Posts
Wonderful stool. Could you add a radius circle like a circle that shows up when you move the radius meter thing to make it easier to know which props are going to be welded. Also add a height meter.
 Post #68
 12th March 2007
Bad HAL 9000's Avatar
January 2005
318 Posts
This is easily one of my favorite stools. Perfect for building large contraptions, only suggestion would be, when goes through all the props, when it welds weld large/heavy props to other large heavy props (when available) and small props to small props, then to large props.

This would make large contraptions with small parts and large parts even more sturdy.
 Post #69
 12th March 2007
Jacker's Avatar
June 2006
42 Posts
Great Stool!

However I have encountered a problem, on my server which runs Spacebuild, the welder seems to break alot, once and awhile it works but most of the time you can select things but it refuses to weld when you right click, and just sits there green as ever.

Any help?
 Post #70
 18th March 2007
Overkill1010's Avatar
October 2006
103 Posts
Though I haven't even used it yet, i gotta say this seems like an EXTREMELY helpful and amazing tool. (Oh and why does everyone call it a STool? Whats a STool?) There's a gold star coming your way =). Oh, and a Lua King and a Useful. I'm quite generous with ratings I'm sure you wouldn't mind :p
 Post #71
 18th March 2007
Dennab
May 2006
4,853 Posts
STool (Scripted Tool)
 Post #72
 18th March 2007
KONKER13's Avatar
September 2006
47 Posts
Congrats on an awesome Add-on. That music sounds familer in the video though. Sounds like War Of The Worlds.
 Post #73
 14th April 2007
Armada651's Avatar
January 2007
194 Posts
Very, very nice. Now I can build twice as fast and solid. What would also be nice is that you can choose between welding and nocolliding.
 Post #74
 17th April 2007
bdiepeveen's Avatar
January 2007
112 Posts
Is there an fix for the incredible it causes when welded lots things from PHX and other?
Its hard to create an space station when you're lagging like hell
 Post #75
 17th April 2007
Saints Row's Avatar
August 2006
437 Posts
Genious!
 Post #76
 17th April 2007
George525Alt's Avatar
February 2007
221 Posts
This is a lifesaver when it comes to making large contraptions, gone are the days when you have to spend 10 minutes welding something, then it turns out you didn't select something.

Now, I can do it instantly! THANKYOU!
 Post #77
 25th April 2007
Luk0r's Avatar
August 2005
1,822 Posts
Bumping this as it's helpful, thanks!
 Post #78
 27th April 2007
Gold Member
Killua's Avatar
December 2006
2,695 Posts
After unziping this, the wireframe shows up whenever I use the Weld tools.
There also is no SmartWeld stool in my list.

I use a clean installation, apart from the water lua.

Damn.
 Post #79
 28th April 2007
NickFury666's Avatar
April 2007
700 Posts
I've had this for the longest time (Since I downloaded gmod 10) and I beleive it is pretty much the most useful stool, at least until Jinto gets vmf suite done! Thanks a lot! Grat Lua-ing!
 Post #80
 28th April 2007
NisseOwned's Avatar
July 2006
245 Posts
I haven't seen an update on this STool for a bit now, just thought, would it be possible to make the tool handle lots of welds easier by making it weld like this
1. Freezes all objects
2. Removes all previous welds
3. Incrementally adding welds and nocollides at like 25 per second, so it won't overflow cause it seems to make it not add any welds > 100 at the moment(Also spams console).
Reply


All times are GMT. The time now is 03:09PM.

Facepunch Studios 2009 - Server 'Softlayer 2.0'