{"action":"closed","issue":{"url":"https://api.github.com/repos/Uberi/Minetest-WorldEdit/issues/84","labels_url":"https://api.github.com/repos/Uberi/Minetest-WorldEdit/issues/84/labels{/name}","comments_url":"https://api.github.com/repos/Uberi/Minetest-WorldEdit/issues/84/comments","events_url":"https://api.github.com/repos/Uberi/Minetest-WorldEdit/issues/84/events","html_url":"https://github.com/Uberi/Minetest-WorldEdit/issues/84","id":102454554,"number":84,"title":"Runtime error when using worldedit.deserialize","user":{"login":"Ferk","id":193426,"avatar_url":"https://avatars.githubusercontent.com/u/193426?v=3","gravatar_id":"","url":"https://api.github.com/users/Ferk","html_url":"https://github.com/Ferk","followers_url":"https://api.github.com/users/Ferk/followers","following_url":"https://api.github.com/users/Ferk/following{/other_user}","gists_url":"https://api.github.com/users/Ferk/gists{/gist_id}","starred_url":"https://api.github.com/users/Ferk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ferk/subscriptions","organizations_url":"https://api.github.com/users/Ferk/orgs","repos_url":"https://api.github.com/users/Ferk/repos","events_url":"https://api.github.com/users/Ferk/events{/privacy}","received_events_url":"https://api.github.com/users/Ferk/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Uberi/Minetest-WorldEdit/labels/invalid","name":"invalid","color":"e6e6e6"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-08-21T20:17:52Z","updated_at":"2015-08-25T01:26:36Z","closed_at":"2015-08-25T01:26:36Z","body":"I'm attempting to make a mod (well, subgame) use \".we\" files for its world generation. For this I'm using worldedit.deserialize directly from within my mod.\r\n\r\nHowever, when I attempt to do this I obtain the following error:\r\n\r\n    Lua: Runtime error from mod 'default' in callback ScriptApiServer::on_chat_message(): \r\n       ...worldedit/serialization.lua:27: attempt to call method 'find' (a nil value)\r\n       stack traceback:\r\n       ...worldedit/serialization.lua:27: In function 'read_header'\r\n       ...worldedit/serialization.lua:115: In function 'load_schematic'\r\n       ...worldedit/serialization.lua:220: In function 'deserialize'\r\n\r\nI'm actually not sure if this is really an issue that I should be posting here or is a mistake I made (I'm not very familiar with minetest development).\r\n\r\nThe schematic loads fine when I use the //load command from the console, and I'm basically using a very similar code to the one implemented in that command. It's just that I call it from a command implemented in my mod (the 'default' mod of my subgame).\r\n\r\nWhat could be causing 'find' to be nil? Do I need to import some library or something?"}}