Monday, 2010-03-29

*** tpb has joined #tp00:00
*** ChanServ sets mode: +o tpb00:00
mithromorning people00:01
llnzhi mithro00:12
*** mhilmi has joined #tp00:12
llnzhi mhilmi00:13
mhilmihey llnz00:13
mhilmibeen a while, how goes it00:13
llnzfine thanks, you?00:13
mhilmiexhausted, 2nd to last year of uni, racing to get finished sometime this century lol00:14
tansellJLP, ping?00:14
mhilmithinking about trying to pickup where I off last year and continuing work on Parsek and perhaps the cpp lib00:15
mhilmiwhat are your guys top priority projects for gsoc or is it still pretty open ended?00:17
tansellmhilmi, our top projects are to continue to improve existing things00:17
tansellGreywhind, ping?00:17
mhilmiso would Parsek be outside that (not being the primary client)? Also how bout an emphasis on the cpp lib? Was thinking about trying to make that multi-platform capable.00:19
mhilmier as in Windows support00:20
*** Skywhe has joined #tp00:32
*** tote has quit IRC00:41
*** Reginleifu has joined #tp00:42
tansellhello Skywhe and Reginleifu00:43
Skywhehello its nice to meet you00:44
Skywhejust sent you guys an email!00:44
*** konr1 has joined #tp00:54
*** konr has quit IRC00:56
*** konr has joined #tp01:00
*** konr1 has quit IRC01:02
*** mhilmi has quit IRC01:09
*** Skywhe has left #tp01:19
*** konr has quit IRC01:20
*** konr has joined #tp01:20
*** verhoevenv has quit IRC01:26
*** nash has joined #tp01:52
*** karan has joined #tp02:10
karanHi02:10
karanHi,I'd like to work on a ruleset using Python as a part of Gsoc.  Could anyone let me know about some of the rulesets that are currently being worked on?02:12
tansellkaran, where you able to get the tpserver-py working?02:13
karani was able to configure the server, but when I tried to login using tpclient-pywx, it failed to do so02:19
karanit was able to recognize the server02:19
karanbut was unable to login02:19
tansellkaran, did you add a user to login as?02:21
tanselltpserver-py doesn't automatically add users - unlike tpserver-cpp02:21
karanoh02:22
karanbut i looked at the database.sql file02:22
karanit had a line in which it added a user02:22
karanI just changed the settings and used that user settings to login02:23
karanhow should I add a user?02:23
karanI;ve already edited the database settings in config.py02:26
tansellI recommend removing your config.py02:35
tanselland then following the INSTALL instructions02:35
karanits running now02:42
karani hadn't imported the mysql file02:42
karanSo now which rulesets should I start looking at for my application?02:42
karanhowever, on running turn.py, i get the following error:02:44
karanTraceback (most recent call last):02:44
karan  File "turn.py", line 130, in <module>02:44
karan    main()02:44
karan  File "turn.py", line 101, in main02:44
karan    db.query("USE %(database)s", database=sys.argv[1])02:44
karanIndexError: list index out of range02:44
karangot it02:45
karani hadnt mentioned the database02:45
tansellkaran, are you running the git version of the code?02:46
tansellezod, ping?02:46
karanno, i think not . I think I downloaded it from the site02:47
karanI'll download it from git now02:47
karanits not working03:09
karani followed the guidelines written over here : http://www.thousandparsec.net/tp/gettingstarted.php03:09
tpb<http://ln-s.net/J4s> (at www.thousandparsec.net)03:09
tansellit's not working is not a useful thing to say03:09
tansellwhat is not working03:09
tansellhow is it not working03:09
karani ran the server and all03:09
karanbut when i try to login03:10
karanit doesnt login03:10
tansellkaran, did you follow the instructions in the INSTALL file like I suggested?03:10
karanyes03:10
tansellkaran, then what happened?03:10
tansellit doesn't login is not useful either03:10
tansellplease explain with exact details what is going on and how to reproduce the behaviour03:11
karanits running the addgame, populate,adduser and turn commands successfully03:11
karanbut when i try to login through the client03:11
karanit shows a window with a red minus sign03:11
karanthat's it03:11
*** mhilmi has joined #tp03:17
tansellscreenshots would be useful03:17
tanselland paste the output of tpserver-py into a pastebin somewhere03:17
tansellkaran, please post it on the web somewhere03:18
karanok03:18
karanhttp://www.cse.iitk.ac.in/users/kvsingh/Screenshot.png03:20
tpb<http://ln-s.net/5UQz> (at www.cse.iitk.ac.in)03:20
tanselland what is the output on the tpserver-py console?03:23
karanhttp://pastebin.com/NknmT7zh03:23
tpbTitle: karan@karan-laptop:~/tpserver- - Anonymous - NknmT7zh - Pastebin.com (at pastebin.com)03:23
tansellkaran,03:24
tanselllook at the output from03:24
tansellkaran@karan-laptop:~/tpserver-py$ ./tpserver-py-tool --adduser tp karan hello03:24
karanoh03:24
tansellyou should probably log a bug about that screenshot not saying an error message03:27
karanok03:27
tansellfixing the bug would be even better :)03:28
karanis avahi_disabled related to avahi-daemon?03:28
tansellyeah03:30
tansellit's disabled because it's broken03:30
* llnz wanders off03:32
llnzlater all03:32
*** llnz has quit IRC03:32
karanshould i reinstall avahi-daemon?03:33
tansellkaran, no need the interface to the avahi-daemon is broken03:37
karanso is it a problem with the client?03:38
tansellwhat do you mean?03:39
karanAs in, is it a bug?03:39
tansellwhat is a bug?03:39
karanerr ... some error in the coding?03:40
tansellI still have no idea what you are talking about03:40
karanor am i missing some library?03:40
karanI mean, can I get the server to work by installing some library or something?03:41
tansellno03:43
tansellkaran, did you even look closely at the output of the line03:43
karanyes03:44
tansellwhat does the output look like?03:44
tansellthe help text right?03:44
karanIt says No module named avahi_disabled03:44
tansellignore that03:44
karanit says #03:44
karanUsing pyZeroConf ZeroConf implimentation...03:44
tansellkeep going03:45
karan#03:47
karan--cleanup03:47
karan#03:47
karan        Try and remove any stale locks which still exist.03:47
karanthis one?03:47
tansellno03:47
tanselllook at line 10703:48
karanoh ... ok .. i thought when i added a user i added a player03:48
tansellkaran, no what is happening is the instructions are wrong03:49
tansellso when you entered a non-existant command it output the help text03:50
karanoh03:51
karanok03:51
tansellthese types of problems you are going to have to figure out yourself if you where accepted into GSoC03:51
karanyeah .. i know03:52
karani'll try to figure out things on my own03:52
karanbut thanks a lot!03:53
karanIts still showing the Red minus sign.03:54
tansellno what is the output on the tpserver-py console?03:56
tansells/no/now/03:56
karanhttp://pastebin.com/9X2q4wdA03:57
tpbTitle: karan@karan-laptop:~/tpserver- - Anonymous - 9X2q4wdA - Pastebin.com (at pastebin.com)03:57
tansellkaran, so that looks fine03:58
tansellnow what is the output of the tpserver when you try and login?03:59
*** mhilmi has quit IRC03:59
karansorry, i hadn't opened the tpserver-py console before. I was only running the commands. Its able to log in now04:01
*** karan has quit IRC04:31
*** konr has quit IRC04:36
*** DamTuanLong has joined #tp05:15
*** konr has joined #tp05:17
*** Tanoku_ has joined #tp06:11
*** tanoku has quit IRC06:11
*** KGusak has quit IRC06:11
*** jdlkem has quit IRC06:11
*** nash has quit IRC06:11
*** Reginleifu has quit IRC06:11
*** DTRemenak has quit IRC06:11
*** jnengland77 has quit IRC06:11
*** Reginleifu has joined #tp06:30
*** jdlkem has joined #tp06:30
*** jnengland77 has joined #tp06:30
*** DTRemenak has joined #tp06:30
*** KGusak has joined #tp06:30
*** Reginleifu has quit IRC06:30
*** jnengland77 has quit IRC06:41
*** Reginleifu has joined #tp06:41
*** konr has quit IRC06:59
*** Reginleifu has quit IRC07:03
JLPgood morning everyone07:25
JLPtansell, mithro: pong07:29
*** null_000 has joined #tp08:10
null_000Morming all08:11
*** tote has joined #tp08:17
*** null_0001 has joined #tp08:20
*** null_000 has quit IRC08:20
*** null_0001 is now known as Null_00008:21
*** welterde has quit IRC08:24
*** Vadtec_ has quit IRC08:24
*** Vadtec has quit IRC08:24
*** Vadtec has joined #tp08:24
*** Vadtec_ has joined #tp08:26
*** welterde has joined #tp08:36
*** mithro has quit IRC08:44
*** bzawisto has quit IRC08:56
* Null_000 just got OSX working in VM on Ubuntu09:08
*** Tanoku_ has quit IRC09:25
*** Tanoku_ has joined #tp09:26
*** DamTuanLong has quit IRC09:39
*** Null_000 has quit IRC09:48
*** null_000 has joined #tp09:48
*** null_000 has quit IRC11:44
*** null_000 has joined #tp12:23
*** bzawisto has joined #tp12:52
*** Reginleifu has joined #tp12:59
*** Reginleifu has quit IRC13:04
*** null_000 has quit IRC13:05
*** null_000 has joined #tp13:07
*** verhoevenv has joined #tp14:07
*** kaelstrom has joined #tp14:09
*** verhoevenv_ has joined #tp14:14
*** verhoevenv has quit IRC14:17
*** verhoevenv_ has quit IRC14:21
ezodtansell: pong14:31
*** Reginleifu has joined #tp14:36
*** kaelstrom has quit IRC15:08
*** null_000 has quit IRC15:18
*** null_000 has joined #tp15:31
*** Reginleifu has quit IRC15:50
bzawistohm.. has anybody tested tpclient-pywx on Ubuntu 9.10 x86_64 ?15:54
null_000yes15:54
bzawistoI can't connect to demo? servers15:55
null_000demo servers are down15:55
bzawistonor can it see my local one running15:55
null_000try using git versions of server and client15:55
bzawistoyes, i have the newest trunk versions of both15:56
null_000i have them and they work15:57
null_000try running a single player game15:57
*** Erroneous has joined #tp15:57
null_000that should run the server and connect automaticly15:57
bzawistoshould I download the python server or c++ one ?15:58
bzawistoI have the second one onlu15:58
bzawistoonly15:58
*** verhoevenv has joined #tp15:59
null_000try the c++ one15:59
*** null_000 has quit IRC16:07
bzawistohow many listeners do you have after running backend in --verbose && --debug mode ?16:12
*** jdlkem has quit IRC16:21
bzawistook, it looks like I have passed the single player step by typing explicite my ip adress into adress field16:29
bzawistobtw, i think that parsing all options from file should be done in lua16:31
bzawistomuch easier, simpler and works good as weel16:31
bzawistowell16:31
*** jdlkem has joined #tp17:23
*** StupidIncarnate has joined #tp17:34
StupidIncarnatehey all17:42
StupidIncarnatetote around?17:42
*** jdlkem has quit IRC18:01
*** jdlkem has joined #tp18:43
*** StupidIncarnate has quit IRC18:51
*** bzawisto has quit IRC19:03
*** StupidIncarnate has joined #tp19:10
*** llnz has joined #tp19:12
*** jiaming has joined #tp19:20
*** Reginleifu has joined #tp19:42
*** jdlkem has quit IRC19:45
*** bzawisto has joined #tp19:51
*** tradedaemon has joined #tp19:54
*** StupidIncarnate has quit IRC19:55
bzawistollnz: did you consider reimplementing all *config* stuff in tpserver-cpp in Lua ?20:04
llnzbzawisto: no20:04
llnzbut it will need something like that at some point probably20:05
llnzmaybe python?20:05
bzawistomaybe, i something similar in Lua in one backend20:05
bzawistoIt went further that time, even to Luabind, but efficiency wasn't so good20:06
bzawistoso i stopped raw lua20:06
bzawistobut the usage is quite simple and you don't have to worry about all that 'parsing' issues20:06
bzawistojust use: config->getString(), config->getDouble(), and so on20:07
bzawistoanyway, i'am going through the code and i would like to propose some changes20:08
bzawistoespecially if it comes to singletons20:09
llnzbzawisto: it might be nice to have something a bit more advance to allow to some abritray configs, such as a list of game names to redirect and where they redirect to20:09
bzawistoyeah, that's right20:09
llnzI think the singletons will go away over time20:09
bzawistowhat about raw pointers ?20:10
llnzreplaced by smart pointer in globals20:10
bzawistoi think RAII should be applied20:10
bzawistoyeas, boost::shared_ptrs for example20:10
*** jdlkem has joined #tp20:11
bzawistoquite a few things to be done during the summer, don't you think ? :)20:11
llnzmaybe20:14
*** AlphonZeus has joined #tp20:20
AlphonZeushello20:20
llnzhi AlphonZeus20:22
bzawistohi20:22
AlphonZeusI'm a student participating in GSoC; I'm wondering if I can make a proposal for one of your projects20:22
llnzAlphonZeus: sure you can20:24
AlphonZeusI found interest in one of the Python  based parts of Thousand Parsec projects, which is to integrate and  improve schemepy.  I'm also interested in helping out with single player  ideas.  I can add in different scenarios and missions for the player to  go through, as well as taking a shot at loading and saving scenarios.   Some missions can include search and rescue, gathering, and combat.  20:26
AlphonZeusI can also be able to make a design for libtpclient-py (used by tpclient-pywx).20:26
AlphonZeusI can  program a code for it to be called by many clients and client libraries.   All the client has to do is contain a small program whose sole purpose  is to call the libtpclient-py.  This small program should be available  for download and be placed on the homepage of the site for anyone who is  interested for single-player mode.  Another way to go about it is to  include the small program with the client download so if the client  feels like playing singl20:26
llnzAlphonZeus: read up on what has already been done for libtpproto-py and libtpclient-py and single player mode20:27
llnzand please don't spam the channel like that20:28
AlphonZeusOk I'll do that to get updated.20:29
bzawistollnz: did you think of following some coding standards in c++ backend, eg. private members with m_ prefix, using explicit with ctors and so on ?20:31
llnzbzawisto: yes and no, there are some mailing list discussions about this time last year about it20:32
llnzi really do hate m_ for private members20:32
bzawistomatter of taste ?20:34
llnzyeah20:34
*** null_000 has joined #tp20:35
bzawistoso can you distinguish in any way between loca/global/private variables if you don't look at declaration of var ?20:35
llnzbattlexml folder is the most recent addition, and maybe the best indication of current coding standards20:36
llnzbzawisto: not really20:36
* llnz is busy20:36
bzawistook, i will look at it20:36
null_000evening all20:38
AlphonZeusQuick question about the single player: when you add opponents in the game, you can add in as many as you want?  Or would it be preferred to be 1 vs 1.20:39
AlphonZeushello20:39
bzawistohi20:40
llnzAlphonZeus: it is possible to add many, iirc20:45
AlphonZeusI've noticed that there's no rewards/bonuses.  Would it be possible to add in bonuses each time you go through opponents?20:49
tradedaemonwouldn't that unbalance the game a bit?20:54
null_000not if the opponent gets the bonus ^_^20:54
AlphonZeusIt would get the player more into it because bonuses in games are like checklists for players to cross off.20:55
llnzAlphonZeus: that is possible with scoring in tpserver-cpp20:59
*** tradedaemon has quit IRC21:00
AlphonZeusI see, well maybe that can be part of a new ruleset a modified one.21:03
llnzbbl, meeting21:04
*** AlphonZeus has quit IRC21:15
*** Reginleifu has quit IRC21:23
*** StupidIncarnate has joined #tp21:26
StupidIncarnatehmmm, Greywhind around yet?21:31
Greywhindi'm here21:31
Greywhindwhat's up?21:31
StupidIncarnateoh hey, Mithro said to talk to you about what converting from tp03 to tp04 entiles21:32
StupidIncarnateentails*21:32
StupidIncarnatesaid you did it last year with one of the clients21:32
GreywhindStupidIncarnate: you can look at my summary blog post, that would probably help21:33
Greywhindhttp://greywhind.wordpress.com/2009/08/19/gsoc-2009-final-report/21:33
tpb<http://ln-s.net/3yJz> (at greywhind.wordpress.com)21:33
StupidIncarnatewhat's aged properties?21:35
Greywhindaged properties are essentially for rulesets in which you only have information about things in a certain area21:36
Greywhindand things outside that area could change without your knowledge21:36
Greywhindso you can only know their "last known status," and this should be marked as possibly out-of-date info21:36
StupidIncarnatekind of like fog of war sort of thing?21:37
StupidIncarnatealso, so it was pretty much changing stuff to the client then?21:41
Greywhindyeah, the C++ server should be pretty much fully TP04 capable at this point21:41
StupidIncarnatewhat sort of formate is the data in when it gets sent from the server?21:42
StupidIncarnateformat*21:42
StupidIncarnatefrom what I gleaned from the php handler, it was it byte/hex?21:43
GreywhindStupidIncarnate: the existing clients have abstractions from the raw data21:44
Greywhindso, since i've mostly worked within that context, i'm not really an expert on the low-level networking details21:45
toteStupidIncarnate: im here now21:46
StupidIncarnatehmm ok21:46
StupidIncarnatethanks Greywhind21:47
StupidIncarnatequestion for you tote, I got mod_python running since I couldn't get wsgi working21:47
StupidIncarnatecan I rename the wsgi file to .py and it'll still work or do I have to do something else/21:48
StupidIncarnate?21:48
totehmm, isnt mod_python out dated?21:49
StupidIncarnatethey only support 2.5 of python, but 2,2 of apache so I don't know21:50
StupidIncarnateI just couldn't get wsgi working after 7 hours of banging my head21:50
totewhat was the problem with wsgi?21:50
StupidIncarnateapache wouldn't start because it didn't like the module for it21:50
totewhat os?21:51
StupidIncarnatewindows xp21:51
totehmm, cant help you with that i think :/21:52
StupidIncarnateso can I rename the file to .py or is it a special code set for wsgi specifically?21:53
toteyou could try that, not sure if it will work tho21:54
totemod_python is more like how php works, and not sure if it supports the wsgi python standard, which i built the client on21:54
StupidIncarnatehmm, ok, I'll try again at getting wsgi running21:55
StupidIncarnatedid you have the py server running for the browser client or the c++ version?21:56
toteyou could try another webserver that supports wsgi if that might be easier :)21:56
StupidIncarnateany suggestions?21:56
totemaybe cherrypy or twisted, both are written in python21:58
*** aip has joined #tp22:00
StupidIncarnateso did you have the py server running for the browser client?22:03
*** Reginleifu has joined #tp22:03
totei mostly used the demo server that was up before, but i also ran a the c++ version, but the tp server doesnt matter22:05
StupidIncarnateyou just need the libtpclient-py libs compiled?22:05
totelibtpclient-py and libtpproto-py22:06
StupidIncarnateis the setup file the kind of like a make file then?22:07
totetpclient-pyweb.wsgi will run requirements.py which will setup the libs if i remember correctly22:09
StupidIncarnateautomatically? you just have to have the source files and everything in the folders?22:10
toteyeah that should work22:13
totei just cloned the repo and setup my apache config and got it working22:13
StupidIncarnateand then for the host, I can just do localhost:1334?22:13
StupidIncarnateor whatever port the server ends up using22:14
toteyep22:14
StupidIncarnatealright, then looks like I need wsgi working :/22:14
toteyep, but if you just wanna try the client, you could use: http://tp.jbohman.com/ it should work22:15
tpbTitle: Thousand Parsec Web Client (at tp.jbohman.com)22:15
StupidIncarnatelol, that solves everything for now then22:16
StupidIncarnatethanks22:16
totehehe :D22:16
StupidIncarnatedoes posting to the metaserver option work or has the server code changed a bit?22:43
*** jiaming has quit IRC22:47
*** jdlkem has quit IRC22:53
* llnz wanders off23:06
llnzlater all23:06
*** llnz has quit IRC23:06
ezodtansell: should we put a note at the top of the ideas page about what our development priorities are currently?23:07
*** aip has quit IRC23:07
balkiyes23:07
*** karan has joined #tp23:22
*** karan has quit IRC23:33
*** jdlkem has joined #tp23:34
*** AlphonZeus has joined #tp23:42
*** StupidIncarnate has quit IRC23:43

Generated by irclog2html.py 2.17.2 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!