Poll: Would you like to see a searchable vendor item database on the site? - You do not have permission to vote in this poll.
Yes.
94.59%
35
94.59%
No.
5.41%
2
5.41%
* You voted for this item. Show Results

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

Web-Based Player Vendor Tracking and Item Finding
#37

eru, i replied to your PM but the forum isn't showing that it's sent Sad

Here's a quick sample of how to serialize the stuff to json... and probably mostly incorrect since I don't have the RunUO source for reference. That and I'm probably forgetting something... but it's a push in the right direction nonetheless.

https://gist.github.com/4603307fc38eb240eccc
#38

Nasir Wrote:eru, i replied to your PM but the forum isn't showing that it's sent Sad

Here's a quick sample of how to serialize the stuff to json... and probably mostly incorrect since I don't have the RunUO source for reference. That and I'm probably forgetting something... but it's a push in the right direction nonetheless.

https://gist.github.com/4603307fc38eb240eccc

Poco. Cute Wink. Isn't there a way to ignore properties?
#39

There is the [IgnoreDataMember] attribute, but I was trying to keep him from having to change anything with the RunUO code at all. :p
#40

Hello everybody, fist post. I apologize if my speech is wrong (english isn't my native language).

Only a suggestion. I see you put a test version in the web (http://in-uo.net/info/test). You can change the generation of the location field for make the content also a link to a map marker that show the vendor position in Britain. A quick google search show me a web (http://wiki.game-master.net/map/index.htm, probably are better alternatives) that allow show markers in a britain map, getting the position data by the url query. Is easy integrate that in the html generation.

Just for curiosity, what method are you using for generating the data? (i assume WCF because i see the web access the data by way of http://game.in-uo.net:2595/vendorItems, first time i heard about this technology, i'm not familiar with NET).
#41

I don't believe WCF was used. It's simply a HttpListener since all it's doing is spitting out json.

I've always wanted to use a custom map with Google Maps + UO. It's not something I'd ever have the time to do, but it's always been a dream haha.
#42

It's either a listener or a file written to a location served by IIS I think.

It is also very cool and I believe it will be even sweeter if there's a web dev available.
#43

It's a listener. You're not going to be passing a querystring like that one to request a file served out of IIS. Herp derp.
#44

It's a listener.
#45

Exanimus Wrote:Hello everybody, fist post. I apologize if my speech is wrong (english isn't my native language).

Only a suggestion. I see you put a test version in the web (http://in-uo.net/info/test). You can change the generation of the location field for make the content also a link to a map marker that show the vendor position in Britain. A quick google search show me a web (http://wiki.game-master.net/map/index.htm, probably are better alternatives) that allow show markers in a britain map, getting the position data by the url query. Is easy integrate that in the html generation.

Good idea.
#46

Nasir Wrote:It's a listener. You're not going to be passing a querystring like that one to request a file served out of IIS. Herp derp.
It could have been URL-Rewrites, which is something you should know considering its relativity common. hepr derp...

Reason to why I mentioned it is because IIS isn't required when using a HttpListner and there is IIS running on that server. Obviously the IIS could be used for something else, but I figured that since it was there, one would want to [re]use it and server the file from there.

It could have been a dozen other ways too, but I said the ones I found most common with the information provided.
#47

No, what I'm referring to is obviously not URL rewrites. I'm not going to post the full query url here because that would be inappropriate. You know how to look it up. But, the full querystring clearly has count limits and sorting and even a jsonp callback. You also know you're not going to need jsonp to load a static javascript file from another origin and you're certainly not going to be sorting the result on the server with a url-rewrite.

my derp stands.
#48

This sounds pleasant to me. I think the competition would be healthy for the economy. I enjoy the vendors, but it can be difficult to find what you are looking for since any vendor could have anything. I guess it's easy to learn where to get what, but searchable would be cool. The arms race with prices is definitely a potential problem, but that just drives down the prices to low levels to make things more affordable.


Forum Jump:


Users browsing this thread: 7 Guest(s)