Minetest 0.4.13

User avatar
Linuxdirk
Member
 
Posts: 497
Joined: Wed Sep 17, 2014 11:21
GitHub: dsohler
In-game: Linuxdirk

Re: Minetest 0.4.13

by Linuxdirk » Sat Aug 29, 2015 15:44

Finally I was able to compile and test 0.4.12 and the first thing I tried after realizing that the localization still does not work for me was the minimap.

But how can I make it display anything other than simply a green space?

http://imgur.com/vuccIgF
 

est31
Member
 
Posts: 172
Joined: Mon Dec 29, 2014 01:49

Re: Minetest 0.4.13

by est31 » Sat Aug 29, 2015 16:46

@Linuxdirk The minimap has multiple modes, you can switch through them with f9 and shift+f9. The radar mode is supposed to be used underground, and can become a bit green above ground.

For the case you still get this green field for the "surface mode" as well, what is your OS, Opengl version, irrlicht version? Also, can you try it with graphics settings turned off/on?
 

User avatar
Linuxdirk
Member
 
Posts: 497
Joined: Wed Sep 17, 2014 11:21
GitHub: dsohler
In-game: Linuxdirk

Re: Minetest 0.4.13

by Linuxdirk » Sat Aug 29, 2015 19:14

est31 wrote:@Linuxdirk The minimap has multiple modes, you can switch through them with f9 and shift+f9.

I switched through all available modes. All green.

est31 wrote:what is your OS, Opengl version, irrlicht version?

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
$ uname -rms
Linux 4.1.5-1-ARCH x86_64

$ glxinfo | grep "OpenGL version"
OpenGL version string: 3.3.0 NVIDIA 340.76

$ pacman -Qi irrlicht | grep Version
Version: 1.8.1-2


est31 wrote:Also, can you try it with graphics settings turned off/on?

What settings?
 

User avatar
Napiophelios
Member
 
Posts: 752
Joined: Mon Jul 07, 2014 01:14
GitHub: Napiophelios
IRC: Nappi
In-game: Nappi

Re: Minetest 0.4.13

by Napiophelios » Sat Aug 29, 2015 19:27

@LinuxDirk : it looks like you might be missing a texture and minetest is supplying a generic one.
look into the "textures\base\pack" folder and make sure you have all of these:
minimap_mask_round.png
minimap_mask_square.png
minimap_overlay_round.png
minimap_overlay_square.png
 

User avatar
Linuxdirk
Member
 
Posts: 497
Joined: Wed Sep 17, 2014 11:21
GitHub: dsohler
In-game: Linuxdirk

Re: Minetest 0.4.13

by Linuxdirk » Sat Aug 29, 2015 20:36

Napiophelios wrote:@LinuxDirk : it looks like you might be missing a texture and minetest is supplying a generic one.

I wanted to change my texture to the default textures and now it crashes and I get this:

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
$ minetest
2015-08-29 22:35:20: ERROR[main]: ========== ERROR FROM LUA ===========
2015-08-29 22:35:20: ERROR[main]: Failed to load and run script from
2015-08-29 22:35:20: ERROR[main]: /usr/share/minetest/builtin/init.lua:
2015-08-29 22:35:20: ERROR[main]: ...share/minetest/builtin/mainmenu/tab_texturepacks.lua:53: attempt to call field 'get_dirlist' (a nil value)
2015-08-29 22:35:20: ERROR[main]: stack traceback:
2015-08-29 22:35:20: ERROR[main]:    ...share/minetest/builtin/mainmenu/tab_texturepacks.lua:53: in function 'get_formspec'
2015-08-29 22:35:20: ERROR[main]:    /usr/share/minetest/builtin/fstk/tabview.lua:74: in function 'get_formspec'
2015-08-29 22:35:20: ERROR[main]:    /usr/share/minetest/builtin/fstk/ui.lua:72: in function 'update'
2015-08-29 22:35:20: ERROR[main]:    /usr/share/minetest/builtin/mainmenu/init.lua:161: in function 'init_globals'
2015-08-29 22:35:20: ERROR[main]:    /usr/share/minetest/builtin/mainmenu/init.lua:166: in main chunk
2015-08-29 22:35:20: ERROR[main]:    [C]: in function 'dofile'
2015-08-29 22:35:20: ERROR[main]:    /usr/share/minetest/builtin/init.lua:31: in main chunk
2015-08-29 22:35:20: ERROR[main]: ======= END OF ERROR FROM LUA ========
2015-08-29 22:35:20: ERROR[main]: No future without mainmenu
Aborted (core dumped)


Maybe I should revert to 0.4.12 and wait for 0.4.13.1 or so.

Edit: This is reproducible wish a fresh configuration (i.e. deletes ~/.minetest). As soon as I switch to the texture packs tab in main menu the game crashes with this message.

And even with the default textures after a fresh installation I do not see the map.
 

est31
Member
 
Posts: 172
Joined: Mon Dec 29, 2014 01:49

Re: Minetest 0.4.13

by est31 » Sat Aug 29, 2015 21:58

Linuxdirk: I mean graphics settings like shaders or fsaa if you have turned them on.
 

est31
Member
 
Posts: 172
Joined: Mon Dec 29, 2014 01:49

Re: Minetest 0.4.13

by est31 » Sat Aug 29, 2015 22:05

Also, do you get some error messages, like texture not being found?
 

est31
Member
 
Posts: 172
Joined: Mon Dec 29, 2014 01:49

Re: Minetest 0.4.13

by est31 » Sat Aug 29, 2015 22:30

From your error
Linuxdirk wrote:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
2015-08-29 22:35:20: ERROR[main]: ...share/minetest/builtin/mainmenu/tab_texturepacks.lua:53: attempt to call field 'get_dirlist' (a nil value)


i tell that the problem is that the main menu is at /usr/share/minetest/builtin, and still the 0.4.12 mainmenu (the method has been renamed since 0.4.12 in commit 8f9af573). It seems you either have forgotten do do "make install", or to enable RUN_IN_PLACE.
 

est31
Member
 
Posts: 172
Joined: Mon Dec 29, 2014 01:49

Re: Minetest 0.4.13

by est31 » Sat Aug 29, 2015 23:00

And Linuxdirk, in which regard does gettext not work for you in 0.4.13?
 

User avatar
Linuxdirk
Member
 
Posts: 497
Joined: Wed Sep 17, 2014 11:21
GitHub: dsohler
In-game: Linuxdirk

Re: Minetest 0.4.13

by Linuxdirk » Sun Aug 30, 2015 07:47

est31 wrote:It seems you either have forgotten do do "make install", or to enable RUN_IN_PLACE.

All I did was changing a variable that defines what version shouldbe downloaded and build (see line 6).

est31 wrote:in which regard does gettext not work for you in 0.4.13?

It doesn’t work at all. Not one single line is translated to German or any of the locales that are detected during build process.

Edit: I just removed all of the MT related packages and properly built and reinstalled them in the correct version. Now the main menu and the minimap are working (even If I now have around 50% frames per second less resulting in around 30-40 FPS instead of 60). Translations are still broken.
 

est31
Member
 
Posts: 172
Joined: Mon Dec 29, 2014 01:49

Re: Minetest 0.4.13

by est31 » Sun Aug 30, 2015 08:26

@ building minetest 0.4.13, I'm not that familiar with arch packaging (I'm a kubuntu user), but from the commit log I see the maintainers update the md5 sums as well.

@ language problem: whats your output of "locale -a"? does german appear in there? If yes, if you take one of the german values listed in there, and launch minetest with the command "LANGUAGE=de_DE minetest", does it still not work?
 

User avatar
Linuxdirk
Member
 
Posts: 497
Joined: Wed Sep 17, 2014 11:21
GitHub: dsohler
In-game: Linuxdirk

Re: Minetest 0.4.13

by Linuxdirk » Sun Aug 30, 2015 10:27

est31 wrote:@ language problem: whats your output of "locale -a"? does german appear in there?

Yes, German appears there.

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
$ locale -a
C
de_DE.utf8
en_DK.utf8
en_US.utf8
POSIX

All applications that use gettext are properly translated to German if German is available for that application.

est31 wrote:If yes, if you take one of the german values listed in there, and launch minetest with the command "LANGUAGE=de_DE minetest"

No, it is still everything in English.

Here’s a verbose startup log stating …

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
2015-08-30 12:24:54: INFO[main]: minetest with SER_FMT_VER_HIGHEST_READ=26, VER=0.4.13 BUILD_TYPE=Release RUN_IN_PLACE=0 USE_GETTEXT=1 USE_SOUND=1 USE_CURL=1 USE_FREETYPE=1 USE_LUAJIT=0 STATIC_SHAREDIR="/usr/share/minetest"

… and …

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
2015-08-30 12:24:54: INFO[main]: Message locale is now set to: LC_CTYPE=de_DE.utf8;LC_NUMERIC=C;LC_TIME=en_DK.utf8;LC_COLLATE=de_DE.utf8;LC_MONETARY=de_DE.utf8;LC_MESSAGES=de_DE.utf8;LC_PAPER=de_DE.utf8;LC_NAME=de_DE.utf8;LC_ADDRESS=de_DE.utf8;LC_TELEPHONE=de_DE.utf8;LC_MEASUREMENT=de_DE.utf8;LC_IDENTIFICATION=de_DE.utf8

… but still displays anything not in German.

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
$ LANGUAGE=de_DE minetest --verbose
2015-08-30 12:24:54: INFO[main]: Using system-wide paths (NOT RUN_IN_PLACE)
2015-08-30 12:24:54: INFO[main]: Detected share path: /usr/share/minetest
2015-08-30 12:24:54: INFO[main]: Detected user path: /home/dirk/.minetest
2015-08-30 12:24:54: INFO[main]: path_share = /usr/share/minetest
2015-08-30 12:24:54: INFO[main]: path_user  = /home/dirk/.minetest
2015-08-30 12:24:54: INFO[main]: minetest with SER_FMT_VER_HIGHEST_READ=26, VER=0.4.13 BUILD_TYPE=Release RUN_IN_PLACE=0 USE_GETTEXT=1 USE_SOUND=1 USE_CURL=1 USE_FREETYPE=1 USE_LUAJIT=0 STATIC_SHAREDIR="/usr/share/minetest"
2015-08-30 12:24:54: INFO[main]: logfile = /home/dirk/.minetest/debug.txt
2015-08-30 12:24:54: VERBOSE[main]: httpfetch_init: parallel_limit=8
2015-08-30 12:24:54: INFO[main]: Message locale is now set to: LC_CTYPE=de_DE.utf8;LC_NUMERIC=C;LC_TIME=en_DK.utf8;LC_COLLATE=de_DE.utf8;LC_MONETARY=de_DE.utf8;LC_MESSAGES=de_DE.utf8;LC_PAPER=de_DE.utf8;LC_NAME=de_DE.utf8;LC_ADDRESS=de_DE.utf8;LC_TELEPHONE=de_DE.utf8;LC_MEASUREMENT=de_DE.utf8;LC_IDENTIFICATION=de_DE.utf8
2015-08-30 12:24:54: VERBOSE[main]: Determining world path
2015-08-30 12:24:54: INFO[main]: Searching worlds...
2015-08-30 12:24:54: INFO[main]:   In /home/dirk/.minetest/worlds:
2015-08-30 12:24:54: INFO[main]: Server Room Spielwelt
2015-08-30 12:24:54: INFO[main]: 2 found.
2015-08-30 12:24:54: INFO[main]: Creating default world at [/home/dirk/.minetest/worlds/world]
2015-08-30 12:24:54: VERBOSE[main]: Determining gameid/gamespec
2015-08-30 12:24:54: INFO[main]: Using default gameid [minetest]
2015-08-30 12:24:54: INFO[main]: Using commanded world path [/home/dirk/.minetest/worlds/world]
2015-08-30 12:24:54: INFO[main]: Irrlicht: Irrlicht Engine version 1.8.1
2015-08-30 12:24:54: INFO[main]: Irrlicht: Linux 4.1.6-1-ARCH #1 SMP PREEMPT Mon Aug 17 08:52:28 CEST 2015 x86_64
2015-08-30 12:24:54: INFO[main]: Irrlicht: Using renderer: OpenGL 3.3.0
2015-08-30 12:24:54: INFO[main]: Irrlicht: GeForce 9600 GT/PCIe/SSE2: NVIDIA Corporation
2015-08-30 12:24:54: INFO[main]: Irrlicht: OpenGL driver version is 1.2 or better.
2015-08-30 12:24:54: INFO[main]: Irrlicht: GLSL version: 3.3
2015-08-30 12:24:54: INFO[main]: text_height=17
2015-08-30 12:24:54: INFO[main]: Waiting for other menus
2015-08-30 12:24:54: INFO[main]: Waited for other menus
2015-08-30 12:24:54: INFO[main]: Audio: Initializing...
2015-08-30 12:24:54: INFO[main]: Audio: Vorbis extension NOT present
2015-08-30 12:24:54: INFO[main]: Audio: Initialized: OpenAL 1.1 ALSOFT 1.16.0, using OpenAL Soft
2015-08-30 12:24:54: INFO[main]: GUIEngine: Initializing Lua
2015-08-30 12:24:54: VERBOSE[AsyncWorkerThread_0]: Loading and running script from /usr/share/minetest/builtin/init.lua
2015-08-30 12:24:54: VERBOSE[AsyncWorkerThread_1]: Loading and running script from /usr/share/minetest/builtin/init.lua
2015-08-30 12:24:54: INFO[AsyncWorkerThread_0]: Initializing Asynchronous environment
2015-08-30 12:24:54: INFO[AsyncWorkerThread_1]: Initializing Asynchronous environment
2015-08-30 12:24:54: VERBOSE[AsyncWorkerThread_2]: Loading and running script from /usr/share/minetest/builtin/init.lua
2015-08-30 12:24:54: INFO[AsyncWorkerThread_2]: Initializing Asynchronous environment
2015-08-30 12:24:54: INFO[main]: SCRIPTAPI: Initialized main menu modules
2015-08-30 12:24:54: VERBOSE[main]: Loading and running script from /usr/share/minetest/builtin/init.luaLoading and running script from /usr/share/minetest/builtin/init.lua
2015-08-30 12:24:54: VERBOSE[AsyncWorkerThread_3]:
2015-08-30 12:24:54: INFO[AsyncWorkerThread_3]: Initializing Asynchronous environment
2015-08-30 12:24:54: INFO[main]: Searching worlds...
2015-08-30 12:24:54: INFO[main]:   In /home/dirk/.minetest/worlds:
2015-08-30 12:24:54: INFO[main]: Server Room Spielwelt
2015-08-30 12:24:54: INFO[main]: 2 found.
2015-08-30 12:24:54: VERBOSE[main]: OpenALSoundManager::maintain(): 0 playing sounds, 0 sound names loaded
2015-08-30 12:24:54: INFO[main]: Audio: Error opening /home/dirk/.minetest/sounds/main_menu.0.ogg for decoding
2015-08-30 12:24:54: INFO[main]: Audio: Error opening /home/dirk/.minetest/sounds/main_menu.1.ogg for decoding
2015-08-30 12:24:54: INFO[main]: Audio: Error opening /home/dirk/.minetest/sounds/main_menu.2.ogg for decoding
2015-08-30 12:24:54: INFO[main]: Audio: Error opening /home/dirk/.minetest/sounds/main_menu.3.ogg for decoding
2015-08-30 12:24:54: INFO[main]: Audio: Error opening /home/dirk/.minetest/sounds/main_menu.4.ogg for decoding
2015-08-30 12:24:54: INFO[main]: Audio: Error opening /home/dirk/.minetest/sounds/main_menu.5.ogg for decoding
2015-08-30 12:24:54: INFO[main]: Audio: Error opening /home/dirk/.minetest/sounds/main_menu.6.ogg for decoding
2015-08-30 12:24:54: INFO[main]: Audio: Error opening /home/dirk/.minetest/sounds/main_menu.7.ogg for decoding
2015-08-30 12:24:54: INFO[main]: Audio: Error opening /home/dirk/.minetest/sounds/main_menu.8.ogg for decoding
2015-08-30 12:24:54: INFO[main]: Audio: Error opening /home/dirk/.minetest/sounds/main_menu.9.ogg for decoding
2015-08-30 12:24:54: INFO[main]: Audio: Error opening /home/dirk/.minetest/sounds/main_menu.ogg for decoding
2015-08-30 12:24:54: INFO[main]: Audio: Error opening /usr/share/minetest/sounds/main_menu.0.ogg for decoding
2015-08-30 12:24:54: INFO[main]: Audio: Error opening /usr/share/minetest/sounds/main_menu.1.ogg for decoding
2015-08-30 12:24:54: INFO[main]: Audio: Error opening /usr/share/minetest/sounds/main_menu.2.ogg for decoding
2015-08-30 12:24:54: INFO[main]: Audio: Error opening /usr/share/minetest/sounds/main_menu.3.ogg for decoding
2015-08-30 12:24:54: INFO[main]: Audio: Error opening /usr/share/minetest/sounds/main_menu.4.ogg for decoding
2015-08-30 12:24:54: INFO[main]: Audio: Error opening /usr/share/minetest/sounds/main_menu.5.ogg for decoding
2015-08-30 12:24:54: INFO[main]: Audio: Error opening /usr/share/minetest/sounds/main_menu.6.ogg for decoding
2015-08-30 12:24:54: INFO[main]: Audio: Error opening /usr/share/minetest/sounds/main_menu.7.ogg for decoding
2015-08-30 12:24:54: INFO[main]: Audio: Error opening /usr/share/minetest/sounds/main_menu.8.ogg for decoding
2015-08-30 12:24:54: INFO[main]: Audio: Error opening /usr/share/minetest/sounds/main_menu.9.ogg for decoding
2015-08-30 12:24:54: INFO[main]: Audio: Error opening /usr/share/minetest/sounds/main_menu.ogg for decoding
2015-08-30 12:24:54: INFO[main]: OpenALSoundManager: "main_menu" not found.
2015-08-30 12:24:55: INFO[main]: Audio: Deinitializing...
2015-08-30 12:24:55: INFO[main]: Audio: Deinitialized.
2015-08-30 12:24:55: INFO[main]: GUIEngine: Deinitializing scripting
2015-08-30 12:24:55: INFO[main]: Searching worlds...
2015-08-30 12:24:55: INFO[main]:   In /home/dirk/.minetest/worlds:
2015-08-30 12:24:55: INFO[main]: Server Room Spielwelt
2015-08-30 12:24:55: INFO[main]: 2 found.
2015-08-30 12:24:55: INFO[main]: Selected world: Server Room [/home/dirk/.minetest/worlds/Server Room]
2015-08-30 12:24:55: VERBOSE[main]: httpfetch_cleanup: cleaning up
 

User avatar
TenPlus1
Member
 
Posts: 1874
Joined: Mon Jul 29, 2013 13:38
GitHub: tenplus1

Re: Minetest 0.4.13

by TenPlus1 » Sun Aug 30, 2015 13:00

Still having random crashes with this error: any idea what's causing it devs ?

minetest: /build/minetest-2NdXxW/minetest-201508270701/src/util/serialize.h:265: void writeF1000(irr::u8*, irr::f32): Assertion `i >= ((float)(s32)((-0x7FFFFFFF - 1) / 1000.0f)) && i <= ((float)(s32)((0x7FFFFFFF) / 1000.0f))' failed.
 

User avatar
benrob0329
Member
 
Posts: 1192
Joined: Thu Aug 06, 2015 22:39
GitHub: Benrob0329
In-game: benrob03

Re: Minetest 0.4.13

by benrob0329 » Sun Aug 30, 2015 14:42

Looks to me like that's either a coding mistake or a bug with Irrllicht.

As for building MT, I'm a pretty New Arch user, though I love the AUR now that I understand it more. As for changing the MAKEPKG...I don't think I would be much help there. But I can try to explain the way the AUR and Pacman handle packages.

So when you want to build a package from source in Arch, you generally go and download a compressed folder from the AUR and extract it.

You then navigate to it and run makepkg -sri (I think, I almost always use terminal history)

Makepkg then checks the dependencies and runs pacman to install them. (If it's in the AUR then you have to go and download that, or use an AUR helper)

Then Makepkg builds and compiles the source, and makes a package out of it.

Then pacman gets run twice, once to install the new package and one to remove now unneeded dependencies.
 

User avatar
Linuxdirk
Member
 
Posts: 497
Joined: Wed Sep 17, 2014 11:21
GitHub: dsohler
In-game: Linuxdirk

Re: Minetest 0.4.13

by Linuxdirk » Sun Aug 30, 2015 15:36

benrob0329 wrote:So when you want to build a package from source in Arch, […]

I’m an Arch user since ~10 years and host my own packages in AUR so I basically know my way around :) I think I just forgot to update another MT related package and was already capable of properly compiling and running it. All that is missing is the translations, that just don’t happen even if anything during the build process and after startup says it should.
 

User avatar
benrob0329
Member
 
Posts: 1192
Joined: Thu Aug 06, 2015 22:39
GitHub: Benrob0329
In-game: benrob03

Re: Minetest 0.4.13

by benrob0329 » Sun Aug 30, 2015 16:06

I like that there are a large number of Arch users here, if I have a question, I can just ask!

I was explaining it for est31, since he's a kubuntu user.
 

est31
Member
 
Posts: 172
Joined: Mon Dec 29, 2014 01:49

Re: Minetest 0.4.13

by est31 » Mon Aug 31, 2015 00:50

@Linuxdirk can you try to do an in-place build, without installing? So doing:

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
git clone https://github.com/minetest/minetest.git && cd minetest && cmake -DRUN_IN_PLACE=1 && make -j 8 && LANGUAGE=de_DE bin/minetest
 

est31
Member
 
Posts: 172
Joined: Mon Dec 29, 2014 01:49

Re: Minetest 0.4.13

by est31 » Mon Aug 31, 2015 02:41

TenPlus1: the error causing the random crashes existed before 0.4.13 too, the only change was that the error has been made crashing, so that we now can (hopefully) detect their cause. Which version do you use for the client? From the ppas? or self-built? What does it say as BUILD_TYPE in the esc menu? The errors should only occur with debug builds, if you want to live without crash (but with slight errors), you can switch to release builds. If you get the crashes in release builds, we have a problem :)
 

User avatar
TenPlus1
Member
 
Posts: 1874
Joined: Mon Jul 29, 2013 13:38
GitHub: tenplus1

Re: Minetest 0.4.13

by TenPlus1 » Mon Aug 31, 2015 07:54

est31: We use daily build 4080 for 64-bit ubuntu/mint from the downloads menu on the site...
 

est31
Member
 
Posts: 172
Joined: Mon Dec 29, 2014 01:49

Re: Minetest 0.4.13

by est31 » Mon Aug 31, 2015 08:44

I'm not sure whether they are debug or release builds. Can you add this code to the server, and tell me what it prints when you log in:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
minetest.register_on_prejoinplayer(function(name)
if name == "TenPlus1" then
local info = minetest.get_player_information("TenPlus1")
minetest.chat_send_player("TenPlus1", "Hi, the output is: " .. dump(info.connection_uptime) .. " and " .. dump(info.vers_string))
end
end)
 

User avatar
TenPlus1
Member
 
Posts: 1874
Joined: Mon Jul 29, 2013 13:38
GitHub: tenplus1

Re: Minetest 0.4.13

by TenPlus1 » Mon Aug 31, 2015 09:24

2015-08-31 10:22:55: ERROR[Main]: ServerError: Lua: Runtime error from mod 'test' in callback on_prejoinplayer(): /home/xanadu/.minetest/mods/test/init.lua:52: attempt to get length of local 'info' (a nil value)

the 'local info = minetest.get_player_information("TenPlus1")' table contains nothing at all ?!?!
 

est31
Member
 
Posts: 172
Joined: Mon Dec 29, 2014 01:49

Re: Minetest 0.4.13

by est31 » Mon Aug 31, 2015 11:23

Ah, I see, the problem was the "pre" in "prejoinplayer". The following code would work (I've tested it), but there is an engine bug right now, leading in a crash, I will fix it, then you can try it once updated:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
minetest.register_on_joinplayer(function(player)
   local pname = "TenPlus1"
   if player:get_player_name() == pname then
   local info = minetest.get_player_information(pname)
      minetest.chat_send_player(pname, "Hi, the output is: " .. dump(info.connection_uptime) .. " and " .. dump(info.version_string))
   end
end)
 

User avatar
Linuxdirk
Member
 
Posts: 497
Joined: Wed Sep 17, 2014 11:21
GitHub: dsohler
In-game: Linuxdirk

Re: Minetest 0.4.13

by Linuxdirk » Mon Aug 31, 2015 17:23

est31 wrote:@Linuxdirk can you try to do an in-place build, without installing? So doing:

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
git clone https://github.com/minetest/minetest.git && cd minetest && cmake -DRUN_IN_PLACE=1 && make -j 8 && LANGUAGE=de_DE bin/minetest

It’s all in English and it now says USE_GETTEXT=0.

What we found out in the other thread (besides marking bugfixes as low-priority enhancements) is that minetest expects the locales to be in an unusual place instead of the default /usr/share/locale tree.

When linking the whole locale tree in /usr/share/minetest/locale the installed version of the games properly uses the translation. So I guess iths either an ignored configuration option (a bug in Minetest) a not set compiling option (a bug in my distributions build file for the package) or something else that behaves weird.

Anyway, here’s the log file of the verbose startup I did after compiling it with your one-liner.

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
$ LANGUAGE=de_DE bin/minetest --verbose
2015-08-31 19:12:58: INFO[Main]: Using relative paths (RUN_IN_PLACE)
2015-08-31 19:12:58: INFO[Main]: Detected share path: /home/dirk/mt/minetest/bin/..
2015-08-31 19:12:58: INFO[Main]: Detected user path: /home/dirk/mt/minetest/bin/..
2015-08-31 19:12:58: INFO[Main]: path_share = /home/dirk/mt/minetest/bin/..
2015-08-31 19:12:58: INFO[Main]: path_user  = /home/dirk/mt/minetest/bin/..
2015-08-31 19:12:58: INFO[Main]: minetest with SER_FMT_VER_HIGHEST_READ=26, VER=0.4.13-dev-714b68a BUILD_TYPE=Release RUN_IN_PLACE=1 USE_GETTEXT=0 USE_SOUND=1 USE_CURL=1 USE_FREETYPE=1 USE_LUAJIT=0 STATIC_SHAREDIR="."
2015-08-31 19:12:58: INFO[Main]: logfile = debug.txt
2015-08-31 19:12:58: VERBOSE[Main]: httpfetch_init: parallel_limit=8
2015-08-31 19:12:58: INFO[Main]: Message locale is now set to: LC_CTYPE=de_DE.utf8;LC_NUMERIC=C;LC_TIME=en_DK.utf8;LC_COLLATE=de_DE.utf8;LC_MONETARY=de_DE.utf8;LC_MESSAGES=de_DE.utf8;LC_PAPER=de_DE.utf8;LC_NAME=de_DE.utf8;LC_ADDRESS=de_DE.utf8;LC_TELEPHONE=de_DE.utf8;LC_MEASUREMENT=de_DE.utf8;LC_IDENTIFICATION=de_DE.utf8
2015-08-31 19:12:58: VERBOSE[Main]: Determining world path
2015-08-31 19:12:58: INFO[Main]: Searching worlds...
2015-08-31 19:12:58: INFO[Main]:   In /home/dirk/mt/minetest/bin/../worlds:
2015-08-31 19:12:58: INFO[Main]: 0 found.
2015-08-31 19:12:58: INFO[Main]: Creating default world at [/home/dirk/mt/minetest/bin/../worlds/world]
2015-08-31 19:12:58: VERBOSE[Main]: Determining gameid/gamespec
2015-08-31 19:12:58: INFO[Main]: Using default gameid []
2015-08-31 19:12:58: ERROR[Main]: Subgame specified in default_game [minetest] is invalid.
2015-08-31 19:12:58: INFO[Main]: Using commanded world path [/home/dirk/mt/minetest/bin/../worlds/world]
2015-08-31 19:12:58: INFO[Main]: Irrlicht: Irrlicht Engine version 1.8.1
2015-08-31 19:12:58: INFO[Main]: Irrlicht: Linux 4.1.6-1-ARCH #1 SMP PREEMPT Mon Aug 17 08:52:28 CEST 2015 x86_64
2015-08-31 19:12:58: INFO[Main]: Irrlicht: Using renderer: OpenGL 3.3.0
2015-08-31 19:12:58: INFO[Main]: Irrlicht: GeForce 9600 GT/PCIe/SSE2: NVIDIA Corporation
2015-08-31 19:12:58: INFO[Main]: Irrlicht: OpenGL driver version is 1.2 or better.
2015-08-31 19:12:58: INFO[Main]: Irrlicht: GLSL version: 3.3
2015-08-31 19:12:58: INFO[Main]: text_height=18
2015-08-31 19:12:58: INFO[Main]: Waiting for other menus
2015-08-31 19:12:58: INFO[Main]: Waited for other menus
2015-08-31 19:12:58: INFO[Main]: Audio: Initializing...
2015-08-31 19:12:58: INFO[Main]: Audio: Vorbis extension NOT present
2015-08-31 19:12:58: INFO[Main]: Audio: Initialized: OpenAL 1.1 ALSOFT 1.16.0, using OpenAL Soft
2015-08-31 19:12:58: INFO[Main]: GUIEngine: Initializing Lua
2015-08-31 19:12:58: VERBOSE[AsyncWorker-0]: Loading and running script from /home/dirk/mt/minetest/bin/../builtin/init.lua
2015-08-31 19:12:58: INFO[AsyncWorker-0]: Initializing Asynchronous environment
2015-08-31 19:12:58: VERBOSE[AsyncWorker-1]: Loading and running script from /home/dirk/mt/minetest/bin/../builtin/init.lua
2015-08-31 19:12:58: INFO[AsyncWorker-1]: Initializing Asynchronous environment
2015-08-31 19:12:58: VERBOSE[AsyncWorker-2]: Loading and running script from /home/dirk/mt/minetest/bin/../builtin/init.lua
2015-08-31 19:12:58: VERBOSE[AsyncWorker-3]: Loading and running script from /home/dirk/mt/minetest/bin/../builtin/init.lua
2015-08-31 19:12:58: INFO[AsyncWorker-2]: Initializing Asynchronous environment
2015-08-31 19:12:58: INFO[Main]: SCRIPTAPI: Initialized main menu modules
2015-08-31 19:12:58: VERBOSE[Main]: Loading and running script from /home/dirk/mt/minetest/bin/../builtin/init.lua
2015-08-31 19:12:58: INFO[AsyncWorker-3]: Initializing Asynchronous environment
2015-08-31 19:12:58: INFO[Main]: Searching worlds...
2015-08-31 19:12:58: INFO[Main]:   In /home/dirk/mt/minetest/bin/../worlds:
2015-08-31 19:12:58: INFO[Main]: 0 found.
2015-08-31 19:12:58: VERBOSE[Main]: OpenALSoundManager::maintain(): 0 playing sounds, 0 sound names loaded
2015-08-31 19:12:58: INFO[Main]: Audio: Error opening /home/dirk/mt/minetest/bin/../sounds/main_menu.0.ogg for decoding
2015-08-31 19:12:58: INFO[Main]: Audio: Error opening /home/dirk/mt/minetest/bin/../sounds/main_menu.1.ogg for decoding
2015-08-31 19:12:58: INFO[Main]: Audio: Error opening /home/dirk/mt/minetest/bin/../sounds/main_menu.2.ogg for decoding
2015-08-31 19:12:58: INFO[Main]: Audio: Error opening /home/dirk/mt/minetest/bin/../sounds/main_menu.3.ogg for decoding
2015-08-31 19:12:58: INFO[Main]: Audio: Error opening /home/dirk/mt/minetest/bin/../sounds/main_menu.4.ogg for decoding
2015-08-31 19:12:58: INFO[Main]: Audio: Error opening /home/dirk/mt/minetest/bin/../sounds/main_menu.5.ogg for decoding
2015-08-31 19:12:58: INFO[Main]: Audio: Error opening /home/dirk/mt/minetest/bin/../sounds/main_menu.6.ogg for decoding
2015-08-31 19:12:58: INFO[Main]: Audio: Error opening /home/dirk/mt/minetest/bin/../sounds/main_menu.7.ogg for decoding
2015-08-31 19:12:58: INFO[Main]: Audio: Error opening /home/dirk/mt/minetest/bin/../sounds/main_menu.8.ogg for decoding
2015-08-31 19:12:58: INFO[Main]: Audio: Error opening /home/dirk/mt/minetest/bin/../sounds/main_menu.9.ogg for decoding
2015-08-31 19:12:58: INFO[Main]: Audio: Error opening /home/dirk/mt/minetest/bin/../sounds/main_menu.ogg for decoding
2015-08-31 19:12:58: INFO[Main]: OpenALSoundManager: "main_menu" not found.
2015-08-31 19:13:04: INFO[Main]: Audio: Deinitializing...
2015-08-31 19:13:04: INFO[Main]: Audio: Deinitialized.
2015-08-31 19:13:04: INFO[Main]: GUIEngine: Deinitializing scripting
2015-08-31 19:13:04: INFO[Main]: Searching worlds...
2015-08-31 19:13:04: INFO[Main]:   In /home/dirk/mt/minetest/bin/../worlds:
2015-08-31 19:13:04: INFO[Main]: 0 found.
2015-08-31 19:13:04: INFO[Main]: Selected world: [--world parameter] [new] [/home/dirk/mt/minetest/bin/../worlds/world]
2015-08-31 19:13:04: ERROR[Main]: Provided world path doesn't exist: /home/dirk/mt/minetest/bin/../worlds/world
2015-08-31 19:13:04: VERBOSE[Main]: httpfetch_cleanup: cleaning up
 

est31
Member
 
Posts: 172
Joined: Mon Dec 29, 2014 01:49

Re: Minetest 0.4.13

by est31 » Mon Aug 31, 2015 21:49

Lets continue discussion there.
 

User avatar
Linuxdirk
Member
 
Posts: 497
Joined: Wed Sep 17, 2014 11:21
GitHub: dsohler
In-game: Linuxdirk

Re: Minetest 0.4.13

by Linuxdirk » Thu Sep 03, 2015 19:04

As requested here I applied pull/3108 to the latest available Git version and compiled with the following options:

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
cmake . \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DBUILD_SERVER=0 \
    -DENABLE_GETTEXT=1 \
    -DENABLE_FREETYPE=1 \
    -DENABLE_LEVELDB=0 \
    -DENABLE_REDIS=0 \
    -DCUSTOM_LOCALEDIR=/usr/share/locale/

Then I started it in verbose mode (truncated):

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
$ ./minetest --verbose
2015-09-03 20:18:55: INFO[Main]: minetest with SER_FMT_VER_HIGHEST_READ=26, VER=0.4.13-dev-6c5bc14-dirty BUILD_TYPE=Release RUN_IN_PLACE=0 USE_GETTEXT=1 USE_SOUND=1 USE_CURL=1 USE_FREETYPE=1 USE_LUAJIT=0 STATIC_SHAREDIR="/usr/share/minetest"
2015-09-03 20:18:55: INFO[Main]: Message locale is now set to: LC_CTYPE=de_DE.utf8;LC_NUMERIC=C;LC_TIME=en_DK.utf8;LC_COLLATE=de_DE.utf8;LC_MONETARY=de_DE.utf8;LC_MESSAGES=de_DE.utf8;LC_PAPER=de_DE.utf8;LC_NAME=de_DE.utf8;LC_ADDRESS=de_DE.utf8;LC_TELEPHONE=de_DE.utf8;LC_MEASUREMENT=de_DE.utf8;LC_IDENTIFICATION=de_DE.utf8

All strings are properly translated to German.

Just for comparison I compiled the latest available Git version with the same options but without applying pull/3108 and started it the same way. … Even there the strings are all properly translated(?!)
 

est31
Member
 
Posts: 172
Joined: Mon Dec 29, 2014 01:49

Re: Minetest 0.4.13

by est31 » Thu Sep 03, 2015 21:13

Just for comparison I compiled the latest available Git version with the same options but without applying pull/3108 and started it the same way. … Even there the strings are all properly translated(?!)

It might be that it has found the locale files another way, maybe from the locale/ subdir of your working directory, or from /usr/share. In order to test you'll have to repeat the steps of your custom PKGBUILD, manually or automatically.
 

User avatar
kaeza
Member
 
Posts: 2141
Joined: Thu Oct 18, 2012 05:00
GitHub: kaeza
IRC: kaeza diemartin blaaaaargh
In-game: kaeza

Re: Minetest 0.4.13

by kaeza » Fri Sep 04, 2015 00:15

TenPlus1 wrote:2015-08-31 10:22:55: ERROR[Main]: ServerError: Lua: Runtime error from mod 'test' in callback on_prejoinplayer(): /home/xanadu/.minetest/mods/test/init.lua:52: attempt to get length of local 'info' (a nil value)

the 'local info = minetest.get_player_information("TenPlus1")' table contains nothing at all ?!?!

I've seen this asked a few times already, and is something that maybe needs clarifying somewhere.

The fact is, `on_prejoinplayer` callbacks are run before the game actually creates a player object. That is, at that point, there's not even a player by that name as far as the engine is concerned, so any other function that depends on a player object being available (whether internal to the engine or exposed to Lua) returns no meaningful information.

In fact, you should not even count on the player name being "valid" since the engine has not even performed authentication yet.

Its main purpose is quick filtering player names/IPs for whatever reason from Lua (e.g. the xban, no_guests, and similar mods).

If you need any other info about a player other than name or source IP, you need to use the regular `on_joinplayer` callbacks as pointed by est.
Your signature is not the place for a blog post. Please keep it as concise as possible. Thank you!

Check out my stuff! | Donations greatly appreciated! PayPal | BTC: 1DFZAa5VtNG7Levux4oP6BuUzr1e83pJK2
 

User avatar
BrunoMine
Member
 
Posts: 902
Joined: Thu Apr 25, 2013 17:29
GitHub: BrunoMine

Re: Minetest 0.4.13

by BrunoMine » Fri Sep 04, 2015 00:28

This version is cool (VERY COOL)
+ Spoiler
 

User avatar
benrob0329
Member
 
Posts: 1192
Joined: Thu Aug 06, 2015 22:39
GitHub: Benrob0329
In-game: benrob03

Re: Minetest 0.4.13

by benrob0329 » Fri Sep 04, 2015 00:38

BrunoMine wrote:This version is cool (VERY COOL)
+ Spoiler


Lol
 

paramat
Member
 
Posts: 2662
Joined: Sun Oct 28, 2012 00:05
GitHub: paramat

Re: Minetest 0.4.13

by paramat » Fri Sep 04, 2015 04:21

Ugh, please remove those images, especially since this is a news thread.
 

PreviousNext

Return to Minetest News

Who is online

Users browsing this forum: No registered users and 10 guests

cron