Luanti logo

IRC log for #minetest, 2019-08-14

| Channels | #minetest index | Today | | Google Search | Plaintext

All times shown according to UTC.

Enable nick filtering
Time Nick Message
3 more elements. Show/hide.
01:28 archfan7411 Hello there; I've been having a weird issue with minetest.request_http_api() where it seems to return nil.
19 more elements. Show/hide.
05:22 jas_ !mod
05:22 MinetestBot jas_: Pots, Crates and Chess [gifts] by Bas080 - https://forum.minetest.net/viewtopic.php?t=4550
06:13 gorilla Chess?
06:19 frostsnow lllI1I: You can set 'static_spawnpoint' in 'minetest.conf', but then you might spawn in a node.
16 more elements. Show/hide.
11:17 MinetestBot [git] paly2 -> minetest/minetest: Add function `minetest.read_schematic` b206575 https://git.io/fj5Fh (2019-08-14T11:15:41Z)
10 more elements. Show/hide.
13:04 lllI1I frostsnow: thanks for the start, anyway; maybe I could have a mod which forces a cave at the 0,0,0 mark somehow
7 more elements. Show/hide.
14:03 DS-minetest I've got s problem with the forum
14:06 DS-minetest when I try making a new topic in WIP mods, it keeps saying (i hope, this is not too long):
14:06 DS-minetest General Error
14:06 DS-minetest SQL ERROR [ mysqli ]
14:06 DS-minetest Incorrect string value: '\xF0\x9F\x8E\x89\x0A\x0A...' for column 'post_text' at row 1 [1366]
14:06 DS-minetest An SQL error occurred while fetching this page. Please contact the Board Administrator if this problem persists.
14:08 rubenwardy you have unsupported unicode in the post
14:08 rubenwardy for example, an emoji
14:09 DS-minetest ahh
14:09 DS-minetest ooh
14:09 DS-minetest thanks!
14:10 DS-minetest after removing the ?, it worked
14:13 MrChiantos don't use utf8 ?
14:14 calcul0n joined #minetest
14:19 rubenwardy MrChiantos: phpbb sucks
3 more elements. Show/hide.
14:58 lllI1I found a use of `minetest.after(2.0, cb, player)` in games/minimal/mods/default in the function at line 18
14:59 fruitsnack joined #minetest
14:59 lllI1I local cb = function(player) minetest.chat_send_player(player:get_player_name(), "This is...")
15:00 DS-minetest this can indeed ba a problem
15:00 lllI1I I've read every which way this will cause a crash if the player logs out before it fires
15:00 DS-minetest you could make a PR
15:01 lllI1I I don't think I have a github
15:01 DS-minetest (btw. the comment is wrong too)
15:01 lllI1I could I write a patch and give it to someone else with which to make a PR
15:01 Megaf joined #minetest
15:01 lllI1I yeah I was confused by the comment but less of an issue
15:01 DS-minetest I could open a PR for you if you want :)
15:01 lllI1I appreciate it
15:02 DS-minetest (but I've never done something like this before)
15:02 calcul0n joined #minetest
15:02 MrChiantos you don't need github for commit or pr, only git ^^
15:02 lllI1I how do I do a PR without signing up for github?
15:02 MrChiantos if you have git, you can commit on github, gitlab or other ;)
15:03 MrChiantos use git client or github client
15:03 MrChiantos clone and pr ;)
15:03 DS-minetest but you can't make a fork on github or press on that new pr button
15:03 MrChiantos you can use local git
15:03 MrChiantos and pr on github ;)
15:04 lllI1I uhhh I might need a bit of handholding for that
15:04 lllI1I didn't know PR's were a part of git proper
15:04 lllI1I oh I see I see
15:05 lllI1I man git is your friend
15:05 sfan5 what's wrong with that piece of code you found?
15:05 lllI1I sfan5: crash if I join and leave immediately
15:05 DS-minetest https://github.com/minetest/minetest/blob/b2065756cf9c90d493846a559587e4acec4a7851/games/minimal/mods/default/init.lua#L18
15:05 sfan5 oh
15:11 MrChiantos I'm watching because I do not see anything wrong with this piece of code.
15:11 MrChiantos maybe bom problem
15:12 rubenwardy common mistake number 1: https://rubenwardy.com/minetest_modding_book/en/quality/common_mistakes.html#never-store-objectrefs-ie-players-or-entities
15:12 lllI1I I wrote up a change but uhh
15:13 sfan5 what is the alternative if you want to keep track of an entity, though?
15:13 lllI1I waiting to push it to a friend's private repo because not sure if he'd appreciate it being linked anywhere
15:13 lllI1I sfan5: I'd go with saving the name, then checking to see if they're still online
15:14 rubenwardy Minetest doesn't offer an alternative
15:14 rubenwardy you *can* store them if you're careful
15:15 MrChiantos minimal is only for test , this is not really for use ;)
15:15 rubenwardy The formspecs chapter has been rewritten, and covers a lot more
15:15 rubenwardy !book formspec
15:15 MinetestBot rubenwardy: Formspecs - https://rubenwardy.com/minetest_modding_book//en/players/formspecs.html
15:15 lllI1I I'm using it to build a simple game off of
15:15 rubenwardy minimal isn't designed to be used as a base
15:16 rubenwardy it's minimal *development test*
15:16 rubenwardy it contains loads of random stuff and test utilities
15:16 proller joined #minetest
15:16 MrChiantos for build a simple game, you can use minetest game (mtg)
15:16 lllI1I yeah I'm throwing out some of the other mods
15:17 lllI1I this is more for the uhh beginnings
15:17 rubenwardy you should also rename default to something else if you're not compatible with MTG default
15:17 rubenwardy I should write a PR to do that for minimal
15:17 lllI1I see how the concept plays before going further
15:18 lllI1I should the mod name be something like just the game name or "[gamename]_default" or something like that?
15:18 lllI1I or _base etc
15:18 rubenwardy well, probably
15:18 rubenwardy yeah
15:19 rubenwardy I'd do <game>_base with only the essential mapgen stuff
15:19 rubenwardy then have a mod for furnaces, and chests, etc
15:19 rubenwardy makes managing features a little easier imo
15:19 MrChiantos lua is really cool for modding ^^
6 more elements. Show/hide.
17:18 Copenhagen_Bram Why doesn't flowing water push the player around yet?
17:18 sfan5 pretty sure there was a PR
17:20 Copenhagen_Bram huh
17:20 Copenhagen_Bram knockback from mob attacks would be neat too
17:24 * DS-minetest made a branch with pushing water some time ago
17:25 pauloue lllI1I: I'm not getting that crash in minimal
17:25 pauloue obejctref methods just do nothing and return nil or empty string if there is not object, so it should be fine
17:25 lllI1I you'd have to disconnect within 2 seconds for it to trigger
17:25 pauloue I did that
17:25 lllI1I also I didn't test it so I'm not 100% on it
17:27 lllI1I I gotta head out soon though so
3 more elements. Show/hide.
17:47 tacotexmex Hey lllI1I, check out https://github.com/minetest-game-mods if you only want some of the MTG mods (for use as submodules etc)
13 more elements. Show/hide.
19:36 Doomsdayrs Hello!
15 more elements. Show/hide.
21:37 MinetestBot [git] DS-Minetest -> minetest/minetest: Fix undeclared global warning because of _ (#8798) 082066e https://git.io/fjdUv (2019-08-14T21:35:47Z)
15 more elements. Show/hide.

| Channels | #minetest index | Today | | Google Search | Plaintext