I’ve made a very basic PulpScript game in Pulp. It runs fine in the web player. When I load in on hardware, or use the PlayDate Simulator, it crashes upon the finish event being invoked. I get this message, and the system needs to be reset:
?:-1: attempt to index a nil value (field '?')
stack traceback:
?: in upvalue '?'
?: in upvalue '?'
I’m using PulpScript, so I’m not explicitly accessing fields in any objects. I only have basic global variables. I narrowed the problem down to when I call fin, but since this is happening outside of my code, I’m not sure how to further troubleshoot the problem.
Any tips?
Thanks! Ben
PS here is the console log, including a dump before it happens:
?: in function <?:3805>echo off
target=h7d1
build=e44193e8-3.0.1-release.194549-gitlab-runner-251105
boot_build=e44193e8-3.0.1-release.194549-gitlab-runner
SDK=3.0.1
pdxversion=30000
serial#=PDU1-Y072541
cc=9.2.1 20191025 (release) [ARM/arm-9-branch revision 277599]
pcbver=0x13
time and date set
query error line 292,0: No device
gather scheduled games error: Internal Error: 0
Error fetching game list: Internal Error: 0 [-1]
garbage collected in 16ms
loaded pdz in 24ms
caching bitmaps...
using frames.pdt
using pipe.pdt
using chars.pdt
welcome back!
ready in 65ms
hearts: -1
================
EVENT
name finish
game Heart Hunt
player player
px 18
py 12
dx 0
dy 1
tx 18
ty 12
x 18
y 12
tile flames
room start
aa 182.0909
ra 0.0
frame 134
GAME
hearts -1
musical notess 1
hasPlayed 1
STORE
hasPlayed 1
CONFIG
textSpeed 20
follow 0
inputRepeat 1
inputRepeatBetween 0.2
inputRepeatDelay 0.4
followCenterY 7
textSkip 1
sayAdvanceDelay 0.2
followCenterX 12
autoAct 1
followOverflowTile black
allowDismissRootMenu 0