{"action":"opened","issue":{"url":"https://api.github.com/repos/christopho/solarus/issues/760","labels_url":"https://api.github.com/repos/christopho/solarus/issues/760/labels{/name}","comments_url":"https://api.github.com/repos/christopho/solarus/issues/760/comments","events_url":"https://api.github.com/repos/christopho/solarus/issues/760/events","html_url":"https://github.com/christopho/solarus/issues/760","id":103961691,"number":760,"title":"Internal error: Failed to create software surface","user":{"login":"wrightmat","id":1219134,"avatar_url":"https://avatars.githubusercontent.com/u/1219134?v=3","gravatar_id":"","url":"https://api.github.com/users/wrightmat","html_url":"https://github.com/wrightmat","followers_url":"https://api.github.com/users/wrightmat/followers","following_url":"https://api.github.com/users/wrightmat/following{/other_user}","gists_url":"https://api.github.com/users/wrightmat/gists{/gist_id}","starred_url":"https://api.github.com/users/wrightmat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wrightmat/subscriptions","organizations_url":"https://api.github.com/users/wrightmat/orgs","repos_url":"https://api.github.com/users/wrightmat/repos","events_url":"https://api.github.com/users/wrightmat/events{/privacy}","received_events_url":"https://api.github.com/users/wrightmat/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-30T23:09:19Z","updated_at":"2015-08-30T23:09:19Z","closed_at":null,"body":"Error throws with the following code, the exact line referenced is room_overlay:fill_color. No further details on error, but I thought it might have something to do with overwriting room_overlay?\r\n\r\n  for i = 1, #rooms do\r\n    if game:get_value(\"dungeon_8_room\"..i..\"_lit\") then\r\n      if room_overlay then room_overlay = nil end\r\n      room_overlay = sol.surface.create(\"entities/dark_room.png\")\r\n      room_overlay:draw_region(rooms[i].x, rooms[i].y, 328, 262, dst_surface)\r\n    else\r\n      if room_overlay then room_overlay = nil end\r\n      room_overlay = sol.surface.create(328,262)\r\n      room_overlay:fill_color{0, 0, 0}\r\n      room_overlay:set_opacity(0.9 * 255)\r\n      room_overlay:draw_region(rooms[i].x, rooms[i].y, 328, 262, dst_surface)\r\n    end\r\n  end"}}