Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

PathSplitter not working

I did a search and didn't see anything recent about this api script, so hopefully there's nothing I missed... However, I was attempting to split a few circles on the lighting layer (this isn't a Jumpgate game), and rather than splitting the circles using the pink line, both lines just disappeared.  I tried with multiple circles of various sizes, and every time I input the !pathSplit command, both paths would just vaporize.  Can anyone provide some assitance?
I know it's not the same issue but I have noticed that the mods sandbox is not functioning as it should. Could be an issue there and not the api itself, just a thought.
I don't think that PathSplitter works with ellipses or rectangles, only with lines.
1753724619

Edited 1753724630
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Pathsplitter does indeed work with ellipses and rectangles as well as open paths. It's used all the time in games converted by Roll20.  It has been updated by the Aaron to work with both classic path objects and Jumpgate pathv2 objects. I just tested successfully on both engines. There might be something else at work here. Brian have you checked that the pink #ff00ff default color has not been changed? Made sure that you have exactly two paths selected? I know this is a game created in the Classic environment, but were the paths created by you through the interface, created as a result of using a module or addon, or created programatically by an import script?
1753725480

Edited 1753726017
Hi Keith, I attempted to use Pathslitter on an ellipse, a rectangle and both open and closed paths in my own game right before I posted my reply.  [Jumpgate, using the experimental sandbox]  It only worked for the closed and open paths but not with the rectangle or ellipse. I tried twice for both shapes to make sure. Edit: The breaks I attempted were only through part of the shape, not the whole shape. IOW, the results would have been single open paths, not two arcs or two half-rectangles. Edit #2: OK, i now see that it does work when the split goes completely through the shape. keithcurtis said: Pathsplitter does indeed work with ellipses and rectangles as well as open paths.
1753730073
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Rick A. said: Edit: The breaks I attempted were only through part of the shape, not the whole shape. IOW, the results would have been single open paths, not two arcs or two half-rectangles. Edit #2: OK, i now see that it does work when the split goes completely through the shape. Interesting. I wonder why the difference?
Possibly because with the single break creating an open path with adjacent end points, the background code (terminology?) automatically creates a closed path, thus recreating the original shape? keithcurtis said: Interesting. I wonder why the difference?
1753733920
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Except I don't know if all "closed shapes" are really closed, or if their end points are just coincident. depending on where you split a circle in "half", you can wind up with either 2 or 3 segments. I typically join these when they occur.
I can confirm that pathsplitter has "always" worked with ellipses, in as much as i started using it to make lines for the light layer to make the vision lines smooth... and it required things like breaking those circles or ellipses to put in doors and such.  The pink I used is def the ff00ff as well... and I tried again tonight... no joy :(
As anyone any knowledge of this bug being worked on?  I tried again today to use the path splitter api script, and it's still broken.  Rather than splitting any kind of path, it deletes both the original and the pink line.  This occurs whether it's a standard straight line or an ellipse...
It would also appear that the original author of the script is no longer supporting it, no longer has pro, and isn't taking messages.  I looked at patheditor, but that script won't even load into the sandbox at this point.  Any chance anyone knows of a similar script?  I can't understand why path splitter suddenly just stopped functioning...
1754877373
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Brian O. said: It would also appear that the original author of the script is no longer supporting it, no longer has pro, and isn't taking messages.  I looked at patheditor, but that script won't even load into the sandbox at this point.  Any chance anyone knows of a similar script?  I can't understand why path splitter suddenly just stopped functioning... If it is a recent change (such as updating to work with Jumpgate pathv2 objects, you can try manually loading an earlier version. The past versions are found here . The previous version is 1.1.1. Let me know if you need any assistance with manual loading.
Keith, thanks for that suggestion... i want to the api scripts and switched my loading for pathsplitter from "latest" to 1.1.1.  It exhibited the exact same problem...  Posting here for others to see, but I'll message you directly as well.
1755134301

Edited 1755134396
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
For anyone testing the same thing, I'll repeat my answer over here: If you used the drop down to load the previous version, I'm not certain that works. I haven't tested in some time, but IIRC, it just loads the current version (I.e. "the goggles, they do nothing"). You might want to try again with the github link I sent and manually load the older version. If you did indeed load the older version manually, then we are back to square one. Let me know, and I'll run a test when I get the chance.