Cache files ?

Corel Paint Shop Pro

Moderator: Kathy_9

LeviFiction
Advisor
Posts: 6831
Joined: Thu Oct 02, 2008 1:07 pm
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: Alienware M17xR4
processor: Intel Core i7-3630QM CPU - 2_40GH
ram: 6 GB
Video Card: NVIDIA GeForce GTX 660M
sound_card: Sound Blaster Recon3Di
Hard_Drive_Capacity: 500GB
Corel programs: PSP: 8-2023
Location: USA

Re: Cache files ?

Post by LeviFiction »

Yes. The cache files are made when PSP runs if they don't already exist so they had to come from somewhere you won't permenantly ruin the UI if you mess up editing the cache files. Just delete them and PSP will generate the again. I knew the DLLs or EXE had to hold the original icons. Just wasn't sure why the medium and small icons were cached while the large ones weren't.
https://levifiction.wordpress.com/
JoeB
Posts: 2778
Joined: Fri Mar 28, 2008 10:04 pm
operating_system: Windows 8.1
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: LENOVO 4524PE4 ThinkCentre M91p
processor: 3.10 gigahertz Intel Quad Core i5-2400
ram: 8 GB
Hard_Drive_Capacity: 4.6 TB
Corel programs: PSP 9, X7 to 2019, 32 & 64-bit
Location: Canada

Re: Cache files ?

Post by JoeB »

I haven't yet gotten around to seeing if I can paste my own images over any of the boundscript icons but, for experimenting purposes did find out I can copy other icons in that cache file and combine them to create at least some better representations. The attached image is an example.

I have a boundscript placed immediately under the Selections tool that is an Edit Selection toggle. It automatically produces the lith and selects the Pick tool in one click. After the edit the toggle will then remove the lith and change from the Pick tool to the Selection tool, which is my preference. I was using the boundscript icon of a pencil writing on a piece of notepaper to indicate editing. Today I edited that icon so that it is kind of inside of the Selection Rectangle icon, which - to me at least - is even more representative of Edit Selection.

EDIT: I had done the above with the 32bit cache. So I just selected and copied that edited icon from the 32bit file and opened the 64bit file (renamed to .bmp) in Greenfish and pasted it in its proper place there and it appears just fine in the 64bit PSP. Now I just have to figure out exactly what parameters I need to use to create my own icons that I can copy and paste over the boundscript icons I don't like or use and that will work.! :-)

Something to occupy a bit of time, anyway! :-)
Attachments
edited script button.gif
edited script button.gif (6.8 KiB) Viewed 3708 times
Regards,

JoeB
Using PSP 2019 64bit
JoeB
Posts: 2778
Joined: Fri Mar 28, 2008 10:04 pm
operating_system: Windows 8.1
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: LENOVO 4524PE4 ThinkCentre M91p
processor: 3.10 gigahertz Intel Quad Core i5-2400
ram: 8 GB
Hard_Drive_Capacity: 4.6 TB
Corel programs: PSP 9, X7 to 2019, 32 & 64-bit
Location: Canada

Re: Cache files ?

Post by JoeB »

Just finished my final test with Greenfish Icon Editor and got everything working. And it's actually quite easy in Greenfish.

In PSP I took an image of peas in a pod and removed the background to transparency, resized it to 20x20 pixels and saved as PNG with Alpha transparency. Then I opened it in Greenfish, which already had the 64bit PSP icon cache (.bmp version) already loaded. I selected then copied the peas icon, went to the tab with the icon cache, went to a camera boundscipt icon and selected most of the inside of that icon and deleted most of it so that transparency showed through, leaving a bit of white border (I missed leaving a top border as you can see in the attachment). Then I pasted the peas icon and moved it into place, deselected it, and saved the cache bmp. Renamed it back to .cache, opened 64bit PSP and bound a random script to the icon and placed it under the stuff in my previous attachment. As you can see it retained the transparency.

So! Problem solved and, if you don't mind doing a bit of editing, you can at least replace some of the boundscripts that you don't use anyway with icons that you can easily create yourself. (In future I'd use something better than peas though! It just had an easy background to remove. :-) )

If any of you decide to try Greenfish here's a tip. When you open the cache image go to the View menu and turn off the grid and turn ON the cell grid, setting the size in the dialogue that opens to 20 x 20. This will mark the position of all of the buttons/icons in that .bmp file to make it easier to select what you want. Also, when you paste something into that .bmp image it will appear at the left end of the part of the image that is visible, so you want to scroll to the icon you're replacing and have it at or near the left side to make it easier to find the pasted image and move it into place. Then just deselect it and it will merge with the .bmp. It automatically assumes the bit depth of the image it's pasted into (32bit in this case) so you don't have to create your icon with any specific bit depth.

Now, can anybody tell me if the group separators are icons also and where they are? If they're accessible I'd like to edit them so that they are a much lighter color and show up better. :-)
Attachments
edited transparent boundscript icon.gif
edited transparent boundscript icon.gif (10.36 KiB) Viewed 3695 times
Regards,

JoeB
Using PSP 2019 64bit
JoeB
Posts: 2778
Joined: Fri Mar 28, 2008 10:04 pm
operating_system: Windows 8.1
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: LENOVO 4524PE4 ThinkCentre M91p
processor: 3.10 gigahertz Intel Quad Core i5-2400
ram: 8 GB
Hard_Drive_Capacity: 4.6 TB
Corel programs: PSP 9, X7 to 2019, 32 & 64-bit
Location: Canada

Re: Cache files ?

Post by JoeB »

This is getting to be addictive! Decided this evening to do a quick edit of the Flood and Gradient tool icons. (By the way, these attachments are enlarged a bit because I work with the Small icon option so, depending on what you're used to and monitor settings the small ones might be hard to see.) :-) I could likely do better looking icons if I actually started with small ones and didn't have to resize so drastically to 20x20 pixels, but for now just doing these for quick experience and fun!
Attachments
edited icons_flood_gradient fill.gif
edited icons_flood_gradient fill.gif (9.45 KiB) Viewed 3681 times
Regards,

JoeB
Using PSP 2019 64bit
JoeB
Posts: 2778
Joined: Fri Mar 28, 2008 10:04 pm
operating_system: Windows 8.1
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: LENOVO 4524PE4 ThinkCentre M91p
processor: 3.10 gigahertz Intel Quad Core i5-2400
ram: 8 GB
Hard_Drive_Capacity: 4.6 TB
Corel programs: PSP 9, X7 to 2019, 32 & 64-bit
Location: Canada

Re: Cache files ?

Post by JoeB »

And my final edited icon, for posting anyway, I decided that the Perspective Correction tool icon should look a bit more like it's flyout companion, the Straighten tool. Customization has always been one of the things I've always appreciated about PSP! :-) Big thanks, LeviFiction, for pointing me to the way to edit the boundscript and other icons in PSP!
Attachments
edited Perspective Correction icon.gif
edited Perspective Correction icon.gif (11.09 KiB) Viewed 3671 times
Regards,

JoeB
Using PSP 2019 64bit
Jean-Luc
Advisor
Posts: 2177
Joined: Sat Oct 22, 2011 10:50 pm
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: ASUS Computer N751J
processor: Intel i7_4710 HQ 2_50GHz
ram: 16GB
Video Card: NVIDIA GeForce GTX 850M
sound_card: NVIDIA High Definition Audio
Hard_Drive_Capacity: 2 Tb
Monitor/Display Make & Model: NVIDIA GeForce GTX 850M
Corel programs: PSP X7, X9, 2018 to 2023
Location: Belgium (French speaking)
Contact:

Re: Cache files ?

Post by Jean-Luc »

JoeB wrote: Now, can anybody tell me if the group separators are icons also and where they are? If they're accessible I'd like to edit them so that they are a much lighter color and show up better. :-)
In our French webuser forum, we explained in 2015 how to change the UI colors :
http://www.paintshoppro.fr/viewtopic.php?f=4&t=3
They are stored in the Registry.
I don't know if the group separators are accessible there.

Corel could use that possibility for proposing different "skins" for PSP (and not only the "3 shades of gray"). Those skins could be free as "creative ressources" with Ultimate (or to be paid like some actual other ressources). Same thing for the script icons : Corel could propose different sets.

PS : JoeB, glad to see you have fun with the customization... :)
THE PAINTSHOP PRO COOKBOOK - GENEALOGY WITH PAINTSHOP PRO
Installed PSP Ultimate: X7, X9, 2018, 2019, 2020, 2021, 2022, 2023
JoeB
Posts: 2778
Joined: Fri Mar 28, 2008 10:04 pm
operating_system: Windows 8.1
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: LENOVO 4524PE4 ThinkCentre M91p
processor: 3.10 gigahertz Intel Quad Core i5-2400
ram: 8 GB
Hard_Drive_Capacity: 4.6 TB
Corel programs: PSP 9, X7 to 2019, 32 & 64-bit
Location: Canada

Re: Cache files ?

Post by JoeB »

Jean-Luc wrote:PS : JoeB, glad to see you have fun with the customization... :)
It's always fun to learn and try out new stuff. :-) And as I was one of the many people who have wanted to be able to have customized boundscript icons I certainly had to try out the stuff suggested by you and LeviFiction. Being able to customize other icons in PSP also is a bonus. Very glad for the suggestions from both of you!

Now if only there was a way for those edited icons to show up in the boundscript icon window before binding them. But at least if you know which icons you're modifying and then bind it to your script as soon as you modify it it's not an insurmountable issue. I'm using the camera icons to modify to bind to scripts because I have never used them for anything else.
Regards,

JoeB
Using PSP 2019 64bit
JoeB
Posts: 2778
Joined: Fri Mar 28, 2008 10:04 pm
operating_system: Windows 8.1
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: LENOVO 4524PE4 ThinkCentre M91p
processor: 3.10 gigahertz Intel Quad Core i5-2400
ram: 8 GB
Hard_Drive_Capacity: 4.6 TB
Corel programs: PSP 9, X7 to 2019, 32 & 64-bit
Location: Canada

Re: Cache files ?

Post by JoeB »

Jean-Luc wrote:Some years ago, with a hex reader, I've found the location of the scripts icons and I tried to remplace them with diferent one more explicit. But it failed. I suppose PSP make an integrity check of its files during the load process.
I'm curious as to where all of the icons for PSP are located. There are a few in the PSP executable but not many. If you were to let us know where you found the location of the Scripts icons perhaps that would also give an idea where the other icons are located. I assume they're in dll files?
Regards,

JoeB
Using PSP 2019 64bit
Jean-Luc
Advisor
Posts: 2177
Joined: Sat Oct 22, 2011 10:50 pm
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: ASUS Computer N751J
processor: Intel i7_4710 HQ 2_50GHz
ram: 16GB
Video Card: NVIDIA GeForce GTX 850M
sound_card: NVIDIA High Definition Audio
Hard_Drive_Capacity: 2 Tb
Monitor/Display Make & Model: NVIDIA GeForce GTX 850M
Corel programs: PSP X7, X9, 2018 to 2023
Location: Belgium (French speaking)
Contact:

Re: Cache files ?

Post by Jean-Luc »

JoeB wrote: I'm curious as to where all of the icons for PSP are located. There are a few in the PSP executable but not many. If you were to let us know where you found the location of the Scripts icons perhaps that would also give an idea where the other icons are located. I assume they're in dll files?
Some are found here :
reshacker_coreXUIRC.jpg
THE PAINTSHOP PRO COOKBOOK - GENEALOGY WITH PAINTSHOP PRO
Installed PSP Ultimate: X7, X9, 2018, 2019, 2020, 2021, 2022, 2023
JoeB
Posts: 2778
Joined: Fri Mar 28, 2008 10:04 pm
operating_system: Windows 8.1
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: LENOVO 4524PE4 ThinkCentre M91p
processor: 3.10 gigahertz Intel Quad Core i5-2400
ram: 8 GB
Hard_Drive_Capacity: 4.6 TB
Corel programs: PSP 9, X7 to 2019, 32 & 64-bit
Location: Canada

Re: Cache files ?

Post by JoeB »

Thanks Jean-Luc. As a result of your post I also downloaded Resource Hacker because while Greenfish seems to find some icon and bitmap files in dll's and exe's I haven't found a way for it to display all of those images and don't know if it will do so. Resource Hacker does see them.
Regards,

JoeB
Using PSP 2019 64bit
Post Reply