Crash after character creation

Cynn

New Member
Mar 12, 2018
1
0
36
Heya, was just doing a little messing around and experienced a crash after finishing character creation, skipping the tutorial, and choosing to take Celise. Hopefully this crash info helps to improve the JS version :3

Message: e is undefined
Stack: 94083/window.moveToRoom@https://www.fenoxo.com/play/TiTS/backer/main.f55714fe.js:1:6051883 nS@https://www.fenoxo.com/play/TiTS/backer/main.f55714fe.js:1:10710705 doClick@https://www.fenoxo.com/play/TiTS/backer/main.f55714fe.js:1:10197655 value/a<@https://www.fenoxo.com/play/TiTS/backer/main.f55714fe.js:1:9911620 s@https://www.fenoxo.com/play/TiTS/backer/main.f55714fe.js:1:6043277
 

Arpie

Well-Known Member
Oct 31, 2018
51
17
54
On Safari 14.1.2 (MacOS 10.14.6) I get crashes when it tries to set or get the game clock immediately after doing the tutorial fight or skipping the tutorial.
I did not have this problem with a modern Google Chrome.

Manual checking on the Safari Console shows "window.hours" returns zero, but a bare "hours" throws the exception.

Thus the problem is the execution context and/or strict mode on Safari.

// Edit:

Confirmed that if you put this in the Safari Console:

JavaScript:
'use strict';

var lost = {
  loc : "Island"
}  

Object.defineProperty(window, "theloc", {
  get : function () {
    console.log("get", this);
    return this.lost.loc;
  },
  set : function (location) {
    console.log("set", this);
    this.lost.loc = location;
  }
});

window.theloc and theloc act differently because this is not defined in the latter calls to the property methods.

But in Google Chrome (96.0.4664.55) both work.

Based on an example from https://gist.github.com/udnp/c5e8896d7532bd88aa2932fd780c451d

--- Examples ---


Skip Tutorial:

Message: undefined is not an object (evaluating 'this.game')
Stack:
set@https://www.fenoxo.com/play/TiTS/backer/main.f55714fe.js:1:8843166
c_@https://www.fenoxo.com/play/TiTS/backer/main.f55714fe.js:1:10321589
doClick@https://www.fenoxo.com/play/TiTS/backer/main.f55714fe.js:1:10197659
s@https://www.fenoxo.com/play/TiTS/backer/main.f55714fe.js:1:6043282

Hitting Next after meeting Zeke after deciding to keep Celise:

Message:
undefined is not an object (evaluating 'this.game')

Stack:
get@https://www.fenoxo.com/play/TiTS/backer/main.f55714fe.js:1:8843243
t@https://www.fenoxo.com/play/TiTS/backer/content_tavros.248bfdcc.js:1:7490690
value@https://www.fenoxo.com/play/TiTS/backer/main.f55714fe.js:1:5117115
value@https://www.fenoxo.com/play/TiTS/backer/main.f55714fe.js:1:9895481
value@https://www.fenoxo.com/play/TiTS/backer/main.f55714fe.js:1:9892015
Ha@https://www.fenoxo.com/play/TiTS/backer/vendors.aa4303ec.js:1:360015
yl@https://www.fenoxo.com/play/TiTS/backer/vendors.aa4303ec.js:1:386861
vl@https://www.fenoxo.com/play/TiTS/backer/vendors.aa4303ec.js:1:386786
ul@https://www.fenoxo.com/play/TiTS/backer/vendors.aa4303ec.js:1:383816
ul@[native code]
Ko@https://www.fenoxo.com/play/TiTS/backer/vendors.aa4303ec.js:1:335402
Xo@https://www.fenoxo.com/play/TiTS/backer/vendors.aa4303ec.js:1:335337
nl@https://www.fenoxo.com/play/TiTS/backer/vendors.aa4303ec.js:1:380601
Vl@https://www.fenoxo.com/play/TiTS/backer/vendors.aa4303ec.js:1:401834
Xl@https://www.fenoxo.com/play/TiTS/backer/vendors.aa4303ec.js:1:402706
s@https://www.fenoxo.com/play/TiTS/backer/main.f55714fe.js:1:6043282
 
Last edited:

Leykoss

Well-Known Member
Moderator
Oct 4, 2019
499
128
26
Heya, was just doing a little messing around and experienced a crash after finishing character creation, skipping the tutorial, and choosing to take Celise. Hopefully this crash info helps to improve the JS version :3

Message: e is undefined
Stack: 94083/window.moveToRoom@https://www.fenoxo.com/play/TiTS/backer/main.f55714fe.js:1:6051883 nS@https://www.fenoxo.com/play/TiTS/backer/main.f55714fe.js:1:10710705 doClick@https://www.fenoxo.com/play/TiTS/backer/main.f55714fe.js:1:10197655 value/a<@https://www.fenoxo.com/play/TiTS/backer/main.f55714fe.js:1:9911620 s@https://www.fenoxo.com/play/TiTS/backer/main.f55714fe.js:1:6043277
Do you remember any of the selected options?
 

Leykoss

Well-Known Member
Moderator
Oct 4, 2019
499
128
26
On Safari 14.1.2 (MacOS 10.14.6) I get crashes when it tries to set or get the game clock immediately after doing the tutorial fight or skipping the tutorial.
I did not have this problem with a modern Google Chrome.

Manual checking on the Safari Console shows "window.hours" returns zero, but a bare "hours" throws the exception.

Thus the problem is the execution context and/or strict mode on Safari.

// Edit:

Confirmed that if you put this in the Safari Console:

JavaScript:
'use strict';

var lost = {
  loc : "Island"
} 

Object.defineProperty(window, "theloc", {
  get : function () {
    console.log("get", this);
    return this.lost.loc;
  },
  set : function (location) {
    console.log("set", this);
    this.lost.loc = location;
  }
});

window.theloc and theloc act differently because this is not defined in the latter calls to the property methods.

But in Google Chrome (96.0.4664.55) both work.

Based on an example from https://gist.github.com/udnp/c5e8896d7532bd88aa2932fd780c451d

--- Examples ---


Skip Tutorial:

Message: undefined is not an object (evaluating 'this.game')
Stack:
set@https://www.fenoxo.com/play/TiTS/backer/main.f55714fe.js:1:8843166
c_@https://www.fenoxo.com/play/TiTS/backer/main.f55714fe.js:1:10321589
doClick@https://www.fenoxo.com/play/TiTS/backer/main.f55714fe.js:1:10197659
s@https://www.fenoxo.com/play/TiTS/backer/main.f55714fe.js:1:6043282

Hitting Next after meeting Zeke after deciding to keep Celise:

Message:
undefined is not an object (evaluating 'this.game')

Stack:
get@https://www.fenoxo.com/play/TiTS/backer/main.f55714fe.js:1:8843243
t@https://www.fenoxo.com/play/TiTS/backer/content_tavros.248bfdcc.js:1:7490690
value@https://www.fenoxo.com/play/TiTS/backer/main.f55714fe.js:1:5117115
value@https://www.fenoxo.com/play/TiTS/backer/main.f55714fe.js:1:9895481
value@https://www.fenoxo.com/play/TiTS/backer/main.f55714fe.js:1:9892015
Ha@https://www.fenoxo.com/play/TiTS/backer/vendors.aa4303ec.js:1:360015
yl@https://www.fenoxo.com/play/TiTS/backer/vendors.aa4303ec.js:1:386861
vl@https://www.fenoxo.com/play/TiTS/backer/vendors.aa4303ec.js:1:386786
ul@https://www.fenoxo.com/play/TiTS/backer/vendors.aa4303ec.js:1:383816
ul@[native code]
Ko@https://www.fenoxo.com/play/TiTS/backer/vendors.aa4303ec.js:1:335402
Xo@https://www.fenoxo.com/play/TiTS/backer/vendors.aa4303ec.js:1:335337
nl@https://www.fenoxo.com/play/TiTS/backer/vendors.aa4303ec.js:1:380601
Vl@https://www.fenoxo.com/play/TiTS/backer/vendors.aa4303ec.js:1:401834
Xl@https://www.fenoxo.com/play/TiTS/backer/vendors.aa4303ec.js:1:402706
s@https://www.fenoxo.com/play/TiTS/backer/main.f55714fe.js:1:6043282
Chrome & Firefox are the ones currently supported.