Monday, 2009-08-03

*** tpb has joined #tp00:00
*** ChanServ sets mode: +o tpb00:00
llnzbbl00:40
*** llnz has quit IRC00:40
*** jnengland77 has quit IRC01:30
*** llnz has joined #tp01:52
*** alanp has quit IRC01:59
*** llnz2 has joined #tp02:09
*** llnz has quit IRC02:09
*** llnz2 is now known as llnz02:09
*** nash has quit IRC03:25
*** jmtan has quit IRC04:20
*** Greywhind has quit IRC04:26
*** nebajoth is now known as nebaway04:29
*** mithro has quit IRC04:58
matthewdtote: Hi!05:10
totematthewd: morning :)05:16
totematthewd: morning :)05:19
totematthewd: right now you can send a move order, today im gonna add ability to remove and update order (almost finished), then i add more orders :)05:19
matthewdNot going so well on regular blog posts so far, I see... but it's great to see some good progress :)05:26
toteblogposts :/05:27
totematthewd: you want me to write a blog post for the last three days?05:28
matthewdYes please, I think that would be good05:29
totematthewd: done05:44
matthewdGreat, thanks05:49
*** Vadtec has quit IRC06:28
*** Vadtec_ has quit IRC06:28
*** cherez has quit IRC06:28
*** edison has quit IRC06:28
*** Vadtec has joined #tp06:29
*** cherez has joined #tp06:29
*** Vadtec_ has joined #tp06:29
*** edison has joined #tp06:29
*** nebaway has quit IRC06:32
*** nebaway has joined #tp06:33
*** Vadtec_ has quit IRC06:51
*** Vadtec has quit IRC06:51
*** cherez has quit IRC06:51
*** edison has quit IRC06:51
*** Vadtec has joined #tp06:52
*** cherez has joined #tp06:52
*** Vadtec_ has joined #tp06:52
*** edison has joined #tp06:52
*** llnz2 has joined #tp06:59
*** llnz has quit IRC06:59
*** llnz2 is now known as llnz06:59
*** mithro has joined #tp07:33
totemithro: what do i need to send to cache.apply to remove a node, and how can i based on an id or something select just one node?07:34
mithrotote: ?07:35
mithroyour asking how to delete a node?07:35
toteyeah :)07:35
mithrotote: you looked at how tpclient-pywx does it?07:37
totekinda, it seems like it stores selected node objects in a list and just send them to cache.apply07:38
totebut i dont want to create a new list, it would be easier if i could by an id or something select nodes from the changelist07:38
toteso i only need to send the id between httpserver and httpclient07:39
toteelse i need to store a simplle list on the filesystem, as i already do with the cache object07:39
mithrotote: dunno a good option07:44
* llnz wanders off07:50
llnzlater all07:50
*** llnz has quit IRC07:50
*** Vadtec_ has quit IRC07:50
*** Vadtec has quit IRC07:50
*** cherez has quit IRC07:50
*** edison has quit IRC07:50
totemithro: ok07:50
*** Vadtec has joined #tp07:52
*** cherez has joined #tp07:52
*** Vadtec_ has joined #tp07:52
*** edison has joined #tp07:52
*** Vadtec_ has quit IRC07:54
*** Vadtec has quit IRC07:54
*** cherez has quit IRC07:54
*** edison has quit IRC07:54
*** jmtan has joined #tp07:55
*** Vadtec has joined #tp07:56
*** cherez has joined #tp07:56
*** Vadtec_ has joined #tp07:56
*** edison has joined #tp07:56
mithrotote: remeber deletion can fail07:57
totehmm, why can it fail?07:57
mithrothe server can refuse to remove the order07:58
toteok07:58
mithrobecause you don't have permission or something07:58
CIA-26epyon tpserver-cpp-refactor * rbc1178972101 /tpserver/ (algorithms.h boardmanager.cpp playermanager.cpp): Algorithms : find_default08:08
CIA-26epyon tpserver-cpp-refactor * rd9e84d26edd8 /tpserver/ (algorithms.h orderqueue.cpp): Algorithms : for_each_if08:08
*** jmtan has quit IRC08:24
totemithro: aha nodes does have an id attribute08:29
totedo you know if i can trust it?08:29
mithronfi08:30
mithrobut I did write the code :P08:30
totenfi?08:30
mithrono fracken idea08:30
toteaha :)08:31
totebsg fan? :)08:31
mithroi think I used the python id08:31
mithrowhich is the memory location08:32
tote 16         # FIXME: Must be a better way to do this... 17         ChangeNode.NodeCounter += 1 18         self.id = ChangeNode.NodeCounter08:33
totethat should work just fine :)08:33
CIA-26epyon tpserver-cpp-refactor * r36b0fd71cbf8 /tpserver/algorithms.h: Algorithms : delete_map_all08:42
CIA-26epyon tpserver-cpp-refactor * r998eae62a9de /tpserver/algorithms.h: Algorithms : for_each_value08:42
*** nebaway has quit IRC08:53
*** nebaway has joined #tp08:53
CIA-26epyon tpserver-cpp-refactor * r52bbd0ecff26 /tpserver/algorithms.h: Algorithms : for_each_keyw09:14
*** jmtan has joined #tp09:19
CIA-26epyon tpserver-cpp-refactor * r30dab326a231 /tpserver/ (16 files): Algorithms : all round implementation in server, yay09:34
*** bddebian has joined #tp09:47
bddebianHeya09:52
*** Vadtec_ has quit IRC09:52
*** Vadtec has quit IRC09:52
*** cherez has quit IRC09:52
*** edison has quit IRC09:52
*** Vadtec has joined #tp09:53
*** cherez has joined #tp09:53
*** Vadtec_ has joined #tp09:53
*** edison has joined #tp09:53
*** Vadtec_ has quit IRC10:13
*** Vadtec has quit IRC10:13
*** cherez has quit IRC10:13
*** edison has quit IRC10:13
*** Vadtec has joined #tp10:14
*** cherez has joined #tp10:14
*** Vadtec_ has joined #tp10:14
*** edison has joined #tp10:14
*** nebaway has quit IRC11:04
*** nebaway has joined #tp11:05
*** nebajothz has joined #tp13:27
*** Greywhind has joined #tp13:36
*** nebaway has quit IRC13:42
*** Erroneous has joined #tp13:44
*** nebajothz is now known as nebajoth13:50
*** jnengland77 has joined #tp14:31
*** mithro has quit IRC14:45
*** mithro_ has joined #tp14:45
*** mithro_ has quit IRC15:06
*** mithro_ has joined #tp15:07
*** llnz has joined #tp16:12
*** jnengland77 has quit IRC16:17
*** alanp_ has quit IRC16:18
llnzmorning all16:19
*** bddebian has quit IRC17:02
*** nash has joined #tp18:42
CIA-26joelboh tpclient-pyweb * r6242fc1a6b9d / (3 files in 2 dirs): Frontend & Backend: You can now remove orders.19:21
totehow can i check if order deletion failed?19:22
totetook me forever to get this to work, i hope its easy :)19:23
*** Linkadmin has quit IRC19:44
*** Linkadmin has joined #tp19:44
*** mithro_ has quit IRC20:04
CIA-26joelboh tpclient-pyweb * r876d5cae9f36 /frontend/scripts/map.js: Frontend: Fixed so interface updates when you add an order.20:06
tansellmorning people20:12
epyongeee tansell, it's deep night here :P20:15
tansellit's always morning on the internet20:16
tansellor20:16
tansellI'it's morning when I say it is20:16
tansell:)20:16
* Landon is a fan of it's always morning when I sign on20:17
Landonunfortunately that means the past 2d 5h 9m 59s have been afternoon20:17
epyon^_^20:17
* Landon is working on laser pew-pews atm, but python-ogre seems to be lacking some critical function I need :\20:18
Landontansell: so laser fire is looking better now with the particles spewn out when something is it20:29
*** mithro_ has joined #tp20:29
tansellLandon, what functions are you missing?20:29
Landonit's not perfect, I'm not able to get the exact point on the model, but with a small angle, particles originating from the center of the model look good20:29
Landonhm, let me see where it was20:30
tansellLandon, exact point?20:30
Landontansell: there's a code snippet on the ogre wiki to get the first point hit on a model by a ray and returned the vector3 position20:30
Landonbut i haven't been able to get that to work20:31
LandonI think the function that I couldn't find any information on was baseVertexPointerToElement, which was a method of an elemnent20:31
* Landon goes to find that in the API20:31
LandonI think the code was coughing at some other point though, but that's the main function I'm worried about, since it looks like one of its arguments is an out variable20:32
Landonhttp://www.ogre3d.org/docs/api/html/classOgre_1_1VertexElement.html#20a697dec05663dea83bdee02d9412bf20:33
tpb<http://ln-s.net/3n3_> (at www.ogre3d.org)20:33
Landonoh, now I remember where I was actually getting hung up, I couldn't make heads or tails of the arguments in the snippet at http://www.ogre3d.org/wiki/index.php/Raycasting_to_the_polygon_level20:33
tpb<http://ln-s.net/3n3a> (at www.ogre3d.org)20:33
Landona normal makes no sense to me if there's not a plane20:34
CIA-26landon tpclient-pyogre * rc2c0163c18b7 /src/raycast.py: Whoops, fixed some C++isms to python, now the code at least says it fails instead of crashing20:53
Greywhindtansell: ping?20:55
tansellGreywhind, pong20:55
Greywhindtansell: so it seems that doing a self.mgr.SavePerspective() on exit and then loading it on startup is giving me a blank window, with none of the internal panes20:56
tansellGreywhind, so there is something wrong :)20:56
Greywhindtansell: any idea what it might be?20:58
tansellGreywhind, nope!20:58
llnzLandon: i suspect something about this line:21:16
llnzif query_result[i].movable != None and query_result[i].movable.getMovableType() == "Entity" == 0:21:16
*** bddebian has joined #tp21:16
llnzbecause it will always be False21:16
*** jnengland77 has joined #tp21:39
Greywhindtansell: http://pastebin.com/d32a7598823:17
tpbTitle: pastebin - collaborative debugging tool (at pastebin.com)23:17
Greywhindtansell: do you know what might be the problem?23:17
tansellthe file doesn't exist?23:18
tanselldoes the file exist?23:18
Greywhindtansell: no23:18
Greywhindtansell: but i don't know what it should be23:19
Greywhindtansell: this is a fresh checkout.23:19
tansellGreywhind, it probably means someone change the file name without also updating the xml files23:19
tansellGreywhind, it should be pretty obvious how to fix23:23
Greywhindtansell: well, it's just that i don't know what that file is supposed to be23:23
Greywhindtansell: oh wait23:24
Greywhindtansell: i see a commit that might explain it23:24
Greywhindtansell: ok, so i got it to build and install23:38
Greywhindtansell: but single player doesn't seem to recognize it23:38
tansellGreywhind, so what did you do?23:38
Greywhindtansell: in setup.py, i changed lines 63 and 64 to23:39
Greywhind    scripts = ["daneel_ai.py"],23:39
Greywhind    console = ["daneel_ai.py"],23:39
tanselldid you change the xml files?23:39
tansellsingle player uses the xml files to figure out how to run stuff23:39
Greywhindtansell: ah.23:39
tanselland you probably didn't want to install it anyway23:39
tansellGreywhind, as should be obvious if you look at the single player code23:40
Greywhindtansell: changing the AI files worked, thanks23:42
Greywhindtansell: the XML ones23:43
Greywhindtansell: any idea where to get logilab-constraint? the download link on their website seems to be broken23:54
tansellapt-get install python-constraint23:55
tansellif you play with the download link it's pretty easy to get the right one23:55
Greywhindtansell: not using Ubuntu :P23:55
*** bddebian has quit IRC23:55
Greywhindtansell: oh, i see23:55
Greywhindtansell: listing directories. how clever :P23:55

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