It is currently March 29th, 2024, 1:59 pm

Code issue for Meter=Image

Get help with installing and using Rainmeter.
Seven
Posts: 9
Joined: February 7th, 2022, 4:14 am

Code issue for Meter=Image

Post by Seven »

Hey everyone ive been coding my first skin and I hit a wall. I started by building a clock and the code works for the analog time and date, but surrounding the analog font for my clock I designed an image that I want to code a rotator for. Its just a simple abstract circle design. My issue is when I use

Code: Select all

[MeterImage]
Meter=Image
ImageName=#@#images\filename.jpg
X=x
Y=y
The image does not appear when I go for testing. I used Gimp to design and export the picture and the image is in jpg format. Ive triple checked that the image is in my @recourses folder inside a folder named "images". There also are no duplications of [MeterImage] in the code. Idk if I did something wrong when exporting or what. Any advice you could give would be very helpful thank you in advance.
Last edited by Seven on February 8th, 2022, 1:02 am, edited 2 times in total.
User avatar
death.crafter
Rainmeter Sage
Posts: 1399
Joined: April 24th, 2021, 8:13 pm

Re: Code issue for Meter=Image

Post by death.crafter »

Please provide the whole skin for use to see where things go wrong.

https://docs.rainmeter.net/manual/distributing-skins/
from the Realm of Death
Seven
Posts: 9
Joined: February 7th, 2022, 4:14 am

Re: Code issue for Meter=Image

Post by Seven »

Here is what i have so far:

Code: Select all

[Rainmeter]
Update=1000

[MetaData]
Version=1.0
License=Seven.777
Information=Tells the date and time

[MeterImage]
Meter=Image
ImageName=#@#Pictures\Outter.png
W=300
H=300

[MeasureTime]
Measure=Time
Format=%I %M %p

[MeasureDate]
Measure=Time
Format=%d.%m.%Y

[MeasureDay]
Measure=Time
Format=%A

[TextStyle]
FontFace=SF Sports Night Alternate
FontColor=185,0,0
StringStyle=none
StringAlign=Center
AntiAlias=1

[MeterTime]
Meter=String
MeterStyle=TextStyle
MeasureName=MeasureTime
Y=4
X=160
FontSize=30

[MeterMonthDayYear]
Meter=String
MeterStyle=TextStyle
MeasureName=MeasureDate
MeasureName2=MeasureDay
X=160
Y=85
FontSize=20
User avatar
ikarus1969
Posts: 571
Joined: February 28th, 2011, 3:20 pm
Location: Vienna, Austria

Re: Code issue for Meter=Image

Post by ikarus1969 »

additionally, could you please post a screenshot of the "About-Log"? After loading/refreshing the skin, right-click on the rainmeter tray-icon, select "About" and post a screenshot please. It looks similar to:
Screenshot.png
You do not have the required permissions to view the files attached to this post.
Seven
Posts: 9
Joined: February 7th, 2022, 4:14 am

Re: Code issue for Meter=Image

Post by Seven »

Here it is. Looks like its unable to reach the source
You do not have the required permissions to view the files attached to this post.
User avatar
death.crafter
Rainmeter Sage
Posts: 1399
Joined: April 24th, 2021, 8:13 pm

Re: Code issue for Meter=Image

Post by death.crafter »

Seven wrote: February 7th, 2022, 5:11 am Here is what i have so far:

Code: Select all

[Rainmeter]
Update=1000

[MetaData]
Version=1.0
License=Seven.777
Information=Tells the date and time

[MeterImage]
Meter=Image
ImageName=#@#Pictures\Outter.png
W=300
H=300

[MeasureTime]
Measure=Time
Format=%I %M %p

[MeasureDate]
Measure=Time
Format=%d.%m.%Y

[MeasureDay]
Measure=Time
Format=%A

[TextStyle]
FontFace=SF Sports Night Alternate
FontColor=185,0,0
StringStyle=none
StringAlign=Center
AntiAlias=1

[MeterTime]
Meter=String
MeterStyle=TextStyle
MeasureName=MeasureTime
Y=4
X=160
FontSize=30

[MeterMonthDayYear]
Meter=String
MeterStyle=TextStyle
MeasureName=MeasureDate
MeasureName2=MeasureDay
X=160
Y=85
FontSize=20
Well, I asked for the skin, as in the skin and the picture. There is no way we could reproduce the issue just with the code.
from the Realm of Death
User avatar
Active Colors
Moderator
Posts: 1251
Joined: February 16th, 2012, 3:32 am
Location: Berlin, Germany

Re: Code issue for Meter=Image

Post by Active Colors »

Yes, packing the whole skin will be useful to find the problem.
User avatar
balala
Rainmeter Sage
Posts: 16110
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Code issue for Meter=Image

Post by balala »

A few things which should be checked:
Seven wrote: February 7th, 2022, 4:37 am Hey everyone ive been coding my first skin and I hit a wall. I started by building a clock and the code works for the analog time and date, but surrounding the analog font for my clock I designed an image that I want to code a rotator for. Its just a simple abstract circle design. My issue is when I use

Code: Select all

[MeterImage]
Meter=Image
ImageName=#@#images\filename.jpg
X=x
Y=y
There is a difference between the path and name of the image in this and in the next code you've posted (here it is ImageName=#@#images\filename.jpg, in the next code it's ImageName=#@#Pictures\Outter.png). Make sure to use the proper path and name (hope you've used the correct ones, however make sure you did).
Where would you like to see the above Image meter on your skin? Because X=x and Y=y options, in these form, don't really make sense in Rainmeter. You either have to use certain numeric values, variables or section variables.
Seven wrote: February 7th, 2022, 4:37 am Ive triple checked that the image is in my @recourses folder inside a folder named "images".
The name of that folder is @Resources, not @recourses. Not too probably that in the config you've used the incorrect folder name, however worth a check.

Finally if you didn't do none of the above mistakes, you indeed should pack the config (if you don't know how to pack it, see death.crafter's above reply) and upload the package here, to can check it. As death.crafter and Active Color said, there is no way anyone to find where the problem is, if we don't have the package.
Seven
Posts: 9
Joined: February 7th, 2022, 4:14 am

Re: Code issue for Meter=Image

Post by Seven »

Its probably the spelling issue in resources the first part of this post was just general code with exempt details thats all since its such a general question. I figured it was a typo or something
Seven
Posts: 9
Joined: February 7th, 2022, 4:14 am

Re: Code issue for Meter=Image

Post by Seven »

Thanks for all your help everyone