Solved ? $PARAM not working with constants ?
#1
Noticed that $PARAM is not working for constants :

According the wiki : http://kodi.wiki/view/Skinning_Manual#Us...n_includes

Quote:Any appropriate value can be passed as parameter in the new include call, including $INFO labels, $LOCALIZE, $VARs, constants, etc. Empty string (value="") can also be passed, for example to override a non-empty default value set in the include definition.

Code:
<constant name="Value1">200</constant>
<constant name="Value2">400</constant>

<include name="Constant1Test" condition="Mycondition1">
     <param name="left" value="Value1" />
</include>

<include name="Constant1Test" condition="Mycondition2">
     <param name="left" value="Value2" />
</include>

But this doesnl't work :

Code:
<include name="Constant1Test">
     <control type="image">
          <left>$PARAM[left]</left>
          ...
     </control>
</include>

Can someone please confirm ? (Using KRYPTON)

PS : this is a summary of a whole process using cascading params, so just FYI using the following is not relevant in my case (but works) :

Code:
<include name="Constant1Test" condition="Mycondition1">
     <left>Value1</left>
</include>

<include name="Constant1Test" condition="Mycondition2">
     <left>Value2</left>
</include>

Thx
[Skin] KOver - V1.1.0 Stable (Repo version)
[WIP] ReKOver - Skinning tool project

If I've been helpful or you like my work, hit "THANK USER" button ;) ...
Reply
#2
Sry to bump but do I have to open a trac ticket for this or is this normal behavior ? Tried everything but I still don't get it working.
[Skin] KOver - V1.1.0 Stable (Repo version)
[WIP] ReKOver - Skinning tool project

If I've been helpful or you like my work, hit "THANK USER" button ;) ...
Reply
#3
works ok on my end.

you're not mixing up include definitions and include references are you?
the way you've quoted your code above makes me think so.
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
#4
(2016-03-31, 01:26)ronie Wrote: works ok on my end.

you're not mixing up include definitions and include references are you?
the way you've quoted your code above makes me think so.

Thx for testing Ronie. That's at least good news.
I don't think I mixed up defs and refs ... I tried replacing the constant name in def by a numeric value and it worked. Also, tried to place the constant name directly in ref and worked too. That's why it made me think about $PARAM handling in pos / size tags.

So I will revert back my changes to make another try ... and rewrite it from scratch in Notepad instead of sublimetext.
Will keep you in touch then.
[Skin] KOver - V1.1.0 Stable (Repo version)
[WIP] ReKOver - Skinning tool project

If I've been helpful or you like my work, hit "THANK USER" button ;) ...
Reply
#5
@Jayz2K

Do you have any expluded lines such "<!-- Description -->" in the $PARAMs ?
They will break the $PARAM function for some reasons.
Main: Lancool II Mesh  - Ryzen 9 5900x - MSI x570 Unify - Zotac RTX 3080 AMP HOLO - 32GB Trident Z Neo 3600 CL16 -  EVO 960 M.2 250GB / EVO 940 250GB / MX100 512GB /  Crucial P1 2TB / WD Blue 3D Nand 2TB 
Sound: Saxx AS30 DSP - Beyer Dynamic Custom One Pro 
TV: Nvidia Shield 2019 Pro- Adalight 114x LEDs - Sony 65XG9505 - Kodi / Emby - Yamaha RX-V683 - Heco Victa 700/101/251a + Dynavoice Magic FX-4
Server: i3 Skylake - 8GB - OMV4 - 22TB Storage
Reply
#6
(2016-03-31, 10:43)sualfred Wrote: @Jayz2K

Do you have any expluded lines such "<!-- Description -->" in the $PARAMs ?
They will break the $PARAM function for some reasons.

Yes I did ...

So made a full rewrite with Notepad+ and seems to work now. It's one more time a weird bug.
I was about to give up, so thanks for taking time to test on your side and confirming it's working.

Sooo now, just missing a $CONSTANT[] infolabel to retrieve the value Smile
[Skin] KOver - V1.1.0 Stable (Repo version)
[WIP] ReKOver - Skinning tool project

If I've been helpful or you like my work, hit "THANK USER" button ;) ...
Reply

Logout Mark Read Team Forum Stats Members Help
? $PARAM not working with constants ?0