It is currently Mon Jul 22, 2024 8:34 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 99 posts ]  Go to page Previous  1, 2, 3, 4, 5
Author Message
 Post subject: Re: Test for duplicate scripts
PostPosted: Fri May 25, 2012 10:15 am  (#81) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
I ran it again Kevin and in the error console says the same thing except a different error #19695. I don't know what you mean by duplicate_scripts.txt file. Where is that

"Test For Duplicate Scripts v1.8 Warning
Error while executing script-fu-kp24_test_for_duplicate_scripts:

Error: ( : 19695) car: argument 1 must be: pair"

_________________
Image


Top
 Post subject: Re: Test for duplicate scripts
PostPosted: Fri May 25, 2012 10:18 am  (#82) 
Offline
Script Coder
User avatar

Joined: Jun 22, 2010
Posts: 1171
Location: Here and there
molly wrote:
I ran it again Kevin and in the error console says the same thing except a different error #19695. I don't know what you mean by duplicate_scripts.txt file. Where is that


On Windows it ends up in your profile directory i.e. one level up from where your .gimp-2.8 folder is.

Kevin


Top
 Post subject: Re: Test for duplicate scripts
PostPosted: Fri May 25, 2012 10:28 am  (#83) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
does this help?


Attachments:
duplicate_scripts.rar [3.54 KiB]
Downloaded 150 times

_________________
Image
Top
 Post subject: Re: Test for duplicate scripts
PostPosted: Fri May 25, 2012 10:31 am  (#84) 
Offline
GimpChat Member

Joined: Aug 05, 2011
Posts: 606
Location: limestone,ny
duplicate_scripts.txt attached


Attachments:
duplicate_scripts.rar [1.16 KiB]
Downloaded 142 times
Top
 Post subject: Re: Test for duplicate scripts
PostPosted: Fri May 25, 2012 10:37 am  (#85) 
Offline
Script Coder
User avatar

Joined: Jun 22, 2010
Posts: 1171
Location: Here and there
molly wrote:
does this help?


Yes. It tells me that it went wrong at a file called Pattern from Image(1).scm so now I'd like to see what that file looks like. Can you point me to where it came from, so I can examine it what to see what's different?

Kevin


Top
 Post subject: Re: Test for duplicate scripts
PostPosted: Fri May 25, 2012 10:41 am  (#86) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
Is this what you want?


Attachments:
Pattern from Image(1).rar [1.68 KiB]
Downloaded 151 times

_________________
Image
Top
 Post subject: Re: Test for duplicate scripts
PostPosted: Fri May 25, 2012 10:55 am  (#87) 
Offline
Script Coder
User avatar

Joined: Jun 22, 2010
Posts: 1171
Location: Here and there
Molly.

It's causing an error because it's got this code at the bottom:
(gimp-image-resize-to-layers image)
        (set! image-layer (car (gimp-image-merge-visible-layers image EXPAND-AS-NECESSARY)))
    (gimp-drawable-set-name image-layer "Pattern")
        (plug-in-autocrop 1 image image-layer)
        (gimp-image-scale-full image width height 2)
       
;;;; Create a copy of the image
        (set! patternImage (car (gimp-channel-ops-duplicate image)))
        (set! pattern (car (gimp-image-merge-visible-layers image EXPAND-AS-NECESSARY)))

;;;; Save the pattern file
        (set! fileName (string-append (car (gimp-gimprc-query "gimp_dir")) "/patterns/" inName ".pat"))
        (file-pat-save 1 patternImage pattern fileName "" inName)

;;;; Delete the duplicated image
        (gimp-image-delete patternImage)

        ; Return
        (list inName)

;;;;refresh the patterns       
        (gimp-patterns-refresh)

All of which shouldn't be there.

It looks like the original is from here: viewtopic.php?f=9&t=3724

Kevin


Top
 Post subject: Re: Test for duplicate scripts
PostPosted: Fri May 25, 2012 10:58 am  (#88) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
So, what do I do now. Should I delete the script or delete all that green text you posted. I can remove the script easy enough if that should solve the problem.

_________________
Image


Top
 Post subject: Re: Test for duplicate scripts
PostPosted: Fri May 25, 2012 11:02 am  (#89) 
Offline
Script Coder
User avatar

Joined: Jun 22, 2010
Posts: 1171
Location: Here and there
I'd delete all the text above and re-save the file - It then doesn't cause the test script to error.

Kevin


Top
 Post subject: Re: Test for duplicate scripts
PostPosted: Fri May 25, 2012 11:22 am  (#90) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
Okay I did all that and still got the error, so I deleted the scm and I still get the error. Woe is me. :teeth

_________________
Image


Top
 Post subject: Re: Test for duplicate scripts
PostPosted: Fri May 25, 2012 11:29 am  (#91) 
Offline
Script Coder
User avatar

Joined: Jun 22, 2010
Posts: 1171
Location: Here and there
That suggests you've got another script with a problem! Do you want another go round the loop? If so attach the latest version of duplicate_scripts.txt, or have a look at it yourself.

Last time the end of the file was this:
Finished with C:\Users\Molly\.gimp-2.8\scripts\Path_selection_sum.scm
C:\Users\Molly\.gimp-2.8\scripts\Pattern from Image(1).scm
   define  script-fu-pattern-from-image
   script-fu-register   script-fu-pattern-from-image
   script-fu-menu-register  script-fu-pattern-from-image
   gimp-image-resize-to-layers  image
   set!  image-layer
   gimp-drawable-set-name  image-layer
   plug-in-autocrop  too complicated!
   gimp-image-scale-full  image
   set!  patternImage
   set!  pattern
   set!  fileName
   file-pat-save  too complicated!
   gimp-image-delete  patternImage
   list  inName
   gimp-patterns-refresh

So you can see how I knew it was "Pattern from Image(1).scm" causing the problem.

Kevin


Top
 Post subject: Re: Test for duplicate scripts
PostPosted: Fri May 25, 2012 11:34 am  (#92) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
I will send it,

dam, now it won't send the rar file. says it does not accept the rar extension. I just sent one a while ago.

_________________
Image


Top
 Post subject: Re: Test for duplicate scripts
PostPosted: Fri May 25, 2012 12:36 pm  (#93) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
Kevin, I renamed it to see if it would go.


Attachments:
dupes-scripts.rar [3.5 KiB]
Downloaded 210 times

_________________
Image
Top
 Post subject: Re: Test for duplicate scripts
PostPosted: Fri May 25, 2012 12:56 pm  (#94) 
Offline
Script Coder
User avatar

Joined: Jun 22, 2010
Posts: 1171
Location: Here and there
Hi Molly,

This time it's failing at :
C:\Users\Molly\.gimp-2.8\scripts\Picture Frame.scm
   define  script-fu-picture-frame
   script-fu-register   script-fu-picture-frame
   script-fu-menu-register  script-fu-picture-frame
   define  the-picture-frame-highlights


Kevin


Top
 Post subject: Re: Test for duplicate scripts
PostPosted: Fri May 25, 2012 12:57 pm  (#95) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
So, do I delete that part?

_________________
Image


Top
 Post subject: Re: Test for duplicate scripts
PostPosted: Fri May 25, 2012 1:00 pm  (#96) 
Offline
Script Coder
User avatar

Joined: Jun 22, 2010
Posts: 1171
Location: Here and there
No, I was just showing you which script file is causing the problem:
C:\Users\Molly\.gimp-2.8\scripts\Picture Frame.scm

As with the previous one, it's probably something that's got corrupt with the file as I'm guessing it's from here: http://www.gimpchat.com/viewtopic.php?f=9&t=3994

Kevin


Top
 Post subject: Re: Test for duplicate scripts
PostPosted: Fri May 25, 2012 1:16 pm  (#97) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
I deleted the picture frame script and downloaded it again, I don't know if that will fix it or not cuz I am really out to sea with kind of stuff. I will bring up gimp again to see if there is any change.

_________________
Image


Top
 Post subject: Re: Test for duplicate scripts
PostPosted: Mon Oct 01, 2012 10:04 am  (#98) 
Offline
Retired Staff
User avatar

Joined: May 22, 2008
Posts: 6947
Location: Somewhere in GIMP
paynekj wrote:
No, I was just showing you which script file is causing the problem:
C:\Users\Molly\.gimp-2.8\scripts\Picture Frame.scm

As with the previous one, it's probably something that's got corrupt with the file as I'm guessing it's from here: http://www.gimpchat.com/viewtopic.php?f=9&t=3994

Kevin
I just downloaded it so apparently the script is not fixed.

_________________
Image
World War IV will be fought with sticks and stones. - Albert Einstein


Top
 Post subject: Re: Test for duplicate scripts
PostPosted: Tue Oct 13, 2020 7:16 am  (#99) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2260
Location: Poland
Version 1.8 also available here:
https://www.gimpscripts.net/2020/10/tes ... -v-18.html

_________________
Image

Slava
Ukraini!


Top
Post new topic Reply to topic  [ 99 posts ]  Go to page Previous  1, 2, 3, 4, 5

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Juxtapose exactly duplicate paths

2

No new posts Attachment(s) GEGL Jelly - Apply on Duplicate Layer above and use eraser

3

No new posts Attachment(s) pm_create_a_depthmap_image.py (Test)

8

No new posts Jewelry Text Test

8



* Login  



Powered by phpBB3 © phpBB Group