Garry's Mod

Garry's Mod

gPlacer - Mapping utility
Pinhead Larry 25 Apr, 2023 @ 11:18pm
Ropes assigned duplicate 'RopeID'
I've placed ropes across several sessions and occasionally, ropes are created with duplicate IDs.

A (probably extreme) solution I used on my local modified version was to change
RopeID
from
table.Count(GPLACER.CurPlaced or {}) + 1
to
os.time()
,I assume it would be possible to solve, perhaps by iterating over all move_ropes and keyframe_ropes in ents.GetAll() to find numbers that are not already assigned to ropes.
Either way this is a fantastic addon and even with this issue, has still saved an unmeasurable amount of time in my current map:steamthumbsup: