Fix issues with Megamix score detection screen.

secondmonitor
sigonasr2 4 years ago
parent d61c08dad8
commit 6ba35d6b38
  1. 8
      DivaBot/calibration_data.txt
  2. BIN
      DivaBot/capture_1.png
  3. BIN
      DivaBot/capture_2.png
  4. BIN
      DivaBot/capture_3.png
  5. 22
      DivaBot/config.txt
  6. BIN
      DivaBot/rectangle0.png
  7. BIN
      DivaBot/rectangle1.png
  8. BIN
      DivaBot/rectangle2.png
  9. BIN
      DivaBot/rectangle3.png
  10. BIN
      DivaBot/rectangle4.png
  11. 13
      DivaBot/src/sig/MyRobot.java
  12. BIN
      DivaBot/typeface.png
  13. BIN
      DivaBot/typeface4.png

@ -1,4 +1,4 @@
643 438
365 288
1491 1330
844 793

Binary file not shown.

Before

Width:  |  Height:  |  Size: 735 KiB

After

Width:  |  Height:  |  Size: 864 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 712 KiB

After

Width:  |  Height:  |  Size: 834 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 732 KiB

After

Width:  |  Height:  |  Size: 862 KiB

@ -1,11 +1,11 @@
DISPLAYDATA -16776961*-13369549*94*Microsoft YaHei UI Bold*600*150*5000*Song Title (Japanese+Romanized)*176*64**~-16776961*-13369549*24*Gulim*400*40*1000*Overall Rating|Song Title (Romanized)|FC Count*176*240**~-16776961*-13369549*24*Dialog.italic*400*40*300*Song Difficulty*0*0*Header: * DISPLAYDATA -16765135*-10027060*48*Yu Gothic UI Bold*665*64*10000*Song Title (Japanese+Romanized)|Song Title (English)*80*16**~-16765135*-10027060*48*Yu Gothic UI Light*380*64*10000*Best Play*80*952**~-16765135*-10027060*48*Yu Gothic UI Light*380*64*10000*Overall Rating*560*952**~-16765135*-10027060*48*Yu Gothic UI Light*380*64*10000*Song Difficulty|Pass/Play Count (+%)|FC Count (+%)*1048*952**~-16765135*-10027060*16*Yu Gothic UI Semilight*245*14*10000*Song Artist*504*16*Artist: *
LAST_HEIGHT 40 LAST_HEIGHT 64
WIDTH 1127 WIDTH 1936
HEIGHT 732 HEIGHT 1096
BACKGROUND -6697729 BACKGROUND -16765135
LAST_TEXT -13369549 LAST_TEXT -10027060
LAST_FONT Dialog.italic LAST_FONT Yu Gothic UI Bold
LAST_FONTSIZE 24 LAST_FONTSIZE 48
LAST_BACKGROUND -16776961 LAST_BACKGROUND -16765135
LAST_WIDTH 400 LAST_WIDTH 665
LAST_DELAY 300 LAST_DELAY 10000

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.6 KiB

After

Width:  |  Height:  |  Size: 6.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.4 KiB

After

Width:  |  Height:  |  Size: 5.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.5 KiB

After

Width:  |  Height:  |  Size: 5.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.8 KiB

After

Width:  |  Height:  |  Size: 5.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.2 KiB

After

Width:  |  Height:  |  Size: 6.3 KiB

@ -319,6 +319,7 @@ public class MyRobot{
} else { } else {
//ImageIO.write(MYROBOT.createScreenCapture(),"png",new File("testscreen.png")); //ImageIO.write(MYROBOT.createScreenCapture(),"png",new File("testscreen.png"));
if (checkSongSelect()) { if (checkSongSelect()) {
//System.out.println("On song select");
if (!overlayHidden) { if (!overlayHidden) {
overlayHidden=true; overlayHidden=true;
MyRobot.p.repaint(); MyRobot.p.repaint();
@ -346,6 +347,8 @@ public class MyRobot{
} }
lastSongSelectTime = System.currentTimeMillis(); lastSongSelectTime = System.currentTimeMillis();
} else { } else {
MYROBOT.refreshScoreScreen();
ImageIO.write(MYROBOT.createScoreScreenCapture(),"png",new File("scoreimage.png"));
if (overlayHidden) { if (overlayHidden) {
overlayHidden=false; overlayHidden=false;
MyRobot.p.repaint(); MyRobot.p.repaint();
@ -542,7 +545,7 @@ public class MyRobot{
ColorRegion cr2 = new ColorRegion(MYROBOT.createScreenCapture(),new Rectangle(38,196,5,5)); ColorRegion cr2 = new ColorRegion(MYROBOT.createScreenCapture(),new Rectangle(38,196,5,5));
ColorRegion cr3 = new ColorRegion(MYROBOT.createScreenCapture(),new Rectangle(498,248,18,22)); ColorRegion cr3 = new ColorRegion(MYROBOT.createScreenCapture(),new Rectangle(498,248,18,22));
//System.out.println(cr1+"/"+cr2+"/"+cr3); //System.out.println(cr1+"/"+cr2+"/"+cr3);
return cr1.getAllRange(240, 255, 240, 255, 240, 255)&&cr2.getAllRange(7, 60, 180, 250, 150, 240)&&cr3.getAllRange(140, 255, 140, 255, 110, 240); return cr1.getAllRange(240, 255, 240, 255, 240, 255)&&cr2.getAllRange(7, 60, 180, 250, 150, 240)&&cr3.getAllRange(140, 255, 140, 255, 0, 200);
} else { } else {
BufferedImage img2 = ImageUtils.toBufferedImage(MYROBOT.currentScreen.getScaledInstance(1280 , 720, Image.SCALE_SMOOTH)); BufferedImage img2 = ImageUtils.toBufferedImage(MYROBOT.currentScreen.getScaledInstance(1280 , 720, Image.SCALE_SMOOTH));
ColorRegion ft_results = new ColorRegion(MYROBOT.createScreenCapture(),new Rectangle(70,30,70,30)); ColorRegion ft_results = new ColorRegion(MYROBOT.createScreenCapture(),new Rectangle(70,30,70,30));
@ -764,7 +767,10 @@ public class MyRobot{
//SongData s = SongData.getByTitle(SONGNAMES[currentSong].name); //SongData s = SongData.getByTitle(SONGNAMES[currentSong].name);
//selectedSong=new SongData("キップル・インダストリー",0,0,0);
//difficulty="H";
BotMain(); BotMain();
} }
@ -773,6 +779,9 @@ public class MyRobot{
selectedSong=new SongData("LIKE THE WIND",0,0,0); selectedSong=new SongData("LIKE THE WIND",0,0,0);
difficulty="H"; difficulty="H";
RunTest("test59.png",535,114,13,12,28,79.04f,"EXEX","HS",148,540700,false,Mode.MEGAMIX);
RunTest("test58.png",314,49,4,1,12,94.94f,"EXEX","HS",185,561682,false,Mode.FUTURETONE);
RunTest("test57.png",449,50,2,0,1,101.28f,"EXEX","HS",366,595859,false,Mode.FUTURETONE);
RunTest("test56.png",405,105,17,8,41,63.72f,"EX","",109,453145,true,Mode.FUTURETONE); RunTest("test56.png",405,105,17,8,41,63.72f,"EX","",109,453145,true,Mode.FUTURETONE);
RunTest("test55.png",421,50,1,0,3,98.37f,"EXEX","",406,689821,false,Mode.FUTURETONE); RunTest("test55.png",421,50,1,0,3,98.37f,"EXEX","",406,689821,false,Mode.FUTURETONE);
RunTest("test54.png",448,129,20,6,35,74.89f,"EXEX","",247,678260,true,Mode.FUTURETONE); RunTest("test54.png",448,129,20,6,35,74.89f,"EXEX","",247,678260,true,Mode.FUTURETONE);

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 15 KiB

Loading…
Cancel
Save