I need to bundle the 32bit variant with the skin, clearly I am not dropping it in C:\Users\YourName\AppData\Roaming\Rainmeter\Plugins alongside the in-use 64 bit version on my PC hence my question.
So, how do I get the 32bit variant in the right place in the rmskin file alongside the 64 bit variant using the new "Create skin" feature...
It is currently April 18th, 2024, 12:06 pm
Skins: New @Resources folder
-
- Posts: 1175
- Joined: June 9th, 2010, 5:56 pm
- Location: Locks heath, UK
-
- Moderator
- Posts: 1931
- Joined: January 29th, 2010, 1:43 am
- Location: Willmar, MN
Re: Skins: New @Resources folder
When adding plugins, a dialog will pop up asking for you to navigate to the 32 and 64 bit versions of the plugin. They do not need to be in APPDATA in order to add them to the rmskin.
GitHub | DeviantArt | Tumblr
This is the song that never ends. It just goes on and on my friends. Some people started singing it not knowing what it was, and they'll continue singing it forever just because . . .
This is the song that never ends. It just goes on and on my friends. Some people started singing it not knowing what it was, and they'll continue singing it forever just because . . .
-
- Developer
- Posts: 22629
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA
Re: Skins: New @Resources folder
What you do is keep both the 32bit and 64bit versions somewhere on your computer. It really doesn't matter where, these files are for you to distribute with your .rmskin. Keep them in:Seahorse wrote:I need to bundle the 32bit variant with the skin, clearly I am not dropping it in C:\Users\YourName\AppData\Roaming\Rainmeter\Plugins alongside the in-use 64 bit version on my PC hence my question.
So, how do I get the 32bit variant in the right place in the rmskin file alongside the 64 bit variant using the new "Create skin" feature...
C:\MyRaimeterStuff\Plugins\32\MyPlugin.dll
C:\MyRaimeterStuff\Plugins\64\MyPlugin.dll
Now when you create a .rmskin, you will "add" a plugin, and browse to each of those folders in turn to add the 32bit and 64bit versions of the plugin.
Then when a user installs the .rmskin, the installer will see what bit version of Rainmeter they have, and install the correct .dll to C:\Users\YourName\AppData\Roaming\Rainmeter\Plugins
There will be only the one version of the .dll on the end user's computer in that folder.
-
- Posts: 1175
- Joined: June 9th, 2010, 5:56 pm
- Location: Locks heath, UK
Re: Skins: New @Resources folder
OK, that solves the plugin problem, however there appears to be a lot of work requires editing skins to reflect the @resouces structure if I move the addons, fonts & images and tons of testing, unless there is an easy way to do that?
-
- Developer
- Posts: 22629
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA
Re: Skins: New @Resources folder
Not really, you can decide not to do it for existing skins and just use the approach going forward, or you can, like I did, make the effort to clean up your old skins to use the #@# (@Resources) approach, and while you are at it, get rid of all !Execute commands and any "Rainmeter" left on the front of bangs.Seahorse wrote:OK, that solves the plugin problem, however there appears to be a lot of work requires editing skins to reflect the @resouces structure if I move the addons, fonts & images and tons of testing, unless there is an easy way to do that?
-
- Posts: 1175
- Joined: June 9th, 2010, 5:56 pm
- Location: Locks heath, UK
Re: Skins: New @Resources folder
!Rainmeter went ages ago, but it makes sense to do the rest, however, I have moved Image folder into @Resources before I edit the skins so that I can confirm they are working when I edit them and have run into a snag. I assume this is death by typo, but I can't spot one yet. It is also not clear to me why some are getting double slashes . Is there an issue with bar meters using graphics?\\...
You do not have the required permissions to view the files attached to this post.
Last edited by Seahorse on June 24th, 2012, 4:04 pm, edited 1 time in total.
-
- Developer
- Posts: 22629
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA
Re: Skins: New @Resources folder
I don't know Seahorse. You clearly have some "/" where you should have "\" in some places.
-
- Developer
- Posts: 2872
- Joined: April 17th, 2009, 12:18 pm
Re: Skins: New @Resources folder
Can you post your skin?Seahorse wrote:!Rainmeter went ages ago, but it makes sense to do the rest, however, I have moved Image folder into @Resources before I edit the skins so that I can confirm they are working when I edit them and have run into a snag. I assume this is death by typo, but I can't spot one yet. It is also not clear to me why some are getting double slashes . Is there an issue with bar meters using graphics?\\...
-
- Developer
- Posts: 22629
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA
Re: Skins: New @Resources folder
Seahorse, post your entire skin code please.
-
- Posts: 1175
- Joined: June 9th, 2010, 5:56 pm
- Location: Locks heath, UK
Re: Skins: New @Resources folder
OK, it appears I had two instances of notepad running and for whatever reason the edited version in the screenshot was not applying saves to the skin (I don't get on with Notepad++ and tabbed editing)
I usually have several notepad windows open at once (in this instance I had 5 on the go, two of which were the CPU skin). When I closed all skins and windows, "Refreshed All" started and then edited the skin again it worked just fine. I am a little concerned as Ctrl S has never caused this before when editing even if there are duplicates open, it's like the window didn't have focus, except it did as I was typing in it!
However, just in case, code:
UPDDATE: Looks like Ctrl S is NOT working every time, so either fat fingers or my keyboard is on it's way out.
I usually have several notepad windows open at once (in this instance I had 5 on the go, two of which were the CPU skin). When I closed all skins and windows, "Refreshed All" started and then edited the skin again it worked just fine. I am a little concerned as Ctrl S has never caused this before when editing even if there are duplicates open, it's like the window didn't have focus, except it did as I was typing in it!
However, just in case, code:
Code: Select all
[Rainmeter]
Author=Seahorse (AKA Osric Wuscfrea) mr.seahorse@gmail.com
Update=1000
BackgroundMode=2
SolidColor=0,0,0,1
Blur=1
BlurRegion=2,0,0,210,60,25
[Metadata]
Name=Cobalt CPU Cores (1)
Version=1.2.1
License=Creative Commons BY-NC-SA 3.0
Information=Description: Temperature, peak & loads. | Instructions: Edit the variables to match your system as per
adjacent comments. | Credits: Nil.
;1.2.2 - Updated to reflect changes to Rainmeter 2.3.
;1.2.1 - Reversed graph direction using the new GraphStart option
;1.2 - Change histogram to load from temp. Max color text changes to red when temp > 75 same as bar. Highest
temperature added to bar meter as red area to 'rear'.
;1.1 - New bar & size changes
;1.0 - Release
;===============================================================================================
;Variables
;===============================================================================================
[Variables]
;Fonts & Colours
@include="#SKINSPATH#Cobolt\Settings.inc"
;***********************************************************************************************
;Open Speedfan > Configure.
;The Temperature Tab lists devices counting down the list from the top as device 0, 1, 2, 3 etc. Edit the variables
below to match YOUR components.
;***********************************************************************************************
Core1=1
;===============================================================================================
;Measures
;===============================================================================================
[MeasureCore1Temp]
Measure=Plugin
PlugIn=PlugIns\SpeedFanPlugin
SpeedFanType=TEMPERATURE
SpeedFanNumber=#Core1#
MinValue=0
MaxValue=85
[MeasureCore1MaxTemp]
Measure=Calc
Formula=(MeasureCore1Temp > MeasureCore1MaxTemp) ? MeasureCore1Temp : MeasureCore1MaxTemp
MinValue=0
MaxValue=85
[CalcCore1TextColour]
Measure=Calc
Formula=MeasureCore1MaxTemp>75 ? -1 :-2
Substitute=".0":"","-1":"#Colour6#","-2":"#Colour1#"
[MeasureCore1CPU]
Measure=CPU
Processor=1
;===============================================================================================
;Meters
;===============================================================================================
;-----------------------------------------------------------------------------------------------
;Core1
;-----------------------------------------------------------------------------------------------
[MeterCore1Label]
Meter=String
X=10
Y=10
MeterStyle=StringStyleNoClip
FontColor=#Colour2#
Text="Core 1"
[MeterCore1Graph]
Meter=Line
MeasureName=MeasureCore1CPU
GraphStart=Left
LineWidth=1
Linecolor=#Colour2#
X=100
Y=8
W=100
H=15
Antialias=1
[MeterCore1Graph2]
Meter=Histogram
MeasureName=MeasureCore1CPU
GraphStart=Left
X=r
Y=r
W=100
H=15
Antialias=1
PrimaryColor=#Colour3#
[MeterCore1Temp]
Meter=String
MeasureName=MeasureCore1Temp
X=10
Y=17r
MeterStyle=StringStyleNoClip
Text="%1°C"
[MeterCore1MaxTemp]
Meter=String
MeasureName=MeasureCore1MaxTemp
X=200
Y=r
W=200
MeterStyle=StringStyleRight
FontColor=[CalcCore1TextColour]
Text="Max: %1°C"
DynamicVariables=1
[MeterCore1BarBack]
Meter=Image
X=10
Y=12r
W=191
H=14
ImageName=#@#Images\BarBG.png
[MeterCore1MaxBar]
Meter=Bar
MeasureName=MeasureCore1MaxTemp
BarOrientation=Horizontal
X=r
Y=r
W=191
H=14
Flip=0
BarImage=#@#Images\BarRed.png
DynamicVariables=1
[MeterCore1Bar]
Meter=Bar
MeasureName=MeasureCore1Temp
BarOrientation=Horizontal
X=r
Y=r
W=191
H=14
Flip=0
BarImage=#@#Images\Bar.png
;-----------------------------------------------------------------------------------------------
;Graphics
;-----------------------------------------------------------------------------------------------
;Additionally forces the aero blur borders to correct position.
[MeterGlossTop]
Meter=Image
X=0
Y=0
W=210
H=40
ImageName=#@#Images\GlossTop.png
[MeterGlossBottom]
Meter=Image
X=0
Y=35
W=210
H=25
ImageName=#@#Images\GlossBottom.png