Time Nick Message 01:42 kaen is there a way to get an entity by an ID from lua somehow? I'm trying to store some sort of reference to an entity between server stop/start, and ideally I'd like to just store an id, but I can't find anything like ObjectRef.get_by_id(x) which I'd need in order to vivify it after a restart 02:09 kaen ah... looks like object IDs aren't even stable between runs? 02:26 kaen yep, definitely looks like I have to invert the ownership, I'll have each entity store its game object's id in the static data and fixup the reference when it's activated I suppose 02:26 kaen thanks #minetest :v 03:54 sofar https://www.youtube.com/watch?v=QZTCEO0gvLo 09:21 twoelk proctologic: the .world format is a worldpainter intern command. Neither Minecraft or Minetest can read it. You will have to open the file with WorldPainter and export the file to a MC world-save file. Then you can use some Minetest tools to convert it to a format that Minetest can read. 09:33 Wuzzy hoooollllyyy shite!!11! 09:34 Wuzzy did paramat seriously just greenlight mobs in Minetest Game?!?!?! 09:34 Wuzzy https://github.com/minetest/minetest_game/issues/1253 09:35 Krock that's the opinion of one mtgame dev 09:35 Krock but we finally need a mod API that does not cause this problem: https://xkcd.com/927/ 09:36 Krock *mob API 09:43 Krock Darcidride, what's going on? 09:55 kaen bad mob api is caused by a bad underlying entity api imo 09:57 kaen that and I guess the inherent wonkiness with CSP since mods can't run code on the client 11:32 Megaf !server Megaf 11:32 MinetestBot Megaf: Megaf Server v4.0 | mt.megaf.info:30003 | Clients: 0/24, 0/0 | Version: 0.4.14-Megaf / MegafXploreNext | Ping: 6ms 11:32 Megaf 6ms :) 13:27 shamoanjac if any of you server admins is interested https://forum.minetest.net/viewtopic.php?f=9&t=15352 13:34 Fixer nice 13:37 Krock shamoanjac, chunks are 5^3 * 16^3 nodes or 5^3 blocks 13:37 Krock wrong naming 13:41 shamoanjac thanks Krock, I've just updated it 13:41 Krock wow, that was quick 13:42 Krock but the whole code uses "chunk" 13:43 shamoanjac I know 13:44 shamoanjac quick question, what's the sed option to edit the file? 13:45 Krock and factions.get_faction_list()'s code can be shortened to return table.copy(factions.factions) 13:45 shamoanjac instead of just displaying the modified output 13:45 * Krock is a windows user 8) 13:45 shamoanjac :( 13:46 Nosrick__ Wahey, I got True Light working. 13:46 Nosrick__ So I've now got a non-player effects API. 13:48 shamoanjac woops I deleted everything 13:48 shamoanjac thanks sed 13:49 T4im shamoanjac: "-ibackup" 13:49 T4im edits in place and makes a backup :P 13:50 shamoanjac thanks 13:50 shamoanjac I have undone the commit already 13:53 Fixer backup is life 13:57 shamoanjac Krock, I have update the sources 13:58 Krock +d 13:58 Krock :) 13:58 Nosrick__ shamoanjac: the 8ch server that's using factions got griefed to shit. 13:58 Nosrick__ Someone got grumpy that it wasn't working perfectly and went mental. 13:58 shamoanjac Xenos? I know 13:59 Nosrick__ Yeah, what a bum. 13:59 shamoanjac I must say, there were also some minor bugs which didn't allow claiming 13:59 shamoanjac well, which didn't allow getting power 13:59 shamoanjac apparently people left the 8chan server 13:59 Fixer Wuzzy: hi, can you look more at tsm_mines, profiler data suggests it is kinda slow 14:00 shamoanjac that's why I uploaded the factions mod to the forums even though it is unfinished 14:00 shamoanjac to get people testing it 14:00 Nosrick__ Ah, good plan. 14:00 Nosrick__ I wasn't sure if you were still in that thread. 14:00 Nosrick__ The 8ch one, I mean. 14:00 shamoanjac yes, I posted as 125b62 14:00 shamoanjac a couple times 14:00 Fixer shamoanjac: what is goal in factions? 14:01 shamoanjac I waded through 250 posts complaining about the lack of rules or the fact that Xenos got kicked/banned 14:01 Wuzzy Fixer: well, i am not good in mapgen stuff, sorry. this was a fork 14:01 shamoanjac Fixer, the goal is to implement groups of players which can declare war on each other 14:01 Nosrick__ Hey Wuzzy, I extended your playereffects API, I hope you don't mind. 14:01 shamoanjac as well as having a way to share protected territory 14:02 Wuzzy can I see the result? 14:02 Nosrick__ Of course! 14:02 Nosrick__ It's pretty rough, to be honest, but it works. 14:03 Nosrick__ https://github.com/Nosrick/MoMTest 14:03 Nosrick__ It's in api/extensions 14:03 Wuzzy so, what did you add? 14:03 Nosrick__ Just the ability for entities to have effects on them, too. 14:04 Wuzzy cooooool 14:04 Wuzzy my mod must have it... 14:04 Nosrick__ Feel free to take it! 14:04 Wuzzy but i am just not into the playereffects mod anymore ://// 14:04 Wuzzy at least not for now 14:04 Wuzzy shit shit shit there is so much to do xD 14:04 Nosrick__ Well, if you ever get back into it, feel free to hit me up and merge my code into yours. 14:05 Wuzzy yea 14:05 Wuzzy do u have other plans with your mod? 14:05 Nosrick Plenty! 14:06 Nosrick I'm adding a whole 4X-type gameplay. 14:06 Wuzzy i mean regarding to playereffects 14:06 Nosrick gameplay system* 14:06 Nosrick Ah, I'm not sure. 14:06 Nosrick I think that's all I need to do. 14:06 Wuzzy 4x gameplay? with first person perspective? seems odd. 14:06 Wuzzy i.e. you only control 1 person at once 14:07 Wuzzy which is “you” 14:07 Nosrick Yeah, you'll have an army/heroes following you around. 14:07 Nosrick Maybe be able to give commands by speaking to them./ 14:08 Wuzzy yeah, but this sounds more like rpg instead of 4x. 4x is subgenre of strategy 14:08 Nosrick It's based on Master of Magic, a 1993 4X game. 14:08 Nosrick My mod is based on it, I mean. 14:09 Wuzzy but hardly in gameplay, i suppose 14:09 Wuzzy or how exactly would you clone the turn based aspect? 14:11 Wuzzy okay just explain me what the player is supposed to *do* in your game 14:12 Nosrick Research spells, summon dudes, kill dudes, build your city (you'll probably only have one), cast spells, that sort of thing. 14:12 Nosrick Not going to try and include the turn-based aspect. 14:13 Nosrick Oh! And hire heroes. 14:15 Wuzzy Is it multiplayer? i.e you play *against* other players? 14:17 Nosrick Or with! 14:17 Wuzzy sounds interesting 14:17 Nosrick So yeah, it'll be multiplayer. 14:17 Nosrick I've got mana, casting, summoning and non-player effects so far. 14:17 Wuzzy yay mana 14:18 Wuzzy i knew it was going to kick off sooner or later 14:18 Nosrick How so? 14:18 Wuzzy cuz its such an useful concept 14:18 Nosrick That's true, it is. 14:18 Nosrick But I'm using my own mana system, rather than the one you made. Sorry. :P 14:18 Wuzzy makes certain powerful player actions *possible*, but at a price 14:19 Wuzzy whats the difference? 14:19 Nosrick Actually very little, but I wrote my mana API before I found yours. 14:20 Wuzzy LOL 14:20 Nosrick Yeah... Woops! 14:20 Wuzzy Not Invented Here... lol 14:20 Wuzzy thats why I wrote a new wiki page in dev wiki 14:20 Nosrick If you look at manaManager.lua in the repo, you can see it. 14:21 Wuzzy that will start to become painful when mods want to interact with each other :( 14:21 Nosrick Yeah, I've considered porting to yours, to be honest. 14:22 agrecascino shamoanjac have you seem the thread? 14:22 agrecascino seen* 14:22 Wuzzy here is the wiki page: http://dev.minetest.net/Mod_interoperability 14:22 Wuzzy if you know of any API or other important mod which is supposed to be *used* by other mods, add it on this page 14:22 Wuzzy or just say it here 14:23 Wuzzy sadly, it is still a common thing that people try to implement APIs which already exist long time ago... 14:24 Nosrick I think I might actually use your mana API. 14:25 Wuzzy thats a relief. less chaos 14:25 shamoanjac yes agrecascino 14:25 shamoanjac what the hell happened 14:26 shamoanjac from what I read, Xenos went to the far side of the spectrum and started annoying everyone 14:26 agrecascino They think i'm xenos, want a new server with ALL DA RULES, and are doing some really autistic shit 14:29 Nosrick Is it bad style to register ABMs? 14:31 Nosrick That's what I use for mana ticking from certain blocks. 14:36 blerttt any good mods that add sounds and music? 14:37 Nosrick Wuzzy, take a look at my mana API, and see if it measures up to yours. :P 14:38 Wuzzy ok first complaint: way too much globals 14:39 Darkside_ !mod ambience 14:39 Nosrick Yeah, I think I'll use get/setters. 14:39 Wuzzy ? 14:39 Wuzzy just use local... 14:40 Nosrick getMana, setMana, etc. 14:40 Nosrick And have locals that can't be accessed outside of the file. 14:40 Wuzzy yes 14:40 Wuzzy imo this is bug reason number 1. forgetting to use local 14:40 Wuzzy Lua bug reason number 2 are misspellings 14:41 Darkside_ https://github.com/tenplus1/ambience 14:41 Nosrick Yeah, I know that one. :P 14:41 Wuzzy sadly those bugs happen because lua is so permissive 14:41 Nosrick Yeah, I wish it was a bit grumpier. 14:41 Wuzzy and why the fuck, globals are default? thats stupid :( 14:41 Wuzzy 90% of variables I need have to be local 14:41 Nosrick PHP does the same thing, sometimes. 14:42 Wuzzy you dont want me to get started about php 14:42 Wuzzy Lua is a very greatly designed language ... compared to PHP 14:42 Wuzzy and this is not difficult 14:43 Wuzzy I have even installed Luachecker just to get rid of the embarrassing “accidental global” errors 14:43 Nosrick No it is not. :P 14:44 Nosrick I might get LuaChecker. 14:44 Wuzzy i had couple of times forgotten to local S... you know... the S from inttlib boilerplate 14:45 Wuzzy so if intllib does not work for some mod for some reason, its probably because “local S” is missing 14:45 Nosrick Ah, so THAT'S what S is for. 15:42 MinetestBot 02[git] 04DonBatman -> 03minetest/minetest: Lua_api.txt: Change 'maxwear' to 'uses' in 'tool_capabilities' 13986d70c https://git.io/v6zuk (152016-08-14T16:41:06+01:00) 15:53 agrecascino >tfw you trash your main btrfs partition by accident 16:03 Nosrick Wuzzy, you still about? 16:03 Wuzzy about what? 16:03 Nosrick Just wondering if you're still here. 16:04 Nosrick I just realised I might not be able to use your mana API, as I'm going to have a research and casting skill API, too. 16:04 Wuzzy and what does this mean? 16:05 Nosrick Research for researching spells, casting skill for how much mana you can use in one go. 16:06 Nosrick I'll need to be able to change mana regen on the fly. 16:06 Wuzzy mana.setregen??? 16:07 Nosrick Does that change it for all players, or just one? 16:08 Nosrick Ah, looking at the API, I found the answer. 16:09 Wuzzy lol 16:10 Wuzzy feels great to answer your own questions, right? xD 16:10 Wuzzy what other features do you want from a Good Mana API(TM)? 16:11 Nosrick I'm not sure. I'll try putting your mana API into my mod, and see what happens. 16:30 Nosrick Wuzzy: your API causes my Minetest to slow down quite considerably. 16:30 Wuzzy really? 16:30 Wuzzy weird... 16:30 Nosrick Yeah, it takes ~250ms per step. 16:31 Wuzzy what settings did u use? 16:31 Wuzzy default ones? 16:31 Wuzzy if you could do a mod profiling for me I would appreciate it very much 16:31 Nosrick Yeah, default settings. 16:32 Nosrick How do I profile? 16:32 Wuzzy never mind 16:32 Wuzzy you might consider increasing the “mana tick” 16:33 Wuzzy set with mana_regen_timer in minetest.conf 16:33 Wuzzy this is a global interval for all mana updates 16:34 Wuzzy I added this settings for cases where performance is key 16:34 Wuzzy default is 0.2 which might be too low for you 16:34 Nosrick Do I just put it in the main minetest.conf, or do I put one in the mana mod folder? 16:35 Wuzzy minetest.conf... 16:35 Wuzzy oh, i just noticed the mod might benefit from settingtypes.txt lol 16:35 Wuzzy try mana_regen_timer=1 16:36 Wuzzy but beware this affects the mana regen speed of all players 16:36 Nosrick Yeah, that's fine. 16:36 Wuzzy just do some calculations 16:36 Nosrick I did mana_regen_timer = 12, but that's not made a difference. 16:37 Wuzzy o_O 16:37 Wuzzy this should cause all players to regen mana only every 12 16:37 Wuzzy seconds. 16:37 Wuzzy if NOT, then its a bug 16:39 Nosrick IT's mana_reger_timer. I put mana_regen_TIME 16:39 Nosrick Because I'm dumb. 16:39 Nosrick :B 16:40 Nosrick Nah, that doesn't work either. 16:43 Wuzzy so does every player regen mana every 0.2 seconds??? 16:43 Wuzzy may I see your minetest.conf? 16:44 Nosrick https://gist.github.com/Nosrick/762c0c55455cdefa48b78b6c4d83c651 16:45 Wuzzy weeeeiird 16:45 Wuzzy btw your minetest.conf is very small. lol 16:46 Nosrick That's just what's there. :P 16:47 Nosrick I'm going to write a generic interface for my mana system and yours, so you can use either. 16:48 Wuzzy ... 16:49 Wuzzy first i need to check if i can reproduce your issue 16:53 Wuzzy i am not really happy with your idea either. this means that mods now have to support two mods at once... <_< 16:54 Nosrick No they don't, since it'll be a generic interface. 16:54 Nosrick Wait, yes they do, you're right, sorry. 16:54 Wuzzy okay, that makes 3 APIs... xD 16:55 Nosrick Writing my generic interface just means that I have a soft dependency on you, rather than a hard one. 16:55 Wuzzy would you care to help me in trying to debug my mod? 16:55 Nosrick Of course! 16:56 Wuzzy nice 16:57 Nosrick Just tell me what you need me to do, and I'll help out. 16:57 Wuzzy ok at first could you check you are 100% sure its my mod that causes it 16:57 Wuzzy you could do this my ie. writing a tiny test mod or something like this 16:58 Wuzzy also, the minetest.conf you sent me... where did you put it? 16:59 Nosrick It's in the main minetest folder. 16:59 Nosrick And it's definitely your mod; I tried it on its own. 16:59 Wuzzy can you send me your test code plz? 17:01 Nosrick I didn't write any test code; just activated your mod, with a custom minetest.conf 17:01 Nosrick Changing the value in the code works! 17:03 Wuzzy uh-oh 17:05 Wuzzy ok i look into it just give me 15 min or so 17:06 Nosrick Sure thing! 17:08 Wuzzy wellllll 17:08 Wuzzy on my side, my player regens 1 mana per 12 seconds 17:09 Wuzzy shit. i thought is it going to be easy :( 17:09 Wuzzy and on your side, the mana regens every 0.2 seconds, right? 17:09 Wuzzy or just very fast? 17:10 Wuzzy ok are you sure you have used the correct minetest.conf? maybe there is some other minetest.conf lying around which overwrites the main one 17:10 Wuzzy like a subgame minetest.conf or whatever. not sure 17:13 Nosrick Let me check... 17:13 Nosrick I'll find all the minetest.confs I have. 17:13 Nosrick And put the line in all of them. :P 17:13 KaadmY Nosrick: on linux "locate minetest.conf" 17:13 Nosrick I'm on Windows. 17:13 KaadmY oh 17:13 Wuzzy uh-oh.... uh-oh --------- 17:13 Calinou it's in your installation folder if run-in-place 17:14 Calinou if not, %APPDATA%\Minetest I guess 17:14 Wuzzy i just deleted my mana regen setting from 12 to --not present-- 17:14 Wuzzy but... 17:14 Wuzzy now comes the fun part 17:14 Wuzzy my mana regens every 12 seconds!!!! 17:14 Wuzzy wtf 17:14 Wuzzy where does my mod get even the 12 seconds from? 17:15 Wuzzy weiiiiird 17:15 Nosrick WTF 17:15 Wuzzy hey the luacmd mod is awesome 17:16 Wuzzy trololo now I guess I have to to grep my entire .minetest for mana_regen_timer 17:16 Wuzzy could take a while :) 17:17 Wuzzy Yes, WTF indeed. XD 17:18 Wuzzy it seems something has saved the number 12 somewhere and now it is read always when I load the world... 17:19 Wuzzy fuuuuuuuuuuuuuuuuuuck 17:20 Wuzzy my grep found nothing in .minetest :-(( 17:20 Nosrick That's totally bizarre. 17:20 Wuzzy oh. thats interesting... 17:20 Wuzzy i just restarted minetest, now mana regens at default rate. XD 17:22 Wuzzy oops 17:22 Wuzzy welll 17:23 Wuzzy it seems minetest really doesnt like it when i edit minetest.conf while its running 17:23 Nosrick Is it possible to load from a mod.conf? 17:23 Wuzzy no 17:23 Nosrick Ah, damn. 17:23 Wuzzy mod.conf is only metadata as far i know 17:23 Wuzzy also, what would be the point? 17:23 Nosrick Fair point, I suppose. 17:24 Wuzzy okay, i think the reason why I could seemingly “reproduce” the bug was because I edited minetest.conf too hastily, while MT was running 17:24 Wuzzy and probably I had 2 minetests open at once... veeeery bad for minetest.conf XD XD XD 17:24 IhrFussel Anything I can do against a player who threatens to DDos my server? 17:24 Nosrick Block their IP on your router? 17:24 Wuzzy lol 17:25 Wuzzy D!!!!DoS 17:25 IhrFussel It's a v server..so iptables it is i guess 17:25 Nosrick DISTRIBUTED 17:25 Nosrick HURR 17:25 Nosrick Sorry. 17:26 sfan5 IhrFussel: nothing 17:26 IhrFussel Well if it's just one computer there should be a way 17:27 Wuzzy D!!!!DoS 17:27 IhrFussel I don't think the player controls a bot net 17:27 Wuzzy aaah, you dont believe 17:27 sfan5 well then it's a DoS 17:27 sfan5 without the second D 17:27 IhrFussel Well the player said "DDos" maybe he doesn'T know the difference 17:28 sfan5 ok here's my advice: 17:28 sfan5 don't do anything 17:28 IhrFussel He seems to be young too like "give me free diamonds or i DDos this server" 17:28 Wuzzy lololololo 17:28 sfan5 it's an empty threat 17:28 Wuzzy this is comedy gold 17:28 Wuzzy or is it comedy mese? 17:29 Nosrick Tell him to go for it 17:29 Nosrick And if he does it you'll report him to the FBI 17:29 IhrFussel Can one computer shutdown a v server? 17:29 Nosrick Because you have his IP address 17:29 Nosrick Not likely, no. 17:36 Wuzzy ok Nosrick, sorry but it looks like i actually was unable to reproduce it on my machine... for now. 17:36 Nosrick Weird. :S 17:38 Wuzzy lesson learned: never try to change minetest.conf while MT is still open... 17:38 Wuzzy especially not when it is open twice xD 17:39 Wuzzy can you try to reproduce your issue on a new world? 17:40 Wuzzy maybe just with Minetest Game + mana, nothing else? 17:41 Nosrick Yeah, sure. 17:43 Nosrick Yup, I have to reboot my Minetest for it to take the new value. 17:43 Nosrick It reads the minetest.conf at boot, by the looks of it. 17:44 Nosrick I might write a mod settings API. :P 17:44 Wuzzy ?!?! 17:44 Wuzzy we don't need an API for everything... lol 17:44 Nosrick APIs EVERYWHERE! 17:44 Krock we need an API to make APIs 17:44 Nosrick YEESSS 17:45 Wuzzy yo dawg I herd u liek Lua, so I wrote a wrapper, so you can API while you API... 17:45 Wuzzy and sure thing. minetest.setting_get is WAY too complicated. ;-) 17:46 Wuzzy wait, Nosrick... are you now suddenly unable to reproduce your own bug???? 17:47 Wuzzy if you just edit the setting while minetest is not running? 17:48 Krock oh yes, shorten minetest.setting_get to mt.gs("setting here") 17:48 Krock much better, less typing 17:49 Wuzzy local mt={};mt.gs=minetest.setting_get -- Done! :P 17:49 Nosrick I can reproduce the bug; just edit the minetest.conf while minetest is running (in the menu is fine, too) 17:49 Krock it's even possible to automatize this shortener 17:50 Krock like, writing a function to shorten it. Then put that one on top of each .lua file you have 17:50 Wuzzy Nosrick.... duuuuuuuuuude 17:50 Krock Nosrick, it will overwrite the settings on close 17:50 Nosrick Huh. 17:51 Krock "d"..("u"):rep(15).."de" 17:51 Hijiri Krock: player_monoids is an API API 17:51 Hijiri even though it's not called that 17:51 Krock \o/ WOHOO profit! 17:51 Wuzzy Nosrick: that means you just figured out why the setting doesnt work. this means you can now use the mana mod!! 17:52 Wuzzy APInception 18:04 agrecascino shamoanjac, they want a new server 18:18 IhrFussel I disabled ICMP entirely now...should be harder to attack my server now 18:42 Guest98561 tell me how to overcome error when running minetest:$ minetest 2016-08-14 21:32:11: warning[Main]: unrecognized set debug_log_level; max.minetest: /build/minetest-UurSbT/minetest-0.4.14+Repack/src/journal.CPP:199: void logger::addOutputMaxLevel(ILogOutput*, level): assertion `Leo < LL_MAX failed.Emergency stop 18:47 agaran how one can explain that during just walking I suddenly got teleported to -inf, y,z where y/z remained correct ? 19:00 pyco_ hello 19:00 pyco_ hello 19:01 pyco_ hello 19:01 sfan5 pyco_: hello 19:01 pyco_ hi sfan5 19:02 pyco_ do you now the path to the consol code 19:02 pyco_ ?? 19:04 pyco_ do you now sfan5 19:05 sfan5 the code that opens the console window? 19:05 pyco_ yep 19:07 pyco_ ?? 19:07 sfan5 well there's no such code if you see it directly 19:10 sfan5 pyco_: are you using MSVC for compiling? 19:11 sfan5 pyco__: are you using MSVC for compiling? 19:11 dzho dang, IhrFussel is gone 19:11 dzho http://security.stackexchange.com/questions/22711/is-it-a-bad-idea-for-a-firewall-to-block-icmp/22713#22713 19:12 pyco__ i didn't compile minetest yet 19:12 sfan5 i suggest first setting up a compilter 19:12 sfan5 -t 19:13 pyco__ i am searching the console code to delet it and then i will compile the game 19:15 sfan5 there's no console code 19:15 sfan5 you need to configure this in the settings when compiling 19:17 pyco__ ahhh ok 19:31 shamoanjac agrecascino, I saw that in the thread 19:32 shamoanjac thanks Xenos 19:33 shamoanjac I see tons of screenshoots though 19:33 shamoanjac where are they from? 19:35 Nosrick Hey Wuzzy, guess what? :D 19:36 Wuzzy what? 19:36 Nosrick My mod now works with both of our mana APIs. 19:37 Nosrick Seamlessly! 19:37 Wuzzy well, that was pointless... 19:37 Nosrick Yup! 19:37 Wuzzy why do you need 2 mana apis? o_O 19:37 Nosrick But a fun challenge. 19:37 Nosrick I don't; I'm just challenging myself to something I've never done before. 19:38 Nosrick My mod also has quite a few dependencies, so any I can turn into soft dependencies is great. 19:43 Nosrick I only have one more Common Life spell to implement, then that's the lot of them! 20:36 shamoanjac agrecascino, 20:38 DoyleChris is there a way to move a whole stack (99) from one technic machine. 20:39 DoyleChris instead of one at a time 20:39 T4im yes, take it out from the inventory 20:39 T4im but that's about it then 20:40 DoyleChris well automated 20:40 T4im 2 clu's are faster than one though, if that helps 20:40 DoyleChris but power usage goes up 20:41 T4im btw there is also #minetest-technic 20:41 DoyleChris i keep getting a error and i know its the machines getting overloaded 20:41 DoyleChris there is 20:42 DoyleChris or tubes getting overloaded 20:48 Nosrick Man formspecs are super confusing. 20:48 thePalindrome How so? 20:48 shamoanjac formspecs must die 20:48 Nosrick Their definitions are kin of hard to read at first. 20:48 Nosrick kind of* 20:49 shamoanjac fortunately rubenwardy made us a nice mod/api for formspecs 20:49 thePalindrome imo they are only hard to read if you don't space it out :P 20:51 agrecascino shamoanjac, ? 20:51 shamoanjac so what's happening right now? 20:52 * thePalindrome is waiting for oldcoder to wake up so he can get his code and fix it :P 20:52 shamoanjac are people on the server or did they flee to other ones? 20:52 thePalindrome ? 20:53 agrecascino shamoanjac, they haven't fled yet 20:53 shamoanjac alright 20:53 shamoanjac what are the issues right now with factions? 20:53 shamoanjac is Xenos still being Xenos? 20:54 agrecascino shamoanjac, i don't know 20:54 agrecascino i accidentally my filesystem 20:54 agrecascino tso 20:54 agrecascino so* 20:54 shamoanjac you what 20:55 agrecascino shamoanjac, i trashed my btrfs partition 20:55 thePalindrome oh yeah btrfs 20:55 shamoanjac uhm 20:55 thePalindrome Could have gone so well, but being a filesystem they have to keep their mistakes 20:56 shamoanjac so agrecascino, something needs to be done about the Xenos problem 20:57 shamoanjac btw there was a good thread on the forum talking about this kind of stuff 20:58 agrecascino shamoanjac, the thing is, i'm not sure xenos is hacking 20:58 shamoanjac https://forum.minetest.net/viewtopic.php?f=10&t=15287 20:58 shamoanjac yeah but he's definitely annoying everyone 20:58 shamoanjac plus he spammed the chat 20:59 agrecascino shamoanjac, spammed the chat? 20:59 shamoanjac I mean I maintain my no-rules position (beside cheating and spamming) 20:59 shamoanjac hold on 20:59 shamoanjac https://8ch.net/v/res/10379293.html#10389136 21:00 agrecascino shamoanjac, if i give you admin, could you ban him for spamming? 21:00 agrecascino i can't do much 21:00 agrecascino since i'm on a rescue disk 21:00 shamoanjac alright 21:01 Nosrick Why is Xenos being such an ass? 21:01 shamoanjac if you could give me admin + git access it'd be goat for updating the game and fixing stuff 21:01 shamoanjac because he's 12 21:03 Nosrick I just don't get the point in griefing. 21:04 agrecascino Nosrick, it's fun to fuck with people 21:04 shamoanjac it's funny, and even more so when you get a whole server being pissed at you 21:04 Nosrick I don't want people being pissed at me. 21:04 Nosrick Maybe I'm just a carebear. 21:04 thePalindrome One could argue that'd be better than being a technicolored horse :P 21:04 shamoanjac you're not an ebin rusemaster 21:04 agrecascino the server broke 21:05 shamoanjac w-waa 21:05 shamoanjac I was just connecting 21:05 agrecascino something something cant bind to socket 21:05 thePalindrome The server is likely already running 21:05 agrecascino i did a killall 21:05 thePalindrome it can't open that port because something else... that might not work 21:05 shamoanjac the port is still taken 21:05 thePalindrome did you just use killall? 21:05 shamoanjac wait a couple minutes 21:06 thePalindrome try killalll -9 minetest-server 21:06 shamoanjac it happens on some systems when close() isn't called 21:06 thePalindrome :D 21:06 shamoanjac after a short time the port is freed by the OS 21:06 thePalindrome ^ i disagree 21:06 thePalindrome it should return the port immediately on close on a posix system 21:07 shamoanjac it should 21:07 agrecascino shamoanjac, OSX never gives it back 21:07 thePalindrome Did systemd screw that up? 21:07 thePalindrome :brb: fewd 21:07 shamoanjac wait a moment, I've said "if close() isn't called: 21:07 agrecascino holy shit 21:07 agrecascino Xenos gave up 21:07 shamoanjac not "if close()" is called 21:07 shamoanjac really? 21:07 agrecascino fucking george w bush we won 21:07 thePalindrome I meant on program exit 21:08 shamoanjac he gives up on what? 21:08 thePalindrome This isn't windows :P 21:08 shamoanjac and why 21:08 shamoanjac yeah thePalindrome but on my Debian it didn't do that 21:08 agrecascino oh 21:08 shamoanjac I developed an HTTP server in C 21:08 agrecascino minetestserver is running as a parasitic process 21:08 shamoanjac bare sockets, no BS, no quiche eating 21:08 shamoanjac and sometimes I closed the server when it hadn't called close() 21:09 shamoanjac and the port was unavailable for a few minutes 21:11 agrecascino rip serb 21:13 thePalindrome just kill -9 it 21:13 thePalindrome only disk io can stop a SIGKILL 21:13 thePalindrome the program doesn't even receive it 21:14 T4im "thePalindrome: it should return the port immediately on close on a posix system" no that would lead to weirdness and is also against the tcp design 21:14 T4im unless port reuse is set as a flag on the packet 21:15 T4im "TIME-WAIT - represents waiting for enough time to pass to be sure the remote TCP received the acknowledgment of its connection termination request. 21:16 thePalindrome touche 21:16 thePalindrome but isn't minetest udp? 21:16 T4im from rfc793 21:16 T4im yea, but it might very well mimic certain aspects of it 21:17 T4im and shamoanjac was actually talking about tcp there :D 21:17 T4im with the http server 21:18 shamoanjac yep 21:19 T4im iirc you could probably override the behavior, like so much, somewhere in /etc 21:19 thePalindrome naw, that'd be in /proc/sys/net/ipv4 21:19 T4im yea, but isn't some of that set on init from a config file? 21:20 T4im systctl.conf I'd guess 21:20 thePalindrome only if you use systemd 21:20 thePalindrome yup, systemd 21:20 thePalindrome So yes, systemd lets you do that 21:20 shamoanjac reeeee systemd 21:23 Nosrick Anyone got any tutorials on formspecs? 21:24 shamoanjac nope 21:24 rubenwardy http://rubenwardy.com/minetest_modding_book/chapters/formspecs.html 21:24 thePalindrome ^ 21:24 shamoanjac now yep 21:24 Nosrick Thank you! 21:31 Nosrick Welp, doing my first formspec. Wish me luck! 21:34 Megaf !server Megaf 21:34 MinetestBot Megaf: Megaf Server v4.0 | mt.megaf.info:30003 | Clients: 0/24, 0/2 | Version: 0.4.14-Megaf / MegafXploreNext | Ping: 7ms 21:34 Megaf Hi everyone 21:34 shamoanjac hi Megaf 21:34 Megaf hm, somethings wrong 21:35 Megaf the bot says my server is up, but I cant ssh to my server all my websites are down 21:35 Megaf !up mt.megaf.info 30003 21:35 MinetestBot mt.megaf.info:30003 is up (8ms) 21:35 shamoanjac I can ping you from my machine 21:36 Megaf can you give me the IP please? 21:36 shamoanjac 178.79.130.6 21:36 jojoa1997|PC 192.168.1.1 21:36 shamoanjac lel 21:36 thePalindrome lol 21:36 Megaf ok, I'm in, so I have some kind of DNS problem here 21:37 Megaf weird that I could join IRC at all 21:37 shamoanjac flush your cache 21:38 Calinou https://github.com/Thinkofname/steven 21:38 Calinou Minecraft client (1.10.2) written in Rust, compatible with Minecraft servers 21:39 Megaf Oo 21:39 Megaf Oo! 21:39 Megaf 0_0 21:39 Megaf impressed Megaf is impressed 21:39 thePalindrome interesting 21:39 thePalindrome rust is awesome 21:39 shamoanjac there is some project of a C++ Minecraft server somewhere 21:40 Megaf Calinou: did you test it yet? 21:40 shamoanjac this could mean you can now play a libre Minecraft lel 21:40 Calinou Megaf: yep 21:40 Calinou it works 21:40 Calinou compiles easily, with latest Rust nightly (which you can acquire from AUR) 21:40 Calinou shamoanjac: yes, Cuberite 21:40 Calinou not compatible with 1.10.2 yet 21:40 Calinou https://github.com/cuberite/cuberite 21:41 shamoanjac a shame 21:41 Calinou the client is quite incomplete too 21:41 Calinou once you're connected, there is no HUD, you can't place or break blocks, can't open inventory… 21:41 shamoanjac how does it compare performance-wise? 21:41 Calinou runs at 60 FPS here 21:41 Megaf my resolv.conf is empty.weird 21:41 Calinou my hardware is good though :P 21:41 Calinou (it's capped at 60 FPS by default) 21:41 shamoanjac yeah that's what I was going to say 21:41 Calinou Rust is probably not any faster than Java, if not slower 21:42 Calinou compilation times are longer than they ought to be too 21:42 thePalindrome wait, really? 21:42 thePalindrome Rust is wayy faster than java 21:42 thePalindrome it's even more secure than java, for several reasons 21:43 thePalindrome Rust is on par with C for performance 21:43 Megaf the new language I ths most impressed with is Go 21:43 thePalindrome The compilation times are because most of the error checking is during compile time 21:43 Megaf Go is amazing, you can make rather complex stuff with Go and run on a Raspberry Pi Botel B Rev2 (the first generation of Pi) 21:43 thePalindrome I've heard good things about go 21:44 Megaf http://git.megaf.info/ <- Writen in Go 21:44 Megaf !title 21:44 MinetestBot Megaf: Megaf Server GIT Services 21:44 Megaf feel free to use it 21:45 Megaf (It's just a test though) 21:45 Megaf by the way. 21:45 Megaf ;; Query time: 8 msec 21:45 Megaf ;; SERVER: 127.0.0.1#53(127.0.0.1) 21:45 Megaf DNS is back 21:45 Megaf :) 21:45 thePalindrome lol 21:46 Megaf Calinou: but the Minecraft protocol still closed source, right? 21:46 Megaf How come they are making clients for it? 21:46 thePalindrome Probably because they don't realize it is 21:50 DoyleChris quit 21:54 Nosrick My first formspec works! 21:54 Nosrick Woop. 21:56 Megaf well done Nosrick7 21:56 Megaf contrats 21:56 Nosrick Now to make the rest of the bugger work. 21:57 thePalindrome aye 21:57 Nosrick I'm torn between using an inventory, or an array of image_buttons. 21:58 * Megaf not sure if he prefers Konqueror or QupZilla and not sure what browser he should use 21:59 thePalindrome Servo :P 21:59 thePalindrome naw, that's just a renderer 21:59 thePalindrome it's not even done yet 21:59 thePalindrome firefox with e10s enabled :D 22:01 Nosrick Is there any way to create a formspec using a for loop? 22:01 Nosrick So I can just iterate a load of buttons into existence. 22:01 Megaf thePalindrome: I will be testing the Servo browser when it's out 22:02 thePalindrome Servo is part of firefox 22:02 thePalindrome *will be 22:06 Megaf Hangouts dont work well on QupZilla =/ The chat thingy keeps blinking every message 22:07 thePalindrome Weird 22:07 thePalindrome Qupzilla? 22:08 Megaf that's what I wrote 22:08 thePalindrome Interesting 22:08 * thePalindrome looked it up 22:09 thePalindrome I do know that servo will make firefox that much faster 22:28 Megaf [215378.541005] Out of memory in UB 107: OOM killed process 1798 (hhvm) score 0 vm:1013296kB, rss:240648kB, swap:0kB 22:28 Megaf ouch 22:32 thePalindrome geez 22:36 Nosrick So when I open my form, I get the following error: "The inventory list "main" doesn't exist". Why is it trying to access the main inventory? 22:59 Nosrick Why would get_player_name() return nil when is_player() returns true? 23:01 shamoanjac ayo agrecascino 23:02 shamoanjac Nosrick, because the player name is nil :^) 23:02 shamoanjac (shouldn't happen ever) 23:03 Nosrick Yeah, I know. It's really weird. 23:03 shamoanjac is serb kill? 23:04 rubenwardy Nosrick, code? 23:05 rubenwardy also, list[...main...] is an inventory slot that uses the main inv list 23:05 rubenwardy where ... is other things I forget 23:05 rubenwardy local name = player.is_player and player:get_player_name() should work 23:06 Nosrick https://gist.github.com/Nosrick/1404ad0bb4cd5eee85a624b724b010b2 23:06 rubenwardy tip: entity.is_player and entity:is_player() 23:06 Nosrick I do that, don't I? 23:07 rubenwardy in a WET way 23:07 Nosrick I have no idea what that mean 23:07 Nosrick s 23:07 rubenwardy DRY = don't repeat yourself 23:07 Nosrick Oh, okay. 23:07 rubenwardy so, it does say "looking for player name"? 23:08 Nosrick No, it says "Looking for GUID" 23:08 Nosrick ...and a player's GUID will always be nil. 23:08 rubenwardy huh? 23:08 Nosrick So why isn't it dropping into the player one, rather than the entity one? 23:10 rubenwardy and if you replace is_player and :is_player() with just is_player? 23:11 rubenwardy that function is defined as: 23:11 rubenwardy ObjectRef::l_is_player(lua_State *L) { 23:11 rubenwardy ObjectRef *ref = checkobject(L, 1); 23:11 rubenwardy lua_pushboolean(L, (getplayer(ref) != NULL)); 23:11 rubenwardy } 23:11 rubenwardy (minus a few lines) 23:11 rubenwardy so you are using it correctly 23:12 rubenwardy I suggest that you don't actually have a player 23:12 rubenwardy or you're using self instead of self.object again 23:12 Nosrick It's definitely a player. 23:12 rubenwardy (I think that was you) 23:12 Nosrick (It was) 23:12 rubenwardy where are you getting the entity from? 23:13 rubenwardy I gtg, will be back in ~15 mins 23:16 Nosrick Ah, I'm not sure. It's coming from the playereffects API. 23:17 rubenwardy how do you know it's not just player info, rather than a player ref? 23:17 rubenwardy really am going now 23:18 Nosrick You know, I don't know. 23:19 shamoanjac t. Socrates 23:25 Nosrick Okay, it's coming from an on_use callback. 23:26 rubenwardy are you sure? 23:26 rubenwardy also, and if you replace is_player and :is_player() with just is_player? 23:27 rubenwardy https://gist.github.com/Nosrick/1404ad0bb4cd5eee85a624b724b010b2#gistcomment-1849311 23:28 rubenwardy reload for updated comment 23:36 Nosrick Still leads to a nil value. 23:36 Nosrick Somehow. 23:36 Nosrick And it's looking for a GUID. 23:37 rubenwardy did you copy the version with the checks? 23:37 rubenwardy getpos and get_player_name 23:37 rubenwardy if you get those messages then there is 0% chance you have a player 23:37 rubenwardy you are doing something wrong elsewhere 23:37 rubenwardy I'm also pretty sure already that you don't have a player 23:38 Nosrick Yeah, I got the "no stuff" messages. 23:38 rubenwardy then you don't have a player :P 23:38 Nosrick WTF, man. 23:38 Nosrick How can a callback pass me something that isn't a player? 23:39 rubenwardy you're doing something wrong 23:39 rubenwardy share the code 23:39 Nosrick IT'S A PLAYER NAME 23:39 rubenwardy if you don't want to, then you'll need to check the order or parameters 23:39 rubenwardy :P 23:40 Nosrick When I print it, it comes out with "singleplayer" 23:40 Nosrick So unless players print their names, it's a player name. 23:41 rubenwardy 👏 23:41 rubenwardy 🎉 23:43 Hijiri shamoanjac: /f setspawn crashed it 23:43 arecascino Hijiri: name on the server? 23:43 arecascino also 23:43 shamoanjac thanks Hijiri 23:43 Hijiri Reimu 23:44 shamoanjac >>>>>>>>>>>anime 23:44 shamoanjac /banip Reimu 23:44 Hijiri not an anime :^) 23:44 arecascino shamoanjac: sent you the tracebacj 23:44 arecascino back* 23:44 rubenwardy implying something's wrong with anime? 23:45 shamoanjac yeah I've just seen what it was in SP 23:45 arecascino FUCKING SHIT 23:45 shamoanjac that's strange since it used to work 23:45 Fixer rubenwardy: tentacles! 23:45 arecascino 4db088 CREATED A THREAD 23:45 arecascino SG}ESHHHHHHHDuo;bgjlshdi 23:45 arecascino RETARDS MAN 23:45 Hijiri how dare they 23:45 shamoanjac just don't reply to it 23:47 rubenwardy fix it using this C++ code: char a='a'; for(long long i=0;true;i+=0xFF){ &a[i]=42; } 23:47 rubenwardy actually, C even 23:48 thePalindrome nice meme 23:48 * thePalindrome is surprised he understands that code 23:49 arecascino pr when? 23:49 shamoanjac hold on 23:50 rubenwardy ruben@rubenPC:/tmp$ ./b.out 23:50 rubenwardy Segmentation fault (core dumped) 23:50 rubenwardy damn 23:50 rubenwardy no funny things 23:50 thePalindrome What does gdb say? 23:50 arecascino that would segfault? 23:50 thePalindrome Oh no wait, I know why 23:51 thePalindrome It segfaults because you only have 1 char :P 23:51 shamoanjac arecascino, pr 23:51 thePalindrome It accesses invalid memory once it goes far enough out 23:51 rubenwardy I was hoping it would get some distance before checking 23:52 thePalindrome heheh 23:55 Megaf hm, so I'm using the internet from my phone, tetheting, and my laptops battery will die before my phone, that is new