sketchucation logo sketchucation
    • Login
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    Is there a list of conflicting plugins?

    Scheduled Pinned Locked Moved Plugins
    24 Posts 7 Posters 4.4k Views 7 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • McGyverM Offline
      McGyver
      last edited by

      I recently had a problem exporting models to Kerkythea due to a conflict with the "Matchbox" ruby(which I then deleted and that "cured" the problem)... For some reason my ability to use KT lights has been disrupted...(it worked after I deleted the matchbox ruby, but now has stopped, I have deleted any new rubies I've installed too-still nothing).
      All that aside I was wondering if there is a list anywhere of problem rubies... like ones that don't play well with others or that just plain don't work... this might not be a bad list to sticky. It also might be helpful by letting people check with it first so they can avoid having to ask a question that might have already been asked.
      If such a list exists already and someone knows a link to it, I'd be happy to see it.
      Thanks in advance for any help on this matter.

      [Visit My ShareCG Freebie Gallery](http://www.ShareCG.com/pf/full_uploads.php?pf_user_name)

      1 Reply Last reply Reply Quote 0
      • TIGT Offline
        TIG Moderator
        last edited by

        Fortunately there are few clashes reported - it's usually missing or mis-located files...
        The ones I know of are...

        Progressbar being messed up by earlier versions of Componentspraytool - now fixed in latest versions

        and...
        Demeter's Blankslate used to mess up some built in methods but I haven't played with that for a couple of years - this was noticeable with Bugsplats in my Mirror and Grow tools which also used group.copy...

        and just found...
        SUp's group.copy [e.g in EEbyRails et al] messed up by having Sketchyphysics installed in 64bit Win7 - waiting on more reports on this...

        I'm sure others will chip in with their own clashes shortly........

        TIG

        1 Reply Last reply Reply Quote 0
        • McGyverM Offline
          McGyver
          last edited by

          Thank you TIG for your quick response. It is good to know about these things and I will make note of them. I would like to point out to any ruby creators out there that I'm very appreciative of their generous gifts and that I'm not trying to find fault in their work... I'm just trying to understand which rubies (if any) don't get along well.

          [Visit My ShareCG Freebie Gallery](http://www.ShareCG.com/pf/full_uploads.php?pf_user_name)

          1 Reply Last reply Reply Quote 0
          • X Offline
            xrok1
            last edited by

            do a search for "wxsu" there are a few problems with plugins that use that as well i believe.

            β€œThere are three classes of people: those who see. Those who see when they are shown. Those who do not see.”

            http://www.Twilightrender.com try it!

            1 Reply Last reply Reply Quote 0
            • TIGT Offline
              TIG Moderator
              last edited by

              These 'clash' problems are usually from some unforeseen results when rewriting existing methods, that then screw up another script's functionality.
              For example, I suspect that the Sketchyphysics 'problem' with EEby.. tools and others is perhaps down to it somehow rewriting the Sketchup Group.copy command, that should return the copied group's 'id' but returns nil instead - it's probably been recast to allow copying of groups with/without attributes etc [?] but it just hasn't got a return new_group as it completes.
              It's probably an easy fix but until someone finds out that it's a problem then it'll go un-addressed...
              πŸ˜’
              Using global variable ($xxx) is also a recipe for clashes unless they are very oddly named etc since the load order of scripts will overwrite these with the last version...

              TIG

              1 Reply Last reply Reply Quote 0
              • J Offline
                Jim
                last edited by

                I suspect SketchyPhysics was not the problem, or if so not in an obvious manner. It either is or it is not redefining the method, and 'somehow' redefining it isn't a good enough explanation. I didn't find in SketchyPhysics where it was redefining Group.copy. Hopefully Chris will confirm.

                Hi

                1 Reply Last reply Reply Quote 0
                • J Offline
                  Jim
                  last edited by

                  I recently looked at 2 specialized plugins - pachube and phlatscript. Both of these use copious numbers of global variables and define methods in the global namespace.

                  Hi

                  1 Reply Last reply Reply Quote 0
                  • TIGT Offline
                    TIG Moderator
                    last edited by

                    @jim said:

                    I suspect SketchyPhysics was not the problem, or if so not in the way you believe. It either is or it is not redefining the method, and 'somehow' redefining it isn't a good enough explanation. I didn't in SketchyPhysics where it was redefining Group.copy. Hopefully Chris will confirm.

                    I agree that grepping through all of the current SP rubies there is no redefining of group.copy... but it was still apparently conflicting with it in some cases. It's weird... Might xrok1 have some old SP rubies that mess up ? I only have the current SP set - and of course I don't get the problem at all ! πŸ˜’

                    TIG

                    1 Reply Last reply Reply Quote 0
                    • X Offline
                      xrok1
                      last edited by

                      ahhh! πŸ˜„ i thought this debate may pop up so i saved a copy of the offending SP version. take a look! πŸ˜‰


                      BADSetupSketchyPhysics3x-Jun27.rar

                      β€œThere are three classes of people: those who see. Those who see when they are shown. Those who do not see.”

                      http://www.Twilightrender.com try it!

                      1 Reply Last reply Reply Quote 0
                      • J Offline
                        Jim
                        last edited by

                        Cerebral Meltdown SunPosition
                        http://www.cerebralmeltdown.com/projects/sunplugin/

                        • Re-defines Float.round
                        • Adds to_deg and to_rad to Numeric (not needed API already has .degrees and .radian methods.)
                        • Adds to_fl to Float class - supposed to handle commas in floats?

                        Possible conflict with Curviloft:

                        http://forums.sketchucation.com/viewtopic.php?f=323&t=28586&p=256061#p256061

                        Hi

                        1 Reply Last reply Reply Quote 0
                        • thomthomT Offline
                          thomthom
                          last edited by

                          Has any one approached the developers?

                          Thomas Thomassen β€” SketchUp Monkey & Coding addict
                          List of my plugins and link to the CookieWare fund

                          1 Reply Last reply Reply Quote 0
                          • J Offline
                            Jim
                            last edited by

                            SCF Toolbars installs extensions.rb file in the Plugins folder. It already exists in the Tools folder, and may cause errors.

                            reference: http://forums.sketchucation.com/viewtopic.php?f=183&t=30092#p264035

                            Hi

                            1 Reply Last reply Reply Quote 0
                            • J Offline
                              Jim
                              last edited by

                              sunposition.rb by cerebralmeltdown over-rides Ruby built-in methods Float#round, and can effect other scripts.

                              via http://forums.sketchucation.com/viewtopic.php?f=323&t=28586&start=240#p265784

                              Hi

                              1 Reply Last reply Reply Quote 0
                              • thomthomT Offline
                                thomthom
                                last edited by

                                @jim said:

                                Cerebral Meltdown SunPosition

                                • Adds to_fl to Float class - supposed to handle commas in floats?

                                It added the method to the String class. Because in some user locales the decimal separator is comma instead of period.

                                Thomas Thomassen β€” SketchUp Monkey & Coding addict
                                List of my plugins and link to the CookieWare fund

                                1 Reply Last reply Reply Quote 0
                                • P Offline
                                  PurpLev
                                  last edited by

                                  TrueTangent.rb is overriding Float::=~ which is the regular expression operator with a unique function that disables regular expression functionality altogether.

                                  My suggestion to all those that override global built in classes to avoid it as other scripts may rely on the basic functionality being there and operable. just create a new child class of the built in class and use your own classes in your code if you need to change their functionalities.

                                  1 Reply Last reply Reply Quote 0
                                  • thomthomT Offline
                                    thomthom
                                    last edited by

                                    That's TIG's script: http://forums.sketchucation.com/viewtopic.php?t=19457

                                    Thomas Thomassen β€” SketchUp Monkey & Coding addict
                                    List of my plugins and link to the CookieWare fund

                                    1 Reply Last reply Reply Quote 0
                                    • TIGT Offline
                                      TIG Moderator
                                      last edited by

                                      That code's been around for ages without any complaints... The =~ isn't a standard method for the Float Class [at least in my 'prgamatic' documentation]: it's a new one I made up to compare two floats as being approximately equal, and 'Regexp' isn't part of Float... is it ??
                                      Any ideas from better Ruby gurus than me ????

                                      class Float
                                      	def =~(num2,tol=10000)
                                      		num1=(self*tol).to_i
                                      		num2=(num2*tol).to_i
                                      		return true if num1==num2
                                      		return nil
                                      	end
                                      end #class Float
                                      

                                      How do I 'isolate' it to avoid possible clashes [with an 'example' please] - if necessary...

                                      TIG

                                      1 Reply Last reply Reply Quote 0
                                      • fredo6F Offline
                                        fredo6
                                        last edited by

                                        @tig said:

                                        That code's been around for ages without any complaints... The =~ isn't a standard method for the Float Class [at least in my 'prgamatic' documentation]: it's a new one I made up to compare two floats as being approximately equal, and 'Regexp' isn't part of Float... is it ??
                                        Any ideas from better Ruby gurus than me ????How do I 'isolate' it to avoid possible clashes [with an 'example' please] - if necessary...

                                        TIG,

                                        The issue is not so much that you add a new method. It is rather the potential clash if another script writer has the exact same idea (and he may have it, because it seems simple and elegant). Then if several scripts define the method =~ with different precisions or even different meanings, some scripts may potentially not work and this may be hard to find out what is the cause.

                                        The normal approach would be to introduce a regular method like " float_compare(a, b)". It is less elegant, but at least it is only visible in the script own scope.

                                        Fredo

                                        Fredo

                                        1 Reply Last reply Reply Quote 0
                                        • TIGT Offline
                                          TIG Moderator
                                          last edited by

                                          Thanks Fredo.
                                          I'll make a fix... πŸ˜’
                                          [Edit: done.]

                                          TIG

                                          1 Reply Last reply Reply Quote 0
                                          • J Offline
                                            Jim
                                            last edited by

                                            Rick's offset.rb and wikii's FAK.rb (Follow and Keep) both define an #offset method for Array and Sketchup::Face classes. May the last one loaded win.

                                            Hi

                                            1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 1 / 2
                                            • First post
                                              Last post
                                            Buy SketchPlus
                                            Buy SUbD
                                            Buy WrapR
                                            Buy eBook
                                            Buy Modelur
                                            Buy Vertex Tools
                                            Buy SketchCuisine
                                            Buy FormFonts

                                            Advertisement