It is currently April 28th, 2024, 12:36 am

Including multiple includes

Get help with creating, editing & fixing problems with skins
User avatar
parasite64
Posts: 29
Joined: April 27th, 2012, 11:22 am

Including multiple includes

Post by parasite64 »

I'm not sure if this is a bug or intended, but I can't @include two files:

Code: Select all

[Variables]
@Include="#@#colors.inc"
@Include="#@#settings.inc"
Inside colors.inc it's just a bunch of variables with different colors and inside settings.inc is just another set of variables that I'm using for my skin that I'm creating. If I comment out the colors.inc, the variables from settings load but if I try to load both, only the colors.inc is being included.
[Aurora]
User avatar
jsmorley
Developer
Posts: 22631
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Including multiple includes

Post by jsmorley »

parasite64 wrote:I'm not sure if this is a bug or intended, but I can't @include two files:

Code: Select all

[Variables]
@Include="#@#colors.inc"
@Include="#@#settings.inc"
Inside colors.inc it's just a bunch of variables with different colors and inside settings.inc is just another set of variables that I'm using for my skin that I'm creating. If I comment out the colors.inc, the variables from settings load but if I try to load both, only the colors.inc is being included.
@Include=
@Include2=

http://rainmeter.net/cms/Skins-Include_beta
User avatar
parasite64
Posts: 29
Joined: April 27th, 2012, 11:22 am

Re: Including multiple includes

Post by parasite64 »

jsmorley wrote: @Include=
@Include2=

http://rainmeter.net/cms/Skins-Include_beta
I didn't realise you had to number them; Was there any reason to this?
[Aurora]
User avatar
jsmorley
Developer
Posts: 22631
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Including multiple includes

Post by jsmorley »

Because the .ini standard absolutely does not allow duplicate key names in a section.
User avatar
parasite64
Posts: 29
Joined: April 27th, 2012, 11:22 am

Re: Including multiple includes

Post by parasite64 »

jsmorley wrote:Because the .ini standard absolutely does not allow duplicate key names in a section.
Alright then, I understand, thanks!
[Aurora]