Thread Tools Display Modes
09-09-09, 03:42 AM   #1
MigGat
A Fallenroot Satyr
Join Date: Sep 2009
Posts: 27
Addon internet connection

Hi everyone

(sorry about my english as it's no my first language)

I was wondering if there's any way to make my addon connect to internet. It could be to check any database, mailing, etc... Make it able to consume webservices would be amazing!

Thx!
  Reply With Quote
09-09-09, 03:53 AM   #2
Dridzt
A Pyroguard Emberseer
 
Dridzt's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2005
Posts: 1,359
Not possible.

Sorry for the short reply but there's really not much else to say.
You can't pull info into the game from the outside world while the wow client is running.
  Reply With Quote
09-09-09, 04:00 AM   #3
MigGat
A Fallenroot Satyr
Join Date: Sep 2009
Posts: 27
That's what I thought too, but I've been looking around for a while and came with 2 facts:

- AtlasLootFu (addon) has a button with something like "click to connect to the server for the newest items"

- There's a book "Coding4Fun: 10 .NET Programming Projects for Wiimote, YouTube, World of Warcraft, and More" which 3rd chapter is "Feed Reader: An ingame RSS reader for World of Warcraft". I don't have the book how I can't check how it does it.


So these two things made me thought i could be possible..
  Reply With Quote
09-09-09, 05:27 AM   #4
Cowmonster
A Cyclonian
AddOn Author - Click to view addons
Join Date: Oct 2008
Posts: 40
Originally Posted by MigGat View Post
That's what I thought too, but I've been looking around for a while and came with 2 facts:

- AtlasLootFu (addon) has a button with something like "click to connect to the server for the newest items"

- There's a book "Coding4Fun: 10 .NET Programming Projects for Wiimote, YouTube, World of Warcraft, and More" which 3rd chapter is "Feed Reader: An ingame RSS reader for World of Warcraft". I don't have the book how I can't check how it does it.


So these two things made me thought i could be possible..
As previously stated not possible. The data comes from in-game.
__________________


Author of:
Equipped Average Item Level :: ExtraBar :: Killing Blow Emote :: RecordTip
  Reply With Quote
09-09-09, 05:31 AM   #5
MigGat
A Fallenroot Satyr
Join Date: Sep 2009
Posts: 27
Ok thanks! I can stop my research now :P
  Reply With Quote
09-10-09, 09:34 AM   #6
Layrajha
A Frostmaul Preserver
 
Layrajha's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 275
I guess that you could technically simulate a RSS feed by buying twice as many accounts as there are servers, and putting a character on each server that is logged in all the time and acts as a server by answering SendAddonMessage whisper requests... I'm not sure anyone has enough money to waste to do something like that :>
  Reply With Quote
09-10-09, 10:55 AM   #7
zero-kill
A Firelord
 
zero-kill's Avatar
Join Date: Aug 2009
Posts: 497
I'm not sure anyone has enough money to waste to do something like that
That's what I said about multi-boxers.
  Reply With Quote
04-07-11, 05:55 AM   #8
Cowmonster
A Cyclonian
AddOn Author - Click to view addons
Join Date: Oct 2008
Posts: 40
Originally Posted by MigGat View Post
That's what I thought too, but I've been looking around for a while and came with 2 facts:

- AtlasLootFu (addon) has a button with something like "click to connect to the server for the newest items"

- There's a book "Coding4Fun: 10 .NET Programming Projects for Wiimote, YouTube, World of Warcraft, and More" which 3rd chapter is "Feed Reader: An ingame RSS reader for World of Warcraft". I don't have the book how I can't check how it does it.


So these two things made me thought i could be possible..
The only way to have an RSS feed or anything of the sort would be to write an application that writes the data into a .lua file prior to your loading the game and have an in-game addon that reads the contents of that .lua file (table or tables of information) and gives you some sort of pleasant interface for reading that information. You would not be able to pull updates directly from within the wow client and you could not update the information while in the wow client unless it was a .lua file in your addon directory and you did a "/console reloadui" which would result in the re-parsing of the .lua file. This would only work if the .lua file was already in the right folder and loaded by the game. A newly created .lua file while the game was running would not be loaded by the game and any changes to the "SavedVariables" .lua files would not be read by the client and would actually end-up replaced on your logging out/exiting.
__________________


Author of:
Equipped Average Item Level :: ExtraBar :: Killing Blow Emote :: RecordTip
  Reply With Quote
04-07-11, 06:24 AM   #9
Mischback
A Cobalt Mageweaver
 
Mischback's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2009
Posts: 221
I wonder your sig states, you're on Alliance, since this is simply - necrophilia..

And yes, I know my post can be considered spam, but hell, this was worth it!
__________________
  Reply With Quote
04-07-11, 07:49 AM   #10
Duugu
Premium Member
 
Duugu's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2006
Posts: 851
Originally Posted by Layrajha View Post
I guess that you could technically simulate a RSS feed by buying twice as many accounts as there are servers, and putting a character on each server that is logged in all the time and acts as a server by answering SendAddonMessage whisper requests... I'm not sure anyone has enough money to waste to do something like that :>
What if I use test accounts for that? I could do a round-robin-logon operating mode where one accounts login on multiple servers in a row just to update stuff. There are 489 realms (US & EU). So let us say you'll have to do ~1k updates per 'cycle'. Let us further say you use one account to update ... 40 'targets'. Then you will need ~25 accounts.
Beside the possibliity to use test accounts for this, the real question is, how much computing power do I need to handle 25 wow instances simultaneously? (lowest possible graphics/sound/details settings of course)

[E]
Let's say you will need 15 seconds to do one 'update'. Then every single 'target' should be updated at least once every 10 minutes - which should be absolutely adequate for a lot of contents. (like feeds or something)

Last edited by Duugu : 04-07-11 at 07:54 AM.
  Reply With Quote
04-07-11, 09:21 AM   #11
Nobgul
A Molten Giant
 
Nobgul's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2009
Posts: 693
All I can say is LOL.
But to answer your question my pc will run 5 instances of wow at a time, it is far from pretty but anyway.

You would honestly be better off creating a out of game app.....
__________________
[SIGPIC][/SIGPIC]
  Reply With Quote
04-07-11, 09:23 AM   #12
jeffy162
A Pyroguard Emberseer
 
jeffy162's Avatar
AddOn Author - Click to view addons
Join Date: May 2009
Posts: 2,364
If I understand how WoW works correctly (I probably don't, but I figure this is worth a shot), once you input your information on the sign-in screen to log into your WoW account, and hit the button (or the "enter" key) and log onto the WoW game servers, that's it. That's the end of any communication with anything except Blizzard servers, for the game, from that point on until you log off of the Blizzard servers and quit the game. The entire game goes into a "sandbox" environment and communicates solely with the Blizzard servers. Apparently nothing, and I do mean nothing, gets into or out of that game environment unless it is going to or from Blizzard's World of Warcraft servers.

Now, what you could do if you really want to keep up-to-the-minute on your RSS feeds, is run the game in "Windowed (Fullscreen)" mode which looks the same as "Fullscreen" mode, but is windowed just without a ...... ummmmm ...... window, or visible frame. That way you can keep your favorite reader open in the background and "alt + tab" to it whenever there is time.
  Reply With Quote
04-07-11, 09:46 AM   #13
Nobgul
A Molten Giant
 
Nobgul's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2009
Posts: 693
You are correct, the only time that there is a exception is when you reloadui it writes ands reads to the saved var file.
__________________
[SIGPIC][/SIGPIC]
  Reply With Quote
04-07-11, 10:07 AM   #14
kraftman
A Theradrim Guardian
AddOn Author - Click to view addons
Join Date: Dec 2008
Posts: 63
you could have the game reloadui whenever you go afk, and an external program edit the .lua files for your addon, and potentially read from the savedvars file if you wanted to communicate from inside the game to outside of the game.

If, say, every guild member had the same addon, the feed would always be as up to date as the most recent person to login or reload their UI.

EDIT:
also if you have defined a texture in your lua file, you can edit the texture and it updates on uireload: so you could also load the icons if you have a method of auto converting them to .tga

Last edited by kraftman : 04-07-11 at 10:12 AM.
  Reply With Quote
04-07-11, 10:19 AM   #15
Duugu
Premium Member
 
Duugu's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2006
Posts: 851
Originally Posted by Nobgul View Post
All I can say is LOL.
Well, I'm missing the right spirit within this statement. Your really shoud think more ... innovative. ;D

Originally Posted by Nobgul View Post
But to answer your question my pc will run 5 instances of wow at a time, it is far from pretty but anyway.
Mine is able to handle more than 10. Guess I'll carry out a test setup tonight. *g*

[E]
Although this is just a kind of funny 'thought experiment' I could imagine a real world use for it. I'm for example currently developing a ingame game, and I would really love to have a way to sync overall realm highscores.

Last edited by Duugu : 04-07-11 at 10:27 AM.
  Reply With Quote
04-07-11, 10:51 AM   #16
Rilgamon
Premium Member
 
Rilgamon's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Sep 2009
Posts: 822
You're thinking too much about control
There are like 70k chars on a server ... so I guess that equals
10k accounts at least who login at different times of a day.
If there are enough ppl using your addon + updater.exe you can
have lots of feeds updated through addon-communication.
the wow-cloud-version
__________________
The cataclysm broke the world ... and the pandas could not fix it!
  Reply With Quote
04-07-11, 10:58 AM   #17
kraftman
A Theradrim Guardian
AddOn Author - Click to view addons
Join Date: Dec 2008
Posts: 63
Originally Posted by Duugu View Post
Well, I'm missing the right spirit within this statement. Your really shoud think more ... innovative. ;D



Mine is able to handle more than 10. Guess I'll carry out a test setup tonight. *g*

[E]
Although this is just a kind of funny 'thought experiment' I could imagine a real world use for it. I'm for example currently developing a ingame game, and I would really love to have a way to sync overall realm highscores.
Surely it would be easier just to have each addon update its data to an external website then it would to have a huge set of slave accounts needed to log in and receive the data from each addon.
  Reply With Quote
04-07-11, 11:22 AM   #18
Duugu
Premium Member
 
Duugu's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2006
Posts: 851
Originally Posted by kraftman View Post
Surely it would be easier just to have each addon update its data to an external website then it would to have a huge set of slave accounts needed to log in and receive the data from each addon.
But the point is, addons can't update data via a website.
I could constrict my highsorce updates to a few times a day. An automate login, send/recieve updated data to an addon channel, and logout with via a single account for every realm/fraction should be an easy to build and low cost job.
  Reply With Quote
04-07-11, 11:25 AM   #19
kraftman
A Theradrim Guardian
AddOn Author - Click to view addons
Join Date: Dec 2008
Posts: 63
Originally Posted by Duugu View Post
But the point is, addons can't update data via a website.
Why not? :/
  Reply With Quote
04-07-11, 11:45 AM   #20
Vlad
A Molten Giant
 
Vlad's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2005
Posts: 793
Originally Posted by kraftman View Post
Why not? :/
There is no API that allows data to be downloaded or sent to a website, other than global variables you get to read/write from at logon and logout (+ reloading of the UI).

I know of a way you could actually make the game read from a site (but you would need a man-in-the-middle approach to make this work, it's in the gray zone but would be crushed instantly by Blizzard if a popular addon starts to use this method.

Last edited by Vlad : 04-07-11 at 11:47 AM.
  Reply With Quote

WoWInterface » Developer Discussions » General Authoring Discussion » Addon internet connection

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off