astepantsov / gmod-advanced-door-system

An addon for Garry's Mod which improves DarkRP's existing door system
GNU General Public License v3.0
6 stars 1 forks source link

Elevators cause script errors #1

Open JohnCKoenig opened 4 years ago

JohnCKoenig commented 4 years ago

When an elevator is purchasable on a map as if it is a "door", it causes the following script error to occur in the addon: [ERROR] addons/gmod-advanced-door-system/lua/advdoors/hud/cl_hud.lua:111: attempt to perform arithmetic on field 'Width' (a nil value)

  1. v - addons/gmod-advanced-door-system/lua/advdoors/hud/cl_hud.lua:111
    1. unknown - lua/includes/modules/hook.lua:84
astepantsov commented 4 years ago

What map are you using?

JohnCKoenig commented 4 years ago

We were using rp_downtown_titsv2. I was actually able to resolve the issue by ignoring doors of that type. I imagine it would be hard to block a certain door type by default since it varies from map to map?

astepantsov commented 4 years ago

When I have time, I'll try to figure out what is causing this issue with the elevator in first place and see if it can be fixed.

shadow7483147 commented 3 years ago

While working on helping a server owner I found that on rp_downtown_tits and related maps, the elevators are divided into separate func_door entities, parented with eachother. These can be merged into the main door entity, the platform of them, but it's an issue mainly with the maps and not necessarily this addon.

I can't determine a fix for this other than this, unfortunately. Perhaps change the code to discard the door in question if it's a child of something?

image

Kannyyy commented 5 months ago

While working on helping a server owner I found that on rp_downtown_tits and related maps, the elevators are divided into separate func_door entities, parented with eachother. These can be merged into the main door entity, the platform of them, but it's an issue mainly with the maps and not necessarily this addon.

I can't determine a fix for this other than this, unfortunately. Perhaps change the code to discard the door in question if it's a child of something?

image

I know this is serveral years after the fact however curious is you could explain this fix a little clearer as I am having the exact issue described