|
02-03-2011, 12:42 PM
|
A Berserk Golem
|
|
Join Date: Mar 2007
Server: Antonia Bayle
Posts: 55
|
|
Can a UI mod write to a text file?
Hello, I have never decided to put the effort into learning the UI mod language, as I have always been very satisfied with the mods others have done. Now, however, I may have reason to create my own mod and before I go to the effort I would like to know if what I want to do is even possible.
I have written a data base app that tracks my guilds DKP. The next step in this app is to have it collect attendance data for any given raid. My original idea was to have it go through the eq2 logs file, but after some work I determined the resource requirement for doing this was higher then I like. So this is my idea.
I want to mod my guild window with two buttons by each name in the "members online now" list. These buttons would have an "Invite to raid" and an "invite to group" function. That part I am sure can be done. The next part is where my question comes in. I want the mod to then log the names of those I have invited and the time to a separate text file that my DKP app can use. So, my question is, can a mod be given the ability to write to a text file?
|
02-03-2011, 12:55 PM
|
A Griffon
|
|
Join Date: Nov 2005
Server: Nagafen
Posts: 1,095
|
|
There are several apps to do what you want and you are right about adding the invite buttons it can be done.
As for the ui writing to a text file that can be done as well but not directly. Drum has done it with his ui through modding the eq2maps submitpoi function. That would be a good place to look for ideas on what you want to accomplish.
Silat
|
02-03-2011, 02:31 PM
|
gm10-1
|
|
Join Date: Feb 2006
Posts: 6,479
|
|
No need to mod this, the game already writes group/raid joins to the log files.
|
02-03-2011, 03:08 PM
|
|
A Griffon
|
|
Join Date: Aug 2005
Posts: 851
|
|
If I remember right, there is also a /raidwho command that dumps the current raiders into the log all at once.
Last edited by Darqwood : 08-28-2018 at 01:25 PM.
|
02-03-2011, 03:48 PM
|
gm10-1
|
|
Join Date: Feb 2006
Posts: 6,479
|
|
It's /whoraid actually, or at least it used to be. Has the advantage that it only picks up raid members actually in the zone, IIRC.
|
02-03-2011, 04:58 PM
|
A Griffon
|
|
Join Date: Nov 2005
Server: Nagafen
Posts: 1,095
|
|
He doesn't want to use the log file however.
Silat
|
02-03-2011, 05:08 PM
|
|
A Griffon
|
|
Join Date: Oct 2004
Server: Antonia Bayle
Posts: 3,287
|
|
Don't see another easier way of doing it, tbh. And a button that writes to files upon inviting would not be very dependent, especially if the person never accepted the invite or you pressed the wrong person.
|
02-03-2011, 06:32 PM
|
gm10-1
|
|
Join Date: Feb 2006
Posts: 6,479
|
|
Quote:
Originally Posted by TalTal
He doesn't want to use the log file however.
Silat
|
He thinks he does not want to use the log file, we're just telling him otherwise. Also DKP log parsers are freely available, no point to reinvent the wheel tbh.
|
02-03-2011, 06:58 PM
|
A Griffon
|
|
Join Date: Nov 2005
Server: Nagafen
Posts: 1,095
|
|
Quote:
Originally Posted by gm9
He thinks he does not want to use the log file, we're just telling him otherwise. Also DKP log parsers are freely available, no point to reinvent the wheel tbh.
|
I agree with you. I even mentioned apps were already available to him . I figured if he really wanted to do it though I'd point him in the right direction. I also figured after about an hour he'd decide to use one of the available apps.
Silat
|
02-03-2011, 11:01 PM
|
A Berserk Golem
|
|
Join Date: Mar 2007
Server: Antonia Bayle
Posts: 55
|
|
Quote:
Originally Posted by TalTal
I agree with you. I even mentioned apps were already available to him . I figured if he really wanted to do it though I'd point him in the right direction. I also figured after about an hour he'd decide to use one of the available apps.
Silat
|
That's where you are wrong. I love building apps for the challenge and to keep my old brain agile. I have already completed the app and it is in use for adjusting and tracking DKP. I am now just adding features so it does more. By the time I am done, it will do everything including posting the data to our guild web site all automatically.
|
02-04-2011, 10:47 AM
|
A Griffon
|
|
Join Date: Nov 2005
Server: Nagafen
Posts: 1,095
|
|
Well good for you. I tend to do the same thing. At least until I get bored with it
Silat
|
02-04-2011, 04:32 PM
|
A Griffawn
|
|
Join Date: Jan 2007
Server: Permafrost
Posts: 70
|
|
/logwhoraid could be used as well if it's still in the game. I started a PHP app based on that a while back but gave up because my guild disbanded.
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 06:47 PM.
|
|