zenga
12-23-2009, 11:14 PM
ola,
Does anybody knows a place where i can find some example code of how to write out game data to a file? The output format doesn't really matter. Maybe there is an addon who already does this (that i couldn't find).
The reason for this is that i want 2 things:
-write data to a database for detailed statistics I can work with outside the game (no clear idea on what and how yet)
-make my own assistant that runs outside the game (this app would read the data from this file and give me certain warnings, most likely audio). As far as i know this should not violate the blizzard policy; but any confirmation on this would be cool.
A simple example for the last one could be a cooldown for fire elemental totem: when the cooldown starts the info is written to a file, my app reads the file and does the math and plays a 'You can now use your fire totem again' song.
Another thing could be a note function for certain bosses: whenever i target a mob, the name of that mob is written to a file, my app pics it up and plays the notes i made last time.
Those are 2 things i find useful as we speak. I know there are addons that offer me the same functionality, but i like 1 assistant that i can change myself and that scales with my game progress. In this and 3 months i'll probably have other needs than i have right now. Not to mention that i haven't really thought out all the possibilities.
I don't have any desire to learn Lua in depth. But i'm familiar enough with other languages to achieve what i want provided I can find a simple way to write game data into a file.
Anyone some tips on examples?
cheers
z
Does anybody knows a place where i can find some example code of how to write out game data to a file? The output format doesn't really matter. Maybe there is an addon who already does this (that i couldn't find).
The reason for this is that i want 2 things:
-write data to a database for detailed statistics I can work with outside the game (no clear idea on what and how yet)
-make my own assistant that runs outside the game (this app would read the data from this file and give me certain warnings, most likely audio). As far as i know this should not violate the blizzard policy; but any confirmation on this would be cool.
A simple example for the last one could be a cooldown for fire elemental totem: when the cooldown starts the info is written to a file, my app reads the file and does the math and plays a 'You can now use your fire totem again' song.
Another thing could be a note function for certain bosses: whenever i target a mob, the name of that mob is written to a file, my app pics it up and plays the notes i made last time.
Those are 2 things i find useful as we speak. I know there are addons that offer me the same functionality, but i like 1 assistant that i can change myself and that scales with my game progress. In this and 3 months i'll probably have other needs than i have right now. Not to mention that i haven't really thought out all the possibilities.
I don't have any desire to learn Lua in depth. But i'm familiar enough with other languages to achieve what i want provided I can find a simple way to write game data into a file.
Anyone some tips on examples?
cheers
z