Code Monkey home page Code Monkey logo

Comments (4)

Uberi avatar Uberi commented on September 2, 2024

Seems like something got corrupted somewhere - can you upload the schematic for testing?

As a temporary workaround until this is fixed, try a build without LuaJIT.

from minetest-worldedit.

LazyJ avatar LazyJ commented on September 2, 2024

Minetest engine, GitHub commit, 2014_12_10, fb80a7c111

Requested schematic, same build, 2 files (1 LuaJIT, 1 without), default nodes:
With LuaJIT - we_luajit.we
https://dl.dropboxusercontent.com/u/30991334/we_luajit.we

Without LuaJIT - we_no_luajit.we
https://dl.dropboxusercontent.com/u/30991334/we_no_luajit.we

I compiled Minetest without LuaJIT (-DDISABLE_LUAJIT=1) and another instance with LuaJIT.

In the LuaJIT instance I //saved we_luajit and then tried //loading it in another world - Minetest crashed with the same errors.

Then I copied both worlds into the **non-**LuaJIT instance, //saved we_no_luajit, and successfully //loaded it into the other world.

While still in the **non-**LuaJIT, I then tried //loading the we_luajit file and it worked.

Following that, I copyied we_no_luajit.we into a world in the LuaJIT compiled instance of Minetest and Minetest crashed when I tried to //load the schematic with the same error.

So it would seem that the //save process works in both **non-**LuaJIT and LuaJIT compiled instances of Minetest but the //load process is fubared.

While using WorldEdit in the **non-**LuaJIT instance, these errors came-up in the terminal:

05:33:41: WARNING: Undeclared global variable "jit" accessed at ...ods/WorldEdit_2014_10_24/worldedit/serialization.lua:157
05:33:41: ERROR[ServerThread]: Assignment to undeclared global "z" inside a function at ...ods/WorldEdit_2014_10_24/worldedit/serialization.lua:202.
05:33:41: ERROR[ServerThread]: Assignment to undeclared global "y" inside a function at ...ods/WorldEdit_2014_10_24/worldedit/serialization.lua:202.
05:33:41: ERROR[ServerThread]: Assignment to undeclared global "x" inside a function at ...ods/WorldEdit_2014_10_24/worldedit/serialization.lua:202.

I hope this helps.

from minetest-worldedit.

VanessaE avatar VanessaE commented on September 2, 2024

I can confirm this bug also. Another example schematic that crashes Minetest (with the same error/backtrace as LazyJ initially reported; I use LuaJIT also):

http://digitalaudioconcepts.com/vanessa/hobbies/minetest/oldspawn.we

In my case, I was simply trying to reload the schematic into another area in the same world from which it was just saved a minute or so prior (I was moving the "spawn building" in one of my worlds).

from minetest-worldedit.

Uberi avatar Uberi commented on September 2, 2024

I think this should be fixed in 04fdf92 - give it a try! Your test cases were very useful - for some reason minetest.deserialize now returns two values rather than one, which messed up our entry insertion.

from minetest-worldedit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.