Author Topic: Help with XML code  (Read 2086 times)

Tsunamix

  • Freak
  • *
  • Posts: 778
  • Karma: 16
  • Check out my work - https://goo.gl/m4NFlm
    • View Profile
    • The home of Tsunamods
Help with XML code
« on: 2016-09-20 23:10:51 »
I dunno what im doing wrong but i know im close, i want specific folders to be on if certain options are selected. Heres what i have:

Code: [Select]
<ModFolder Folder="Voices + Subtitles + Auto" >
<ActiveWhen>
<Option>Voices = 1</Option>
<Option>Subtitles = 1</Option>
<Option>Auto Text = 1</Option>
</ActiveWhen>
</ModFolder>

<ModFolder Folder="Voices + Subtitles" >
<ActiveWhen>
<Option>Voices = 1</Option>
<Option>Subtitles = 1</Option>
<Option>Auto Text = 0</Option>
</ActiveWhen>
</ModFolder>

<ModFolder Folder="Voices + Auto" >
<ActiveWhen>
<Option>Voices = 1</Option>
<Option>Subtitles = 0</Option>
<Option>Auto Text = 1</Option>
</ActiveWhen>
</ModFolder>

<ModFolder Folder="Voices" >
<ActiveWhen>
<Option>Voices = 1</Option>
<Option>Subtitles = 0</Option>
<Option>Auto Text = 0</Option>
</ActiveWhen>
</ModFolder>
« Last Edit: 2016-09-20 23:14:24 by Tsunamix »

Tsunamix

  • Freak
  • *
  • Posts: 778
  • Karma: 16
  • Check out my work - https://goo.gl/m4NFlm
    • View Profile
    • The home of Tsunamods
Re: Help with XML code
« Reply #1 on: 2016-09-21 19:07:21 »
If anyone can solve this ill be very grateful

EQ2Alyza

  • 7th Heaven Crew
  • Global moderator
  • No life
  • *
  • Posts: 3077
  • Karma: 214
  • Dilly-Dally Shilly-Shally
    • View Profile
    • EQ2Alyza - YouTube Channel
Re: Help with XML code
« Reply #2 on: 2016-09-22 10:17:22 »
http://forums.qhimm.com/index.php?topic=14490.msg216843#msg216843

Try reading about the and/or functions to go along with the ActiveWhen tags.

Tsunamix

  • Freak
  • *
  • Posts: 778
  • Karma: 16
  • Check out my work - https://goo.gl/m4NFlm
    • View Profile
    • The home of Tsunamods
Re: Help with XML code
« Reply #3 on: 2016-09-22 15:13:16 »
I never knew that page existed? Thank you so much :D

Tsunamix

  • Freak
  • *
  • Posts: 778
  • Karma: 16
  • Check out my work - https://goo.gl/m4NFlm
    • View Profile
    • The home of Tsunamods
Re: Help with XML code
« Reply #4 on: 2016-09-28 23:07:24 »
Okay well the original problem is solved but instead of making a new post this comes under the same category.

Can i have a separate xml file that is not in the root folder?
Ultrasound uses many xmls and right now they have to all be in the root.
I CAN live with this but would be easier for convenience sake.

On a side note i also believe one of the dll's make this impossible,
I tried looking inside and did find 1 or 2 "Root" references i just don't know how to only change that part.

ficedula

  • No life
  • *
  • Posts: 2179
  • Karma: 40
    • View Profile
    • http://www.ficedula.co.uk
Re: Help with XML code
« Reply #5 on: 2016-09-29 06:38:42 »
Okay well the original problem is solved but instead of making a new post this comes under the same category.

Can i have a separate xml file that is not in the root folder?
Ultrasound uses many xmls and right now they have to all be in the root.
I CAN live with this but would be easier for convenience sake.

No, that isn't possible right now. It's more likely that I'll change the Ultrasound plugin in a future version, than change the way 7H works.

Tsunamix

  • Freak
  • *
  • Posts: 778
  • Karma: 16
  • Check out my work - https://goo.gl/m4NFlm
    • View Profile
    • The home of Tsunamods
Re: Help with XML code
« Reply #6 on: 2016-10-25 12:38:56 »
How do i make movies go over using 7H? I have them named properly in the correct format.
Added movies to the extra folders list in 7H and coded the same way as the existing movies iro.

Which i also could not get to work