Can you stack children?!
-
No, seriously, can you?! In XML, that is.
Like:
<Item> <parent>vehicles_poltax_interior</parent> <child>911turbos</child> <child>rmodmustang</child> <child>rmodm4</child> <child>rmodskyline</child> </Item>
Not getting a speedometer in a car, so I figured maybe they all need a separate parent Item, after all.
-
@meimeiriver I would very much doubt it, parent child relationships use rely on a one of each type of situation. So when the XML parser finds a parent, it will take the next entry as a child. If it finds another child, it will probably ignore it, because the previous parent has already been read and dealt with.
-
@LeeC2202 said in Can you stack children?!:
@meimeiriver I would very much doubt it, parent child relationships use rely on a one of each type of situation. So when the XML parser finds a parent, it will take the next entry as a child. If it finds another child, it will probably ignore it, because the previous parent has already been read and dealt with.
Like I said, in chat, I thought I was being neat, grouping them all together; but I guess I misunderstood the assignments.
So, if 2 cars use the same parent, I will just create 2 identical parent Items then. Bit ugly, but needed I guess.
Thx again!
-
@meimeiriver
You will find situations where there are multiple items in that section but it will be the same child, with multiple parents. You might have an entry for the interior and another for the vehshare.Even then, there will be an entry for each.Edit: Actually... looking back through my combined packs... that's not right, sorry. I thought I remembered that in one car but it wasn't, it was a mazda rx7 that had a variation, so it had this... I've seen that much XML data in the past few days, I can't remember what's what.
Sorry for the confusion.
<Item> <parent>vehicles_banshee_interior</parent> <child>rx7tunable</child> </Item> <Item> <parent>vehicles_banshee_interior</parent> <child>rx7tunable2</child> </Item>
-
@LeeC2202 You the man!
Really, your help is greatly appreciated, as ever!
-
@LeeC2202 Yup, you were right!
Speedometer is back now!