Thread Tools Display Modes
12-23-11, 05:26 AM   #1
Vamps594
A Defias Bandit
Join Date: Dec 2011
Posts: 2
Addons & socket TCP/IP

Hi everyone,

I've got a technical question about addon programming.

Do you know if it's possible to create a socket and initiate a TCP/IP connection directly from the WoW LUA interpreter (with something like http://w3.impa.br/~diego/software/luasocket/ ) ?

My goal is to gather combat log and send it to a server in real time but I'm not sure that WoW allows remote connections and/or if I can include external lua modules.

Any help is welcome.

Have a nice day.
  Reply With Quote
12-23-11, 05:58 AM   #2
Dridzt
A Pyroguard Emberseer
 
Dridzt's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2005
Posts: 1,360
Can't be done from Lua.

You can have an external program polling \World of Warcraft\Logs\Combatlog.txt and upload it somewhere.

That's what www.worldoflogs.com does for their "live" option.

It's still the wow client that "decides" when to dump data to the log, it's not really real-time.
  Reply With Quote
12-23-11, 06:24 AM   #3
Vamps594
A Defias Bandit
Join Date: Dec 2011
Posts: 2
Ok :/

Anyway thanks for your quick reply !
  Reply With Quote
12-23-11, 12:06 PM   #4
Nobgul
A Molten Giant
 
Nobgul's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2009
Posts: 693
You can force a dump by reloading ui. Although this would not be good to do in combat.
__________________
[SIGPIC][/SIGPIC]
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Addons & socket TCP/IP

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