Stacker Tool Fixes

Hi, I’m trying to understand how to fix this…

I’m using the improved stacker tool on our server and it can still be exploited to crash the server. All that has to be done is stack multiple props inside each other and it begins to lag, any ideas to fix this?

Do you want someone else to fix it, or do you want to fix it by yourself, in case do you want that, clamp
the stacker distance, so players don’t use it with low distances Look at the cvars that the author lists:

stacker_max_total       <-inf/inf>     (less than 0 == no limit)
stacker_max_count       <-inf/inf>     (less than 0 == no limit)
stacker_max_offsetx     <-inf/inf>
stacker_max_offsety     <-inf/inf>
stacker_max_offsetz     <-inf/inf>
stacker_stayinworld        <0/1>
stacker_force_weld         <0/1>
stacker_force_freeze       <0/1>
stacker_force_nocollide    <0/1>
stacker_delay              <0/inf>

Changing some of these in your server.cfg, specifically stacker_force_nocollide may help

Hi cocomut, I’m sorry to hear about your crashing issues.

As smithy285 pointed out, I’ve tried to include several possible ways of preventing players from crashing your server. Depending on your gamemode, some options are more viable than others. For sandbox, not much can be done.

You could try to lower the max count (max stacker entities they can create at one time) and increasing the delay (how quickly they can use stacker). It won’t ultimately stop crashes, but it will give you more time to detect and prevent someone from crashing the server (given that you and/or your admins have a mod to show who is spawning props).

Forcing the props to be no-collided helps somewhat in that all of the stacked entities they create per stack won’t cause any lag by being unfrozen. However, each stack of entities will still collide with others, so it won’t stop crashes either. You may also find yourself running out of non-networkable constraint slots or whatever (due to the high number of nocollide constraints being created per stack).

I’ve contemplated making the stacked props spawn over time like AdvDupe 1 and 2, though I admittedly haven’t explored it very much due to the added complexity. It’s really one of the few ideas I have left to try and help prevent crashes, but it’s truly difficult to find a good solution given how the tool needs to work.

Unfortunately, gonzalolog, clamping the minimum distance won’t stop crashes either since they can just continually stack 2 or more props inside of each other and then unfreeze it. The effect won’t be as immediate as if they had just stacked them all inside a single prop, but it will still easily crash a server.

I set the props to no-collide & clamped the angles and it seems to have fixed the issue, thanks guys.

[editline]5th November 2015[/editline]

For some reason when I put
stacker_max_offsetx in my server.cfg it doesn’t take effect in game.

I’ve tried stacker_max_offsetx 50 and stacker_max_offsetx -50

Edit again haha, my eyes are failling me I had a typo, working now!

Thanks guys.