Garry's Mod

Garry's Mod

(UNSTABLE & UNSUPPORTED) Editable Shield Generators
 This topic has been pinned, so it's probably important
hisui  [developer] 6 Jun, 2020 @ 3:59am
BUG REPORTS
Yes, sometimes your game will crash if your shield is set to a certain size, it varies between maps. I am aware of this, but there is nothing I can really do about it. It is because the Source engine doesn't handle well with things and their collisions being scaled up to large sizes. Once again, there is nothing I can do about this.

If you have a bug to report, post it in a comment here. Please include a detailed description of what you were doing before the bug occurred, including whether you were in multiplayer or singleplayer, the gamemode you were playing in, the branch of the game you are playing in (normal/chromium/dev) and if possible, the steps to reproduce the bug. If you are having issues with another addon interacting with this shield, please provide a link to the addon.
Last edited by hisui; 13 Jun, 2020 @ 8:20pm
< >
Showing 1-15 of 21 comments
Gorbi 7 Jun, 2020 @ 4:06am 
Hello, your addon is great, but it looks like there is a beug, the shield hitbox does not work beyond a range of 30 (default), so increasing the size of the shield does not protect. Thanks again for this addon and hope you can fix it!
hisui  [developer] 7 Jun, 2020 @ 4:20am 
Originally posted by Gorbi:
Hello, your addon is great, but it looks like there is a beug, the shield hitbox does not work beyond a range of 30 (default), so increasing the size of the shield does not protect. Thanks again for this addon and hope you can fix it!
You must disable and then re-enable the shield after changing the size. Unfortunately there does not seem to be anything I can to do fix this, and even if there were, I would not, as computing the collisions of the shield constantly just to make sure it lines up with what you see would be very taxing on the physics engine (and thus very laggy)
Last edited by hisui; 7 Jun, 2020 @ 4:27am
RÆZ 7 Jun, 2020 @ 5:33am 
Awesome addon, but i just found out that if you take a LFS ship and fly into the shield, the game crashes
hisui  [developer] 7 Jun, 2020 @ 6:33am 
Originally posted by RÆZ:
Awesome addon, but i just found out that if you take a LFS ship and fly into the shield, the game crashes
Which ship specifically were you flying? Does this happen with any other LFS ships? Where on the shield did you fly into (top, side etc)? I have tested these shields with LFS ships and have not encountered any crashes, so please provide as many details as possible.
RÆZ 7 Jun, 2020 @ 6:39am 
Originally posted by Ace:
Originally posted by RÆZ:
Awesome addon, but i just found out that if you take a LFS ship and fly into the shield, the game crashes
Which ship specifically were you flying? Does this happen with any other LFS ships? Where on the shield did you fly into (top, side etc)? I have tested these shields with LFS ships and have not encountered any crashes, so please provide as many details as possible.

I was flying a Rebel X-Wing from the inside out and i hit it horizontally. tested it out with different ships, and so far the LAAT also crashes the game if i hit it from the inside.
RÆZ 7 Jun, 2020 @ 6:40am 
I'll test some more ships, but so far only the X-Wing and the LAAT has crashed my game
hisui  [developer] 7 Jun, 2020 @ 6:44am 
Originally posted by RÆZ:
I was flying a Rebel X-Wing from the inside out and i hit it horizontally. tested it out with different ships, and so far the LAAT also crashes the game if i hit it from the inside.
From the inside out, I see. I will do some testing, see if I can replicate the issue. Do you mind sending me a link to the specific X-wing you're using?
Jake 8 Jun, 2020 @ 8:10pm 
When I enable and disable the shield, it crashes my server. I have no idea why :(
hisui  [developer] 8 Jun, 2020 @ 8:59pm 
Originally posted by Jakku ✌:
When I enable and disable the shield, it crashes my server. I have no idea why :(
That is odd. Could you add me on here or on Discord (Sparks#9472) and send me your server's log, so I might try and diagnose what went wrong?
Seagull 10 Jun, 2020 @ 6:37am 
Its beautiful and amazing in almost every way. But! First when I spawn the shield generator, set size and enable it everything is fine. But sometimes it turns itself off and when I enable it again the server usually crashes. I dont know if its the size of the shield or just the enable and disable part.
Puggo 10 Jun, 2020 @ 8:05am 
I tested this shield on a few different maps with no other mods. It worked 100% fine on Flatgrass and Maranzo's Christophsis map, but it crashed the game on Construct and BigCity Improved when the size was pushed above 40.
hisui  [developer] 10 Jun, 2020 @ 1:14pm 
@bord @pose @jakku thank you for giving me some more insight into this, thanks to these reports I think I have an idea of what may be causing crashes. I'll be updating the addon shortly to change the shield so that the size is only set when the shield is first created, rather than being updated to match what is set while it is active. I'll make another comment here when I've done so, at that point I'd appreciate if you guys could try doing the same stuff you've been doing and let me know if the crashes persist, especially when setting size above 40.
hisui  [developer] 10 Jun, 2020 @ 8:52pm 
I released an update a few minutes ago that should help relieve some issues with crashing related to the size. For the short version, read the change notes. For the long version, read here:

Basically, there's nothing I can do about the crashing other than lessen the chance of it happening. It's an unfortunate effect of the shield being scaleable, and for some reason it is worse on other maps than others. for instance, on maps like gm_flatgrass, gm_buttes and hfg_geonosis, I can go well above the 200 size limit perfectly fine, but on stuff like emp_escort or gm_construct I couldn't go above around 40, give or take a few. I really have no way of knowing exactly what causes it and even if I did, I couldn't fix it. As far as I am aware, it's pretty much just because Source Engine doesn't deal well with things' collision models being scaled up, especially if they're complex (which a hollow semi-sphere, believe it or not, is. A sphere is even moreso).
I've replaced the shield's actual physical model with a lower-complexity version (50% as complex) which has on gm_construct allowed me to go up to about 70 with the size as opposed to the 40 before.
Other than that, there's nothing I can really do to fix the crashes, only relieve them a little bit. The physics engine just doesn't like the very large scaling up of a physics object.

The general rule that I've found from testing with like 60 different maps seems to just be "don't use it on small maps or ones with low skybox ceilings and you'll be fine".
NitroStarman 13 Jun, 2020 @ 11:46am 
Game tends to crash if shield is set to a larger radius with sphere option on. Guessing it has to do with multiple collisions of the shield going through the map. Was playing on gm_novenka.
< >
Showing 1-15 of 21 comments
Per page: 1530 50