Register
Results 1 to 5 of 5
  1. #1
    Sapu94's Avatar
    Posts
    7,114
    Reputation
    345
    Blog Entries
    25
    Tagged in
    1928 Posts
    Add to this user's reputation

    Crazy Idea for TUJ Addon: Broadcasting AH Data

    I keep coming back to this idea so here it goes...

    IDEA
    Have the TUJ addon broadcast data through a hidden chat channel that the addon creates. Then, anybody else on the server (who's the same faction) will be able to update their data off this broadcasted data. This could be implemented as a popup saying something like "Do you want to update TUJ with data imported by Sapu?" or even have settings to do it automatically.

    From a development standpoint, this would have to be done by creating a chat channel (think /5) and then hiding that chat channel from the player's chat window. When the data is imported, the addon of the importing player posts something in that chat channel giving some info about the data (but not the data itself yet) like timestamp, importing player's name, which AH the data is for (neutral / horde / alliance), and maybe some sort of code. Then any other player's TUJ addons listening on that channel could respond with a request for the data and the importing player's TUJ addon would send the data either through the chat channel or through the hidden addon channel.


    Pros
    If widely used could be very beneficial to all involved in keeping their TUJ addon data up to date and up to date info is a big plus for all involved including addons that use TUJ's data.

    Cons
    This must be done through a chat channel and not the hidden addon channel because the target of the communication is unknown. This results in the player's channels possibly being out of order. For example, the addon's chat channel might end up being /3 which would push local defense to /4 and look weird to the user.


    Just an idea to ponder on


    Follow me and TSM on Twitter for important updates, news, and giveaways!
    TSM Website | /r/woweconomy & TSM Discord | Go Premium | TSM FAQ

    "A good programmer is someone who always looks both ways before crossing a one-way street."

  2. #2
    Would need a way to get around the 255 character limit of the chat window, but that would likely be trivial.
    Retired - I blame Kathroman for everything.

    (that's a joke, eh)

  3. #3
    Sapu94's Avatar
    Posts
    7,114
    Reputation
    345
    Blog Entries
    25
    Tagged in
    1928 Posts
    Add to this user's reputation
    Quote Originally Posted by Stede View Post
    Would need a way to get around the 255 character limit of the chat window, but that would likely be trivial.
    Yea which is why I suggested using the hidden addon channel for actually sending the data...so if somebody somehow un-hid the chat channel they wouldn't be spammed by the 300-400 lines (yes I actually calculated it) of chat required to send all the data
    Last edited by Sapu94; March 15th, 2011 at 03:22 PM.


    Follow me and TSM on Twitter for important updates, news, and giveaways!
    TSM Website | /r/woweconomy & TSM Discord | Go Premium | TSM FAQ

    "A good programmer is someone who always looks both ways before crossing a one-way street."

  4. #4
    Erorus's Avatar
    Posts
    1,404
    Reputation
    114
    Tagged in
    677 Posts
    Add to this user's reputation
    I actually thought about this during initial development of the addon, as a possible feature for a later version. It could use Ace Comm (and ChatThrottleLib) to send the bulk data without messing too much with client performance.

    Two issues came up:

    1) Chat messages aren't binary safe, so we'd have to pass the base64-encoded string. Today, that's around 64KB, if not more. ChatThrottleLib sends bulk transfers at about 800cps.. so it would take about a minute and a half to broadcast new market imports.
    2) Message passing and doing imports from others automatically adds a lot of code for very little benefit.. and exposes the client to unwanted risks. What if you're in the middle of a raid, and now you're reading and parsing market data for 90-120 seconds? What if your competition wants to feed your TUJ addon with incorrect data?

    It was neat to think about, but I decided that this copypaste method will work well enough for now. I don't want to get all Rube Goldberg what's basically a price lookup addon.

    On the bright side, addons are open source.. so if you really want something like this, there's nothing stopping you from writing it.

  5. #5
    Sapu94's Avatar
    Posts
    7,114
    Reputation
    345
    Blog Entries
    25
    Tagged in
    1928 Posts
    Add to this user's reputation
    Ah yea didn't do the actual time calculation...that's definitely an issue. Oh well was just a (crazy) thought...btw I just noticed you are the server I was on during wrath
    Last edited by Sapu94; March 15th, 2011 at 06:46 PM. Reason: i really can't spell...


    Follow me and TSM on Twitter for important updates, news, and giveaways!
    TSM Website | /r/woweconomy & TSM Discord | Go Premium | TSM FAQ

    "A good programmer is someone who always looks both ways before crossing a one-way street."

 

 

Similar Threads

  1. Replies: 13
    Last Post: September 26th, 2011, 07:31 AM
  2. [ Addon/API] Suggestion for automatic data updates
    By Amandria in forum Official Forum of The Undermine Journal
    Replies: 2
    Last Post: February 24th, 2011, 09:55 AM
  3. Auctioneer Addon Modification / Idea
    By Antikythera in forum Archive (Auction House)
    Replies: 0
    Last Post: December 17th, 2010, 08:59 AM
  4. How crazy is your server AH since 4.0.1
    By Zenit in forum Archive (Auction House)
    Replies: 10
    Last Post: November 9th, 2010, 10:40 AM