Minetest logo

IRC log for #minetest, 2020-07-26

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

All times shown according to UTC.

Time Nick Message
00:10 Calinou joined #minetest
00:42 tyler-2 left #minetest
00:49 tyler-2 joined #minetest
00:58 galex-713 joined #minetest
01:16 begui joined #minetest
01:32 Thomas-S_ joined #minetest
02:05 MDead joined #minetest
02:06 Thomas-S joined #minetest
02:07 Thomas-S joined #minetest
02:09 Itz-Noah joined #minetest
02:09 Itz-Noah joined #minetest
02:12 galex-713 joined #minetest
02:21 Thomas-S joined #minetest
02:21 Thomas-S joined #minetest
03:35 erlehmann joined #minetest
03:47 sagax joined #minetest
04:57 slemonide joined #minetest
04:57 slemonide Can I register abm after the game starts?
05:11 Elouin joined #minetest
05:23 Verticen_ joined #minetest
05:25 tnewman joined #minetest
05:30 tnewman joined #minetest
05:41 swift110 joined #minetest
06:05 swift110_ joined #minetest
06:39 Flabb joined #minetest
07:35 Kimapr joined #minetest
07:36 calcul0n joined #minetest
07:51 PlaneBlueR23DP joined #minetest
07:51 PlaneBlueR23DP left #minetest
07:56 PlaneBlueR23DP joined #minetest
08:00 ShadowNinja joined #minetest
08:56 TomTom joined #minetest
08:59 bebebeko folks, I don't know how googling that, is there an easy way to do entity rotation around himself like on this video https://www.youtube.com/watch?v=lzftue6zbyM ? I found minetest.rotate_and_place method but not sure about it..
09:09 MinetestBot [git] tuedel -> minetest/minetest_game: sethome: Replace deprecated function calls (#2724) 4858c2b https://git.io/JJRKM (2020-07-26T09:07:15Z)
09:15 bebebeko okay, looks like i need some magic with object:set_animation() method
09:16 calcul0n bebebeko, there's an automatic_rotate property on entities
09:16 calcul0n Set constant rotation in radians per second, positive or negative
09:19 bebebeko calcul0n: brilliant! thank you
09:35 FeXoR joined #minetest
09:39 Astrobe joined #minetest
09:52 Fixer joined #minetest
09:55 Kimapr joined #minetest
10:12 fruitsnack joined #minetest
10:24 tnewman4 joined #minetest
12:05 Pie-jacker875 joined #minetest
12:20 galex-713 joined #minetest
12:22 Fulgen joined #minetest
12:38 Flabb joined #minetest
13:07 Virus joined #minetest
13:08 Nick333 joined #minetest
13:11 Talkless joined #minetest
13:12 Zughy joined #minetest
13:12 deltasquared joined #minetest
13:13 deltasquared little thing you might all find amusing... experimenting with custom tone mapping in the shaders and I inadvertently created this monstrosity. https://a.uguu.se/PnFCdSm3BiO2_screenshot_20200726_140825.png
13:13 Zughy hey there: wouldn't be better if the "Customize" section on the site only pointed to ContentDB? Because for instance the texture pack section is pretty outdated https://www.minetest.net/customize/
13:14 Talkless Hi, I want to start minetest-server for another game, with different world direcotry, but I get: https://paste.debian.net/1157837/
13:14 Zughy deltasquared: same the best way to fall into a pit
13:14 Talkless worlds/world is for Lord of the Test
13:14 Zughy *seem
13:14 ghoti joined #minetest
13:15 Talkless but I want to use different world for different Aftermath game *this time*
13:15 Talkless https://paste.debian.net/1157839/
13:15 Talkless how do I ask minetest server to create different directory for that different game
13:15 Talkless I'm on Debian Sid
13:15 Astrobe Funny, that shader accident reminds me of certain texture pack...
13:16 Talkless I want that minetest-server@minetest will launch LOTT, and minetest-server@aftermath would launch Aftermath game, with different /var/games/minetest-server/.minetest/worlds/<game>
13:18 Astrobe Don't you confuse the name of the game with the name of the game, or both have the same name?
13:18 deltasquared Astrobe: to be honest if I dialed up the colour part and applied some thresholding I'd have deep fried minetest...
13:18 Talkless Astrobe: I want different game to have different world directory
13:19 Talkless currently I start minetest-server@aftermath but it still uses default worlds/world world directory, which is already used by LOTT
13:20 SX joined #minetest
13:22 Talkless I don't get it: World 'aftermath' not available. Available worlds
13:22 Talkless so how do I create world?
13:22 Astrobe I think you need to create a world - say "am" - manually for Aftermath then use "--worldname am" option
13:22 Talkless Astrobe: world name is set:
13:22 Talkless ExecStart=/usr/lib/minetest/minetestserver --config /etc/minetest/%i.conf --logfile /var/log/minetest/%i.log --gameid aftermath --worldname aftermath
13:22 Talkless but log file contains:
13:22 Talkless World 'aftermath' not available. Available worlds:
13:23 Talkless also where's environment variable documentation?
13:23 Talkless is it possibel to avoid --gameid --worldname, and use Environemnt= in override.conf?
13:23 Astrobe hmmm checkout your config file. I think it can cobfigure gameid and worlname too, and that could be a conflict
13:24 Talkless Astrobe: I've copied minetest.conf into aftermath.conf, maybe I've skipeed somethig. I did change default_game to aftermath
13:24 Pie-jacker875 joined #minetest
13:25 Talkless Astrobe: most of stuff is commented-out, default_game = aftermath
13:31 Talkless Astrobe: Iv'e renamed "world" into "lott", but it still selects "lott" then :D
13:31 Talkless does not try to create new world
13:31 deltasquared left #minetest
13:32 tyler-2 left #minetest
13:34 Talkless Astrobe: only after making "worlds" directory empty, it created world "world" (not aftermath) ;/
13:36 tyler-2 joined #minetest
13:37 Talkless OK so after I have "lott" and "aftermath" worlds, I finaly started.. but:
13:37 Talkless https://paste.debian.net/1157841/
13:37 Talkless xban.db: No such file or directory
13:38 Talkless "Invalid field inventory_image (expected string got table)"
13:38 Talkless I guess that game does not work for 5.3 mintest? :/
13:38 Talkless gal  minetest'as per naujas tam game'ui
13:42 Krock Talkless: update the mod and then report it to the autor
13:43 Krock also mobs_redo
13:43 Talkless Krock: reported on Aftermath thread: https://forum.minetest.net/viewtopic.php?p=378202#p378202
13:44 Talkless Krock: do you know is it possible to avoid --gameid --worldname by using env. varibales?
13:44 Talkless Krock: so I don't have to rewrite ExecStart= ?
13:44 Krock there's no such option
13:44 Talkless so waht's the point of having minetest-server@ then?
13:44 Krock unless you create a script
13:44 Talkless option with %i to select different config
13:44 Talkless if that's ONLY for config
13:44 Talkless well and for log file...
13:44 Krock that's if you specify a map_dir in minetest.conf
13:45 Talkless Krock: and no worldname in .conf too?
13:45 Talkless default_game is there, yes.
13:45 Talkless so that if I create minetest-server@foo it would read /etc/minetest/foo.conf and there would be specfiied different worldname
13:46 Krock map_dir points to the world you want to use
13:46 bebebeko folks, is there way to mass remove entities by specific tag/group?
13:46 Krock the game id is then evaluated using the world's configuration
13:46 Talkless Krock: what if I want to create new world?
13:46 Krock bebebeko: which tags or groups? armor groups?
13:46 Talkless Krock: Iv'e got "World 'aftermath' not available. Available worlds:" before...
13:46 Talkless Krock: had to make sure that worlds directory is empty
13:47 Talkless /var/games/minetest-game/.minetrst/world that is
13:47 Talkless worlds*
13:48 Astrobe There's also default/item_entity.lua to update if Aftermath is based on MTG.
13:48 Krock mkdir worlds/myworld && echo gameid = aftermath >worlds/myworld/world.mt
13:48 Astrobe Otherwise you'll get a crash with falling nodes, IIRC.
13:49 Krock or specify "default_game = aftermath" in minetest.conf
13:50 Krock that must create a new world if it does not exist yet
13:51 Krock Talkless: I think the best strat here would be to move most of it into the minetest.conf file you're specifying on startup
13:52 Talkless Krock: I have map_dir=/var/games/minetest-server/.minetest/worlds/aftermath/
13:52 Talkless Krock: but I get 2020-07-26 16:52:04: ERROR[Main]: No world path specified or found.
13:52 Talkless default_game = aftermath, yes
13:53 bebebeko Krock: not exactly, i'm added a lot of entities with some metadata, for example entity:get_luaentity():path = "foobar", is there a way to select from minetest engine the entities with where "path == /foobar" filter and then mass remove them
13:53 bebebeko s/with/with filter/
13:53 Krock bebebeko: there is no metadata. what you're doing is modifying a Lua table which may vanish at any time
13:54 Krock Talkless: okay that's weird... does it create worlds using the default settings?
13:54 Krock i.e. only with a --worldname specified
13:54 Talkless Krock: it creates world if no worlds present, I've hade to move "world" (which was for LOTT) outside of the dir
13:54 Krock oh wait. --world /path/to/world
13:55 Astrobe Th trailing slash in the pathspec is ok?
13:55 Talkless Krock: it ignored --worldname, just auto-selected "world"
13:56 Krock Talkless: I assume that's a fallback name back when there was only one world available in Minetest (0.3.1)
13:56 bebebeko Krock: yep, i know, i just said it an for example, my question is there any proper way to select entities from minetest engine by some filter/tag/group/whatever?
13:56 Krock bebebeko: you could get all entities within the range of 60E3 (gonna be enough for sure)  at position (0,0,0)
13:56 Krock though that would only show loaded entities
13:57 Krock there's currently no way to retrieve mapblock data or entity data from unloaded mapblocks
13:57 Talkless Krock: if I have override.conf like this: https://paste.debian.net/1157843/
13:57 Talkless Krock: I get this: 2020-07-26 16:56:32: ERROR[Main]: Error writing configuration file: "aftermath/world.mt"
13:57 Krock Talkless: wrong link?
13:57 bebebeko Krock: thank you! \o/
13:57 Talkless Krock: n
13:57 Talkless no
13:57 Krock Talkless: what kind of a override.conf file is that?
13:58 Krock for a systemd service?
13:58 Talkless Krock: /etc/systemd/system/minetest-server@aftermath.service.d/override.conf
13:58 Krock ahhh gotcha
13:58 Pie-jacker875 joined #minetest
13:58 Talkless Krock: I want to have different serices for LOTT and Aftermath, and any other game
13:58 Krock how does your --config file look like?
13:58 Talkless with diferent worlds in /var/games/minetest-server/.minetest/worlds/<game>
13:59 Krock bebebeko:
13:59 Krock !nextr
13:59 Krock !next
13:59 MinetestBot Another satisfied customer. Next!
13:59 Talkless Krock:  https://paste.debian.net/1157844/
13:59 Krock good so far
13:59 Talkless Krock: and it would be nice to avoid overriding ExecStart...
14:00 Talkless MINETEST_WORLDNAME env would help
14:00 Krock yes but I suppose you cannot do that at the moment
14:00 Talkless Krock: maybe map_dir should be path to "words"  ?
14:00 Krock to me it just look like the systemd service user does not have access to /var/games
14:01 Talkless Krock: anyway, I'll remove map_dir and use --worldname instead
14:01 Krock map_dir should be a pretty solid choice, though. The startup argument handling isn't perfect
14:02 Talkless Krock: I've removed map_dir, and my ExecStart now is:
14:02 Krock just to make sure: the file permissions are alright for this world?
14:02 Talkless ExecStart=/usr/lib/minetest/minetestserver --config /etc/minetest/%i.conf --logfile /var/log/minetest/%i.log --worldname aftermath
14:02 Talkless and it works
14:02 Krock what
14:02 Talkless Krock: yes, it's "Debian-minetest games"
14:02 Talkless Krock: well I still get these Lua errors
14:02 Talkless but that's different issue
14:02 Krock yes sure but it's very strange to me that map_dir does not work properly in this case
14:03 Talkless Krock: maybe it does not have to be full absolute path? Just name?
14:04 Krock oh.it's because it's called "map-dir"
14:04 Talkless OK let me try
14:04 Krock this setting is too old to follow naming specs
14:04 Talkless removed --worldname
14:04 Talkless Krock:  No world path specified or found. :/
14:05 Talkless I'll see what sysdig says, what paths it searches
14:06 Krock according to main.cpp L683 it's supposed to work like that
14:07 Krock works for me...
14:07 Krock ./minetest --server
14:07 Krock 2020-07-26 16:07:31: ACTION[Main]: World at [/SNIP/worlds/mtg/]
14:08 Talkless `sudo sysdig "proc.name=minetestserver" 2>&1 | fgrep .minetest | tee /tmp/sysdig` gives me:
14:08 Talkless https://paste.debian.net/1157845/
14:09 Krock ./minetest --server --config ../minetestt.conf   << works too
14:10 Talkless Krock: you mean map_dir works?
14:10 Krock "map-dir" works
14:10 Krock presumably the only minetest.conf setting that contains a dash
14:11 Talkless ihm
14:11 Talkless uhm
14:12 Talkless Krock: it get EACCESS: 286877 17:12:01.611858382 1 minetestserver (29440) < mkdir res=-13(EACCES) path=aftermath(/aftermath)
14:12 Talkless it tries from root...
14:12 Talkless if map-dir = aftermath
14:12 Krock what if it's an absolute path?
14:17 craigger joined #minetest
14:19 Talkless joined #minetest
14:21 Talkless Thans Krock for the help!
14:28 lisac joined #minetest
14:38 Krock !next
14:38 MinetestBot Another satisfied customer. Next!
14:41 majochup joined #minetest
14:59 Itz-Noah joined #minetest
15:11 Astrobe 250+ players in the top 5 servers alone, not bad.
15:23 Pie-jacker875 joined #minetest
15:29 fossrox joined #minetest
15:32 Pie-jacker875 joined #minetest
15:33 fossrox how changes through player:set_bone_position() influence attached objects?
15:34 fossrox is it needed to recalculate something?
15:39 Pie-jacker875 joined #minetest
15:44 Zughy_ joined #minetest
15:53 tnewman4 joined #minetest
15:55 swift110_ joined #minetest
15:57 tyler-2 I can't figure out how to use giveme... how would you do /giveme in mineclone and get a sadle?
15:57 tyler-2 saddle
16:00 Astrobe I guess /giveme mobs:saddle
16:02 Hawk777 joined #minetest
16:03 bebebeko joined #minetest
16:07 ItzNoah joined #minetest
16:08 balirt joined #minetest
16:08 balirt I have a question regarding engine coding.
16:08 balirt Uploaded file: https://uploads.kiwiirc.com/files/6cee1745914327f908316eced3acff30/pasted.txt
16:08 Itz-Noah joined #minetest
16:08 Itz-Noah joined #minetest
16:09 balirt since it's  bit longer, I uploaded it as a .txt
16:10 Kimapr joined #minetest
16:16 Krock ...overload the function?
16:18 Verticen_ joined #minetest
16:23 balirt joined #minetest
16:29 balirt if I wanted that, I could rather than overload the class constructor, instead just rewrite the class... however i'm trying to avoid rewriting that class since every additional change increases the chance of the pull request to be rejected
16:30 balirt I have to either not change anything at all, rewrite the HUD_elem class, or find a way to pass several variables in one of its strings
16:30 balirt and i'm debating which is less worse from the view of a codeDev
16:31 balirt coreDev*
16:39 Astrobe Everytime I saw strings abused that way it eventually led to problems - except in TCL maybe.
16:40 Astrobe Just because a window is broken, doesn't mean you can break another one. Just do the right thing if your dev is worth its salt.
16:42 Krock balirt: hard to tell. I cannot judge concepts well without seeing some code
16:42 ItzNoah joined #minetest
16:42 ItzNoah joined #minetest
16:42 Krock or even - the final goal
16:43 Krock after all inheritance is also possible, and might solve some of your problems
16:43 balirt goal: to make the HUD in minetest able to play animated images just like the animated_image formspec element
16:44 balirt problem: I need to pass minimum 3 new s32 variables and the only unused field in my HUD_elem class is a single string field
16:45 Krock make a new field
16:45 balirt other HUD_elem classes also misuse unused string fields, such as the waypoints element
16:45 balirt so I was trying to be as similar as possible to existing accepted code
16:45 balirt I guess in this case, rewriting the class with new fields is the better approach
16:46 balirt since the other "mis-uses" only use a string to store a string
16:46 Krock you don't need to rewrite that much. replace driver-> calls to draw images to a function that handles animations
16:46 Krock ..which then calls to the render function
16:48 balirt that would work if I had a single standard way of doing it, and modders can only call this way with their HUD element fields
16:49 balirt I wanted to make possible the other functions of the animated_Image formspec field, such as: set speed of animation, set animation start frame, set height of animation frame
16:49 balirt and make all those available to mods that call a normal HUD element in lua
16:50 balirt but the HUD element has so few arguments I can pass through q_q
16:51 balirt I didn't want to make it worse than the formspec thing, but I don't have enough fields to pass the variables through
16:53 balirt of course one can always say "default height of HUD animation is always 100 pixels, and framerate is always 15, deal with it", then I don't need to pass these through with the hud_elem
16:53 Krock HUDs could have better parsing anyway.  structs inside an union, and per-element reading from network
16:53 Krock instead of everything being a single huge blob
16:54 Krock of random named variables and usages
16:54 balirt it would make sense to do that, which is already the way formspecs do it (sort of)
16:54 balirt however, then there is the argument whether it would be better long-term to make HUD a special part of formspecs anyway
16:55 balirt which would break everything, and requires everyone to be satisfied with current formspecs
16:55 balirt another can of worms...
16:56 Krock I had the ActiveObject command message handling in mind, but formspec is also a bit into this direction
16:56 Krock content_cao.cpp L1553, for example
16:59 GreenXenith joined #minetest
17:00 xSmurf joined #minetest
17:03 balirt I hadn't looked at that. Yes, seems even more general. However, I think it's a bit overkill for the HUD unless you want to really render anything in game, also in the HUD
17:03 balirt formspecs are very limited, but in a way that makes sense for HUD elements as well unless you want to render half the game on the HUD
17:09 Lone_Wolf joined #minetest
17:13 fluxflux joined #minetest
17:20 Foz joined #minetest
17:22 tyler-2 Astrobe: cannot give unknown item. :-/ thanks for the attempt!
17:22 MDude joined #minetest
17:24 bebebeko joined #minetest
17:25 Krock hmm.. yet no search features on gitea
17:26 Krock tyler-2: https://git.minetest.land/Wuzzy/MineClone2/src/branch/master/mods/ENTITIES/mobs_mc/1_items_default.lua#L254-L263
17:26 Astrobe Maybe mobs_horse:saddle then.
17:26 Krock /giveme mobs:saddle
17:28 tyler-2 That was tried. :-) /giveme mobs_horse:saddle ain't it eitger
17:28 tyler-2 Nor mobs_mc:saddle
17:29 Krock grep -r "saddle"
17:29 Krock that'll find it inside your mineclone2 directory
17:29 Corey[m] Would be nice if there was a /lsitems mod:* command or something
17:29 tyler-2 I'm probably just gonna go looking at player inventory in the db, oof
17:30 Krock if you have one in your inventory, turn on the item name setting in minetest.conf
17:30 Krock > tooltip_append_itemname = true
17:32 Astrobe or a /giveme "saddle" and MT does the popular "did you mean game..."
17:32 Astrobe GCC does it after all...
17:34 Krock google too
17:35 tyler-2 Tried to google and got nothing. Will try those others.
17:35 Astrobe Is it an argument against the idea? ;-)
17:37 Corey[m] hmm saddle eh, lemme see if I'll fair better with a grep for you tyler-2
17:39 Corey[m] tyler-2: try mcl_mobitems:saddle
17:40 Astrobe I see. It was translated in German :-)
17:46 Pie-jacker875 joined #minetest
17:48 tyler-2 That did it! Thanks Corey[m] and others who tried!
17:49 Corey[m] You're welcome :)
17:54 Itz-Noah joined #minetest
17:54 Itz-Noah joined #minetest
18:04 Fear joined #minetest
18:04 Fear joined #minetest
18:08 ItzNoah joined #minetest
18:08 ItzNoah joined #minetest
18:25 galex-713 joined #minetest
18:57 Flabb joined #minetest
18:57 Rafi59 joined #minetest
19:03 Pie-jacker875 joined #minetest
19:15 LoneWolfHT joined #minetest
19:15 Pie-jacker875 joined #minetest
19:21 awell joined #minetest
19:28 galex-713 joined #minetest
19:42 galex-713 joined #minetest
19:44 Jhalman joined #minetest
19:53 Flabb joined #minetest
19:55 Fixer_ joined #minetest
20:18 Andrey01 joined #minetest
20:18 Andrey01 Hello
20:19 Andrey01 Does anybody know are there any Irrlicht Q&A forums or IRC channel?
20:20 Andrey01 stackexchange.com like doesn`t have similar one
20:58 Itz-Noah joined #minetest
21:08 illwieckz joined #minetest
21:19 lisac joined #minetest
21:22 proller joined #minetest
21:25 _Zaizen_ joined #minetest
21:27 proller joined #minetest
21:31 Taoki joined #minetest
21:31 _Zaizen_ Hi everyone, does anyone know how to remove from the object itself in an oop where I have table to remove after setting the value at nil. Doing self = nil doesn't work, does anyone have an idea on how to do that?
21:32 _Zaizen_ I have a situation similar to this https://stackoverflow.com/questions/38274561/remove-self-in-lua but I do not want to index by the object.
21:32 Itz-Noah joined #minetest
21:34 sfan5 keep the key you need inside the object then you can set it to nil correctly
21:36 _Zaizen_ So if I remove the key the whole "object" would be gone?
21:37 sfan5 define "gone"
21:38 _Zaizen_ Not present in the table.
21:46 sfan5 if you do object_table[key] = nil the object will be gone yes
21:52 _Zaizen_ Thank you sfan5, I will try that way.
22:05 oil_boi joined #minetest
22:14 Itz-Noah joined #minetest
22:37 NathanS21 joined #minetest
23:14 begui joined #minetest
23:17 blaise what is the minetest mod with the trains?
23:17 sfan5 !mod advtrains
23:17 MinetestBot sfan5: Advanced Trains [advtrains] by orwell - https://forum.minetest.net/viewtopic.php?t=14726 - https://github.com/h-v-smacker/advtrains_granite
23:17 blaise Yass, thank you
23:17 blaise :D
23:23 Scarecrow joined #minetest

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