WizardMarnok Posted April 6, 2021 Share Posted April 6, 2021 When I try to setattribute on an existing record to change the count to "all", in loot.xml, the game rejects it on loading. I can create a new record with count="all", but if I remove and re-add an existing record the game also red-inks me on loading because the record is momentarily absent. Is there some way to do this? Link to comment Share on other sites More sharing options...
Telric Posted April 6, 2021 Share Posted April 6, 2021 (edited) I don't think you'd use a setattribute. I believe that's only for adding some new attribute to a node. You'd want to do something like this: <set xpath="/lootcontainers/lootcontainer[@id="256"]/@count">all</set> as an example. Edited April 6, 2021 by Telric (see edit history) 1 Link to comment Share on other sites More sharing options...
WizardMarnok Posted April 8, 2021 Author Share Posted April 8, 2021 Thanks, it was actually "set" I was having the problem with too, but I went through a barrage of attempts to fix it and got lost along the way, seeing your example made me realise what I'd done wrong! NOW though, it works and the loot.xml in the configsdump shows the "all" values where I want them, but the game still pops the console open on loading the game and complains about the "all" in red ink. (This was what originally started me trying other things and ending up in the situation which prompted this post) ERR XML loader : Loading and parsing 'loot.xlm' failed Exception : Parsing error count 'all' It's doing the changes I want, but with an intrusive exception I'd like to avoid. Is there some way to do this and prevent the exception? This happens with 'setattribute' when adding a count to an entry which did not have one, and 'set' when changing an existing count. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now