It is currently May 7th, 2024, 12:35 am

Confusion about a global.ini

Get help with creating, editing & fixing problems with skins
DJQuad
Posts: 9
Joined: June 27th, 2015, 8:11 pm

Confusion about a global.ini

Post by DJQuad »

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?
Trili
Posts: 5
Joined: June 27th, 2015, 8:01 pm

Re: Confusion about a global.ini

Post by Trili »

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
DJQuad
Posts: 9
Joined: June 27th, 2015, 8:11 pm

Re: Confusion about a global.ini

Post by DJQuad »

Still confused :) Can you explain more?
Trili
Posts: 5
Joined: June 27th, 2015, 8:01 pm

Re: Confusion about a global.ini

Post by Trili »

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:

Code: Select all

[Variables]
@include=#ROOTCONFIGPATH#\variables.ini
@include2=#CURRENTPATH#\variables.ini
Take a look at these:
http://docs.rainmeter.net/manual/variables/built-in-variables
http://docs.rainmeter.net/manual/skins/include-option
DJQuad
Posts: 9
Joined: June 27th, 2015, 8:11 pm

Re: Confusion about a global.ini

Post by DJQuad »

Got it, I think. Time will tell :)

Thanks!
DJQuad
Posts: 9
Joined: June 27th, 2015, 8:11 pm

Re: Confusion about a global.ini

Post by DJQuad »

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

Code: Select all

@Include=#@#Quadzilla.inc
@Include2=#SKINSPATH#\CPU\CPU.ini
When loading the skin it says "The skin "Quadzilla\Quadzilla.ini" does not contain any meters"

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%
User avatar
eclectic-tech
Rainmeter Sage
Posts: 5407
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: Confusion about a global.ini

Post by eclectic-tech »

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.ini

Code: Select all

@Include=#@#Quadzilla.inc
@Include2=#SKINSPATH#\CPU\CPU.ini
When loading the skin it says "The skin "Quadzilla\Quadzilla.ini" does not contain any meters"

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%
Your skin must contain at least 1 meter (not counting @includes) in order for Rainmeter to load it.
[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
This is mentioned in the docs here, but it is easy to overlook...
Last edited by eclectic-tech on June 29th, 2015, 2:35 pm, edited 1 time in total.
User avatar
balala
Rainmeter Sage
Posts: 16201
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Confusion about a global.ini

Post by balala »

I don't agree! This will also work:
Skin.ini:

Code: Select all

[Rainmeter]
Update=-1

@Include=#@#Meter.inc
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
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.
User avatar
eclectic-tech
Rainmeter Sage
Posts: 5407
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: Confusion about a global.ini

Post by eclectic-tech »

@balala

You are right!
I didn't try the code you supplied, and the paths to your files is the issue. :thumbup:
DJQuad
Posts: 9
Joined: June 27th, 2015, 8:11 pm

Re: Confusion about a global.ini

Post by DJQuad »

It doesn't look like the Quadzilla.inc file is being included.

My Quadzilla.ini

Code: Select all

@Include=#@#Quadzilla.inc
@Include2=#SKINSPATH#Quadzilla\CPU\CPU.ini

[Dummy]
Meter=String
My Quadzilla.inc (in @Resources)

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#
My CPU.ini

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#