Minetest logo

IRC log for #minetest-dev, 2016-07-31

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

All times shown according to UTC.

Time Nick Message
00:01 nolsen #4389
00:01 ShadowBot https://github.com/minetest/minetest/issues/4389 -- Make descriptions scrollable (if long enough)
00:01 paramat hi hmmmmm please can you help with #4376 ? calculating the expected hash for map_meta.txt is a big problem
00:01 ShadowBot https://github.com/minetest/minetest/issues/4376 -- Mapgen: Remove unused 'flat' and 'trees' flags from mg_flags by paramat
00:01 paramat any tips appreciated
00:45 nolsen Hm, is this the only tool that "Collects media files from mods/games and puts them in a media directory, also creates an index.mth file in the MTHS format"
00:45 nolsen https://gist.github.com/sfan5/6351560
00:45 nolsen Because it's borked :\
00:49 everamzah that script works for me.  has to have games and worlds and mods underneath it.
00:49 nolsen everamzah: Well it's spamming 404 when I connect
00:50 DonBatman joined #minetest-dev
00:50 nolsen everamzah: The script is in minetest's directory
00:50 nolsen but /media is a bunch of jibberish files with bizarre, random names.
01:05 KaadmY nolsen: the names are'nt random
01:06 KaadmY they're hashes of the file's contents
01:06 KaadmY or the file name, not sure which
01:06 nolsen KaadmY: Then why am I getting 404 errors?
01:06 nolsen So this is normal?
01:06 nolsen -rw-rw-r-- 1 minetest minetest   15260 Jul 30 20:22 ffcbc7407d2793dcd35d48932d338bab31c28122
01:06 nolsen -rw-rw-r-- 1 minetest minetest     152 Jul 30 20:23 ffd4d07e4c087e44574c7d2b310bf1fb77431552
01:06 nolsen -rw-rw-r-- 1 minetest minetest     924 Jul 30 20:22 fff15162a045b3ca74263d62d1af7847cc2c06f5
01:07 KaadmY yup
01:07 KaadmY if you try to open them, they're the same files
01:07 KaadmY except the file names are hashes
01:07 nolsen But that still doesn't explain the 404
01:07 Void7 it's trying to find the real file names, not the hashes
01:07 nolsen 404 spam*
01:08 KaadmY Void7: the script doesn't do anything with the network
01:08 KaadmY it's local
01:08 KaadmY i think
01:08 KaadmY 404 is a network issue
01:08 KaadmY it means it can't find the requested file
01:09 nolsen 404: Nah, really?
01:09 nolsen Naw*
01:09 nolsen But in seriousness, it's spamming 404s
01:10 nolsen It's looking for the actual file name, like Void7
01:10 nolsen not the hashes
01:18 VanessaE nolsen: maybe my version of collectstatic will help?
01:18 VanessaE https://daconcepts.com/vanessa/hobbies/m​inetest/Server-scripts/collectstatic.sh
01:20 nolsen minetest@vps:~/minetest$ ./collectstatic.sh
01:20 nolsen mkdir: missing operand
01:20 VanessaE (see also, build-media-dirs.sh in the same directory)
01:20 VanessaE you can't just blindly run it, you know
01:20 VanessaE how does it know where to find your media?  or where to put it?  or what to even "collect"?
01:21 VanessaE those two scripts are used, along with some other stuff, to create the remote_media content my minetest instances need.
01:22 Miner_48er joined #minetest-dev
01:23 nolsen VanessaE: https://nolsen.xyz/paste/?ee71116351fc785c#W​0L1HZE3eL5yN15XQl8CgxrADU9LjkC1QDUe4h0cZ8E=
01:23 VanessaE um. yeah, you should expect that when you blindly run a script without seeing what it does/needs.
01:24 nolsen I don't know .sh
01:24 nolsen I don't know bash, I mean
01:24 VanessaE open collectstatic.sh in a text editor, you should be able to tell what parameters it needs when you run it
01:25 VanessaE (plus it has an example of its usage)
01:26 VanessaE it will take the arguments you give it and create a directory of files with hashes for filenames.
01:26 VanessaE you then need to read that directory's contents and create an index.mth from the listing. for my server, that's done in the build-media-dirs.sh script
01:27 nolsen hm, .minetest
01:27 VanessaE if you don't know BASH scripting, you're not gonna get too far with either mine or sfan5's original code.
01:36 nolsen VanessaE: Maybe there should be an easy script installed on minetest already.
02:23 VanessaE I don't think that's actually possible
02:23 VanessaE a script could perhaps guess where the media comes from, but no way for it to know where it goes to or how much of your games/mods/etc have to be processed.
02:30 blert joined #minetest-dev
02:39 blert anybody try out irrlicht 1.8.5 yet?
02:42 yang2003 joined #minetest-dev
02:43 AntumDeluge joined #minetest-dev
03:01 DonBatman joined #minetest-dev
03:24 DI3HARD139 joined #minetest-dev
03:26 Flear joined #minetest-dev
03:34 Flear joined #minetest-dev
03:54 Lunatrius` joined #minetest-dev
03:58 agrecascino joined #minetest-dev
04:41 paramat joined #minetest-dev
05:32 Flear_ joined #minetest-dev
05:50 paramat left #minetest-dev
05:54 burli joined #minetest-dev
06:46 Krock joined #minetest-dev
06:51 Fritigern joined #minetest-dev
07:05 paramat joined #minetest-dev
07:07 paramat nore please could you consider game#1220 ?
07:07 ShadowBot https://github.com/minetest​/minetest_game/issues/1220 -- Move paper, books and book shelves into separate mod by rubenwardy
07:11 Hunterz joined #minetest-dev
07:14 Fritigern joined #minetest-dev
07:16 Krock I think this was my first downvote on a pull :<
07:17 Krock Perfect situation for a "Controversial" label
07:26 agaran Krock: for which pull?
07:26 Krock the one above
07:26 paramat thanks for input
07:27 VanessaE paramat doesn't like downvotes :)
07:27 Krock Only because it's not glues together with default does not mean to take it out of default
07:27 Krock *glued
07:27 paramat i'm not too bothered either way now :]
07:31 agaran paper is used by some other mods too, which don't need books at all..
07:40 Krock but the books get loaded anyway
07:44 agaran maybe I don't see benefit of splitting it into module
07:46 Krock I don't see any aswell
07:52 paramat left #minetest-dev
07:59 agaran does it make sense at all to use 16/32+0.001 in nodeboxes definitions to make sure there is no edge visible as some modules do?
07:59 blaze joined #minetest-dev
08:02 Darcidride joined #minetest-dev
08:02 nolsen VanessaE: Maybe I did remote_media wrong, do I add index.mth in remote_media?
08:02 VanessaE you put it in the same dir as the media files.
08:03 nolsen remote_media = https://nolsen.xyz/minetest/media/index.mth
08:03 VanessaE afaik it's just a listing of files therein
08:03 nolsen So that is why is spams 404s?
08:03 VanessaE maybe, I don't know
08:03 VanessaE but if you lack index.mth, then it's gonna look for files by nbame
08:03 VanessaE name*
08:03 VanessaE rather than by hash
08:04 nolsen I can't even test either way, because client keeps caching
08:04 VanessaE delete the cache.
08:04 nolsen Don't know how.
08:04 VanessaE rm -rf ~/.cache/minetest
08:04 nolsen On windows right now.
08:04 VanessaE ok, so look in <minetest_dir> for /cache
08:04 VanessaE delete that folder if it exists.
08:08 nolsen 2016-07-31 03:07:45: ERROR[CurlFetch]: https://nolsen.xyz/minetest/media/​index.mth3d_armor_helmet_steel.png not found (HTTP response code said error) (response code 404)
08:08 nolsen hahaha
08:08 nolsen that's hilarious.
08:08 VanessaE oh
08:08 VanessaE remote_media =  https://nolsen.xyz/minetest/media/
08:09 nolsen VanessaE: Tried that.
08:09 VanessaE don't specify index.mth in the path
08:09 nolsen 2016-07-31 03:06:29: ERROR[CurlFetch]: https://nolsen.xyz/minetest​/media/3dvessels_shelf.obj not found (HTTP response code said error) (response code 404)
08:09 VanessaE did you actually create index.mth?
08:09 nolsen Yes.
08:10 VanessaE and it contains...?
08:10 nolsen VanessaE: I don't know, I can't read it.
08:10 nolsen It's hashed.
08:10 VanessaE open it with notepad
08:11 Darcidride joined #minetest-dev
08:11 nolsen https://nolsen.xyz/paste/?e179aa044d8ff423#v​ntgy8ru0xV+UMyWq8dvhhGcFsZL1/YkcgD6yY6voTA=
08:11 nolsen Like I said
08:12 VanessaE try rebuilding index.mth as plain text
08:12 nolsen ...how
08:12 nolsen I don't know bash
08:12 nolsen so I can't modify the script
08:12 VanessaE I can't help you with windows.
08:12 nolsen I can modify it on here...
08:12 nolsen Using a magical tool called PuTTY
08:13 Darcidride joined #minetest-dev
08:13 VanessaE you're kinda SOL if you don't know bash :P  but it's just a matter of scanning the directory and writing each hashed filename out to index.mth as plain text
08:14 nolsen Not everyone knows bash...
08:14 VanessaE ls | grep -v index.mth | sort | while read f; do
08:14 VanessaE echo -ne $f | xxd -r -p - >> $MIXDIR/index.mth
08:14 VanessaE done
08:14 VanessaE (where $MIXDIR is the output directory path)
08:15 VanessaE I haven't used windows in like, 20 years, so no help there :)
08:17 nolsen VanessaE: Will this still work with the hashed files?
08:17 VanessaE I think what went wrong is that sfan5's original code assumes certain behaviors of openssl that don't work the same on some systems
08:18 VanessaE so I had to tweak/rewrite the hash -> index.mth part to use xxd to create plain text
08:18 nolsen index.html is still hashed
08:18 VanessaE it will work if you modify it for your system
08:18 VanessaE as in where your original files are located, where the hashed results go, etc etc etc
08:18 nolsen Fuck it, it's 3AM, I'm going to sleep.
08:19 * VanessaE sighs
08:19 nolsen It isn't going to kill anyone if they have to wait 3 - 5 minutes for the game to load.
08:20 VanessaE it'll kill your server's popularity chance.
08:20 VanessaE but seriously, no sane person uses Windows as a server OS :P
08:20 nolsen Yes, because I'm running minetest on windows.
08:20 nolsen /sarcasm
08:21 nolsen I worship Microsoft.
08:21 nolsen /s
08:21 nolsen Sarcasm aside.
08:21 VanessaE well one would naturally assume if you run linux at all, especially running a server of some kind, that you know some basic scripting :P
08:21 nolsen I can't script.
08:21 nolsen Too complex for me.
08:21 VanessaE anyone can.
08:22 nolsen Not me, it is just too complex.
08:22 VanessaE ...
08:23 VanessaE if you can program in Batch, you can program in BASH too.
08:23 VanessaE it's not complicated.
08:24 VanessaE (Batch...or whatever they actually call the language those scripts are written in)
08:25 VanessaE in any case...  at the bottom line, you basically need to dump the directory listing (of the hashed filenames) in plain text to a file and name it index.mth
08:31 everamzah minetestserver --worldname name --generate_media would be awesome
08:32 VanessaE that could be very useful indeed
08:33 VanessaE (so long as it drops a dir full of media + index.mth in the current dir, and exits immediately)
08:33 everamzah exactly
08:55 jin_xi joined #minetest-dev
09:25 Zeno` joined #minetest-dev
09:35 sfan5 VanessaE: but i'm pretty sure index.mth uses the raw hashes, not plain text
09:36 VanessaE hm
09:37 VanessaE you're right.
09:37 VanessaE maybe it was just some behavior of openssl that wasn't "perfect"
09:38 VanessaE I must have misread my own script :P
09:39 VanessaE in any case I had to make the tweak seen there using xxd to get output minetest was happy with
10:28 Lunatrius` joined #minetest-dev
10:37 Krock joined #minetest-dev
10:49 Megaf joined #minetest-dev
10:59 T4im joined #minetest-dev
11:36 Fixer joined #minetest-dev
12:12 Amaz joined #minetest-dev
12:13 troller joined #minetest-dev
12:29 rubenwardy joined #minetest-dev
12:40 proller joined #minetest-dev
13:03 troller joined #minetest-dev
13:04 Megaf joined #minetest-dev
13:31 AnotherBrick joined #minetest-dev
13:40 Fixer joined #minetest-dev
14:00 Amaz joined #minetest-dev
14:27 Fixer joined #minetest-dev
14:56 agrecascino joined #minetest-dev
14:59 KaadmY joined #minetest-dev
15:17 Void7 joined #minetest-dev
15:26 hmmmm joined #minetest-dev
15:26 Void7 joined #minetest-dev
15:35 nrzkt joined #minetest-dev
16:02 Miner_48er joined #minetest-dev
16:07 juhdanad joined #minetest-dev
16:18 nolsen VanessaE: Can't program in batch either
16:21 Calinou try Batsch! it's a language that compiles to Batch and Bash :P
16:26 sfan5 but is it webscale?
16:28 nolsen sfan5: So what about your script? index.mth shouldn't be hashed, right?
16:28 sfan5 my script is correct
16:28 nolsen sfan5: But it doesn't work for some reason
16:28 sfan5 why not
16:29 nolsen sfan5: Every time I try to connect to my server, it spams 404s, looking for the actual file names, and not the hashes.
16:29 nolsen and index.mth is not in plain text.
16:29 sfan5 index.mth is not supposed to be plain text
16:31 nolsen sfan5: So what is the problem? are the 404s normal?
16:31 sfan5 no
16:33 davisonio joined #minetest-dev
16:35 nolsen I wonder can I skip the hashing part.
16:35 nolsen Is the hashing required?
16:36 davisonio joined #minetest-dev
16:36 sfan5 the old way of doing remote_media was to just copy the files with their original names
16:36 nolsen sfan5: But there is 500 of them
16:36 nolsen of .pngs and stuff.
16:37 sfan5 and?
16:37 nolsen I can't do it manually
16:40 sfan5 too bad such a thing as bash doesn't exist
16:42 Miner_48er nolsen what OS?
16:46 Miner_48er https://stackoverflow.com/questions/183383​22/how-to-find-files-recursively-by-file-t​ype-and-copy-them-to-a-directory-while-in
16:51 nolsen Miner_48er: Ubuntu 16.04
17:04 nolsen Miner_48er: For some reason, it made 'media' an unknown file, not a folder.
17:04 nolsen 'media' isn't blue.
17:04 nolsen its white
17:05 nolsen find minetest -name "*.png" -type f -exec cp {} ./media \;
17:07 sfan5 VanessaE: i have just modernized my collectstatic.sh script a little https://gist.github.com/sfan5/6351560
17:08 * nolsen tries the new script
17:11 nolsen This will take a bit for it to collect 500 pngs
17:15 nolsen 2016-07-31 12:14:55: ERROR[CurlFetch]: https://nolsen.xyz/minetest/media/3​d_armor_helmet_diamond_preview.png not found (HTTP response code said error) (response code 404)
17:15 nolsen nevermind
17:15 est31 joined #minetest-dev
17:15 sfan5 well that's not the scripts fault
17:17 nolsen sfan5: Who's fault it is?
17:17 sfan5 i dont know
17:17 sfan5 but the script works
17:18 nolsen sfan5: Maybe you're using an outdated OS
17:18 sfan5 i use arch
17:18 nolsen Trying to modify the script and disable hashing
17:19 sfan5 just enable the LEGACY_SYMLINKS option
17:20 nolsen sfan5: Uh, how do I do that?
17:20 sfan5 *sigh*
17:20 sfan5 take the line that says LEGACY_SYMLINKS=0
17:20 sfan5 remove it
17:20 Calinou set the variable to 1 instead of 0
17:20 sfan5 put a line with LEGACY_SYMLINKS=1 there
17:25 nolsen sfan5: Hm, it says index.mth returned a 405 error code.
17:26 sfan5 you'll need to fix that then
17:26 nolsen Not sure how is that fixable
17:27 nolsen It's trying to POST
17:29 sfan5 oh right it did that
17:39 nolsen sfan5: Wow, it's actually working once I enabled POST for a specific directory.
17:40 nolsen But I don't think I see a change in speed.
17:40 nolsen Not sure will cloudflare cache it
17:41 sfan5 change in speed compared to what?
17:41 nolsen sfan5: Regular?
17:41 sfan5 regular what
17:42 nolsen sfan5: Regular download
17:42 nolsen Though now more people are joining
17:42 nolsen And the server has been only on for a minute
18:05 VanessaE sorry about the misinformation before, nolsen.  I misread my script and it's been forever and three days since I put it into service.
18:18 blaze joined #minetest-dev
18:25 Lunatrius` joined #minetest-dev
18:30 davisonio joined #minetest-dev
18:44 Void7 joined #minetest-dev
18:55 davisonio joined #minetest-dev
18:58 Flear joined #minetest-dev
18:58 paramat joined #minetest-dev
19:03 paramat nore sfan5 sofar we possibly need another mtgame dev, as sofar has been inactive and i can't do much on my own. also, 3 active devs are better than 2. any ideas? how about T4im ? who has been helping out a lot, good lua coder
19:07 Krock you highlighted sofar because sofar has been inactive?
19:08 Krock (I would support the idea)
19:09 paramat highlighted so-far so he could consider a new dev
19:09 Krock I'd have some good puns ready so-far
19:11 paramat rubenwardy is another possibility but says he wants to wait/consider. there may be others
19:12 paramat maybe because it's summer holiday time, no one's around in engine or game
19:13 Krock wait what? He's not MTG dev yet?
19:15 paramat ruben? nope
19:19 rubenwardy If you need a MTG dev right now, then I'm happy to help
19:20 paramat cool, we do
19:22 paramat ^ nore sfan5 sofar Tesseract your opinions?
19:24 T4im I gladly yield to rubenwardy, I think he'd be a good mtg addition
19:24 rubenwardy At the end of september, uni starts again so I won't be able to do as much
19:25 haole joined #minetest-dev
19:25 rubenwardy T4im is a great contributor, he's at the very least as deserving
19:25 Void7 joined #minetest-dev
19:27 paramat heh T4im you don't have to yield, you might be good in engine too
19:28 paramat anyway +1 for both from me, for engine and gmae
19:28 Megaf joined #minetest-dev
19:30 haole I'm trying to fix https://github.com/minetest/minetest/issues/4287 and I want to understand how does the player's head "follows" the cursor until the cursor is locate in the center of the screen
19:30 paramat celeron55 perhaps you could consider new devs ^
19:30 Samson1 joined #minetest-dev
19:31 paramat haole i don't understand that code yet sorry
19:32 haole paramat: I'll get there eventually, but every help can save me time :)
19:32 haole thanks
19:32 haole any help*
19:32 haole it seems that this bux that I'm working from is coming from irrlicht
19:32 haole I'm getting more debug data
19:34 paramat thanks for working on it, tricky bug
19:34 haole it's fun :)
19:35 rubenwardy The reason I wanted to wait is that I feel like I haven't done much contribution to MTG yet, and wanted to feel more worthy. s_far did a lot of good work before being offered this
19:49 davisonio joined #minetest-dev
19:53 davisonio joined #minetest-dev
19:54 T4im but you have contributed a lot to the minetest ecosystem as a whole already, and when you now get the opportunity to apply more of that upstream, then I'm sure everyone will benefit :)
20:01 paramat for me it's because you've been around for years, are trusted, are good with lua, are currently active and interested in mtgame
20:04 paramat we are also lacking devs in engine too, i don't think it's just a summer thing
20:08 paramat game#1226 T4im has this been tested? can anyone else check this?
20:08 ShadowBot https://github.com/minetest​/minetest_game/issues/1226 -- Doors: fix crash for placing under unknown nodes, and on nil-player by t4im
20:09 paramat i'd like to merge this if possible later with game#1225
20:09 ShadowBot https://github.com/minetest​/minetest_game/issues/1225 -- Bones: Improve bones textures by paramat
20:14 Lunatrius joined #minetest-dev
20:17 Player_2 joined #minetest-dev
20:17 juhdanad joined #minetest-dev
20:19 Lunatrius` joined #minetest-dev
20:31 Darcidride joined #minetest-dev
20:38 davisonio joined #minetest-dev
20:38 T4im yes, is tested :)
20:39 paramat ok
20:39 T4im thanks for pulling so much weight with going through all those pull requests all the time :D
20:39 T4im that is pretty amazing
20:41 haole what's a good way of logging engine stuff to a file? old-school fopen and/or c++ friends? or is there a logger already configured somewhere?
21:08 haole Just updated https://github.com/minetest/minetest/issues/4287 with my latest findings. The bug seems to come from Irrlicht
21:13 haolez joined #minetest-dev
21:24 haolez update my nick from haole to haolez to match my github account :)
21:25 SloanOnLinux joined #minetest-dev
21:31 Lunatrius joined #minetest-dev
21:36 Samson1 joined #minetest-dev
21:40 haolez joined #minetest-dev
21:51 Void7 joined #minetest-dev
21:55 est31 joined #minetest-dev
21:55 paramat joined #minetest-dev
22:30 Megaf joined #minetest-dev
22:51 Void7 joined #minetest-dev
22:53 jin_xi joined #minetest-dev
22:55 endev15_ joined #minetest-dev
23:44 shamoanjac joined #minetest-dev
23:55 SloanOnLinux joined #minetest-dev
23:57 betterthanyou710 hey Solan
23:57 betterthanyou710 Sloan*
23:59 SloanOnLinux joined #minetest-dev

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