Minetest logo

IRC log for #minetest-dev, 2013-01-20

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

All times shown according to UTC.

Time Nick Message
00:25 Taoki doserj: I think the leaves in that screenshot look way more realistic than blocks. They sorta look like leaves and plants more. Only problem would be that if you sit under the tree and look up, you'd notice they are hollow inside
00:26 Taoki There would need to be some way to also draw a third plane horizontally, ad the middle of the node. So looking from below or above the tree doesn't seem weird
05:59 Cybersoft joined #minetest-dev
07:42 Vogarth joined #minetest-dev
07:43 Vogarth Hello, I think I'm at the final issue building on Mac. I've hit an internal Undefined symbol.
07:43 Vogarth mapgen::find_ground_level_from_noise(unsigned long, irr::core::vector2d<short>, short)
07:43 Vogarth referenced in map.cpp.
07:44 Vogarth also mapgen::block_is_underground(unsigned long, irr::core::vector3d<short>) from same file.
07:44 Vogarth I've tried casting, but I can't seem to get it.
07:45 Vogarth get it to link - that is.
08:33 celeron55 Vogarth: sounds like you have a somehow screwed version
08:34 Vogarth I've started to find the problem, seems like there's a bunch of "#if 0" and "#if 1" in mapgen.cpp that has removed too much.
08:35 Vogarth Does 0.4.4 build on other platforms as-is?
08:35 celeron55 of course it does
08:36 celeron55 the current implementation of mapgen::find_ground_level_from_noise is at mapgen.cpp:1101
08:36 celeron55 there are many commented-out versions too, don't get distracted by them
08:37 Vogarth I'll revert to stock, I don't think I made any changes but it could be something related to the build platform.
08:37 celeron55 is mapgen.cpp included in your build?
08:38 Vogarth yes.
08:38 celeron55 then you must have some kind of a borked version of the sources
08:38 Vogarth the object file is linked, but these two methods are missing.
08:40 Vogarth c0ed11847ce1cb14ee02f91d8a90a640c34298ec  mapgen.cpp
08:40 Vogarth from the 0.4.4 tarball.
08:41 Vogarth yep. problem shows up with stock file.
08:43 Vogarth This is x86_64 Mac 10.6.8, xcode 4.2
08:43 Vogarth Something is preventing those two functions from being defined.
08:46 Vogarth find_ground_level_from_noise is at only defined at line 1054 and 1267. Where did 1101 come from?
08:47 thexyz apparently, c55 is talking about latest git master
08:47 thexyz https://github.com/celeron55/minetest/blob/master/src/mapgen.cpp#L1101
08:47 Vogarth the 1054 has a #if 0 around it.
08:51 Vogarth 1267 might also, but it's nested with some #if 1's (which would be broken if true), checking now.
08:55 Vogarth there's an If 0 at 323 that blocks a bunch of if 1s.
08:58 Vogarth hm. 1267 is outside of all nested #if blocks by my count.
08:59 Vogarth I'll test this by putting some junk before it
08:59 Vogarth yes, it's compiled, yet not seen by other code.
09:00 Vogarth Here's the full error text...
09:00 Vogarth Linking CXX executable ../bin/minetest
09:00 Vogarth Undefined symbols for architecture x86_64:
09:00 Vogarth "mapgen::find_ground_level_from_noise(unsigned long, irr::core::vector2d<short>, short)", referenced from:
09:00 Vogarth ServerMap::findGroundLevel(irr::core::vector2d<short>)  in map.cpp.o
09:00 Vogarth "mapgen::block_is_underground(unsigned long, irr::core::vector3d<short>)", referenced from:
09:00 Vogarth ServerMap::initBlockMake(mapgen::BlockMakeData*, irr::core::vector3d<short>)   in map.cpp.o
09:00 Vogarth ld: symbol(s) not found for architecture x86_64
09:00 Vogarth collect2: ld returned 1 exit status
09:03 Vogarth I'll try the git mapgen.cpp just in case.
09:06 Vogarth treegen.h missing, this might be messy.
09:07 Vogarth hm. same two missing functions, plus now make_tree and make_block.
09:08 Vogarth bottom line issue remains. Any recommendations?
09:09 Vogarth would it be better for the dev group if I use the latest git to port to mac?
09:10 Vogarth git-tree that is.
09:11 Vogarth You are still looking for a mac maintainer?
09:15 sfan5 yes
09:18 Vogarth Let me get this working, then I'm happy to share my build notes and patches. There's a few code cleanup issues I've already done, plus a bunch of warnings I haven't got to yet.
09:27 thexyz yes, better build latest git
09:32 SiegeWizard joined #minetest-dev
09:34 SiegeWizard idea: web form to edit .po files and save them so that the comunity can contribute without installing poedit and learning to manage catalogs
09:36 rsiska joined #minetest-dev
09:36 thexyz hm.. i can set up weblate instance for that
09:37 PilzAdam joined #minetest-dev
09:38 thexyz celeron55: do you approve?
09:48 celeron55 launchpad has been set for that already
09:48 celeron55 there is a huge number of outdated translations in there because i haven't been able to update the template
09:49 celeron55 https://translations.launchpad.net/minetest-c55
09:50 celeron55 so i think somebody should start managing that and finding out how to use it
09:54 SiegeWizard im revising the spanish translation
09:54 thexyz hm.. well, weblate can commit into git repo
09:55 thexyz and that launchpad translation doesn't seem to be synchronized with repository
09:55 celeron55 it should be able to, but i wasn't able to do that
09:55 celeron55 i once tried to set it up but launchpad is horrible to use
09:56 celeron55 (i wasn't the one who initially put it there)
09:56 thexyz that can be another reason to migrate from it
09:56 thexyz http://demo.weblate.org/
10:03 SiegeWizard +1 a weblate si sabes como sincronizarlo con git
10:03 SiegeWizard sorry, i mean: +1 to weblate if you know how to synchronize it with git
10:11 nyuszika7h joined #minetest-dev
10:12 celeron55 thexyz: if you think it is a good idea, i guess it is
10:12 Calinou joined #minetest-dev
10:31 celeron55 this is done for now: http://dev.minetest.net/Core_Architecture
10:34 Vogarth git version with my mac patches ends up with same issues - two undefined functions same as above with 0.4.4 release.
10:34 Vogarth mac patches allow for external lua and jthread, built x86_64, dylib.
10:35 Vogarth nothing that would change anything related to mapgen or map.cpp.
10:36 celeron55 pastebin all the patches
10:37 Vogarth pastebin?
10:38 celeron55 are you new to the internet? 8)
10:38 Vogarth not an irc regular.
10:38 celeron55 well, upload somewhere so people can look, for example pastebin.com or gist.github.com
10:39 Vogarth ah. I'll need to set up something.
10:41 Vogarth Is pastebin for text only?
10:42 celeron55 yes; pastebins are for handily showing/sharing longish texts
10:43 Vogarth main script - instmtg - http://pastebin.com/w7jh8yRB
10:44 Vogarth patch 1 of 4 - patch.FindJthread.cmake - http://pastebin.com/EtgqgX8q
10:45 kahrl joined #minetest-dev
10:46 Vogarth patch 2 of 4 - patch.src.CMakeLists.txt - http://pastebin.com/R3vBvbqr
10:47 Vogarth patch 3 of 4 - patch.debug.h - http://pastebin.com/BaTHyra3
10:47 Vogarth patch 4 of 4 - patch.ban.h - http://pastebin.com/Fh6XZpNt
10:48 celeron55 and this applied to 0.4.4 and current master fails in the way mentioned before?
10:49 Vogarth same approach, same results.
10:49 Vogarth on mac, I have scripts that install irrlicht and jthread ...
10:50 celeron55 i can't find anything that could cause the described error
10:50 Vogarth macports install of lua is 5.1.4 which works (5.2.1 is not compatible)
10:51 Vogarth Yeah, I'm pretty sure it's a Mac thing, not something I've done.
10:51 celeron55 what compiler to you use?
10:51 Vogarth Which is why I'm here. I can usually fix library issues.
10:51 celeron55 do*
10:51 Vogarth xcode 4.2, g++,
10:51 celeron55 what version of g++ is that
10:52 Vogarth i686-apple-darwin10-llvm-g++-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.1.00)
10:53 Vogarth I'll try xcode 4.4 on lion tomorrow to see if anything changes.
10:53 Vogarth The approach I
10:53 Vogarth was going for should also still work on linux and windows.
10:53 celeron55 i really have no idea what's going on 8)
10:54 celeron55 a broken compiler could explain things, but that doesn't seem too likely
10:55 celeron55 hmm, could it be this http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28360
10:55 Vogarth I agree.
10:57 Vogarth I tried "using namespace mapgen" in map.cpp, and also casting all the arguments but no luck.
10:57 Vogarth The fact it fails exactly the same way with two code bases is interesting.
10:59 Vogarth Do you know how many unique characters a function must have? I noticed you have find_ground_level_[something else].
11:00 Vogarth doesn't explain block_is_underground. hm.
11:01 Vogarth nope, in git version there's only find_ground_level_from_noise.
11:02 Vogarth I'll check with a few programming friends, will email if success.
11:04 Vogarth The other avenue - I noticed the link command had a bunch of redundant arguments - I'll try to strip that down and see what happens.
11:04 Vogarth Do you have a Mac?
11:05 iqualfragile joined #minetest-dev
11:07 Vogarth I have to retire, but thanks for putting this project out there!
11:08 Vogarth left #minetest-dev
11:25 Exio joined #minetest-dev
11:53 markveidemanis joined #minetest-dev
11:53 markveidemanis c56
11:54 iqualfragile1 joined #minetest-dev
11:55 markveidemanis left #minetest-dev
12:20 markveidemanis joined #minetest-dev
12:20 markveidemanis hi
12:20 markveidemanis left #minetest-dev
12:56 sapier joined #minetest-dev
12:56 darkrose joined #minetest-dev
12:56 darkrose joined #minetest-dev
13:27 SpeedProg joined #minetest-dev
14:03 Gambit joined #minetest-dev
14:39 iqualfragile joined #minetest-dev
14:42 Progers joined #minetest-dev
14:42 Progers Hi
14:59 SiegeWizard hi
14:59 celeron55 https://github.com/celeron55/minetest/pull/366
14:59 celeron55 PilzAdam, thexyz: is there any known reason to not merge this?
15:00 celeron55 obviously the default public server list needs to be moved at some point, but currently it's not so important
15:01 thexyz >The default url is mesecons.net/server.list
15:01 celeron55 it's maintained by jeija, isn't it?
15:02 VanessaE yes
15:03 celeron55 or, thexyz: can you make a page on servers.minetest.ru that outputs serverlist's format?
15:03 celeron55 it would be more than good
15:04 thexyz there's no such thing as server description ATM, anyway, ok, will do
15:05 celeron55 also, i think a fifth field could be added to the serverlist format, being the home page of the server
15:05 celeron55 so things reading the list can show a link if they are capable of such
15:07 celeron55 the code in minetest doesn't require any changes for that; it will just ignore it
15:07 PilzAdam celeron55, looks ok to me, I have tested it several times and reported the bugs directly to Jeija
15:07 Progers minetest.ru?)
15:07 Progers celeron55 you know Russian?
15:07 celeron55 no
15:08 Progers Hm
15:08 Progers On what servers do you play?
15:09 celeron55 i haven't really played in years
15:09 celeron55 minetst, that is
15:09 celeron55 minetest*
15:09 celeron55 i'm just keeping stuff going in here 8)
15:10 Progers I know that you play on minetest)
15:10 Progers But i am asking on what servers do you play (server ip)
15:11 Progers )
15:11 Progers Sorry for bad English!
15:12 thexyz celeron55: so, name/address/port/description/url? or just replace description with url?
15:14 sapier vanessae is your server still up?
15:15 VanessaE sapier: yes
15:15 sapier ok I take that as "at least those changes improve problem"
15:16 VanessaE yeah, that patch seems to have improved things a bit
15:16 sapier I'm gonna fix it to create a pull request
15:17 sapier but I'm not sure if it'll work on windows as windows doesn't support different scheduling policys
15:18 celeron55 thexyz: add, no replace
15:19 celeron55 Progers: i said i DON'T
15:19 celeron55 if you'd asked two years ago, then i would have answered "my server and kray's server"
15:19 celeron55 both are history as of now though
15:20 Progers A-a
15:20 Progers ok
15:21 thexyz for the time being let me add uptime in place of description
15:21 celeron55 sounds good
15:22 thexyz I really should rewrite this tiny & dirty python script into some sort of web application
15:23 celeron55 i was going to put the django implementation of minetest.net into use this weekend
15:23 celeron55 but ended up playing openttd for the whole time
15:23 celeron55 :D
15:23 celeron55 maybe next time then
15:24 celeron55 a python script should work well with django though!
15:24 PilzAdam random bugfix: https://github.com/PilzAdam/minetest/commit/da0e83b01cd51d0b12742bbac34ef349cb4be599
15:25 celeron55 in case someone hasn't played openttd in a few years, i recommend doing it now
15:25 sapier https://github.com/celeron55/minetest/pull/432 if there's a windows developer out there plz test
15:25 thexyz http://servers.minetest.ru/server.list
15:25 celeron55 lol
15:26 celeron55 this is going to blow people's mind
15:26 thexyz ?
15:26 celeron55 hmm
15:27 celeron55 how is this list sorted
15:27 thexyz nope, how should it be sorted?
15:28 PilzAdam the GUI uses the order of the file
15:28 celeron55 probably so that those that are up are first, and those that are down come last with the description being "Down; Uptime: foo"
15:28 iqualfragile1 joined #minetest-dev
15:28 celeron55 that would be the most useful as of now i think
15:29 celeron55 or maybe not even show the ones that are down?
15:30 PilzAdam there could be a button in the GUI "Add to favorites"
15:30 celeron55 it'll add if you connect
15:33 celeron55 thexyz: try it in the gui, you can probably think of what is the best way
15:35 thexyz https://github.com/celeron55/minetest/pull/366/files#L4R1184
15:36 thexyz ok, I modified it to only show servers which are up and sort them by uptime
15:36 thexyz the problem is that this server.list doesn't display in gui
15:37 thexyz probably because of url
15:37 celeron55 maybe it can't ignore it then
15:38 celeron55 by the way, this piece of code will launch a browser on the major OSes, if somebody wants to implement opening urls: http://paste.dy.fi/ep0
15:39 celeron55 (from an another project of mine)
15:44 Jeija joined #minetest-dev
15:53 Jeija Should thexyz's server.list be the default url for the client?
15:54 doserj joined #minetest-dev
16:00 hmmmm joined #minetest-dev
16:06 Progers joined #minetest-dev
16:08 Progers celeron55 What Programming languages do you know?
16:19 rubenwardy joined #minetest-dev
16:31 Calinou joined #minetest-dev
16:50 kaeza joined #minetest-dev
17:21 celeron55 Jeija: as of now it seems like the best solution
17:21 hmmmm celeron
17:21 hmmmm intel celeron processors
17:21 hmmmm did you read the description of the patches
17:22 celeron55 what patches are you talking about
17:22 hmmmm mine, remember you told me to write up a description of what they do
17:23 celeron55 link?
17:23 Jeija OK, celeron55
17:24 Jeija thexyz: do you have something like my automated server management on mesecons.net/serverlist that allows you to add a server at least? If not, do you want mine?
17:24 hmmmm http://pastebin.com/ZhDtdWuQ
17:24 celeron55 Jeija: in case you don't know, servers.minetest.ru is this: http://forum.minetest.net/viewtopic.php?id=2239
17:25 Jeija ah fine, something automated would sure also be nice
17:25 celeron55 so it's manually managed via that forum topic
17:25 celeron55 that's something to be worked on in the future
17:26 celeron55 as of now, that is the most comprehensive list out there
17:26 celeron55 my goal is to add such service on minetest.net, and add ability for the server to announce itself to there if configured to do so
17:27 celeron55 altough... the announcement part may be problematic
17:28 Jeija That would be great; doesnt sound too difficult when just calling a php url with some parameters
17:28 celeron55 but anyway, that is like eg. openttd works
17:28 celeron55 Jeija: yes but flood/spam control and such is painful
17:28 Jeija true
17:29 celeron55 a manual forum-operated list is pretty solid until there is reliable automation
17:30 PilzAdam hmmmm, "Complete map generator configurability." I saw something about storing this in minetest.conf in your branch
17:31 PilzAdam this would mean that it isnt per world
17:36 celeron55 hmmmm: the fact that this text now exists is awesome; i'm yet to get to commenting the content of it 8)
17:42 celeron55 not bad i guess
17:44 celeron55 i'm a bit sceptical of whether this, being our first attempt in generating arbitrarily defined biomes, will work out, but it's a solid start
18:03 Calinou joined #minetest-dev
18:23 SpeedProg1 joined #minetest-dev
18:26 celeron55 does somehow have anything against merging this?
18:27 celeron55 ...somebody*
18:27 Calinou merging what?
18:27 * Calinou answers "no" in advance
18:28 PilzAdam celeron55, the mapgen or the serverlist?
18:28 PilzAdam yes to serverlist; dunno to mapgen
18:29 PilzAdam (yes as in "yes, merge it" and not "yes, I have something against it")
18:32 doserj I may have a proper fix for the liquid update issue: https://github.com/celeron55/minetest/pull/426
18:32 doserj who wants to test/review?
18:34 Calinou joined #minetest-dev
18:34 PilzAdam doserj, what is this: https://github.com/doserj/minetest/commit/a86eb2f8f4ae34e08f5e240540e91410ce03dbe4#L0L1672
18:36 doserj the code is indented more because i have a nested loop
18:37 doserj it used to be "for each node". now it is "for each block, for each node in the block"
18:40 doserj the update algorithm should be unchanged, except I break out earlier when a find an unloaded block neighboring the current node.
18:41 doserj I didn't even remove the apparently useless neutrals[6] array...
18:54 kaeza left #minetest-dev
18:57 sapier1 joined #minetest-dev
19:21 Jeija left #minetest-dev
20:41 PilzAdam has anyone any idea why this doesnt work? https://gist.github.com/4581577
20:43 sapier I'd assume a bug in touching_ground detection
20:43 sapier is your collisionbox correct?
20:45 PilzAdam well, the Y velocity is set to 0 by collisionMoveSimple(), so I guess yes
20:46 PilzAdam umm....
20:46 sapier collisionMoveSimple is buggy as hell
20:46 sapier do you have an acceleration set for particles or is it veloticy only?
20:46 PilzAdam result.collides && !result.collides_xz instead of touching ground works fine
20:47 sapier strange
20:47 sapier still if you have acceleration sett using collisionMoveSimple will cause server lockups on slow servers
20:48 sapier at least if this isn't client only
20:59 Kacey joined #minetest-dev
21:00 Kacey hello
21:01 Kacey left #minetest-dev
22:46 Kacey joined #minetest-dev
22:46 Kacey hello
22:47 Kacey i have an idea...
22:58 Vogarth joined #minetest-dev
22:59 Vogarth I'm trying to get minetest to compile on a mac, I've got two undefined symbols I can't seem to figure out...
22:59 Vogarth mapgen::find_ground_level_from_noise and mapgen::block_is_underground
22:59 Vogarth This is the git version, same problem with 0.4.4 release version.
23:00 Vogarth I've determined it's not a compile flag issue.
23:00 Vogarth Any ideas?
23:00 sapier maybe some codeset issue?
23:01 Vogarth codeset? please explain.
23:03 Vogarth a character encodeing issue? a string missmatch?
23:03 sapier different os use different codesets to show characters windows and linux e.g. have different line ends
23:03 sapier yes
23:03 sapier it's just a guess
23:06 Vogarth hm. Not seeing any evidence of special characters in map.cpp or mapgen.cpp.
23:07 sapier a linkage problem? extern "C" vs c++ for example?
23:08 Vogarth Pretty sure no, using g++ for all source compile and final link. stripped out all flags (happens with stock cmake as well).
23:10 Vogarth map.cpp uses other objects from mapgen without problems.
23:11 Vogarth like mapgen::make_block()
23:12 Vogarth no, that's in an "#if 0" section, i take that back.
23:14 Vogarth Anything special in C++ to call methods in another section, is "#include <filename.h>" and class::object() enough?
23:21 Kacey joined #minetest-dev
23:21 Kacey hello?
23:24 Kacey left #minetest-dev
23:29 Vogarth left #minetest-dev

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