Search found 3953 matches

by Krock
Fri Jan 01, 2021 11:21
Forum: Modding Discussion
Topic: [Solved] model element texture trouble
Replies: 12
Views: 955

Re: model element texture trouble

The bug is already reported here: https://github.com/minetest/minetest/issues/10614 Nonetheless, how about this? (escaping texture combiners) local str = "character.png^(default_diamondblock.png^armor_alpha_helmet.png^[makealpha:0,255,0)" str = str:gsub("%^%[", "\\%^\\%[&quo...
by Krock
Sat Dec 19, 2020 11:25
Forum: Problems
Topic: [Solved] Mapgen flat + worldedit
Replies: 1
Views: 463

Re: Mapgen flat + worldedit

You should run /emergeblocks first, and run Worldedit after. If worldedit writes into non-existent mapblocks, they're not marked as "generated", resulting in this funny map generation when loading the mapblocks later on.
by Krock
Sun Nov 29, 2020 14:42
Forum: News
Topic: Minetest 5.3.0
Replies: 46
Views: 39984

Re: Minetest 5.3.0

I just downloaded 5.3.0 a few days ago. When I try to play in a local world, it crashes and gives: There's no such assertion check near L400 in 5.3.0. The assertion was present until before version 5.1.0, which indicates that your installation did not complete properly. Please re-install Minetest a...
by Krock
Tue Nov 24, 2020 20:08
Forum: Modding Discussion
Topic: attached player doesnt move player:get_pos()
Replies: 3
Views: 617

Re: attached player doesnt move player:get_pos()

"set_pos()" for attached objects does nothing because the position is controlled by the attachment/parent. I used the following code to confirm that "get_pos()" is working properly. Riding a cart updates the printed value (see terminal/console window). local t = 0 minetest.regist...
by Krock
Sat Nov 21, 2020 20:41
Forum: Modding Discussion
Topic: attached player doesnt move player:get_pos()
Replies: 3
Views: 617

Re: attached player doesnt move player:get_pos()

What's your Minetest version? I thought I fixed that a while ago by updating the player's absolute position every now and then using the attachment's position. EDIT: This code requires that the player's position is correct on server-side: https://github.com/minetest/minetest/blob/master/src/server.c...
by Krock
Mon Nov 16, 2020 18:50
Forum: Servers
Topic: How To Host an Minetest [4.0 +5.0] server?
Replies: 2
Views: 638

Re: How To Host an Minetest [4.0 +5.0] server?

A: No, there's no way.
Multicraft sacrifices multiple features and improvements to ensure compatibility.
by Krock
Mon Nov 16, 2020 18:48
Forum: Modding Discussion
Topic: Disable ABM execution
Replies: 3
Views: 378

Re: Disable ABM execution

Code: Select all

abm_interval = 1E100
# alternatively, if that ^ cannot be parsed: (317 years)
abm_interval = 10000000000
The value "0" would result in running the ABM checks at every server step. If you think that should indicate a disabled state -> PR?
by Krock
Mon Nov 09, 2020 17:28
Forum: Modding Discussion
Topic: "allow_metadata_inventory_put" for players inventory
Replies: 5
Views: 409

Re: "allow_metadata_inventory_put" for players inventory

Try "`minetest.register_allow_player_inventory_action". https://github.com/minetest/minetest/blob/master/doc/lua_api.txt#L4665 Example: https://github.com/SmallJoker/upgrade_packs/blob/master/init.lua#L74 Note that those inventory fields are persistent, which means that players can use it ...
by Krock
Sun Nov 08, 2020 16:07
Forum: General Discussion
Topic: How's map data stored in the database?
Replies: 3
Views: 777

Re: How's map data stored in the database?

key: https://github.com/minetest/minetest/blob/master/src/database/database.cpp#L59-L68 blob: 1) https://github.com/minetest/minetest/blob/master/src/map.cpp#L1880-L1884 main "frame" to hold a mapblock 2) https://github.com/minetest/minetest/blob/master/src/mapblock.cpp#L358 zlib-compresse...
by Krock
Sun Nov 08, 2020 10:55
Forum: Modding Discussion
Topic: [Question]register_on_leaveplayer and Mod Storage[Answered]
Replies: 2
Views: 372

Re: [Question]register_on_leaveplayer and Mod Storage

Are you testing the mod in singleplayer? AFAIK the "register_on_leaveplayer" is not run when the server shuts down. This also applies when leaving the singleplayer world. As a solution, register a "register_on_shutdown" callback to save/change the data of all connected players th...
by Krock
Sat Oct 24, 2020 10:40
Forum: Problems
Topic: Transffering world from 4.17 to 5.3
Replies: 1
Views: 356

Re: Transffering world from 4.17 to 5.3

Works for me. Minetest 5.4.0-dev, quartz from https://github.com/minetest-mods/quartz
Could you please check whether you have the newest version of this mod? The line numbers of your error message are not matching.
by Krock
Sat Oct 24, 2020 08:36
Forum: General Discussion
Topic: minetest windows xp
Replies: 10
Views: 2909

Re: minetest windows xp

Unless something has changed in the dependencies, Minetest 5.x might still run on Windows XP (just try it).
At least 0.4.15-dev (between 0.4.15 and 0.4.16) is going to work for sure because I compiled those on Windows XP.
by Krock
Wed Oct 14, 2020 17:24
Forum: Problems
Topic: Noob Questions - e.g. punching trees
Replies: 5
Views: 753

Re: Noob Questions - e.g. punching trees

Does it work if you select another item in your hotbar, like an empty slot? Perhaps that works.
According to the README it should be possible to dig trees with bare hands: https://git.minetest.land/Wuzzy/MineClo ... /README.md
by Krock
Sat Oct 10, 2020 13:59
Forum: Client-side modding
Topic: Complex clientmodding questions.
Replies: 3
Views: 1390

Re: Complex clientmodding questions.

1. There's yet no such function. 2. Was skipped for being irrelevant. https://github.com/minetest/minetest/commit/dfa0c15#diff-fc5bd7f599797bce163af517e57a314cR725 3. Server-sent HUDs cannot be controlled by the client. In the HUD API PR this was done intentionally, though I don't know why. https://...
by Krock
Sat Oct 10, 2020 13:52
Forum: Problems
Topic: World keeps crashing during load
Replies: 2
Views: 530

Re: World keeps crashing during load

This means that env_meta.txt in your world folder got corrupted. Since it doesn't contain any important information you can simply delete the file and let Minetest re-create it. https://wiki.minetest.net/Troubleshooting#.E2.80.9CServerEnvironment::loadMeta.28.29:_EnvArgsEnd_not_found.E2.80.9D To pr...
by Krock
Thu Oct 01, 2020 16:48
Forum: Problems
Topic: Getting Console Output on Windows 10 (Solved)
Replies: 2
Views: 669

Re: Getting Console Output on Windows 10

debug.txt should contain the same information, unless the mod uses "print". Sadly I cannot reproduce your issue using Wine. Could you please check whether starting it from "cmd" and PowerShell results in the same behaviour? As an alternative, you could put the following line into...
by Krock
Mon Sep 28, 2020 15:02
Forum: Modding Discussion
Topic: Mod errors Minetest ver 5.3.0
Replies: 2
Views: 424

Re: Mod errors Minetest ver 5.3.0

There were some fixes in Minetest 5.3.0-dev about entity life cycles. Some mods relied on undefined behaviour without noticing, thus resulting in errors within animals_modpack. Please report this issue in the mod's thread and pray that sapier returns to fix it somewhen: https://forum.minetest.net/vi...
by Krock
Mon Sep 28, 2020 14:55
Forum: Feature Discussion
Topic: HowTo: Configure 7 default items in minetest.conf?
Replies: 4
Views: 923

Re: HowTo: Configure 7 default items in minetest.conf?

Assuming you're using (or a variation of) Minetest Game. Adding this setting to your server's minetest.conf will give newly registered players the specified list of items: https://github.com/minetest/minetest_game/blob/dd91a1b/settingtypes.txt#L22-L24 Example: give_initial_stuff = default:torch 20,d...
by Krock
Thu Sep 24, 2020 19:18
Forum: Mod Releases
Topic: [Mod] Simple protection [simple_protection]
Replies: 54
Views: 21301

Re: [Mod] Simple protection [simple_protection]

@raymondkn Per-area special effects are best implemented in a custom mod which depends on "simple_protection". The mod API to access from other mods can be found here: (Markdown-compatible) https://github.com/SmallJoker/simple_protection/blob/master/doc/mod_api.txt And here's the function ...
by Krock
Tue Sep 15, 2020 18:10
Forum: Servers
Topic: Server shuts down in the middle of a game
Replies: 4
Views: 621

Re: Server shuts down in the middle of a game

Yes, 5.3.0 is the latest stable version. There would be newer in-development versions, but I don't think those would solve the your issue. If you use minetest.kick_player or any other function that disconnects the peer in a on_joinplayer callback you need to ensure that the rest of the callbacks do ...
by Krock
Tue Sep 15, 2020 18:05
Forum: Modding Discussion
Topic: Is it possible to disable the scrollbar in the textarea[] element?
Replies: 2
Views: 360

Re: Is it possible to disable the scrollbar in the textarea[] element?

Scrollbars were added somewhen around 0.4.16 to avoid this situation, hence I don't think there's currently a way to disable them for textareas.
Though you can still put an oversized textarea into a scroll_container element (with no manual scrollbar).
by Krock
Tue Sep 15, 2020 15:50
Forum: Servers
Topic: Server shuts down in the middle of a game
Replies: 4
Views: 621

Re: Server shuts down in the middle of a game

Please update your server to version 5.3.0 or newer and check whether the problem still occurs.

Issue: https://github.com/minetest/minetest_game/issues/2587 and https://github.com/minetest/minetest/issues/9352
Bugfix: https://github.com/minetest/minetest/pull/9739
by Krock
Tue Sep 15, 2020 15:44
Forum: General Discussion
Topic: How many core devs played/play Minecraft?
Replies: 8
Views: 2029

Re: How many core devs played/play Minecraft?

I once "played" Minecraft in 2012 (or so) on the Celeron D machine I had back then - together with a friend of mine. Interestingly the game was running smoothly, given the horrible computing performance. That was for an hour at most. I did not really find joy in playing a plain world. But ...
by Krock
Fri Sep 11, 2020 13:36
Forum: Problems
Topic: 3D armor API, speed
Replies: 4
Views: 393

Re: 3D armor API, speed

Group values are all summed at the end by 3d_armor, hence you don't need to do that manually. Source: https://github.com/minetest-mods/3d_armor/blob/502eb142da98f13ace9bec59753ffe2f217800b0/3d_armor/api.lua#L239-L242 Means, following code suffices: groups = {armor_head=1, armor_heal=5, armor_use=800...