Skip to content

Commit 12c3d0a

Browse files
author
alfredoheights
committed
fix: stuck on splash page
This bug has only been reported to occur on a OnePlus 8T (by me) and I'm not sure it affects anyone else.
1 parent 6e8ec5e commit 12c3d0a

File tree

1 file changed

+12
-7
lines changed
  • scripts/com.r2studio.TsumBeta/src

1 file changed

+12
-7
lines changed

scripts/com.r2studio.TsumBeta/src/index.js

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,11 @@ function log() {
3737
sleep(10);
3838
var args = [];
3939
if (ts !== undefined && ts.showHeartLog && ts.record && ts.record['hearts_count']) {
40-
var msg = "";
41-
msg += "R:"+ts.record['hearts_count'].receivedCount+" ";
42-
msg += "S:"+ts.record['hearts_count'].sentCount;
40+
var msg = "C";
41+
// msg += "R:"+ts.record['hearts_count'].receivedCount+" ";
42+
// msg += "S:"+ts.record['hearts_count'].sentCount;
43+
// add timestamp in HH:MM:SS
44+
msg += new Date().toTimeString().split(' ')[0];
4345
if (gTaskController !== undefined && gTaskController.tasks !== undefined) {
4446
var sendTask = gTaskController.tasks["sendHearts"];
4547
if (sendTask !== undefined) {
@@ -127,6 +129,7 @@ var Button = {
127129
outSendHeartEnd3: {x: 316, y: 1224, color: {r: 55, g: 91, b: 139}},
128130
outFriendScoreFrom: {x: 550, y: 935, color: {"a":0,"b":140,"g":93,"r":55}},
129131
outFriendScoreTo: {x: 760, y: 935},
132+
outSplashPageTapToStart: {x: 510, y: 1510},
130133
skillLuke1: {x: 1000, y: 1372},
131134
skillLuke2: {x: 830, y: 1402},
132135
skillLuke3: {x: 670, y: 1447},
@@ -1516,10 +1519,12 @@ Tsum.prototype.exitUnknownPage = function() {
15161519
keycode('KEYCODE_DPAD_DOWN', 50);
15171520
this.sleep(500);
15181521
keycode('KEYCODE_ENTER', 50);
1519-
this.tap(Button.gameQuestionCancel);
1520-
this.tap(Button.gameQuestionCancel2);
1521-
this.tap(Button.outClose);
1522-
this.tap(Button.gameStop);
1522+
this.tap(Button.outSplashPageTapToStart, 250);
1523+
this.tap(Button.gameQuestionCancel, 250);
1524+
this.tap(Button.gameQuestionCancel2, 250);
1525+
this.tap(Button.outClose, 250);
1526+
this.tap(Button.gameStop, 250);
1527+
this.tap(Button.outStart, 250);
15231528
this.sleep(500);
15241529
}
15251530

0 commit comments

Comments
 (0)