Io.write() crashes the player


#22

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


#23

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)?


#24

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


#25

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").


#26

Thank you that fixed it.