Wednesday, April 18, 2012

Developing a Mod for Getting Info From a Webpage

I'm new to the whole mod-making thing. I did spend a lot of time personally exploring the files and workings of Wc3, which has the same basic file set-up, so I'm not at a total loss. However, I don't have any experience with web page coding and things. I was wondering if it would be at all possible for an addon to pull information off of and add information to a web page. Specifically, my idea is to have a list that is open-able in-game to be read, and also have a "/add string" function to add new items to the list. The list would be items that members of my guild are looking for.

Basically, all I'm asking here is can an addon pull text off a web page and insert it into a list in-game, and vice-versa (and how would I do it)?|||Mods can only read/write to their specified SavedVariables files and only then at login, logout, and reloadui.

So you can do it but you can't change it externally once WoW is running and you'd need a third party app to write to the SV file.|||Alright, so basically the setup would have to be a program that the player has to run at each login/logout to stay updated, and there would have to be some way to add in things. Meh. That's too much trouble and not very efficient. Thanks for the reply.|||Quote:








Alright, so basically the setup would have to be a program that the player has to run at each login/logout to stay updated, and there would have to be some way to add in things. Meh. That's too much trouble and not very efficient. Thanks for the reply.




Yeah one example of this is webdkp. you have a saved variables lua file that your addon manages, and then when you want to upload the file you run an executable that came with the addon, or manually upload it to their website. then when you want to download the latest version of the file you use the same executable or go through the website again.

No comments:

Post a Comment