Minetest logo

IRC log for #minetest-dev, 2012-12-08

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

All times shown according to UTC.

Time Nick Message
02:00 felix20 joined #minetest-dev
02:29 SitDog joined #minetest-dev
02:31 SitDog so i had a chance to look at the profile with the s3d16 type being high.  it turns out that the structure is misaligned and there are several objects that are passed by value.  i need to test it, but i am seeing an immense improvement by passing by reference and changing s16 to s32.
03:33 VanessaE celeron56 / celeron55:  I've been thinking.  that idea you had for making mese act like a typical ore (mine a mineral, drops a lump, smelt that to ingot, craft 9 to get a block of mese).  Maybe that's a good idea come to think of it.
03:33 VanessaE as long as mese ingots are used for tools, but aliased to just "default:mese" for backward compat, while the existing "MESE" yellow block becomes the 9-to-1 block
03:34 VanessaE if so desired, I will throw together some appropriate textures.
04:42 VanessaE celeron56 / celeron55 : a pull request is now pending to make these changes happen (textures, changes to default.lua to accommodate).  I opted to break old mods rather than old maps as mods are far easier to adapt to these changes than old maps are.
04:43 VanessaE (but I left a compatibility recipe, 1 stone + 1 mese lump = 1 mese mineral/ore, which is aliased to default:mese so old recipes/mods can use it)
05:28 VanessaE https://github.com/celeron55/minetest_game/pull/60
05:28 VanessaE (it would help if I link to it...)
07:07 RealBadAngel joined #minetest-dev
07:07 RealBadAngel hi all
09:32 jin-xi joined #minetest-dev
09:34 Calinou joined #minetest-dev
10:10 SpeedProg joined #minetest-dev
10:43 PilzAdam joined #minetest-dev
10:55 serengeor joined #minetest-dev
11:45 rsiska joined #minetest-dev
13:04 serengeor joined #minetest-dev
13:16 rubenwardy joined #minetest-dev
13:55 jyfl987 joined #minetest-dev
14:29 jyfl987 joined #minetest-dev
14:46 hmmmm joined #minetest-dev
14:56 Sudi joined #minetest-dev
15:23 jin_xi joined #minetest-dev
16:09 Calinou joined #minetest-dev
16:16 rubenwardy celeron55, check your email
16:17 VanessaE ...and your messages here :-)
16:32 doserj joined #minetest-dev
16:44 celeron55 rubenwardy: i am working on changing minetest.net to use a django based site
16:45 celeron55 and putting that on github
16:45 celeron55 so that people can reasonably contribute to it
16:45 rubenwardy ok
16:46 felix20 joined #minetest-dev
16:46 celeron55 ...so, i am guessing you will be interested in developing it? 8)
16:46 * rubenwardy had to research django
16:46 rubenwardy yes
16:48 celeron55 i guess i'll put this on github right away then
16:50 rubenwardy would it be compatible with PHP?
16:51 thexyz of course it won't
16:51 celeron55 no; the only server side scripting language used is python
16:51 rubenwardy ok
16:52 rubenwardy That wont be a problem
16:52 celeron55 this will give a good idea of what djano is about in practice: https://docs.djangoproject.com/en/1.4/intro/tutorial01/
16:52 celeron55 django*
16:53 rubenwardy brb, restarting in Ubuntu so I can experiment
16:57 rubenwardy joined #minetest-dev
16:57 rubenwardy back
16:58 celeron55 https://github.com/celeron55/minetest.net
16:58 celeron55 currently it's just a copy of the current site with templates having all the content
16:58 * Calinou starred it
16:58 Calinou no longer 0 stars ;P
16:58 celeron55 what is seen on minetest.net is not that yet, but it looks exactly the same and is not hard to replace
16:59 PilzAdam Calinou, 2 stars ;-)
17:01 celeron55 oh, and apparently it already has mixed tabs and spaces... i'll say it should use tabs for indentation (to allow using the same editor settings as for minetest source code), but otherwise follow the whatever general python recommendation that most use
17:01 celeron55 (the "whatever general python recommendation" recommends using 4 spaces for tabs)
17:02 Calinou ctrl+h is your friend for replacing spaces with tabs :P
17:02 Calinou so it's not really important
17:03 celeron55 the first things to do would be to make the download and news sections more manageable (that is, store the raw data in the database)
17:03 thexyz https://gist.github.com/4241043
17:03 Calinou we need some intro video maybe (not very related to the website code i know)
17:04 celeron55 thexyz: everything should be indented with tabs, because what i said
17:04 PilzAdam Calinou, something like this: https://www.youtube.com/watch?v=paOJHOoPBmo
17:04 celeron55 so screw pep8
17:05 thexyz why do you prefer tabs?
17:05 celeron55 i don't understand why somebody *wouldn't* prefer tabs
17:05 celeron55 they work much better with most editors
17:05 hmmmm i guess it's good to use spaces if you need to build muscle on your pinky finger
17:06 * VanessaE peeks in
17:07 thexyz wait, do you press spacebar with your pinky?
17:07 hmmmm i do
17:07 hmmmm erm
17:07 hmmmm thumb
17:07 celeron55 "close enough"
17:07 hmmmm i have to tap the backspace key 4x as much with my pinky though if someone decides to use spaces instead of tabs
17:08 hmmmm also pep8 blows
17:08 hmmmm it's like 6502 except with one less index register
17:08 celeron55 that is the usual thing that editors fail to support in a reasonable way for spaced indenting
17:08 hmmmm which makes it that much more frustrating
17:08 Calinou pep8?
17:08 celeron55 http://www.python.org/dev/peps/pep-0008/
17:08 hmmmm it's a toy assembly language for learning
17:10 rubenwardy cloned
17:10 celeron55 pep8 is the python enhancement proposal number 8, called the "python style guide"
17:10 hmmmm oh :)
17:11 hmmmm i guess this is a situation where a single forward slash makes all the difference
17:11 celeron55 according to google, yes
17:11 rubenwardy forked i mean
17:12 rubenwardy can you link to an tutorial?
17:12 celeron55 i already did, but here https://docs.djangoproject.com/en/1.4/intro/tutorial01/
17:13 rubenwardy i lost it when I signed out
17:13 celeron55 well, the topic has a link to the channel log 8)
17:14 celeron55 hmm, i'll replace all space indentations with tabs so it's clean from the start
17:17 celeron55 done
17:18 rubenwardy http://multa.bugs3.com/minetest/forum/index.php
17:19 celeron55 spaces are kind of crappy with django though because the tools that create new stub files for new things use spaces...
17:20 VanessaE celeron55: please check my proposal/code re: mese.
17:20 VanessaE (at your convenience)
17:20 celeron55 VanessaE: i glanced through it; i don't know
17:20 PilzAdam -30000 for that
17:24 rubenwardy What do you think? http://multa.bugs3.com/minetest/forum/index.php
17:24 rubenwardy Should I have another nav bar under the green bit, or shall I modify the top nav bar?
17:25 PilzAdam suggestion: use #minetest-delta for website disussions
17:25 celeron55 i'm not on -delta anymore
17:25 rubenwardy ok
17:25 celeron55 and won't go there; too many channels
17:26 celeron55 rubenwardy: i don't think you shouldn't care much about the layout; i can figure it out before publishing things on minetest.net
17:26 rubenwardy ok
17:27 celeron55 as long as the stuff under the hood is good, all should be fine-ish
17:27 rubenwardy double negative saying I should care, I assume you mean i should not
17:27 rubenwardy lol
17:27 rubenwardy ok
17:28 celeron55 take your time figuring out the design conventions of django; if you're accustomed to php, it'll take a bit
17:29 celeron55 also, beware of never wanting to touch php again
17:29 rubenwardy lol
17:29 celeron55 it's a real problem 8)
17:39 rubenwardy "TemplateDoesNotExist at /   main/index.html"
17:40 celeron55 you'll want to modify the third line of minetest/settings.py
17:41 celeron55 then it should work for testing purposes by using "./manage.py testserver"
17:42 celeron55 also keep in mind that after doing code modifications, usually the test server needs to be restarted :P
17:42 rubenwardy working
17:42 rubenwardy its working
17:47 thexyz shouldn't it be `runserver`?
17:51 celeron55 if you want to add "run" to that, it would be "runtestserver"
17:51 celeron55 because it's the test server of django 8)
17:54 thexyz well, i thought that `testserver` loads data from fixture before starting the server
17:54 rubenwardy the "testserver" start up command does not display anything at localhost:8080 or localhost
17:54 rubenwardy where as the "runserver" command does
17:54 rubenwardy runtestserver does not work
17:54 thexyz also, it should restart automatically when changes to files are made
17:54 celeron55 uhm
17:55 celeron55 guess so
17:55 celeron55 it's a good while since i last used django for anything 8)
18:08 sstrandberg joined #minetest-dev
19:45 celeron55 rubenwardy: first impressions?
19:45 rubenwardy very good
19:45 rubenwardy quite interesting
19:48 celeron55 i guess the site could use some planning at some point, but as for now, probably just better play with ideas
19:50 celeron55 i'm probably going to write the download page to my liking some day (i have some specific preferences as the one who manages releases)
19:51 celeron55 you probably should get to figuring out a mod database, which in the end will be used as both, the replacement for the mod releases forum and the mod repository
19:52 Calinou why not use the ingame mod manager? probably the best way a MM was done
19:52 celeron55 login information should be gotten from punbb - it's quite doable, as i have once written similar integration with phpbb
19:52 celeron55 Calinou: it needs a backend
19:52 Calinou you always need a backend to host mods..
19:52 Calinou what if we want an ingame public server list later too, we'll need a master server
19:53 celeron55 well, it can be written to that minetest.net django site too
19:53 rubenwardy bye
19:54 celeron55 guess i could start working on some of that too...
19:54 celeron55 so the list of things has expanded to a server list too
19:58 celeron55 the punbb login integration basically just requires something like this (this is from an another project) (phpbb/models.py): https://gist.github.com/4241643
20:00 celeron55 https://gist.github.com/4241668
20:18 celeron55 odd; i can't seem to be able to hash my password and salt to the sha1 sum that is in punbb's database
20:37 celeron55 i wonder what kind of magic it is using
20:38 celeron55 ah
20:38 celeron55 nope
20:42 Taoki joined #minetest-dev
20:54 Taoki joined #minetest-dev

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