It is currently June 16th, 2021, 10:31 am

Trying to add a child meter for volume percent - Custom plugin [solved]

Help with creating, editing & fixing problems with skins
User avatar
CodeCode
Posts: 390
Joined: September 7th, 2020, 2:24 pm

Trying to add a child meter for volume percent - Custom plugin [solved]

Post by CodeCode »

Hello
I have brought this skin to the forums before, and now have a new quandry;

There are any number of fields and each has the name of the app producing output.
I would like to have the percentage of each field show after the app name.

The custom part is really beyond my understanding, so there may be several ways of accomplishing this - or none.

Here is the whole package, as modded so far.
AppVolumeMod_xx.xx.rmskin
Thanks for any advice or suggestions.
You do not have the required permissions to view the files attached to this post.
Last edited by CodeCode on June 7th, 2021, 6:47 am, edited 1 time in total.
ƈǟռ'ȶ ʄɨӼ ɨȶ ɨʄ ɨȶ ǟɨռ'ȶ ɮʀօӄɛ - ʊռʟɛֆֆ ɨȶ ɨֆ ɨռ ƈօɖɛ.
User avatar
death.crafter
Posts: 175
Joined: April 24th, 2021, 8:13 pm

Re: Trying to add a child meter for volume percent - Custom plugin

Post by death.crafter »

CodeCode wrote: June 7th, 2021, 2:30 am Hello
I have brought this skin to the forums before, and now have a new quandry;

There are any number of fields and each has the name of the app producing output.
I would like to have the percentage of each field show after the app name.

The custom part is really beyond my understanding, so there may be several ways of accomplishing this - or none.

Here is the whole package, as modded so far.
AppVolumeMod_xx.xx.rmskin

Thanks for any advice or suggestions.
AppVolblah_kgb.rmskin
You do not have the required permissions to view the files attached to this post.
from the Realm of Death
User avatar
CodeCode
Posts: 390
Joined: September 7th, 2020, 2:24 pm

Re: Trying to add a child meter for volume percent - Custom plugin

Post by CodeCode »

death.crafter wrote: June 7th, 2021, 5:28 am AppVolblah_kgb.rmskin
That Rocks death.crafter.
I just didnt understand how to add another SK - well I tried but got nothing.

What does the plugin do with the %% values, that seems to be the key that I did not understand with the naming convention khanhas designed.

I really appreciate the help.
ƈǟռ'ȶ ʄɨӼ ɨȶ ɨʄ ɨȶ ǟɨռ'ȶ ɮʀօӄɛ - ʊռʟɛֆֆ ɨȶ ɨֆ ɨռ ƈօɖɛ.
User avatar
death.crafter
Posts: 175
Joined: April 24th, 2021, 8:13 pm

Re: Trying to add a child meter for volume percent - Custom plugin

Post by death.crafter »

CodeCode wrote: June 7th, 2021, 6:40 am What does the plugin do with the %% values, that seems to be the key that I did not understand with the naming convention khanhas designed.
It's not something khanhas designed. It's a commonly implemented trick in lua scripting(I think MarcoPixel started it with MonsterCat, but not so sure). The options are just strings.

If you look into lua you'll see something like this sub("%%%%", i). Here lua reads the strings and the %% present are replaced by index('i' here) so ultimately you get an meter or measures for each iteration of a loop(while used here). Each S in script measure defines a section and S(n)K(n) it's keys and values.

You get the gist.
from the Realm of Death
User avatar
CodeCode
Posts: 390
Joined: September 7th, 2020, 2:24 pm

Re: Trying to add a child meter for volume percent - Custom plugin

Post by CodeCode »

death.crafter wrote: June 7th, 2021, 6:58 am It's not something khanhas designed. It's a commonly implemented trick in lua scripting(I think MarcoPixel started it with MonsterCat, but not so sure). The options are just strings.

If you look into lua you'll see something like this sub("%%%%", i). Here lua reads the strings and the %% present are replaced by index('i' here) so ultimately you get an meter or measures for each iteration of a loop(while used here). Each S in script measure defines a section and S(n)K(n) it's keys and values.

You get the gist.
Very cool just the same. I did peruse the lua, many times. Tried to make sense of the tricky bits, like the %%%%'s appearing in a for loop, but didnt quite realise it was just that, an iteration variable for different versions of the same measure, or meter.
ƈǟռ'ȶ ʄɨӼ ɨȶ ɨʄ ɨȶ ǟɨռ'ȶ ɮʀօӄɛ - ʊռʟɛֆֆ ɨȶ ɨֆ ɨռ ƈօɖɛ.