Skip to content

fix: stuck on splash page #540

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 12 additions & 7 deletions scripts/com.r2studio.TsumBeta/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,11 @@ function log() {
sleep(10);
var args = [];
if (ts !== undefined && ts.showHeartLog && ts.record && ts.record['hearts_count']) {
var msg = "";
msg += "R:"+ts.record['hearts_count'].receivedCount+" ";
msg += "S:"+ts.record['hearts_count'].sentCount;
var msg = "C";
// msg += "R:"+ts.record['hearts_count'].receivedCount+" ";
// msg += "S:"+ts.record['hearts_count'].sentCount;
// add timestamp in HH:MM:SS
msg += new Date().toTimeString().split(' ')[0];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you intend to leave these changes in this pull request, or did you change the message just for local debugging? If intended, feel free to delete the old counting parts instead of commenting them out.

I'm not sure if anyone might be unhappy about this change. It is an easy way to check own stats without explicit tracking and creating reports, but timestamps on the other hand are indeed much more helpful if there is need for troubleshooting.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, forgot to take this out, thanks. Will do that.

I think it might be useful to have this as an option (like the debug logs) but that should be its own pull request if so.

if (gTaskController !== undefined && gTaskController.tasks !== undefined) {
var sendTask = gTaskController.tasks["sendHearts"];
if (sendTask !== undefined) {
Expand Down Expand Up @@ -127,6 +129,7 @@ var Button = {
outSendHeartEnd3: {x: 316, y: 1224, color: {r: 55, g: 91, b: 139}},
outFriendScoreFrom: {x: 550, y: 935, color: {"a":0,"b":140,"g":93,"r":55}},
outFriendScoreTo: {x: 760, y: 935},
outSplashPageTapToStart: {x: 510, y: 1510},
skillLuke1: {x: 1000, y: 1372},
skillLuke2: {x: 830, y: 1402},
skillLuke3: {x: 670, y: 1447},
Expand Down Expand Up @@ -1516,10 +1519,12 @@ Tsum.prototype.exitUnknownPage = function() {
keycode('KEYCODE_DPAD_DOWN', 50);
this.sleep(500);
keycode('KEYCODE_ENTER', 50);
this.tap(Button.gameQuestionCancel);
this.tap(Button.gameQuestionCancel2);
this.tap(Button.outClose);
this.tap(Button.gameStop);
this.tap(Button.outSplashPageTapToStart, 250);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess you checked that adding the 2nd ms parameter works as you expect, because for the CLY skill, I needed to add explicit sleep statements between taps. Just a hint - if it works for your problem this way, is's fine :-)

this.tap(Button.gameQuestionCancel, 250);
this.tap(Button.gameQuestionCancel2, 250);
this.tap(Button.outClose, 250);
this.tap(Button.gameStop, 250);
this.tap(Button.outStart, 250);
this.sleep(500);
}

Expand Down