Io.write() crashes the player

@britzl default project builds just fine. I also updated the editor and the issue persists. Does the build function require internet?

Only if you have one or more native extensions.

Can you please zip the entire project again and share it with me (bjorn.ritzl@king.com)?

That version needs the path of the main script to be fixed in the main collection and I incorrectly use io.open in cell_script.script

Yes you do:

function init(self)
	local f = io.open("grid_data.txt")
	local data = json.decode(io.read())
	story = data[self.x][self.y]
end

io.read() will block indefinitely and since the above piece of code runs on init when you create cell.go instances it will make the engine freeze up completely. It should be f:read("*a").

1 Like

Thank you that fixed it.

1 Like