Lone_Wolf wrote:Could you add a part that shows you how to register a tool? Or is there and I missed it?
I'm having trouble understanding the highlighted text:
snappy={times={[1]=1.90, [2]=0.90, [3]=0.30}, uses=40, maxlevel=3},
rubenwardy wrote:Two new chapters added:
MineYoshi wrote:Hi, Rubenwardy. Recently I got illuminated while eating a piece of chicken and I got the idea of translating your modding tutorial to Spanish. Do you allow me to do so? Also, do I edit the HTML files directly - whilst adding the UTF-8 header to assure the characters will show correctly - or do I send you the translation on any other form?
muhdnurhidayat wrote:MineYoshi wrote:Hi, Rubenwardy. Recently I got illuminated while eating a piece of chicken and I got the idea of translating your modding tutorial to Spanish. Do you allow me to do so? Also, do I edit the HTML files directly - whilst adding the UTF-8 header to assure the characters will show correctly - or do I send you the translation on any other form?
there's instruction on how to add language on the website
https://rubenwardy.com/minetest_modding ... w-language
just follow that for any languages... but it will take some time to translate as there's many pages
(am translating the book to Malay locally at the moment, will only make pull request once everything is translated)
Wuzzy wrote:Crazy idea for which I will get shouted at by every core dev: Include the modding book into the Minetest repository.
rubenwardy wrote:New Chapters!
Also added previous next chapter links, and changed a lot of the URLs.
2018-09-06 04:36:55: ERROR[Main]: ServerError: AsyncErr: ServerThread::run Lua: Runtime error from mod 'mobs_monster' in callback LuaABM::trigger(): /usr/local/lib/lua/5.1/debugger.lua:53: module 'socket.core' not found:
2018-09-06 04:36:55: ERROR[Main]: no field package.preload['socket.core']
2018-09-06 04:36:55: ERROR[Main]: no file './socket/core.lua'
2018-09-06 04:36:55: ERROR[Main]: no file '/usr/local/share/lua/5.1/socket/core.lua'
2018-09-06 04:36:55: ERROR[Main]: no file '/usr/local/share/lua/5.1/socket/core/init.lua'
2018-09-06 04:36:55: ERROR[Main]: no file '/usr/local/lib/lua/5.1/socket/core.lua'
2018-09-06 04:36:55: ERROR[Main]: no file '/usr/local/lib/lua/5.1/socket/core/init.lua'
2018-09-06 04:36:55: ERROR[Main]: no file './socket/core.so'
2018-09-06 04:36:55: ERROR[Main]: no file '/usr/local/lib/lua/5.1/socket/core.so'
2018-09-06 04:36:55: ERROR[Main]: no file '/usr/local/lib/lua/5.1/loadall.so'
2018-09-06 04:36:55: ERROR[Main]: no file './socket.so'
2018-09-06 04:36:55: ERROR[Main]: no file '/usr/local/lib/lua/5.1/socket.so'
2018-09-06 04:36:55: ERROR[Main]: no file '/usr/local/lib/lua/5.1/loadall.so'
2018-09-06 04:36:55: ERROR[Main]: stack traceback:
2018-09-06 04:36:55: ERROR[Main]: [C]: in function 'require'
2018-09-06 04:36:55: ERROR[Main]: /usr/local/lib/lua/5.1/debugger.lua:53: in main chunk
2018-09-06 04:36:55: ERROR[Main]: [C]: in function 'require'
2018-09-06 04:36:55: ERROR[Main]: /path/to/minetest/bin/../mods/mobs/api.lua:3212: in function </path/to/minetest/bin/../mods/mobs/api.lua:3211>
IDEs allow you to debug code like a native application. These are harder to set up than just a text editor.
One such IDE is Eclipse with the Koneki Lua plugin:Install Eclipse + Koneki.
Create a new Lua project from existing source (specify Minetest’s base directory).
Follow instructions from Koneki wiki how to do “Attach to remote Application” debugging (just a few steps).
It is suggested to add those lines from wiki at beginning of builtin.lua.
Start the debugger (set “Break on first line” in debugger configuration to see if it is working).
Start Minetest.
Enter the game to startup Lua.
Users browsing this forum: Bing Bot [Bot] and 0 guests