Blackscorp_81 wrote: ↑Tue, 18. Dec 18, 20:09Is the wight really needed? because there are multiple entries without... thought that it equalizes chances then... like 50/50 with 2 ships.
Correct. Adding multiple entries without specifying weight means each ship gets an equal chance of getting picked.
Re: sel path with '//' versus '/', my diff patching is rusty but, if i remember correctly, providing two slashes looks for the shallowest instance of the string you specified. A single slash would denote a direct child node. No slash denotes root. So, in your example:
sel="/groups" would look for a node named groups that is a subnode of an unnamed root node, which doesn't exist.
sel="//groups" would look for the shallowest instance of a node called "groups", in this instance, the file's root node.
sel="groups" would look for a root node called "groups", which the file does have.
so:
sel="/groups/group[@name='arg_carrier_xl'] would not work
sel="groups/group[@name='arg_carrier_xl'] would work
sel="//groups/group[@name='arg_carrier_xl'] would work
sel="//group[@name='arg_carrier_xl']" would work AS LONG AS <group name="arg_carrier_xl"> is unique in the file.
Personally, i prefer the last notation. Easier to read once the number of patches goes up.