Darth Cont¡nent Posted December 4, 2002 Share Posted December 4, 2002 Hello. I've been playing around with the Visual Basic source code for Mau'dae's Kill Tracker 2.0, trying to make some additions. One of the things I'd like to be able to do is be able to track the teams in team games. For example, when the player first joins a game, I want to be able to define a variable containing the player's team (RED or BLUE). Mau'dae's kill tracker 2.0 uses among its functions the following: Public Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long To extract the kill messages and such, this program defines a handle to the Jedi Knight game instance and tracks windows messages from it: jkmpwinconsole = FindWindow("jk2mp winconsole", vbNullString) Although kill messages appear to come through, the team info, like when the user first joins the game and joins a team, or when the user changes teams mid-game, doesn't seem to show up among the messages pulled from this function. Can anyone tell me if I need to define another handle? Or if there's a better way to get the team info...? The source code is on a couple of sites but let me know if you need a link or if I should post more of his original code. Thanks!! Link to comment Share on other sites More sharing options...
ASk Posted December 5, 2002 Share Posted December 5, 2002 Well, from what I see, "jk2mp winconsole" is the console, thus all messages can be seen there Most likely the function itself filters the team join messages, fiddle with it for a while ...ugh..hate VB Link to comment Share on other sites More sharing options...
Darth Cont¡nent Posted December 5, 2002 Author Share Posted December 5, 2002 Maybe; I made a change so that the text box displaying the console messages has a scrollbar, and also added an option so that I can cause the output to pause so I can scroll up and see what messages appeared. As yet I haven't seen any messages specific to teams, just ones showing the "Player has become the new team leader." but nothing specifying the team they've actually joined. I did discover the command "team" from the console, which when entered returns either "Red team" or "Blue team". I guess if I had to I could write a routine to send the commands to the console when a team change occurs (beginning a new game, server changes maps, etc.) but this would be a pain... : Thanks for your input, any more ideas anyone? Link to comment Share on other sites More sharing options...
XSeth2kX Posted December 10, 2002 Share Posted December 10, 2002 ive tried the original kill tracker but cant get it to actually log my kills how do i get it to work? Link to comment Share on other sites More sharing options...
Darth Cont¡nent Posted December 10, 2002 Author Share Posted December 10, 2002 Well, you basically start the kill tracker program first, and then run JK2. Make sure your player name is set the same in both the kill tracker and the game (just straight letters / numbers, not the color changing characters like ^2, ^6 etc). This works for me. Link to comment Share on other sites More sharing options...
Darth Cont¡nent Posted January 16, 2003 Author Share Posted January 16, 2003 <bump> Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.