Full Version : Xmlfind returning nothing?
xmlspawner >>Troubleshooting >>Xmlfind returning nothing?


<< Prev | Next >>

Xarlon- 09-30-2006
I've been updating items on the shard I staff on, and what I've been doing is using [xmlfind with the property test to help me locate the old items so I'll know what to change when I compare them to the new items.

I did the following command to find the old value...
[global get attributes.bonusstr where cloakoffortitude
and it returned
bonusstr = 25 (243)
bonusstr = 50 (13)

so 13 of them had been exchanged manually.

Anyways... when I do the following command...
[xmlfind cloakoffortitude
and hit the search button(with no props check even), it returns NOTHING. ohmy.gif

just 5 minutes ago I had used the [xmlfind command to help me find ringofrelaxation and I even did a props check for attributes.manaregen = 15 and it returned all 184 of them just fine.


maybe we have an old version of the xmlspawner files?... how would I check the version from inside the game? (I don't have ftp access)


PS~ I even tried searching for the ring again... and it still returned nothing... it's like it's stuck with an empty list.

Vladimir- 10-01-2006
The way you are searching for the item seems a bit strange to me tongue.gif

[xmlfind and the gump pops up
In the "type" field you should already have xmlspawner... replace that with cloakoffortitude (Or whatever the [gettype of your item is) then tick the name block and enter Cloak of Fortitude.... Then make sure the "Int" button is ticked so that you search for internal items aswell and hit search

I've noticed that somtimes you need to hit search twice before it comes up with the results...

Hope that helps

Xarlon- 10-01-2006
when you use [xmlfind <itemtype> in automatically puts the itemtype in the type field so you don't have to delete xmlspawner and then put in the type you're looking for.

making it search for the name would only limit the results, and I'm not sure of it's case sensitive when comparing text strings. I was looking for ANY occurance of the item. I didn't want to limit anything.

I even just typed [xmlfind and hit the search button without changing anything to find all the xmlspawners... and nothing showed up. I clicked about 5 times before giving up.



5 or 6 minutes after I posted the first post... the shard crashed... once it rebooted the xmlfind command worked 100% again. (though there are those times when the button does need to be clicked a second time)



I just think it's something that might need to be looked into... I love the xmlfind command... after learning to use it, it's almost become a necessity.

ArteGordon- 10-01-2006
when you hit the Search button in xmlfind it runs the search in a separate thread. That way the server can immediately continue doing other things without having to wait for the search to be completed.
Depending on the load, how complicated the search is, etc. that search thread might take some time to finish, so even if it doesnt return right away, it is still working.
If it is completing the search, but just isnt finding anything, then that would be a separate issue.

Xarlon- 10-03-2006
I figured it was something like that... but I was thinking the gump wouldn't re-open until after the search completed. When I was searching, the gump would re-open almost immediately, and would be empty. [xmlfind didn't start working again until the shard crashed and rebooted itself.

ArteGordon- 10-03-2006
QUOTE (Xarlon @ October 03, 2006 03:48 pm)
I figured it was something like that... but I was thinking the gump wouldn't re-open until after the search completed. When I was searching, the gump would re-open almost immediately, and would be empty. [xmlfind didn't start working again until the shard crashed and rebooted itself.

ok, then it is completing the search and just not finding anything since, as you mentioned, the gump will not reopen until the search is completed.

Have you been able to reproduce this or was it just a one-time problem?

Xarlon- 10-03-2006
It hasn't happened since that crash.

Sometimes it won't return things on the first attempt though... It'll open the gump, and it'll be empty... but then I hit the button again (without changing anything) and it works fine the second time. It does this more often.

ArteGordon- 10-03-2006
QUOTE (Xarlon @ October 03, 2006 04:13 pm)
It hasn't happened since that crash.

Sometimes it won't return things on the first attempt though... It'll open the gump, and it'll be empty... but then I hit the button again (without changing anything) and it works fine the second time. It does this more often.

hmm. I'll look into that.

Xarlon- 10-03-2006
QUOTE (Vladimir @ October 01, 2006 08:26 am)
I've noticed that somtimes you need to hit search twice before it comes up with the results...

This quote makes me think Vladimir has had the same problem with the double-search. I'm guessing most people didn't think anything of it.

ArteGordon- 10-03-2006
try the updated version of xmlfind.cs that is in the beta_317.zip. It adds some status messages when the search fails.
http://xmlspawner.15.forumer.com/index.php?showtopic=53

Xarlon- 10-04-2006
I can test it on my home comp's shard... but the shard I staff on is still using RunUO 1.0
(I think most production shards still use 1.0)

ArteGordon- 10-04-2006
good point. If you cant reproduce it on your 2.0 system, I can put a 1.0 modded version of xmlfind up as well.
It is likely that it simply has to do with problems with unlocked threaded access to the world item/mobile tables. I may have add some locking in there.

Here is a 1.0 version of xmlfind that had added some threadsafe locking. You can see if it fixes the problem. The 2.0 version that I posted in beta_317 has the same fix as well.

Xarlon- 10-04-2006
Thanks, we'll try it out on the shard and I'll let you know if anything strange happens. lol

Xarlon- 10-11-2006
That didn't seem to fix it. I still get an empty list sometimes when I first search for something. And yesterday it did the never-ending empty list thing again.