It is currently April 27th, 2024, 11:40 pm

Can't get MSIAfterburner related script to work on new machine (works fine on old)

Get help with installing and using Rainmeter.
NeilFawcett
Posts: 14
Joined: April 20th, 2016, 8:29 pm

Can't get MSIAfterburner related script to work on new machine (works fine on old)

Post by NeilFawcett »

I have a script on my old Windows 10 machine (with an NVidia 1070) that lists some measures from the GPU:-

Code: Select all

;////////////////////////////////////////
;  GPU
;////////////////////////////////////////

[Rainmeter]
BackgroundMode=1
Update=1000

[Variables]
Width=418   ;294
WidthM2=416 ;292
BarWidth=197 ;135

FontNameTitle=Roboto
FontName=Roboto Lt
FontColour=FFFFFFFF
GraphColourLine=2196F3FF
GraphTempColourLine=FF0000FF
GraphColourHistogram=2196F360
GraphColorHistogramSolid=00000050
FontSizeTitle=11
FontSizeDesc=8
FontSize=9
FontSize2=8

TitleSolid=202020FF

Indent1=5
Indent1b=8
Indent2=10
Indent4=202 ;140

Indent11=212 ;150
Indent11b=215 ;153
Indent12=217 ;155
Indent14=409 ;285

Indent99=414 ;290

GraphH=50
GraphW=200 ;138
GraphY=45r
GraphTY=15r
GraphV=9

[Background]
Meter=String
X=0
Y=0
W=#Width#
H=167
SolidColor=#TitleSolid#

[Background2]
Meter=String
X=1
Y=1
W=#Widthm2#
H=165
SolidColor=243444FF


;////////////////////////////////////////
;  Title
;////////////////////////////////////////

[TitleBackground]
Meter=String
X=0
Y=0
W=#Width#
H=25
SolidColor=#TitleSolid#

[GPUTitle]
Meter=STRING
X=3
Y=4
FontColor=#FontColour#
FontSize=#FontSizeTitle#
FontFace=#FontNameTitle#
AntiAlias=1
Text="GPU"

[GPUName]
Meter=STRING
X=#Indent99#
Y=10
FontColor=#FontColour#
FontSize=#FontSizeDesc#
FontFace=#FontNameTitle#
AntiAlias=1
StringAlign=Right
Text="MSI Gaming X GTX 1070"

;////////////////////////////////////////
;  Indent
;////////////////////////////////////////

[Indent]
Meter=String
X=0
Y=#GraphV#r

;////////////////////////////////////////
;  GPU Usage
;////////////////////////////////////////

[MeasureFanSpeed]
Measure=Plugin
Plugin=Plugins\MSIAfterburner.dll
DataSource=Fan speed
MinValue=0
MaxValue=100

[MeasureGPUUsage]
Measure=Plugin
Plugin=Plugins\MSIAfterburner.dll
DataSource=GPU usage
MinValue=0
MaxValue=100

[MeasureGPUTemp]
Measure=Plugin
Plugin=Plugins\MSIAfterburner.dll
DataSource=GPU temperature

[MeasureGPUTempMax]
Measure=Calc
Formula=(Max(MeasureGPUTempMax, MeasureGPUTemp))

[GPUUsageGraph]
Meter=Histogram
MeasureName=MeasureGPUUsage
X=#Indent1#
Y=13r
H=#GraphH#
W=#GraphW#
SolidColor=#GraphColorHistogramSolid#
PrimaryColor=#GraphColourHistogram#
AntiAlias=1

[GPUUsageLine]
Meter=Line
;MeasureName=MeasureFanSpeed
MeasureName=MeasureGPUTemp
MeasureName2=MeasureGPUUsage
X=#Indent1#
Y=0r
H=#GraphH#
W=#GraphW#
LineCount=2
;LineColor=009900FF
LineColor=#GraphTempColourLine#
LineColor2=#GraphColourLine#
AntiAlias=1
AntiAlias2=1

[MeasureGPUFPS]
Measure=Plugin
Plugin=Plugins\MSIAfterburner.dll
DataSource=Framerate
MinValue=0
MaxValue=80

[GPU%]
MeasureName=MeasureGPUUsage
Meter=String
X=#Indent2#
Y=0r
FontColor=#FontColour#
FontSize=#FontSize#
FontFace=#FontName#
AntiAlias=1
NumOfDecimals=0
Text="GPU: %1%"

[GPUTemp]
MeasureName=MeasureGPUTemp
MeasureName2=MeasureGPUTempMax
Meter=String
X=#Indent4#
Y=0r
FontColor=#FontColour#
FontSize=#FontSize#
FontFace=#FontName#
AntiAlias=1
StringAlign=RIGHT
Text="%1 C (%2)"

[GPUFPSGraph]
Meter=Histogram
MeasureName=MeasureGPUFPS
X=#Indent11#
Y=0r
H=#GraphH#
W=#GraphW#
SolidColor=#GraphColorHistogramSolid#
PrimaryColor=#GraphColourHistogram#
AntiAlias=1

[GPUFPSLine]
Meter=Line
MeasureName=MeasureGPUFPS
X=#Indent11#
Y=0r
H=#GraphH#
W=#GraphW#
LineCount=1
LineColor=#GraphColourLine#
AntiAlias=1

[GPUFPS]
MeasureName=MeasureGPUFPS
Meter=String
X=#Indent12#
Y=0r
FontColor=#FontColour#
FontSize=#FontSize#
FontFace=#FontName#
AntiAlias=1
Text="FPS: %1"


[GPUUsageGraphUnderscore]
Meter=String
X=#Indent1#
Y=#GraphH#r
H=1
W=#GraphW#
SolidColor=#GraphColorHistogramSolid#

[GPUFPSGraphUnderscore]
Meter=String
X=#Indent11#
Y=0r
H=1
W=#GraphW#
SolidColor=#GraphColorHistogramSolid#

;////////////////////////////////////////
;  Ram Usage / Fan Speed
;////////////////////////////////////////

[IndentRAM]
Meter=String
X=0
Y=15r

[MeasureUsedVRAM]
Measure=Plugin
Plugin=Plugins\MSIAfterburner.dll
DataSource=Memory usage
MinValue=0
MaxValue=8192					;***

[UsedVRAM%Title]
Meter=String
X=#Indent1#
Y=0#r
FontColor=#FontColour#
FontSize=#FontSize#
FontFace=#FontName#
AntiAlias=1
Text="RAM Usage:"

[UsedVRAM%]
MeasureName=MeasureUsedVRAM
Meter=String
X=#Indent4#
Y=0r
FontColor=#FontColour#
FontSize=#FontSize#
FontFace=#FontName#
AntiAlias=1
AutoScale=1
NumOfDecimals=0
Percentual=1
StringAlign=Right
Text="%1%"

[FanSpeedTitle]
Meter=String
X=#Indent11#
Y=0r
FontColor=#FontColour#
FontSize=#FontSize#
FontFace=#FontName#
AntiAlias=1
Text="Fan Speed:"

[FanSpeed%]
MeasureName=MeasureFanSpeed
Meter=String
X=#Indent14#
Y=0r
FontColor=#FontColour#
FontSize=#FontSize#
FontFace=#FontName#
AntiAlias=1
NumOfDecimals=0
StringAlign=Right
Text="%1%"

[BarVRam]
Meter=Bar
MeasureName=MeasureUsedVRAM
X=#Indent1b#
Y=17r
W=#BarWidth#
H=7 ;6
BarColor=#GraphColourHistogram#
SolidColor=#GraphColorHistogramSolid#
BarOrientation=Horizontal

[BarFanSpeed]
Meter=Bar
MeasureName=MeasureFanSpeed
X=#Indent11b#
Y=0r
W=#BarWidth#
H=7 ;6
BarColor=#GraphColourHistogram#
SolidColor=#GraphColorHistogramSolid#
BarOrientation=Horizontal


;////////////////////////////////////////
;  GPU Detail
;////////////////////////////////////////

[IndentGPU]
Meter=String
X=0
Y=7r

[MeasureGPUSpeed]
Measure=Plugin
Plugin=Plugins\MSIAfterburner.dll
DataSource=Core clock

[GPUSpeedTitle]
Meter=String
X=#Indent1#
Y=14r ;15r
FontColor=#FontColour#
FontSize=#FontSize#
FontFace=#FontName#
AntiAlias=1
Text="Core Speed:"

[GPUSpeed]
Meter=String
MeasureName=MeasureGPUSpeed
X=#Indent4#
Y=0r
FontColor=#FontColour#
FontSize=#FontSize#
FontFace=#FontName#
AntiAlias=1
StringAlign=Right
Text="%1MHz"



;////////////////////////////////////////
;  VRAM Detail
;////////////////////////////////////////

[MeasureCoreSpeed]
Measure=Plugin
Plugin=Plugins\MSIAfterburner.dll
DataSource=Core clock
MinValue=140					;***
MaxValue=1970					;***

[MeasureVRAMSpeed]
Measure=Plugin
Plugin=Plugins\MSIAfterburner.dll
DataSource=Memory clock
MinValue=400					;***
MaxValue=4000					;***

[VRAMSpeedTitle]
Meter=String
X=#Indent11#
Y=0r
FontColor=#FontColour#
FontSize=#FontSize#
FontFace=#FontName#
AntiAlias=1
Prefix="RAM Speed:"

[VRAMSpeed]
Meter=String
MeasureName=MeasureVRAMSpeed
X=#Indent14#
Y=0r
FontColor=#FontColour#
FontSize=#FontSize#
FontFace=#FontName#
AntiAlias=1
StringAlign=Right
Text="%1MHz"

[BarCoreSpeed]
Meter=Bar
MeasureName=MeasureCoreSpeed
X=#Indent1b#
Y=17r
W=#BarWidth#
H=7 ;6
BarColor=#GraphColourHistogram#
SolidColor=#GraphColorHistogramSolid#
BarOrientation=Horizontal

[BarVRAMSpeed] 
Meter=Bar
MeasureName=MeasureVRAMSpeed
X=#Indent11b#
Y=0r
W=#BarWidth#
H=7 ;6
BarColor=#GraphColourHistogram#
SolidColor=#GraphColorHistogramSolid#
BarOrientation=Horizontal
However, but on a new Windows 11 machine (Nvidia 4070) this just won't work.

I've copied the same MSIAfterBurner.dll into plugins. And can see it listed in About>Plugins (Version 2 Nick Connors).

If I look at logs I can see Rainmeter saying it's loaded that dll.

If I look at the skin in about I can see all the nine measures sitting there as 0.


I've got MSI Afterburner running and RivaTunerStatistics...


Any idea what might be up? Might it be the MSIAfterBurner.dll isn't compatible with an NVidia 4070?

ps: In the back of my mind something says a setting on RivaTunerStatistics needs enabling?
NeilFawcett
Posts: 14
Joined: April 20th, 2016, 8:29 pm

Re: Can't get MSIAfterburner related script to work on new machine (works fine on old)

Post by NeilFawcett »

I noticed that the MSIAfterburner column names seem to have changed between the old machine and new one...

So for example I changed DataSource=GPU temperature
to
DataSource=GPU2 temperature
and that seems to now work...

So I'll work my way down the fields to get the new values...
User avatar
Yincognito
Rainmeter Sage
Posts: 7178
Joined: February 27th, 2015, 2:38 pm
Location: Terra Yincognita

Re: Can't get MSIAfterburner related script to work on new machine (works fine on old)

Post by Yincognito »

NeilFawcett wrote: March 3rd, 2024, 8:23 pmMight it be the MSIAfterBurner.dll isn't compatible with an NVidia 4070?
It's a possibility, but first let's just eliminate the other potential culprits.
NeilFawcett wrote: March 3rd, 2024, 8:23 pmps: In the back of my mind something says a setting on RivaTunerStatistics needs enabling?
It's a possibility as well, albeit it's more about "disabling" a setting. This is unlikely though, given that measures yield 0 in the log.
NeilFawcett wrote: March 3rd, 2024, 8:56 pm I noticed that the MSIAfterburner column names seem to have changed between the old machine and new one...
I think you're getting closer. Take a look here and let me know if that sample skin works for you. If so, read about some of the details that could have been the problem, in the same post.
Profiles: Rainmeter ProfileDeviantArt ProfileSuites: MYiniMeterSkins: Earth
NeilFawcett
Posts: 14
Joined: April 20th, 2016, 8:29 pm

Re: Can't get MSIAfterburner related script to work on new machine (works fine on old)

Post by NeilFawcett »

Yeh, I carefully went thru updating all the data sources to the new names now offered in MSI Afterburner on the new machine, and all's working :great:
User avatar
Yincognito
Rainmeter Sage
Posts: 7178
Joined: February 27th, 2015, 2:38 pm
Location: Terra Yincognita

Re: Can't get MSIAfterburner related script to work on new machine (works fine on old)

Post by Yincognito »

NeilFawcett wrote: March 3rd, 2024, 9:27 pm Yeh, I carefully went thru updating all the data sources to the new names now offered in MSI Afterburner on the new machine, and all's working :great:
:thumbup:
Profiles: Rainmeter ProfileDeviantArt ProfileSuites: MYiniMeterSkins: Earth