[Fixt] Crash in jungle unknown bug

Status
Not open for further replies.

Katz007

Well-Known Member
Mar 23, 2021
224
5
38
Message: isNight is not defined

Stack: 76/window.naleenMaleEncounter@https://www.fenoxo.com/play/TiTS/backer/content_mhenga.9c0a0dc6.js:1:1793802 ET@https://www.fenoxo.com/play/TiTS/backer/content_mhenga.9c0a0dc6.js:1:4096632 76/
 

Attachments

  • Katz (H) - 14Hrs 13Mins, 113 Days - MHEN’GA, ARA ARA.json
    626.4 KB · Views: 0

lowercase_donkey

Scientist
Apr 27, 2016
1,624
232
Just a scope issue.

Lots of the old functions were converted, but the devs didn't add anything to the global scope unless they had to.

A lot of these crashes are caused by the code looking for functions that technically exist, but aren't hooked up.

The fix is so quick because it's just one line of code in the right place:

Code:
window.isNight = isNight;

edit: and yes, js is a bad language for bad people :mad:
 
  • Like
Reactions: Katz007

Katz007

Well-Known Member
Mar 23, 2021
224
5
38
Kinna shocked to learn that so many func still are not hooked up during conversion, and this is just the first planet.
 
Status
Not open for further replies.