Hey all. Like the illustro skin I'd like to have folders with their own ini files, but have a "master" ini that contains global things like RainMeter, Metadata, Variables, and a few other things common to the other individual ini files.
If I put a global.ini in the skin's root will it load that one first before the other ini's?
It is currently May 7th, 2024, 12:35 am
Confusion about a global.ini
-
- Posts: 9
- Joined: June 27th, 2015, 8:11 pm
-
- Posts: 5
- Joined: June 27th, 2015, 8:01 pm
Re: Confusion about a global.ini
If you want it to be loaded first, make it the first line under variables, aand make sure the next ini is included with
Code: Select all
@include2=yourini.ini
-
- Posts: 9
- Joined: June 27th, 2015, 8:11 pm
Re: Confusion about a global.ini
Still confused Can you explain more?
-
- Posts: 5
- Joined: June 27th, 2015, 8:01 pm
Re: Confusion about a global.ini
Say you're looking at a clock skin.
There's an INI in the same path as the skin,
And there's an INI in the root path.
If you want to include both:
Take a look at these:
http://docs.rainmeter.net/manual/variables/built-in-variables
http://docs.rainmeter.net/manual/skins/include-option
There's an INI in the same path as the skin,
And there's an INI in the root path.
If you want to include both:
Code: Select all
[Variables]
@include=#ROOTCONFIGPATH#\variables.ini
@include2=#CURRENTPATH#\variables.ini
http://docs.rainmeter.net/manual/variables/built-in-variables
http://docs.rainmeter.net/manual/skins/include-option
-
- Posts: 9
- Joined: June 27th, 2015, 8:11 pm
Re: Confusion about a global.ini
Got it, I think. Time will tell
Thanks!
Thanks!
-
- Posts: 9
- Joined: June 27th, 2015, 8:11 pm
Re: Confusion about a global.ini
Maybe not.
Under my skins folder is the illustro folder and my Quadzilla folder. Under Quadzilla there's a Quadzilla.ini and a CPU folder with CPU.ini.
Contents of Quadzilla.ini
When loading the skin it says "The skin "Quadzilla\Quadzilla.ini" does not contain any meters"
Partial contents of CPU\CPU.ini
Under my skins folder is the illustro folder and my Quadzilla folder. Under Quadzilla there's a Quadzilla.ini and a CPU folder with CPU.ini.
Contents of Quadzilla.ini
Code: Select all
@Include=#@#Quadzilla.inc
@Include2=#SKINSPATH#\CPU\CPU.ini
Partial contents of CPU\CPU.ini
Code: Select all
[MeterCPUText]
Meter=String
FontFace=Segoe UI
FontSize=15
FontColor=#LightBlue#
X=48
Y=4
StringStyle=Bold
AntiAlias=1
Text=CPU
[MeterCPUPercent]
Meter=String
MeasureName=MeasureCPU
FontFace=Segoe UI
FontSize=8
FontColor=#LightBlue#
X=26
Y=28
StringAlign=CenterCenter
StringStyle=Bold
AntiAlias=1
Text=%1%
-
- Rainmeter Sage
- Posts: 5407
- Joined: April 12th, 2012, 9:40 pm
- Location: Cedar Point, Ohio, USA
Re: Confusion about a global.ini
Your skin must contain at least 1 meter (not counting @includes) in order for Rainmeter to load it.DJQuad wrote:Maybe not.
Under my skins folder is the illustro folder and my Quadzilla folder. Under Quadzilla there's a Quadzilla.ini and a CPU folder with CPU.ini.
Contents of Quadzilla.iniWhen loading the skin it says "The skin "Quadzilla\Quadzilla.ini" does not contain any meters"Code: Select all
@Include=#@#Quadzilla.inc @Include2=#SKINSPATH#\CPU\CPU.ini
Partial contents of CPU\CPU.iniCode: Select all
[MeterCPUText] Meter=String FontFace=Segoe UI FontSize=15 FontColor=#LightBlue# X=48 Y=4 StringStyle=Bold AntiAlias=1 Text=CPU [MeterCPUPercent] Meter=String MeasureName=MeasureCPU FontFace=Segoe UI FontSize=8 FontColor=#LightBlue# X=26 Y=28 StringAlign=CenterCenter StringStyle=Bold AntiAlias=1 Text=%1%
[EDIT]
The @include location must not be correct.
While testing, to see error message you can add a meter.
[END EDIT]
The easiest solution is to add a [Dummy] string meter to your "Quadzilla\Quadzilla.ini" skin:
Code: Select all
[Dummy]
Meter=String
Last edited by eclectic-tech on June 29th, 2015, 2:35 pm, edited 1 time in total.
:: My DA Gallery :: Rainmeter DA Gallery :: Rainmeter Workshops :: Rainmeter Documentation :: BBCode Guide ::
-
- Rainmeter Sage
- Posts: 16201
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: Confusion about a global.ini
I don't agree! This will also work:
Skin.ini:
Meter.inc:
There I see another problem: the #SKINSPATH# don't have a CPU folder, because it is in the Quadzilla folder. So, in my opinion, the @Include2 option should be: @Include2=#SKINSPATH#Quadzilla\CPU\CPU.ini
As in the posted code, the CPU.ini contains a few meters, I suppose there're no other meters into Quadzilla.ini and that's why the skin don't find any meter.
Skin.ini:
Code: Select all
[Rainmeter]
Update=-1
@Include=#@#Meter.inc
Code: Select all
[Meterstring]
Meter=STRING
X=0
Y=0
Padding=25,5,25,5
FontColor=220,220,220
SolidColor=0,0,0
FontSize=12
FontFace=Segoe UI
StringStyle=BOLD
StringAlign=LEFT
AntiAlias=1
Text=Some string
As in the posted code, the CPU.ini contains a few meters, I suppose there're no other meters into Quadzilla.ini and that's why the skin don't find any meter.
-
- Rainmeter Sage
- Posts: 5407
- Joined: April 12th, 2012, 9:40 pm
- Location: Cedar Point, Ohio, USA
Re: Confusion about a global.ini
@balala
You are right!
I didn't try the code you supplied, and the paths to your files is the issue.
You are right!
I didn't try the code you supplied, and the paths to your files is the issue.
:: My DA Gallery :: Rainmeter DA Gallery :: Rainmeter Workshops :: Rainmeter Documentation :: BBCode Guide ::
-
- Posts: 9
- Joined: June 27th, 2015, 8:11 pm
Re: Confusion about a global.ini
It doesn't look like the Quadzilla.inc file is being included.
My Quadzilla.ini
My Quadzilla.inc (in @Resources)
My CPU.ini
My Quadzilla.ini
Code: Select all
@Include=#@#Quadzilla.inc
@Include2=#SKINSPATH#Quadzilla\CPU\CPU.ini
[Dummy]
Meter=String
Code: Select all
[Rainmeter]
Update=1000
[Metadata]
Name=Quadzilla
Author=DJQuad
Information=My quest to make a very minimalist but modular skin. Intended to be docked and always visible. Contact me at http://djquad.com/contact with feature requests.
Version=1.1905
License=Creative Commons Attribution-Non-Commercial-Share Alike 3.0
[Variables]
DarkBlue=27,63,107,255
MediumBlue=92,135,209,255
LightBlue=207,224,255,255
LightRed=250,148,135,255
AlmostBlack=40,40,40,255
CurrentDrive=C:
Drive1=C:
Drive2=E:
[MeterBackground]
Meter=Image
X=0
Y=0
W=185
H=110
SolidColor=#AlmostBlack#
Code: Select all
[Variables]
@Include=#CURRENTPATH#\Quadzilla\Quadzilla.ini
[MeasureCPU]
Measure=CPU
IfAboveValue=24
IfAboveAction=[!SetOption MeterCPUPercent FontColor #LightRed#][!UpdateMeter *][!Redraw]
IfBelowValue=25
IfBelowAction=[!SetOption MeterCPUPercent FontColor #LightBlue#][!UpdateMeter *][!Redraw]
[MeterCPUCircleBack]
Meter=Roundline
X=5
Y=8
W=40
H=40
StartAngle=(Rad(270))
RotationAngle=(Rad(360))
LineStart=15
LineLength=20
Solid=1
LineColor=#MediumBlue#
AntiAlias=1
[MeterCPUCircle]
Meter=Roundline
MeasureName=MeasureCPU
X=5
Y=8
W=40
H=40
StartAngle=(Rad(270))
RotationAngle=(Rad(360))
LineStart=15
LineLength=20
Solid=1
LineColor=#LightBlue#
AntiAlias=1
[MeterCPUText]
Meter=String
FontFace=Segoe UI
FontSize=15
FontColor=#LightBlue#
X=48
Y=4
StringStyle=Bold
AntiAlias=1
Text=CPU
[MeterCPUPercent]
Meter=String
MeasureName=MeasureCPU
FontFace=Segoe UI
FontSize=8
FontColor=#LightBlue#
X=26
Y=28
StringAlign=CenterCenter
StringStyle=Bold
AntiAlias=1
Text=%1%
[MeterCPULine]
Meter=Line
MeasureName=MeasureCPU
X=49
Y=8
W=130
H=38
LineCount=1
LineColor=#LightBlue#
LineWidth=1
HorizontalLines=1
HorizontalLineColor=#AlmostBlack#
SolidColor=#DarkBlue#