Jump to content

Improved Statistics

Misc

232 replies to this topic

#181 SjurWarEagle

    Member

  • PipPipPipPipPipPip
  • 235 posts

Posted 03 March 2014 - 01:03 AM

Hi Vetal,

please open the mechcollect.jar (you can rename it to zip, edit the content and then rename it back) and edit the log4j2.xml.
change
<Loggers>
<Root level="TRACE">
<AppenderRef ref="Console" level="INFO" />
<AppenderRef ref="File" level="INFO" />
</Root>
</Loggers>

to

<Loggers>
<Root level="TRACE">
<AppenderRef ref="Console" level="ALL" />
<AppenderRef ref="File" level="ALL" />
</Root>
</Loggers>


after this, the file logs/messages.log will contain a bunch of debugging-content. Play a game and then look into it if you see anything wrong (or sent it to me by pm to have me a look at it).

#182 p4r4g0n

    Member

  • PipPipPipPipPipPipPipPip
  • Knight Errant
  • 1,511 posts
  • LocationMalaysia

Posted 03 March 2014 - 05:00 AM

Wonder if it would help for those having problems getting the autoclick functions to run if they could provide details about whether they are running windowed or full windowed and their resolution when they post. Someone else with a similar set up, if any could share their working coordinates to help out.

Just a thought.

#183 SjurWarEagle

    Member

  • PipPipPipPipPipPip
  • 235 posts

Posted 03 March 2014 - 09:01 AM

Ok, for everyone having problems with the mouse, I wrote a quick and dirty test-tool.
You can download it at:
https://www.dropbox....ollect-Test.zip
Simply run the start.cmd included in the file, then you'll get a report like this:
17:59:43 [INFO ] [de.tkunkel.mechcollect.debugging.MouseMovementTester:20] main - Initializing mouse
17:59:43 [INFO ] [de.tkunkel.mechcollect.debugging.MouseMovementTester:23] main - Waiting 2sec
17:59:45 [INFO ] [de.tkunkel.mechcollect.debugging.MouseMovementTester:26] main - Moving mouse to center
17:59:45 [INFO ] [de.tkunkel.mechcollect.debugging.MouseMovementTester:36] main - Waiting 1sec
17:59:46 [INFO ] [de.tkunkel.mechcollect.debugging.MouseMovementTester:39] main - Moving
17:59:46 [INFO ] [de.tkunkel.mechcollect.debugging.MouseMovementTester:43] main - Checking coordinates
17:59:46 [INFO ] [de.tkunkel.mechcollect.debugging.MouseMovementTester:50] main - Correct movement x-axis
17:59:46 [INFO ] [de.tkunkel.mechcollect.debugging.MouseMovementTester:54] main - Could not move y-axis
17:59:46 [INFO ] [de.tkunkel.mechcollect.debugging.MouseMovementTester:59] main - Waiting 1sec
17:59:47 [INFO ] [de.tkunkel.mechcollect.debugging.MouseMovementTester:62] main - Clicking left mouse to get focus in mwo-window
17:59:47 [INFO ] [de.tkunkel.mechcollect.debugging.MouseMovementTester:69] main - Waiting 1sec
17:59:48 [INFO ] [de.tkunkel.mechcollect.debugging.MouseMovementTester:72] main - Moving
17:59:48 [INFO ] [de.tkunkel.mechcollect.debugging.MouseMovementTester:75] main - Checking coordinates
17:59:48 [INFO ] [de.tkunkel.mechcollect.debugging.MouseMovementTester:82] main - Correct movement x-axis
17:59:48 [INFO ] [de.tkunkel.mechcollect.debugging.MouseMovementTester:88] main - Correct movement y-axis


This is an error, because:
17:59:46 [INFO ] [de.tkunkel.mechcollect.debugging.MouseMovementTester:54] main - Could not move y-axis


What the program does is:
  • get's the coordinates and size of your mwo-window
  • moves the mouse on the center of the window
  • moves the mouse a little bit right and down (10 pixels)
  • checks if the movement was successfull
  • clicks to get the window in focus
  • moves the mouse on the center of the window
  • moves the mouse a little bit right and down (10 pixels)
  • checks if the movement was successfull

If the movent is NOT successfull, you cannot expect mechcollect to use the clicking-function. There is nothing I can do (as far as I know) because this is a windows-security-feature preventing other programs to manipulate each other.
AFAIK there are only 2 things you can do:
  • lower the overall security of windows (NOT recommended)
  • run mechcollect (or this testtool to look if it works) in admin mode (on YOUR responsibility)


#184 Zeddecius Ward

    Member

  • Pip
  • Ace Of Spades
  • Ace Of Spades
  • 15 posts

Posted 03 March 2014 - 03:34 PM

Hey WarEagle,

downloaded the latest version. Unfortunately it doesnt rocognize my java version. Your toll tells me that i am not running the latest java enviroment, but i do actually. I already tried reinstalling java but it didnt help.

Running German Windows 7 64-Bit with java 7.51.

Any ideas what i could do?

#185 p4r4g0n

    Member

  • PipPipPipPipPipPipPipPip
  • Knight Errant
  • 1,511 posts
  • LocationMalaysia

Posted 03 March 2014 - 07:21 PM

Did you check whether the installed java version has been correctly enabled?

You can check this by running the command shell and typing "java -version". If you're not comfortable with using command shell or it does not appear to be enabled, go to Control Panel, search java, then click on the result to start up the Java Control Panel.

Under the Java tab, it should show the currently enabled Java version, if any. If the Java version is incorrect or missing, click on the "Add" button and navigate to the Java folder on your computer and click "Next" to search for and enable the relevant executable. Once done, make sure the "Enabled" box is checked before closing the JCP.

#186 SjurWarEagle

    Member

  • PipPipPipPipPipPip
  • 235 posts

Posted 04 March 2014 - 09:08 AM

In addition to the professional answer of p4r4g0n you could try to add this to your start.cmd, right in the first 2 lines;

set JAVA_HOME=C:\Whereever\Your\Java\Is\Installed
set PATH=%PATH%;%JAVA_HOME%\bin

and try again.
The first line will set the environment-variable java-home and in the second line it will use this variable to extend the search-directories.
after this your java should be found.

#187 Jman5

    Member

  • PipPipPipPipPipPipPipPipPip
  • Littlest Helper
  • Littlest Helper
  • 4,914 posts

Posted 10 March 2014 - 09:51 AM

Just a heads up sjur, but I think they're going to be archiving statistics on the 18th when they release achievements. Do you think mech collect will still run smoothly?

#188 SjurWarEagle

    Member

  • PipPipPipPipPipPip
  • 235 posts

Posted 10 March 2014 - 10:47 AM

I have absolutely no idea, sorry.
I don't know what informations will be available, if there will be the long promised api what bugs they are going to release and so on.
In short: don't count on it.

#189 p4r4g0n

    Member

  • PipPipPipPipPipPipPipPip
  • Knight Errant
  • 1,511 posts
  • LocationMalaysia

Posted 13 March 2014 - 05:09 AM

Since I suggested the idea, I'm posting my coordinates in case someone finds it useful:-

1366X768 Full Windowed (Please note that these will probably not work on this resolution in Windowed mode based on my experience with my laptop)

menuModePoints=180,20,(13-13-13);14,20,(13-13-13);1303,20,(13-13-13);860,20,(137-110-30)
matchModePoints=446,303,(255-255-255);472,308,(255-255-255);493,523,(233-185-51)
readyButtonPoints=840,82,(170-0-0);88,82,(0-28-154);1193,43,(0-107-94)
endOfMatchWinPoints=266,400,(171-0-0);257,152,(0-29-160);262,53,(230-167-0)
endOfMatchLostPoints=266,400,(0-29-160);257,152,(171-0-0);262,53,(230-167-0)

Only required if you enable "readyclick":-

coordinatesReadyButton=1187, 50
coordinates2ndPage=621, 53
coordinatesFinishScreencapture=1035, 732


1280X768 Full Windowed (Note: refer to above)

menuModePoints=13,10,(0-17-6);337,23,(37-37-37);883,22,(130-104-27);1250,10,(12-12-12)
matchModePoints=455,307,(255-255-255);557,307,(255-255-255);587,307,(255-255-255);477,502,(202-209-35)
readyButtonPoints=82,107,(0-34-124);835,107,(145-3-0);1197,65,(2-106-97)
endOfMatchWinPoints=240,73,(235-162-31);240,194(0-33-120);240,426,(111-3-1)
endOfMatchLostPoints=240,73,(235-162-31);240,194,(111-3-1);240,426,(0-33-120)

Only required if you enable "readyclick":-

coordinatesReadyButton=1197, 65
coordinates2ndPage=675, 75
coordinatesFinishScreencapture=1075, 715

Edited by p4r4g0n, 13 March 2014 - 05:10 AM.


#190 Zeddecius Ward

    Member

  • Pip
  • Ace Of Spades
  • Ace Of Spades
  • 15 posts

Posted 13 March 2014 - 05:44 AM

Just came back from Holidays. :D

Good hint p4r4g0n. Thx! i had the newest JRE running on my system but it was the 32-Bit version, after installing the 64-Bit version of Java the commad-shell showed the right version and the tool startet!

Thanks for your help!

And: the tool is as great as expected! ;)

#191 Galerius

    Member

  • PipPipPipPipPipPip
  • 202 posts
  • Facebook: Link
  • LocationSeattle, WA

Posted 13 March 2014 - 06:21 PM

Hello SjurWarEagle for a very useful tool. I was wondering if you are setup for donations?

Keep the good work!

#192 SjurWarEagle

    Member

  • PipPipPipPipPipPip
  • 235 posts

Posted 15 March 2014 - 03:06 PM

I'm really honered by this question, I never expected someone would want to give money for something I created (apart from the daily job). But no, there is no way.
I'm doing what I'm doing because I like it. If I would take money for this, it would feel wrong.

#193 Hammerhai

    Member

  • PipPipPipPipPipPipPip
  • Bad Company
  • Bad Company
  • 999 posts

Posted 18 March 2014 - 11:53 AM

Ok, I have not played enough matches to register under a new db yet, but apart from the lack of data so far no hiccups. One game I ran in a populated db showed negative values - which is to be expected when your current stat is zero minus whatever. There were no unexpected errors other than that.

SO with a bit of luck we are good to go, provided you create a new db.

Of course it does not pickup achievements

Edited by Hammerhai, 18 March 2014 - 11:57 AM.


#194 konokoni

    Rookie

  • Ace Of Spades
  • 8 posts

Posted 18 March 2014 - 06:19 PM

With the stat reset, I thought I'd give MechCollect a try. However, I am getting an error when it tries to refresh my data. I am using Java 7 update 51 64-bit. The error I'm getting is below:

22:16:48 [WARN ] [de.tkunkel.mechcollect.gui.MCPanelFactory:97] getBattlelogPanel - should not happen java.lang.IllegalArgumentException
at de.tkunkel.mechcollect.DatabaseManager.getUsedMechStats(DatabaseManager.java:1586) ~[MechCollect.jar:1.7-build194]
at de.tkunkel.mechcollect.DatabaseManager.getBattlelogData(DatabaseManager.java:1721) ~[MechCollect.jar:1.7-build194]
at de.tkunkel.mechcollect.gui.MCPanelFactory.getBattlelogPanel(MCPanelFactory.java:88) [MechCollect.jar:1.7-build194]
at de.tkunkel.mechcollect.gui.Maskensteuerung.refreshGraphs(Maskensteuerung.java:369) [MechCollect.jar:1.7-build194]
at de.tkunkel.mechcollect.gui.Maskensteuerung$1.run(Maskensteuerung.java:560) [MechCollect.jar:1.7-build194]
at java.awt.event.InvocationEvent.dispatch(Unknown Source) [?:1.7.0_51]
at java.awt.EventQueue.dispatchEventImpl(Unknown Source) [?:1.7.0_51]
at java.awt.EventQueue.access$200(Unknown Source) [?:1.7.0_51]
at java.awt.EventQueue$3.run(Unknown Source) [?:1.7.0_51]
at java.awt.EventQueue$3.run(Unknown Source) [?:1.7.0_51]
at java.security.AccessController.doPrivileged(Native Method) [?:1.7.0_51]
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source) [?:1.7.0_51]
at java.awt.EventQueue.dispatchEvent(Unknown Source) [?:1.7.0_51]
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) [?:1.7.0_51]
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) [?:1.7.0_51]
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) [?:1.7.0_51]
at java.awt.EventDispatchThread.pumpEvents(Unknown Source) [?:1.7.0_51]
at java.awt.EventDispatchThread.pumpEvents(Unknown Source) [?:1.7.0_51]
at java.awt.EventDispatchThread.run(Unknown Source) [?:1.7.0_51]
 

Has anyone encountered this before?

Edited by konokoni, 18 March 2014 - 06:19 PM.


#195 SjurWarEagle

    Member

  • PipPipPipPipPipPip
  • 235 posts

Posted 18 March 2014 - 11:13 PM

Please play one to three more games.
This error happens, because mechcollect cannot determin which is the older mech, because there are too few datasets.

At the moment there seems to be one bug. When you play one ore two games with a mech and then restart mechcollect, it won't restart. When playing > 3 games in a row with a mech everything is fine.
I hope to be able to release a new version today or tomorrow. The current problem on my side is, I did a complete transition to javafx and therefore a technically complete new interface (no I won't call it UI 2.0). Because of this new platform there are some very annoying bugs I have to fix.

#196 Hammerhai

    Member

  • PipPipPipPipPipPipPip
  • Bad Company
  • Bad Company
  • 999 posts

Posted 18 March 2014 - 11:14 PM

I think I can guess: It wants to login but can't.

With a bit of luck you simply forgot to enter the following in \MechCollect-1.7-build194\MechCollect\config

Just open the file config.properties and enter your e mail address as user name and your password at YourMWOPassword=xxxxx
On the first run it gets encrypted, so don't worry about the password.

EDIT: Ninja'd
EDIT 2: And wrong ...

Edited by Hammerhai, 18 March 2014 - 11:15 PM.


#197 SjurWarEagle

    Member

  • PipPipPipPipPipPip
  • 235 posts

Posted 19 March 2014 - 09:19 AM

Hi,

this is release 1.8 of mechcollect.

New:
* changed technical platform to javafx
* new interface
* added switch to config to turn on the extended pixelsearch (see last version)
default: off
* additional checkpoint for menu-mode to prevent false detection during game
* ability to switch off the following columns of the battlelog:
- link
- comment
- screenshots
if you don't need it, you shouldn't be forced to see it ;)
* moved mouse-tester to ingame-function, availabe at setup -> mouse movement
* moved checkpoint-tester to ingame-function, availabe at setup -> test checkpoints
Bugfixes:
* config-checkpoint now generates correct checkpointstring
* removed accidently published (completely contentless) manual
* missing coordinate for EndOfMatch2ndPage, ReadyButton, FinishedCapture now editable in GUI


Some words to this release. It has bugs. What, bugs?! Yes, normally I would not have released it yet, but because of the bug I wrote above this release is needed. I'm using the current version myself, so I know it works. The change to JavaFX was more work than I expected and there a some small things I personally don't like but I guess all of them are cosmetic.
I changed the programming because... ah well I love programming and I wanted to dive into JavaFX :D
My goal is to get it running as smooth as you are used to and then improve it furthermore.

Posted Image

You now have the navigation on the left (no dropdown menu anymore).
For refreshing the data from the server you have the usual autodetection, the click on the raven and now the obvious button at the bottom left.
The panel on the left can be collapsed (by clicking right next to it), my goal is to shrink the window in the next version, so the tool doesn't take as much screenspace as it does at the moment (sorry for users with smaller monitors, I'll improve it).

As usual, if you want anything improved, added or fixed, contact me.

You can find it at: http://sourceforge.n...21.zip/download

Edited by SjurWarEagle, 19 March 2014 - 09:19 AM.


#198 p4r4g0n

    Member

  • PipPipPipPipPipPipPipPip
  • Knight Errant
  • 1,511 posts
  • LocationMalaysia

Posted 19 March 2014 - 10:42 AM

I drop both as a solo and group and was wondering if it would be difficult to:-

1. Mark a match in the battlelog as a group drop
2. Based on those matches marked as solo / group, to be able to then view
  • all stats
  • solo drop stats
  • group drop stats
Rightfully, this should be something PGI should offer in the Statistics page on the website but given their limited resources, I doubt this will happen anytime soon.

Not a request, just curious how much work would be involved and whether other users think it would be worth doing.

#199 SjurWarEagle

    Member

  • PipPipPipPipPipPip
  • 235 posts

Posted 19 March 2014 - 11:19 AM

Hmm it shouldn't be that of a problem, I already thought about such a thing. The reason I didn't implement it until now was, I'm not sure I would use it myself because every game would have manually to be tagged.
But if there are others looking for this, yes absolutely, I would put it into mechcollect.

#200 Speedy Pinky

    Member

  • PipPipPip
  • The 1 Percent
  • 50 posts

Posted 19 March 2014 - 03:03 PM

What is meaning with
menuModePoints and matchModePoints ?

Can you make a short video how to config the points or make some picture ...
in some points i dont know what it want.
Thanks

EDIT: The new version is very good ...

Edited by Speedy Pinky, 19 March 2014 - 03:25 PM.






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users