Minetest logo

IRC log for #minetest-dev, 2017-06-16

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

All times shown according to UTC.

Time Nick Message
00:09 rubenwardy paramat, yeah, technical reasons. In the future if there's a dig speed modifier for players, then we can use that instead
00:15 octacian joined #minetest-dev
00:16 paramat ok
00:22 CalebDavis joined #minetest-dev
00:42 Lunatrius` joined #minetest-dev
00:53 Tmanyo joined #minetest-dev
00:58 AntumD joined #minetest-dev
01:13 paramat merging #5990 in a moment
01:13 ShadowBot https://github.com/minetest/minetest/issues/5990 -- Mgv6 mudflow: Also check for 'ignore' nodes by paramat
01:17 paramat 'Cookie coming'! =3
01:18 * VanessaE steals paramat's cookies
01:20 paramat merged
01:22 octacian Isn't everything defined in the public section of UnitSAO within src/content_sao.h available in the PlayerSAO?
01:23 * octacian is attempting to implement set_pitch for LuaEntitySAOs.
01:25 paramat erm
01:26 octacian It appears as though PlayerSAO and LuaEntitySAO inherits things from UnitSAO, however, I'm not entirely sure as I'm still VERY new to C++.
01:27 Taoki joined #minetest-dev
01:28 paramat yeah that looks likely, although i'm not too good with 'class' stuff
01:29 octacian heh, I know literally nothing about C++, so, doing pretty good so far...
01:42 CalebDavis joined #minetest-dev
01:43 Guest12147 joined #minetest-dev
02:34 paramat joined #minetest-dev
02:56 Fritigern joined #minetest-dev
03:07 paramat joined #minetest-dev
03:07 paramat will merge game#1776 game#1779 in a moment
03:07 ShadowBot https://github.com/minetest​/minetest_game/issues/1776 -- Book: Also limit the max size of the title. by red-001
03:07 ShadowBot https://github.com/minetest​/minetest_game/issues/1779 -- Chests: Check 'def' of node above chest to avoid crash by paramat
03:09 AntumDeluge VanessaE, just tested sleeping in homedecor beds on my local server (https://github.com/minetest-mod​s/homedecor_modpack/issues/367). Wasn't able to reproduce crash. Seems to work as expected.
03:18 paramat merged
03:18 Hunterz joined #minetest-dev
04:29 Zeno` joined #minetest-dev
04:45 kaeza joined #minetest-dev
05:06 Hunterz joined #minetest-dev
05:13 nerzhul joined #minetest-dev
05:17 nerzhul merging #5995
05:17 ShadowBot https://github.com/minetest/minetest/issues/5995 -- Fix deserialization of ItemDefinition by Rui-Minetest
06:18 Foz joined #minetest-dev
06:28 Fritigern joined #minetest-dev
07:08 Foz joined #minetest-dev
07:39 nerzhul joined #minetest-dev
07:49 Raven262 joined #minetest-dev
08:05 kilbith joined #minetest-dev
08:09 YuGiOhJCJ joined #minetest-dev
08:15 MoNTE48 joined #minetest-dev
08:15 nerzhul !tell bigfoot547 i don't eat many bread :p
08:15 ShadowBot nerzhul: O.K.
08:17 nerzhul ty sfan5 for being logical
09:13 nerzhul merging #5984 in ~10-15 mins
09:13 ShadowBot https://github.com/minetest/minetest/issues/5984 -- C++11 patchset 9: move hardcoded init parameters to class definitions (part 1) by nerzhul
09:13 Raven262 joined #minetest-dev
09:34 proller joined #minetest-dev
09:40 kilbith joined #minetest-dev
10:01 srifqi joined #minetest-dev
10:04 Fixer joined #minetest-dev
10:17 Darcidride joined #minetest-dev
10:24 jin_xi joined #minetest-dev
10:41 troller joined #minetest-dev
10:49 lisac joined #minetest-dev
11:13 kilbith_ joined #minetest-dev
11:55 proller__ joined #minetest-dev
13:06 twoelk joined #minetest-dev
13:20 cx384 joined #minetest-dev
13:26 QwertyDragon joined #minetest-dev
13:26 CalebDavis joined #minetest-dev
13:35 antims joined #minetest-dev
13:39 DerFipsy joined #minetest-dev
13:44 DerFipsy left #minetest-dev
13:51 Fixer joined #minetest-dev
13:52 srifqi joined #minetest-dev
14:00 octacian joined #minetest-dev
14:17 Ryan-cute joined #minetest-dev
14:43 jin_xi joined #minetest-dev
14:44 Hunterz joined #minetest-dev
15:11 srifqi joined #minetest-dev
15:12 DI3HARD139 joined #minetest-dev
15:40 DI3HARD139 joined #minetest-dev
15:41 est31 joined #minetest-dev
15:45 est31 left #minetest-dev
16:16 Tmanyo joined #minetest-dev
16:17 YuGiOhJCJ joined #minetest-dev
16:20 Bobr2 i would like to report an issue
16:30 bigfoot547 joined #minetest-dev
16:37 VanessaE so report it on github
16:39 Bobr2 urm ok
16:49 kaeza joined #minetest-dev
16:54 proller__ joined #minetest-dev
17:03 bigfoot547 joined #minetest-dev
17:11 CalebDavis joined #minetest-dev
17:16 QwertyDragon joined #minetest-dev
17:29 QwertyDragon joined #minetest-dev
17:39 lisac joined #minetest-dev
17:54 CalebDavis joined #minetest-dev
18:09 danny joined #minetest-dev
18:11 TestyRabbit joined #minetest-dev
18:13 TestyRabbit Hey guys, I'm trying to create a new Lua API call to release the mouse cursor. I have the c++ working but need to connect it to a lua function. I wrote the function and called the API_FCT funciton on the name (minus the l_) but it's saying it's a nil value when i try to call it
18:14 TestyRabbit Or should this be posted in #minetest?
18:14 Calinou TestyRabbit: nah, this question should be OK for this channel
18:14 Calinou but I don't know the answer :P
18:15 bigfoot547 Do you have a fork on github?
18:15 nerzhul joined #minetest-dev
18:15 bigfoot547 So we could see the code?
18:16 TestyRabbit I'll put one together. I'm currently using the repo as part of a larger repo but give me 5 and ill get it over into a fork
18:18 rubenwardy TestyRabbit, is this for CSM?
18:19 rubenwardy you need to make sure you add it to the array of Lua methods
18:19 rubenwardy for the module you're adding it to
18:19 TestyRabbit CSM? I can't find the array of lua methods lol
18:20 nerzhul TestyRabbit, releasing mouse cursor ? what is the need ?
18:21 TestyRabbit we have python code listening for a middle mouse press which launches an external hud, but minetest still controls the cursor so we cant move over to it
18:23 nerzhul okay i see, seems a bit hacky, you have a overlay like steam but not embedded in app in fact
18:23 bigfoot547 In minecraft PI, you can press tab to release the cursor
18:24 nerzhul for me a call like this should not be in minetest or any fork, because mouse is user, and overriding mouse releasing doesn't make many sense as we have formspecs for that
18:24 nerzhul i see
18:24 TestyRabbit Well sort of, yeah. We had an entire game running on minecraft pi but we switched to minetest, so certain small things need changing
18:24 nerzhul tab is nice, but there is nothing to select in MT if you release
18:25 TestyRabbit so we have a full hud written in Qt
18:25 TestyRabbit because minecraft pi didnt allow hud modifications
18:25 TestyRabbit and middle mouse button launches that external hud with buttons and stuff
18:26 TestyRabbit moving the hud to minetest itself would require a pretty large rewrite of our codebase, which we don't have time for right now, so our other option was try to make an api call to release the mouse cursor
18:26 rubenwardy TestyRabbit, may you provide us with a commit?
18:26 TestyRabbit yeah one sec
18:26 TestyRabbit amlost there
18:26 bigfoot547 10 years later
18:27 cx384 joined #minetest-dev
18:33 TestyRabbit Lol well i have to copy my current working directory into a fork, just ensuring it compiles
18:33 TestyRabbit sorry
18:36 TestyRabbit https://github.com/DanielGillies/minetest
18:37 TestyRabbit I added to game.cpp, game.h, l_client.cpp, l_client.h
18:37 nerzhul interesting api calls remove android work xD
18:37 nerzhul and reverted recent commit
18:37 TestyRabbit yeah
18:37 TestyRabbit its and older version
18:38 TestyRabbit its definitely hacky
18:38 TestyRabbit and i dont like it much lol
18:38 TestyRabbit But that is the price of not being able to call the shots lol
18:40 rubenwardy did you not git clone?
18:40 TestyRabbit we did a few months ago
18:41 rubenwardy if you commit on top of the old version, you'll get a nice commit. Then git pull upstream master --rebase to include all the recent changes
18:41 TestyRabbit ok sec
18:42 rubenwardy are you calling your new function from CSM, TestyRabbit?
18:42 rubenwardy it looks like you added it to the client side modding API, so it won't be available on the server
18:43 bigfoot547 You should rebase then apply commits/
18:43 TestyRabbit yeah rebasing now
18:44 bigfoot547 Thanks
18:48 Grandolf joined #minetest-dev
18:54 ThomasMonroe joined #minetest-dev
19:00 Krock joined #minetest-dev
19:14 TestyRabbit Sorry for the wait. turns out our version of minetest has quite a few changes from the version we pulled. I'm making the changes on a fresh fork so you can see what I'm trying to do. All I'm really concerned about is the actual api call itself so that's what im gonna change in the fresh repo
19:14 bigfoot547 Ok, thanls
19:14 bigfoot547 s/l/k
19:15 TestyRabbit s/l/k?
19:17 red-001 syntax for some linux command
19:17 TestyRabbit oh
19:17 red-001 replace the first instance of l with k
19:17 TestyRabbit right
19:19 bigfoot547 Thanks
19:21 bigfoot547 I don't see any problems
19:22 red-001 the stuff you linked looks correct apart from being only a stub of course
19:22 TestyRabbit oh wait
19:22 TestyRabbit i think i fixed it
19:22 TestyRabbit i think im just an idiot xD
19:22 nerzhul #6000 6k issues/pr :p
19:22 ShadowBot https://github.com/minetest/minetest/issues/6000 -- [WIP] C++11 cleanup on constructors by Dumbeldor
19:23 TestyRabbit i added the API_FCT to the client file, not the server file
19:23 TestyRabbit if i put it in the server file, it doesn't crash anymore
19:23 * red-001 waits for 6666
19:24 nerzhul xD
19:24 TestyRabbit sigh
19:24 TestyRabbit yup. fixed it lol
19:24 TestyRabbit im sorry guys
19:24 bigfoot547 nerzhul, Don't say xD or talk in base64 on ##forthenerds, it'll get you banned
19:25 TestyRabbit thanks for your help lol
19:25 TestyRabbit and patience
19:25 nerzhul bigfoot547, don't attack me and do a CSM pr :p
19:26 bigfoot547 I literally got banned for it!
19:26 bigfoot547 It was sad.
19:26 bigfoot547 On my new channel, ##allthedevs , I banned the person that banned me.
19:27 bigfoot547 Actually I didn't, jordyn did because he knows her cloak
19:28 bigfoot547 (It is very lonley on my channel :/ )
19:34 bigfoot547 Why is grandolf banned on this channel
19:35 Grandolf he isnt
19:35 Grandolf :P
19:36 bigfoot547 * #minetest-dev: $a:Grandolf on Mon Jun  5 03:05:30 2017 by rajaniemi.freenode.net from the banlist
19:36 Grandolf i got unbanned
19:37 bigfoot547 Why are you on the banlist?
19:37 Grandolf idk
19:37 bigfoot547 x-files music
19:38 red-001 bigfoot547, the ban is on his freenode account
19:38 red-001 so if he logs out he can evade it
19:39 Grandolf zeno unbanned me
19:39 bigfoot547 Okay... I understand
19:39 Grandolf ill leave if ur going to make a big deal about it tho
19:39 red-001 !tell Zeno` looks like you forgot to unban Grandolf account?
19:39 ShadowBot red-001: O.K.
19:40 red-001 I mean I wouldn't care
19:40 bigfoot547 I don't really care, I just wanted to see how someone would be on the banlist and still on
19:41 red-001 yeah it's because it's an account ban and not a nick/ip ban
19:42 Grandolf i have a question tho
19:42 Grandolf how do ppl color their chat?
19:42 bigfoot547 Ctrl+K
19:42 bigfoot547 in hexchat
19:42 Grandolf i meant in minetest
19:42 red-001 -> #minetest
19:42 bigfoot547 Like this
19:42 red-001 this is a dev channel
19:43 Taoki joined #minetest-dev
19:43 Grandolf im banned
19:43 Grandolf this is the only mt channel i can talk in
19:44 Grandolf in freenode
19:45 bigfoot547 I'm banned in all aspects for NO REASON on another chan.
19:45 bigfoot547 :(
19:46 Grandolf i got banned bc i didnt c eye-to-eye with some of the devs
19:46 bigfoot547 SSBnb3QgYmFubmVkIGZvciBkb2luZyB0aGlz
19:46 red-001 you got banned for spamming
19:46 red-001 face it
19:46 Grandolf im leaveing b4 things get real
19:46 Grandolf left #minetest-dev
19:47 bigfoot547 Spamming? Decrypt it/
19:47 bigfoot547 left #minetest-dev
19:49 sfan5 red-001: $a is a ban by account name and only takes effect if signed in
19:49 red-001 red-001> bigfoot547, the ban is on his freenode account
19:50 red-001 I literally said that
19:50 rubenwardy please move to #minetest
19:51 ThomasMonroe are minetest_game development ideas welcome here?
19:51 bigfoot547 joined #minetest-dev
19:52 sfan5 this channel is also for minetest_game development
19:52 sfan5 though ideas might be better suited for the bug tracker
19:53 ThomasMonroe where is that?
19:53 kilbith take a ticket and join the queue of the "idea" people
19:53 ThomasMonroe lol
19:54 sfan5 https://github.com/minetes​t/minetest_game/issues/new
19:54 ThomasMonroe well the reason i came here is bcs my idea may alter the course of minetest a little bit
19:54 ThomasMonroe if its used ofc
19:56 bigfoot547 yesssss, what is the idea?
20:00 ThomasMonroe https://github.com/minetest​/minetest_game/issues/1782
20:00 ThomasMonroe thats the general idea
20:01 bigfoot547 +1
20:01 ThomasMonroe thanks
20:15 ThomasMonroe oh and thank you sfan5
20:36 ThomasMonroe sry rubenwardy, puncuating still wont help it any
20:38 TestyRabbit left #minetest-dev
20:40 VanessaE great, I just discovered a bug in the client's handling of soft texture overlays :(
20:42 VanessaE I think.
20:43 VanessaE yep, confirmed
20:44 VanessaE if you use the same texture file for multiple nodes' overlays, the client will not always render them properly.
20:45 VanessaE which is to say, it won't render them at all
20:49 Grandolf joined #minetest-dev
21:00 TestyRabbit joined #minetest-dev
21:01 TestyRabbit am I able to call a function in client.cpp from l_server.cpp? my guess is no. the function just toggles a flag
21:01 TestyRabbit getClient(L)->anything segfaults understandably
21:02 red-001 no
21:02 red-001 what do you need to do
21:02 TestyRabbit i have a function that can be put pretty much anywhere, as long as it's accessible from game.cpp
21:02 red-001 if you want the client to do something when you are the server you send a packet
21:02 TestyRabbit m
21:03 TestyRabbit hmm
21:03 red-001 you are the person working on some custom minetest modification right?
21:04 TestyRabbit yeah lol
21:05 red-001 how is the custom hub you are using opened?
21:05 red-001 like what triggers it
21:05 red-001 hud*?
21:05 TestyRabbit its a hud written in Qt, middle mouse button triggers it
21:06 TestyRabbit pyQt*
21:06 red-001 why do you need this to be ran by the server then
21:06 red-001 shouldn't the client detect the middle click?
21:07 TestyRabbit yeah, but we are using a mod called raspberryjammod to run python through the lua api, and that's ran on the server
21:07 TestyRabbit so the idea was to add another api call i could hook into raspberryjammod
21:08 red-001 so this is a singleplayer game right?
21:08 TestyRabbit yeah
21:08 red-001 and you want to toggle the focus using the middle mouse button while the hud is displayed
21:09 TestyRabbit yeah. and so in our python api would just call a function that would hook into the engine and toggle the flag i wrote
21:10 red-001 huh does the hud block key input and mouse button input from being passed to the game?
21:10 red-001 if it doesn't you could easily implement this in the input handler
21:11 red-001 if it does then adding this could be a bit harder but if this client will never be used on servers you can cheat a bit
21:11 TestyRabbit yeah the client shouldnt ever be used on any servers, at least not for a long time
21:11 TestyRabbit not in the foreseeable future
21:11 TestyRabbit and by the time it does, we hopefully wont have this method of doing it lol
21:12 TestyRabbit when the hud is active, it draws focus from the game i think. So opening it might not be a problem, but closing it might be
21:12 TestyRabbit how could i cheat?
21:12 bigfoot547 joined #minetest-dev
21:12 red-001 well the server is suppose to inform the client of events using network packets
21:12 red-001 but you could just use a game.cpp event
21:13 bigfoot547 Hello!
21:13 TestyRabbit hey bigfoot
21:13 TestyRabbit hmm a game.cpp event
21:13 red-001 or maybe not
21:13 TestyRabbit and fire it from l_server?
21:13 red-001 I'm not sure right now
21:13 TestyRabbit lol
21:13 proller__ joined #minetest-dev
21:14 red-001 and I'm in windows right now without a minetest dev enviroment
21:14 TestyRabbit ah
21:15 TestyRabbit i can send a networkpacket to the client from the server
21:15 TestyRabbit yeh?
21:15 red-001 yeah
21:15 VanessaE https://github.com/minetest/minetest/issues/6001
21:15 red-001 it's a bit of a pain to add new packets
21:15 TestyRabbit ohh i see all of these handleCommand_...
21:16 red-001 since there is a lot of sort of  boiler plant code
21:16 TestyRabbit ah i see
21:16 red-001 I wonder could you port the python mod to the client and call the hub using that
21:17 red-001 or maybe that's a hack on top of a hack
21:17 red-001 oh
21:17 red-001 I just though of the greatest hack ever
21:17 red-001 use settings
21:17 TestyRabbit oh snap
21:17 TestyRabbit OH and save a setting
21:17 TestyRabbit and then in game.cpp just check the setting value
21:18 red-001 since settings are shared in singleplayer
21:18 red-001 yeah
21:18 TestyRabbit shit you're a genius
21:18 TestyRabbit ill give that a shot
21:30 fireglow[m] joined #minetest-dev
21:33 TestyRabbit @red-001 settings worked
21:33 red-001 neat
21:33 TestyRabbit thank you lol
21:33 red-001 you will want to add a packet once you add servers to your game
21:34 red-001 if/when
21:34 TestyRabbit yeah i want to add a packet, and i probably will continue down that route, but this is a good hack for our deadline coming up
21:34 TestyRabbit any docs on how to add packets?
21:34 red-001 not really
21:34 red-001 I don't think so anyway
21:34 TestyRabbit i can just try to follow a call through
21:35 red-001 https://github.com/minetest/minetest/commi​t/4221c1b4412f2bf889bd603a26424003f5367f6a
21:35 red-001 there an example of a server to client packet
21:36 red-001 it's a pretty simple change so basically all of it is packet handling
21:38 TestyRabbit oh thats not too bad, just seems mostly tedious
21:38 red-001 yeah basically
21:38 TestyRabbit okay awesome, ill probably try to get that in
21:39 TestyRabbit thanks for the help
21:39 paramat joined #minetest-dev
21:39 red-001 well that would still break if you add a server through right?
21:40 TestyRabbit the settings?
21:42 red-001 no a packet the mod that you are using for opening the hud is server-sided and the server has no way to know if a remote client has clicked the middle mouse
21:45 TestyRabbit hm thats true
21:45 TestyRabbit i think if we tried to move to multiplay eventually
21:46 TestyRabbit there would many other issues too
21:46 TestyRabbit ideally by then we wouldnt need this explicit call to free the cursor because everything would be embedded in minetest and we wouldnt use an external hud
21:46 paramat Grandolf please don't post in SMS language, it's irritating and makes you sound stupid. you are on the internet and there's no monetary advantage to abbreviating your words that much. you were banned for starting a new -project channel
21:47 red-001 there is nothing wrong with cloning -project
21:47 red-001 but spamming about it is
21:47 TestyRabbit we only did because we ported from minecraft and that is closed source with 0 mod support lol
21:48 red-001 and they clearly knew it wasn't welcome since they used a different nick and client
21:48 Grandolf paramat im sorry if my abbreviations upset you, its a habit, i dont even notice when i do it :P
21:48 red-001 TestyRabbit, if you want a decent hub you will need some sort of custom system
21:48 red-001 irrlicht GUI isn't execally nice looking
21:50 TestyRabbit ah i see lol
21:51 silwol joined #minetest-dev
22:13 paramat well, it was wrong to restart -project as it was an obvious provocative retaliation to closing the former. any channel with 'minetest' in it needs to be approved by, and is under the power of, the newly-created IRC MT organisation. anyway, enough said :]
22:19 VanessaE I thought #-project pointed to #minetest or something anyway
22:20 paramat the original does, but the new one was ##
22:21 paramat game#1777
22:21 ShadowBot paramat: Error: Delimiter not found in "Page is too big or the server took too much time to answer the request."
22:21 paramat ok
22:24 VanessaE oh well
22:24 VanessaE paramat: did you see my latest corner-case-weird-bug? :)
22:35 paramat erm looking
22:37 paramat issue 6001?
22:39 VanessaE yeah
22:40 paramat will read soon, sorry i'm not good with this subject
22:40 VanessaE no worries
22:40 VanessaE there, pinged juhdhanadanhdandhad  :)
22:40 jcalve is there any way to find from which mod came an item?
22:41 VanessaE (he's *gotta* come up with an easier-to-remember nick :P )
22:41 VanessaE jcalve: it's in the item name.
22:43 jcalve the item's name is "saddle"
22:45 bigfoot547 #6001
22:45 ShadowBot https://github.com/minetest/minetest/issues/6001 -- Soft overlay does not always render in-world
22:48 paramat hehe
22:49 bigfoot547 Why should I look on github when I have ShadowBot?
22:53 VanessaE heh
22:54 rubenwardy joined #minetest-dev
23:22 kilbith_ joined #minetest-dev
23:22 TC03 joined #minetest-dev
23:25 Shara_ joined #minetest-dev
23:25 elem joined #minetest-dev
23:25 exio joined #minetest-dev
23:26 Hijiri_ joined #minetest-dev
23:26 cheapie joined #minetest-dev
23:36 YuGiOhJCJ joined #minetest-dev
23:58 twoelk|2 joined #minetest-dev

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