Posts: 339
Threads: 44
Joined: Jan 2011
eru, i replied to your PM but the forum isn't showing that it's sent
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
Posts: 93
Threads: 1
Joined: Oct 2011
Nasir Wrote:eru, i replied to your PM but the forum isn't showing that it's sent
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
. Isn't there a way to ignore properties?
Posts: 339
Threads: 44
Joined: Jan 2011
There is the [IgnoreDataMember] attribute, but I was trying to keep him from having to change anything with the RunUO code at all. :p
Posts: 2
Threads: 0
Joined: Mar 2012
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).
Posts: 339
Threads: 44
Joined: Jan 2011
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.
Posts: 30
Threads: 0
Joined: Feb 2012
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.
Posts: 339
Threads: 44
Joined: Jan 2011
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.
(This post was last modified: 03-01-2012, 11:15 PM by
Nasir.)
Posts: 93
Threads: 1
Joined: Oct 2011
Posts: 93
Threads: 1
Joined: Oct 2011
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.
Posts: 30
Threads: 0
Joined: Feb 2012
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.
Posts: 339
Threads: 44
Joined: Jan 2011
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.
Posts: 212
Threads: 14
Joined: Apr 2011
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.