Time Nick Message 00:16 EvergreenTree How would I create a table in luas which associates several strings with a single string? 00:17 EvergreenTree Essentially, I randomly choose a string from "lava 00:17 EvergreenTree + " 00:18 EvergreenTree something like this: 00:18 EvergreenTree table.lava = {"hot", "glowing"} 00:19 Sokomine and what's the problem? 00:19 EvergreenTree The problem is that I want to choose randomly one of the strings associated with "lava" 00:19 Sokomine local msg = table.lava[ math.random(1,#table.lava) ] 00:19 EvergreenTree okay, hold on 00:23 EvergreenTree This code gives an error(not used to lua): 00:24 EvergreenTree http://pastebin.ubuntu.com/7117150/ 00:26 Sokomine did you call the table table? in that case it might be due to table beeing a protected word 00:27 Sokomine as i said: don't name your table "table". give it a name 00:27 EvergreenTree changing 00:28 EvergreenTree http://pastebin.ubuntu.com/71171 00:28 EvergreenTree just gives me "glowing" 00:29 Sokomine sounds reasonable. math.random is most likely not initialized. withhin a mod, that's no problem. if you call it seperately, it may really always give the same result 00:29 EvergreenTree hm 00:30 EvergreenTree How would I initialize it? 00:31 Sokomine math.randomseed 00:31 Sokomine but withhin mods, you usually don't have to do so 00:31 EvergreenTree Okay 00:32 Sokomine unless you want a specific pattern 01:07 EvergreenTree https://forum.minetest.net/viewtopic.php?pid=133660#p133660 01:07 EvergreenTree Added the table of quips for my death_messages mod 01:07 EvergreenTree I will probably make it optional tomorrow 01:08 EvergreenTree don't have time atm 01:09 EvergreenTree ^ Sokomine that's what I needed the tables for btw 01:09 EvergreenTree if you couldn't guess already 01:14 Sinkialex hey I added this line to my minetest.conf "mg_flags = v6_jungles, dungeons" do this only work on new world or do it work on world I have made already made? 01:15 Sinkialex I have already made? ^ 02:02 * NekoGloop flops onto the channel's rug 02:37 harrison life, death (he holds up his hands, palms toward his chest, splayed fingers, shaking as if to dry them) -- these are the dyes with which i work 04:18 kaeza greetings 04:24 hoodedice hello 04:24 hoodedice byw 04:24 hoodedice *bye 07:01 MinetestBot GIT: 4Evergreen4 commited to minetest/minetest_game: Add animated front texture for active furnace a5dcf123e0 2014-02-17T18:21:08-05:00 http://git.io/Yq7GZg 07:43 PenguinDad G'Day john_minetest 08:08 MinetestBot GIT: jeija@mesecons.net commited to Jeija/minetest-mod-mesecons: Improve and clean up luacontroller digiline_send on globalstep feature dac05e4a6c 2014-03-19T09:09:39+01:00 http://git.io/DYaWuA 08:11 MinetestBot GIT: jeija@mesecons.net commited to Jeija/minetest-mod-mesecons: Improve and clean up luacontroller digiline_send on globalstep feature 39a0e56c18 2014-03-19T09:11:07+01:00 http://git.io/acs65w 09:20 MinetestBot GIT: jeija@mesecons.net commited to Jeija/minetest-mod-mesecons: Remove timer() from LuaController and make interrupt() use the ActionQueue so that it will keep working when restarting the server df6829e553 2014-03-19T10:20:43+01:00 http://git.io/u7VX-w 10:01 OldCoder Hi 10:01 OldCoder john_minetest, are you awake? 10:01 OldCoder kaeza, Sokomine? 10:02 kaeza what's up? 10:25 OldCoder john_minetest, are you at HN? 10:25 OldCoder kaeza, are you at HN? 10:25 OldCoder Hacker News 10:25 kaeza nope 10:25 OldCoder kk 10:26 * OldCoder is #1 there temporarily 10:26 OldCoder https://news.ycombinator.com/ 10:30 OldCoder Indeed 12:20 PilzAdam Hello everyone! 12:33 Krock Hello ppl 12:34 Krock Any breaking news? 12:44 Megaf !up minetest.megaf.info 30003 12:44 MinetestBot minetest.megaf.info:30003 is up (728ms) 12:45 Krock !charge myStuff.PC.CMOSbattery 12:50 MinetestBot blackha.wk:30000 seems to be down 13:42 * Krock is amazed of the placing-nodes-silence 13:49 * EvergreenTree give NekoGloop a delicious fishy 13:49 MinetestBot GIT: jeija@mesecons.net commited to Jeija/minetest-mod-mesecons: Fix #83 (experimental) 3d2cfeace8 2014-03-19T14:47:22+01:00 http://git.io/Q-ReIQ 13:50 * NekoGloop nom 13:55 * john_minetest gives NekoGloop a <'(((-< 14:02 Krock !rainbow nomnomnomnomnomnomnom 14:02 MinetestBot 4n4o4m7n7o7m8n8o8m3n3o3m12n12o12m6n6o6m13n13o13m 14:14 MinetestBot GIT: jeija@mesecons.net commited to Jeija/minetest-mod-mesecons: Fix #146 37405e5a06 2014-03-19T15:13:23+01:00 http://git.io/w-kXEA 14:17 Exio4 switch to debian 14:20 Megaf you could use VirtualBox 14:20 grepwood does debian still use gcc 4.5? 14:20 Megaf gcc version 4.7.2 (Debian 4.7.2-5) 14:20 Megaf nope 14:20 grepwood woah 14:21 Exio4 gcc version 4.8.2 (Debian 4.8.2-16) 14:21 Megaf and one can always use Debian SID, it is as updated as Arch, almost, and just as unstable as 14:21 Exio4 it is using 4.8.2 here 14:21 Exio4 your system is outdated Megaf 14:21 Megaf That means, your system may crash if you update it 14:21 grepwood gcc version 4.8.2 (Gentoo 4.8.2 p1.3r1, pie-0.5.8r1) 14:21 Megaf Exio4: I'm on Debian Wheezy (7) 14:21 Exio4 ah 14:21 Megaf it use software that it knows to work without bugs 14:22 grepwood what benefits are there to having make 4.0? 14:22 Megaf $ make -v 14:22 Megaf GNU Make 3.81 14:22 grepwood split? 14:29 harrison 01,09memehopper 14:48 Krock 03,04lol colored text is kinda funny 14:54 harrison i get that a lot actually 15:01 grepwood is it okay to post asciis here? 15:02 * sfan5 flips john_minetest 15:02 sfan5 grepwood: ShadowBot will probably kick your for spam 15:02 sfan5 meow 15:02 sfan5 hi everyone 15:06 Megaf Hi sfan5 15:06 sfan5 hi 15:13 PenguinDad howdy sfan5 15:21 * harrison contracts into an oblate microspheroid 15:23 * john_minetest uses his cephalopod powers to solve the three-body-problem 15:26 * harrison has solved the three-body-problem years ago when it was still cool 15:27 harrison i am not a real doctor 15:28 harrison i am a free ai 15:31 * sfan5 gives harrison a kitten 15:32 * harrison places kitten in schrodinger box 15:37 * PenguinDad rescues the kitten with his doge powers 15:39 harrison http://sacramento.cbslocal.com/2014/03/18/california-man-gets-probation-for-biting-parents-in-argument-over-cat/ 15:43 PenguinDad plol 15:54 Megaf Folks on Linux, I got a new coll commnad for ya 15:55 Megaf as root, type on terminal echo -n mem > /sys/power/state and hit enter 15:55 Megaf cya 15:57 Exio4 we don't want to suspend to ram if you want to make us do that 16:21 reactor hёllф 16:22 PenguinDad reactor, try http://eeemo.net for really crazy text 16:23 reactor Seen that. 16:23 Jordach has it been five fucking years since 2009? 16:23 reactor I'm yet to comprehend how it's done in UTF-8. 16:24 Jordach fuck me, time has gone missing :P 16:24 reactor Jordach: no, just usual years. 16:27 harrison john_minetest that is indeed a very good cartoon of the shrodingerkat 16:33 markveidemanis Hi 16:33 markveidemanis I am trying to compile on a CentOS 6.5 VM 16:34 markveidemanis I am running with . -DRUN_IN_PLACE=1 -DENABLE_CURL=0 -DBUILD_CLIENT=0 16:37 PenguinDad What is your question/problem? 16:37 sfan5 markveidemanis: what's your problem? 16:38 markveidemanis One sec 16:38 markveidemanis I don't know how to share cliboard or have shared folders 16:43 sfan5 this is #minetest not #everyproblemyoumighthave 17:03 markveidemanis Do I just need cmake to build minetest? 17:04 Calinou markveidemanis, no, you need more 17:05 Calinou Irrlicht, libpng, zlib, libvorbis, libogg, liblua, libluajit, libfreetype, libgettext, build-essential (= compiler such as GCC or Clang)... 17:05 Calinou and many more ;) 17:06 markveidemanis http://pastie.org/8951091 17:07 markveidemanis No package irrlicht available 17:07 markveidemanis And I don't need it for bare server 17:19 PenguinDad markveidemanis, you need the irrlicht headers for the server 17:19 markveidemanis Irrlicht headers? 17:19 markveidemanis How do I get them? 17:45 Calinou you don't have Irrlicht development headers installed; markveidemanis, install libirrlicht-dev 17:45 Calinou installing -dev always installs normal package ;) saves time 17:46 markveidemanis no package install libirrlicht-dev 17:46 markveidemanis -install 17:46 sfan5 lolwat http://www.reddit.com/r/ProgrammerHumor/comments/20tczt/my_name_is_not_dad_its_gnudad/ 17:46 markveidemanis This is fedora Im trying to do this on 17:47 PenguinDad on Red Hat derivates it is -devel not -dev 17:48 markveidemanis still no 17:48 markveidemanis libirrlicht-devel 17:48 sfan5 markveidemanis: WHAT THE FUCK 17:48 sfan5 >Help building Minetest on CentOS 6.5 17:49 sfan5 >not posting in Bugs and Problems section 17:49 sfan5 srsly! 17:54 Calinou markveidemanis, search around for the package 17:54 Calinou "yum search irrlicht" ? 17:58 markveidemanis No Matches found 17:59 Calinou Fedora is a fine distro 18:03 Jordach we need shaders like this http://i.imgur.com/Rtm2ue7.png 18:15 markveidemanis Now the problem is with cmake 18:16 markveidemanis /usr/bin/cmake is unable to compile a simple test program 18:17 PenguinDad markveidemanis, cmake isn't a compiler 18:18 markveidemanis Hmm? 18:19 OdinAllfather Hello guys 18:20 OdinAllfather I'm new to Lubuntu and don't know how to install and play it 18:42 markveidemanis PenguinDad, what is then? 18:43 PenguinDad it is a makefile generator 18:48 markveidemanis does it overwrite the files if executed again? 18:48 markveidemanis I mean what is a compiler then 18:48 Jordach JFGI 18:51 markveidemanis GCC? 19:12 OldCoder Hi 19:12 OldCoder Is anybody online now at HN? 19:13 sfan5 john_minetest: http://i.imgur.com/2yTRMgx.jpg 19:13 sfan5 HN? 19:14 sfan5 ah 19:14 OldCoder I am on page 2 19:14 OldCoder Please upvote 19:14 OldCoder I just need 2 more 19:14 OldCoder to hit 300 19:14 OldCoder To reach page 2 press More button at bottom 19:19 reactor dubber ruck 19:19 reactor OldCoder: щ/ 19:19 reactor How's the science? 19:19 OldCoder reactor, weird 19:19 OldCoder Weird Science 19:19 OldCoder reactor, are you on HN? 19:19 reactor HN? 19:20 OldCoder Hacker News. Never mind. 19:21 markveidemanis OldCoder: Where is the C++ compiler executable? 19:21 OldCoder markveidemanis, not today :-) 19:21 markveidemanis :( 19:21 OldCoder Do not :( 19:21 markveidemanis :-) 19:21 OldCoder Things have taken a turn for the better 19:21 OldCoder Good 19:21 OldCoder Patience is requested 19:21 OldCoder Can't post much now; must prepare to go to the doctor 19:22 reactor Take Your Stethoscope and Walk 19:22 markveidemanis It appears I have to actually install it :P 19:23 * markveidemanis is | | << this close to having a minetest server on a 24 core machine 19:23 reactor "Take Up Thy Stethoscope and Walk", rather 19:23 reactor markveidemanis + Windows is a waste of a good machine 19:27 markveidemanis ... 19:27 markveidemanis It has CentOS 19:27 markveidemanis AND IT WORKED 19:27 * markveidemanis jumps for joy 19:28 reactor CentФS :( 19:28 reactor Dude, you're wasting your machines. Seriously. 19:28 reactor Linux is a ridicule of UNIX. 19:29 markveidemanis well shit 19:29 markveidemanis Error 19:29 markveidemanis Wait, should I do make -j2 ? 19:30 Calinou yes, it'll go faster 19:30 Calinou reactor, and no one cares about that. 19:30 reactor the more processors you want to dedicate for the build, the more -j 19:31 markveidemanis Oh thats what it meant 19:31 markveidemanis But there's an error 19:31 reactor Calinou: wall, pff. 19:31 reactor s/a/e/ 19:31 markveidemanis bla is not a name type 19:31 reactor Do I really care about people caring? 19:33 Calinou the more cores* 19:33 Calinou most people have 1 physical CPU. 19:34 Krock hello 19:34 Exio4 wait 19:34 Exio4 24 cores? 19:34 Exio4 threads or cores 19:35 markveidemanis http://pastebin.com/9PnmHVaa 19:35 markveidemanis 24 cores 19:35 markveidemanis @2Ghz each 19:36 Calinou please use something else than pastebin.com, like zerobin.net or paste.ubuntu.com 19:37 Krock = 48 GHz ugh about 16 times faster as my PC 19:37 Krock Why is pastebin not good anymore? 19:37 reactor ...why don't sites such as wastebin provide direct links? 19:38 reactor Or they do, but people prefer to force each other to load yet another program just to view some garbage? 19:38 Krock as long you can see the contents of the paste, it should be okay :3 19:38 Jordach Krock is one of us. Krock is one of us. 19:38 Jordach :3 19:38 Calinou = 48 GHz ugh about 16 times faster as my PC 19:38 Calinou it's NOT 16 times faster 19:38 Krock "us"? hashtag minetest community 19:39 Calinou you should not count like that 19:39 Calinou use benchmarks to compare 19:39 Calinou Why is pastebin not good anymore? 19:39 Calinou ads, spam, long loading times 19:39 Calinou as long you can see the contents of the paste, it should be okay :3 19:39 Calinou no 19:39 Calinou that's like saying "as long as I can play Minetest, it doesn't matter if I stole a car" 19:40 markveidemanis ... 19:40 Krock huh? "as long I can see the source of Minetest, it should be okay" 19:40 markveidemanis Any help? 19:41 Krock markveidemanis, seems like it started compiling at nodedef instead on the mail file 19:41 Krock *main 19:42 markveidemanis SO what should I do? 19:42 reactor Krock: you've just agreed to have to enter captcha and use javascript to download every source package. Lol. 19:42 markveidemanis Just for Calinou: http://0bin.net/paste/-TfhI-olJ82S3rUa#JS2raxoX1aOfKF6SyQ7i/j5ZnC96L9Zx607tJ820c+4= 19:42 * Krock doesn't know. He's a Win32 user 19:44 Krock "..test-master/src/util/../irrlichttypes.h:23:22: error: irrTypes.h" seems like you missed some files there 19:47 Calinou 0bin is not the same as zerobin :P 19:47 reactor Oh. I see. *smirk* 19:47 Calinou still works :P 19:48 markveidemanis missing files? 20:06 Krock Short question: Is/was there already a fix for picking up one item twice? 20:08 sfan5 markveidemanis, seems like it started compiling at nodedef instead on the mail file 20:08 sfan5 just FYI 20:08 sfan5 I can compile the source files in any order I want 20:08 sfan5 I just need all of them compiled to make the binary 20:09 Krock So it doesn't matter in which order? Sorry, I didn't know. Doesn't happen again. 20:11 sfan5 Krock: no; no need to say doesn't happen again 20:12 sfan5 I'm not a strict teacher that'll do something if you get it wrong 20:12 Krock sfan5, well for me it looked like you take everything very serious. Maybe a wrong first-meaning. 20:13 Krock or however to say that 20:29 markveidemanis Error http://paste.ubuntu.com/7121895/ 20:30 markveidemanis But I have made progress 20:33 sfan5 markveidemanis: try s/u64/uint64_t/ and the same for [su](8|16|32|64) 20:42 markveidemanis Replacing that in the files? 20:44 markveidemanis sed -i 's/u64/uint64_t/g' *.h ? 20:44 markveidemanis or cpp as well 20:45 sfan5 all of them 20:45 markveidemanis ok 20:45 markveidemanis Is there a simple way of doing this? 20:45 markveidemanis If i'm right the command won't work in folders 20:48 sfan5 `find . -type f -name '*.h' - o -name '*.cpp'` 20:51 markveidemanis That just lists the files 20:53 sfan5 are you serious? 20:53 markveidemanis like this http://pastie.org/8951641 20:53 markveidemanis ? 20:53 sfan5 are you serious? 20:54 markveidemanis It does though 20:54 sfan5 answer my question 20:54 sfan5 *sigh* 20:54 markveidemanis Yes 20:56 sfan5 for read -r f; do sed -ire 's/u(\d\d?)/uint\1_t/' $f; done 20:56 sfan5 for read -r f; do sed -ire 's/s(\d\d?)/int\1_t/' $f; done 20:56 sfan5 that should do it 20:56 sfan5 oh wait 20:56 sfan5 forgot something 20:57 sfan5 find . -type f -name '*.h' - o -name '*.cpp' | for read -r f; do sed -ire 's/u(\d\d?)/uint\1_t/' $f; sed -ire 's/s(\d\d?)/int\1_t/' $f; done 20:59 markveidemanis unexpecte token near r 21:00 markveidemanis *near -r 21:00 sfan5 .. 21:00 sfan5 use -i -re instead of -ire 21:02 markveidemanis Ok, saved VM, will try tomorrow 21:02 markveidemanis Thanks for the help 22:23 Megaf Hi all