Zernoxi wrote:I just realized that there is no @Resources/variables.inc only @Resources/variables.ini...
As fonpaolo said, there are no differences between the .ini and .inc file, just have to be careful how do you write the name of the file into another code, if you have to include it.
Zernoxi wrote:I'm actually so dumb
Can you tell step-by-step on how to do it?
Ok, let's start all over again. Remove the existing Monstercat Visualizer skin, download it again and reinstall it. Make all needed settings (setting up for example the used player). Just to can start from the beginning.
Now load either the
monstercat-visualizer\Song Information\Left.ini, or the
monstercat-visualizer\Song Information\Right.ini skin.
Now go to the
monstercat-visualizer\@Resources\include\MeasureStyling.inc file, open it and remove the IfEqualValue, IfEqualAction, IfBelowValue and IfBelowAction options of the [MeasureClipSongInformation] measure. Also remove the ClipString, ClipStringW and ClipStringH options of the [MeterArtist] and [MeterTrack] meters from the Left.ini (or Right.ini, or both).
Add immediately after the [Variables] section name, the previously mentioned three variables (in the
@Resources\variables.ini file):
Code: Select all
[Variables]
Angle=...
RotationCenterX=...
RotationCenterY=...
...
Don't remove or modify any of the existing variables. Take care to add the appropriate numeric values to each of the above three variables.
Add the following TransformationMatrix option to both meters, [MeterArtist] and [MeterTrack]:
TransformationMatrix=(Cos(Rad(#Angle#)));(-Sin(Rad(#Angle#)));(Sin(Rad(#Angle#)));(Cos(Rad(#Angle#)));(#RotationCenterX#-#RotationCenterX#*Cos(Rad(#Angle#))-#RotationCenterY#*Sin(Rad(#Angle#)));(#RotationCenterY#+#RotationCenterX#*Sin(Rad(#Angle#))-#RotationCenterY#*Cos(Rad(#Angle#))). Also add the
DynamicVariables=1 option to the same meters. The above TransformationMatrix option, taking into account the below fact, rotates the meters.
On the other hand, if you'd like to rotate the meters around the center of the skin, replace the added TransformationMatrix option with the following one:
TransformationMatrix=(Cos(Rad(#Angle#)));(-Sin(Rad(#Angle#)));(Sin(Rad(#Angle#)));(Cos(Rad(#Angle#)));((#CURRENTCONFIGWIDTH#/2)-(#CURRENTCONFIGWIDTH#/2)*Cos(Rad(#Angle#))-(#CURRENTCONFIGHEIGHT#/2)*Sin(Rad(#Angle#)));((#CURRENTCONFIGHEIGHT#/2)+(#CURRENTCONFIGWIDTH#/2)*Sin(Rad(#Angle#))-(#CURRENTCONFIGHEIGHT#/2)*Cos(Rad(#Angle#))). Unfortunately in this case you can't use the first TransformationMatrix, because with that one, if you'd like to rotate the meters around the center of the skin, you should have to set the RotationCenterX and RotationCenterY variables to
RotationCenterX=(#CURRENTCONFIGWIDTH#/2) and
RotationCenterY=(#CURRENTCONFIGHEIGHT#/2), but this won't work.
And there is just one more thing to do (which I talked about above). The IfTrueAction options of the [CalcColors] measure (within the
monstercat-visualizer\@Resources\include\MeasureStyling.inc file) sets the DynamicVariables option of the meters of the skin to 0. I'm not sure why is this written so (I'm not the author of the skin), but at a quick test, I figured out that maybe this setting can be neglected. As I said, I'm not sure this won't cause some other problems, this is something you'll have to test. You could try to rewrite all occurrences of the
[!SetOptionGroup GroupDynamicColors DynamicVariables "0"] bang with
[!SetOptionGroup GroupDynamicColors DynamicVariables "1"], in all IfTrueAction options of the previously mentioned measure.
Now depending on the value of the Angle variable, the meters probably are going partially outside of the skin. To fix this, add certain numeric values to the X and Y options of the [MeterArtist] meter (don't have to add to the [MeterTrack] as well, because it is positioned relatively to the first meter). I added 50 to X and 100 to Y and these seem enough:
Code: Select all
[MeterArtist]
...
X=(#BarGap#*#ScaleVisualizer#+50)
Y=(30*#ScaleSongInformation#+100)
There will be needed some attempts, to find the best values.
If needed, you can also add a SkinWidth and a SkinHeight options to the [Rainmeter] section of the skin, to set the size of the skin. Tries will also be needed, to find the best values, for these variables.
Please let me know if you succeeded to make the needed updates of the code, as I described above.