Coder Social home page Coder Social logo

Add support for Minetest about mcthings HOT 15 CLOSED

voxelers avatar voxelers commented on July 23, 2024
Add support for Minetest

from mcthings.

Comments (15)

acs avatar acs commented on July 23, 2024

Ok, time to start testing it! The plan is to

  • Start using minetest server and client
  • Install the plugin for the server and test that it works

from mcthings.

acs avatar acs commented on July 23, 2024

[~]$ sudo dnf install minetest

Running transaction
  Preparing        :                                                                                                                                                                                                                      1/1 
  Running scriptlet: minetest-server-5.1.0-3.fc32.x86_64                                                                                                                                                                                  1/4 
  Installing       : minetest-server-5.1.0-3.fc32.x86_64                                                                                                                                                                                  1/4 
  Running scriptlet: minetest-server-5.1.0-3.fc32.x86_64                                                                                                                                                                                  1/4 
  Installing       : libaesgm-20090429-22.fc32.x86_64                                                                                                                                                                                     2/4 
  Installing       : irrlicht-1.8.4-11.fc32.x86_64                                                                                                                                                                                        3/4 
  Installing       : minetest-5.1.0-3.fc32.x86_64                                                                                                                                                                                         4/4 
  Running scriptlet: minetest-5.1.0-3.fc32.x86_64                                                                                                                                                                                         4/4 
  Verifying        : irrlicht-1.8.4-11.fc32.x86_64                                                                                                                                                                                        1/4 
  Verifying        : libaesgm-20090429-22.fc32.x86_64                                                                                                                                                                                     2/4 
  Verifying        : minetest-5.1.0-3.fc32.x86_64                                                                                                                                                                                         3/4 
  Verifying        : minetest-server-5.1.0-3.fc32.x86_6

from mcthings.

acs avatar acs commented on July 23, 2024

It it easy (just to drop the mod inside the folder

/home/adelcastillo/.minetest/mods/raspberryjammod

and when you are creating a new world, go to configure and enable the mod:

Screenshot from 2020-05-03 17-11-17

but there are issues with it:

Screenshot from 2020-05-03 17-11-23

something that it is normal because it seems the mod was developed under windows, and it has no changes for the last 4 years.

from mcthings.

acs avatar acs commented on July 23, 2024

It is time to start debugging a bit because probably it needs some change in Linux. In the code I can see:

local status,err = pcall(function() socket = ie.require("socket.core") end)
if not status then
   socket = ie.require("socket.cx64")
end

so it seems it can not find the socket.core.

I have already installed:

Package lua-socket-3.0-0.22.rc1.fc32.x86_64 is already installed.

so the problem should be other. So we need to start learning a bit more about Lua!

from mcthings.

acs avatar acs commented on July 23, 2024

The complete log is:

Loaded texture: /usr/share/minetest/games/minetest_game/menu/header.png
2020-05-03 17:11:20: ERROR[Main]: ModError: Failed to load and run script from /home/adelcastillo/.minetest/mods/raspberryjammod/init.lua:
2020-05-03 17:11:20: ERROR[Main]: ...e/adelcastillo/.minetest/mods/raspberryjammod/socket.lua:21: module 'socket.cx64' not found:
2020-05-03 17:11:20: ERROR[Main]: 	no field package.preload['socket.cx64']
2020-05-03 17:11:20: ERROR[Main]: 	no file './socket/cx64.lua'
2020-05-03 17:11:20: ERROR[Main]: 	no file '/usr/share/luajit-2.1.0-beta3/socket/cx64.lua'
2020-05-03 17:11:20: ERROR[Main]: 	no file '/usr/local/share/lua/5.1/socket/cx64.lua'
2020-05-03 17:11:20: ERROR[Main]: 	no file '/usr/local/share/lua/5.1/socket/cx64/init.lua'
2020-05-03 17:11:20: ERROR[Main]: 	no file '/usr/share/lua/5.1/socket/cx64.lua'
2020-05-03 17:11:20: ERROR[Main]: 	no file '/usr/share/lua/5.1/socket/cx64/init.lua'
2020-05-03 17:11:20: ERROR[Main]: 	no file '/home/adelcastillo/.minetest/mods/raspberryjammod/socket/cx64.lua'
2020-05-03 17:11:20: ERROR[Main]: 	no file './socket/cx64.so'
2020-05-03 17:11:20: ERROR[Main]: 	no file '/usr/local/lib/lua/5.1/socket/cx64.so'
2020-05-03 17:11:20: ERROR[Main]: 	no file '/usr/lib64/lua/5.1/socket/cx64.so'
2020-05-03 17:11:20: ERROR[Main]: 	no file '/usr/local/lib/lua/5.1/loadall.so'
2020-05-03 17:11:20: ERROR[Main]: 	no file '/home/adelcastillo/.minetest/mods/raspberryjammod/socket/cx64.so'
2020-05-03 17:11:20: ERROR[Main]: 	no file './socket.so'
2020-05-03 17:11:20: ERROR[Main]: 	no file '/usr/local/lib/lua/5.1/socket.so'
2020-05-03 17:11:20: ERROR[Main]: 	no file '/usr/lib64/lua/5.1/socket.so'
2020-05-03 17:11:20: ERROR[Main]: 	no file '/usr/local/lib/lua/5.1/loadall.so'
2020-05-03 17:11:20: ERROR[Main]: 	no file '/home/adelcastillo/.minetest/mods/raspberryjammod/socket.so'
2020-05-03 17:11:20: ERROR[Main]: stack traceback:
2020-05-03 17:11:20: ERROR[Main]: 	[C]: in function 'require'
2020-05-03 17:11:20: ERROR[Main]: 	...e/adelcastillo/.minetest/mods/raspberryjammod/socket.lua:21: in main chunk
2020-05-03 17:11:20: ERROR[Main]: 	[C]: in function 'require'
2020-05-03 17:11:20: ERROR[Main]: 	/home/adelcastillo/.minetest/mods/raspberryjammod/init.lua:34: in main chunk
2020-05-03 17:11:20: ERROR[Main]: Check debug.txt for details.

so it first try to load socket/core.so module and after it socket/cx64.so. And the poblem is:

[raspberryjammod]$ ls -l /usr/lib64/lua/5.3/socket/core.so 
-rwxr-xr-x. 1 root root 64720 Jan 29 14:08 /usr/lib64/lua/5.3/socket/core.so

so we need to configure 5.3 version and no 5.1.

lua-socket-compat.x86_64 : Network support for the Lua language 5.1

and now it has worked!

from mcthings.

acs avatar acs commented on July 23, 2024

Last step is to check that all is working.

[raspberryjammod]$ telnet localhost 4711
Trying ::1...
telnet: connect to address ::1: Connection refused
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.

Cool! Let's try to draw things!

from mcthings.

acs avatar acs commented on July 23, 2024

Wonderful. It it working for sending messages:
Screenshot from 2020-05-03 17-30-55

from mcthings.

acs avatar acs commented on July 23, 2024

So now, it is time to test the full API to check it is compatible!

from mcthings.

acs avatar acs commented on July 23, 2024

The two block test has worked! I just need to change:

BUILDER_NAME = "singleplayer" # for minetest

Screenshot from 2020-05-03 17-33-41

from mcthings.

acs avatar acs commented on July 23, 2024

All the tests have worked!

Screenshot from 2020-05-03 17-42-05

from mcthings.

acs avatar acs commented on July 23, 2024

I am so happy ... a true free software platform in which to develop with Python! So cool!

Now we can decide if go with the pretty and polished Minecraft, used by millions of persons, or with Minetest, totally Open Source, not so pretty but ... free software

from mcthings.

acs avatar acs commented on July 23, 2024

I have tried to build the Abadia and it works. The experience flying around it is worse than with Minecraft. But maybe I need to adjust things. Let's see,

from mcthings.

acs avatar acs commented on July 23, 2024

Ok, I will play a bit more with everything, I will record a video and then, we can close this issue.

from mcthings.

acs avatar acs commented on July 23, 2024

Video recorded and uploaded:

https://www.youtube.com/watch?v=5qwQ1lD_E24&t=3s

Closing this issue!

from mcthings.

acs avatar acs commented on July 23, 2024

https://forum.minetest.net/viewtopic.php?t=13316

from mcthings.

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.