Crashing in the ship [0.9.010]

Status
Not open for further replies.

WolframL

Well-Known Member
Feb 12, 2020
3,604
5,139
42
Entering the Crew area of the ship is crashing my game on the latest version, with the following message:

Version: 0.9.010-BACKER-ELECTRON#2247 Message: Cannot read properties of undefined (reading 'nameDisplay') Stack:
TypeError: Cannot read properties of undefined (reading 'nameDisplay')
at file:///C:/Fenoxo/Trials%20in%20Tainted%20Space%20(0.9.010)/resources/app/main.5cfddb75.js:1:16051904
at Array.sort ()
at gb (file:///C:/Fenoxo/Trials%20in%20Tainted%20Space%20(0.9.010)/resources/app/main.5cfddb75.js:1:16051868)
at window.shipMenu (file:///C:/Fenoxo/Trials%20in%20Tainted%20Space%20(0.9.010)/resources/app/main.5cfddb75.js:1:16112416)
at e.A.runOnEnter (file:///C:/Fenoxo/Trials%20in%20Tainted%20Space%20(0.9.010)/resources/app/main.5cfddb75.js:1:9503962)
at tb (file:///C:/Fenoxo/Trials%20in%20Tainted%20Space%20(0.9.010)/resources/app/main.5cfddb75.js:1:16043311)
at e (file:///C:/Fenoxo/Trials%20in%20Tainted%20Space%20(0.9.010)/resources/app/main.5cfddb75.js:1:10261227)
at e.value (file:///C:/Fenoxo/Trials%20in%20Tainted%20Space%20(0.9.010)/resources/app/main.5cfddb75.js:1:15699945)
at Object.freeze.s.FUNCTIONS (file:///C:/Fenoxo/Trials%20in%20Tainted%20Space%20(0.9.010)/resources/app/main.5cfddb75.js:1:28797171)
at HTMLDocument. (file:///C:/Fenoxo/Trials%20in%20Tainted%20Space%20(0.9.010)/resources/app/main.5cfddb75.js:1:10884145)
```
I;m thinking it might be Dizzy-related since the error happened on a save where she's on the ship and doesn't happen on the others I've tried.
 

MakoBlade

Well-Known Member
Sep 19, 2018
53
8
28
This happened to me too, under the exact same circumstances. After using the cheat system to just skip to Tarvos though, everything seems to function normally. So temporary fix, use the cheat system, either move too Tarvos or skip there (But if you skip be sure to go back to Dhaal or wherever you leave your ship to get it back) drop off Dizzy, then resume as normal.

Edit: scratch that move too, just tried it in an experiment, and it crashed again. Just skip to Tarvos and go get your ship after.
 
Last edited:

mikethor007

Well-Known Member
Jun 26, 2021
1,184
809
52
Thankfully this doesn't happen to me in the latest version. Might be related to the specific save too.

In that case the best would be to attach it here.
 

OrangeBurner

Well-Known Member
Mar 13, 2022
305
72
I'm also getting this crash on current version (#2246).

This crash only seems to happen if you enter the Crew tile on your ship when you have Dizzy and haven't returned her to Bizzy. (Bascially haven't fully recruited her yet)

What I think the problem is that the game currently searches for char["DIZZY"] (which doesn't exist) when it should call char["DEZIERE"] instead.
This is because of a line in game_functions.js
JavaScript:
if (!diz.isCrew() && diz.atShip()) {
    other++;
    crewArray.push("DIZZY") // Should be "DEZIERE".
}

if (!counter) {
    // Sort the keys in alphabetical order of the crew member's name according to nameDisplay()
    const sortedKeys = crewArray.sort((a,b) => chars[a].nameDisplay().localeCompare(chars[b].nameDisplay()))
    // Add blurb and button at the same time
 

mikethor007

Well-Known Member
Jun 26, 2021
1,184
809
52
I'm also getting this crash on current version (#2246).

This crash only seems to happen if you enter the Crew tile on your ship when you have Dizzy and haven't returned her to Bizzy. (Bascially haven't fully recruited her yet)

What I think the problem is that the game currently searches for char["DIZZY"] (which doesn't exist) when it should call char["DEZIERE"] instead.
This is because of a line in game_functions.js
JavaScript:
if (!diz.isCrew() && diz.atShip()) {
    other++;
    crewArray.push("DIZZY") // Should be "DEZIERE".
}

if (!counter) {
    // Sort the keys in alphabetical order of the crew member's name according to nameDisplay()
    const sortedKeys = crewArray.sort((a,b) => chars[a].nameDisplay().localeCompare(chars[b].nameDisplay()))
    // Add blurb and button at the same time
If that is the problem, the it is quite sad. It used to work, I did interact with Dizzy in the Crew menu before bringing her to Bizzy, but it was a very succint and generic interaction. Just a couple of lines of text that point the player in Bizzy's direction.
 
Status
Not open for further replies.