*** tpb has joined #tp | 00:00 | |
*** ChanServ sets mode: +o tpb | 00:00 | |
tansell | Landon, what does "more plugins.*" show? | 00:00 |
---|---|---|
Landon | I have a plugins.cfg{,.mac,.nt,.posix} | 00:01 |
tansell | you do? | 00:01 |
Landon | yeah | 00:01 |
tansell | you should only have a plugins.cfg | 00:01 |
tansell | which should be a symlink to | 00:02 |
tansell | /etc/OGRE/plugins.cfg | 00:02 |
Landon | yup | 00:02 |
Landon | well, other than having those extra 3 | 00:02 |
Landon | it is a symlink to /etc/OGRE/plugins.cfg | 00:02 |
Landon | aha | 00:03 |
tansell | aha? | 00:03 |
Landon | copied plugins.cfg to plugins.cfg.linux | 00:03 |
Landon | now I have a new problem! | 00:03 |
Landon | python: ../../../OgreMain/include/OgreSingleton.h:66: Ogre::Singleton<T>::Singleton() [with T = Ogre::BspResourceManager]: Assertion `!ms_Singleton' failed. | 00:03 |
Landon | this seems familiar | 00:03 |
Landon | but I forgot what I did for it | 00:03 |
*** tansell-laptop has joined #tp | 00:03 | |
tansell | try a different demo? | 00:03 |
Landon | any you know of that won't segfault? | 00:04 |
tansell | I'll just check now | 00:04 |
tansell | try the UnitTest.sh script | 00:05 |
greywhind | tansell: even with debugging on, i'm getting only this: | 00:07 |
greywhind | http://rafb.net/p/Pjelmf84.html | 00:07 |
tpb | Title: Nopaste - No description (at rafb.net) | 00:07 |
Landon | they're all failing so far | 00:07 |
tansell | Landon, check /tmp/python-ogre.log file | 00:08 |
tansell | Landon, check /tmp/python-ogre-demos.log file | 00:08 |
tansell | and what exit code are they failing with? | 00:08 |
Landon | 139 | 00:09 |
Landon | and one exited with a 1 | 00:09 |
mithro | upload the python-ogre-demos.log file somewhere | 00:09 |
Landon | http://lfowles.org/files/python-ogre-demos.log.txt | 00:12 |
tpb | <http://ln-s.net/3E4w> (at lfowles.org) | 00:12 |
tansell | did you kill it after a couple of steps? | 00:13 |
Landon | yeah | 00:14 |
Landon | that was the second run | 00:14 |
Landon | the first run it went through a dozen or so | 00:14 |
tansell | could you let it run - it should only take about 5-10 minutes and then upload the complete file? | 00:14 |
Landon | ok | 00:14 |
tansell | what is your computer again? | 00:14 |
Landon | eeepc 900 | 00:15 |
tansell | with jaunty? | 00:16 |
Landon | yeah | 00:16 |
tansell | Landon, can you give this a try - https://wiki.ubuntu.com/ReinhardTartler/X/RevertingIntelDriverTo2.4 | 00:18 |
tpb | <http://ln-s.net/3E4z> (at wiki.ubuntu.com) | 00:18 |
Landon | after finishing the script? | 00:18 |
tansell | yes | 00:19 |
tansell | it overwrites that file after each run | 00:19 |
*** mhilmi has quit IRC | 00:26 | |
*** tansell-laptop has quit IRC | 00:37 | |
llnz | bbl | 00:39 |
*** llnz has quit IRC | 00:39 | |
Landon | tansell: refresh | 00:40 |
Landon | I had to kill the fresnel test though | 00:40 |
Landon | brought my system to a crawl | 00:40 |
tansell | okay | 00:42 |
tansell | did you try the 2.4 downgrade? | 00:42 |
Landon | installing it now | 00:43 |
Landon | ~100 fps glxgears pre | 00:43 |
Landon | 276 post | 00:49 |
tansell | still the demos segfault? | 00:49 |
Landon | heh | 00:50 |
Landon | yeah | 00:50 |
Landon | but they do it much faster now | 00:50 |
Landon | :) | 00:50 |
tansell | :( | 00:50 |
Landon | no wait | 00:50 |
tansell | it sounds like there is a problem with intel drivers in jaunty and ogre | 00:50 |
tansell | ? | 00:50 |
Landon | the two I tried didnt segfault | 00:50 |
Landon | Basic gave the singleton error | 00:51 |
Landon | Smoke didnt really give any | 00:51 |
Landon | oh wait | 00:51 |
Landon | OGRE EXCEPTION(0:IOException): Cannot create settings file. in Root::saveConfig at OgreRoot.cpp (line 329) | 00:51 |
tansell | Landon, can you try running it via the unittest script? | 00:51 |
Landon | nope , it segfaults | 00:51 |
Landon | ok | 00:51 |
Landon | 139s sill | 00:52 |
Landon | still | 00:52 |
tansell | all of them? | 00:52 |
Landon | all gave either 139 or 1 | 00:53 |
tansell | :( | 00:58 |
tansell | can you get the normal ogre demos to work? | 00:59 |
Landon | hm, where are those stored? | 01:02 |
Landon | not sure I have them | 01:03 |
tansell | you might need to download the source code and build them manually | 01:05 |
Landon | ah | 01:05 |
Landon | I'll put this off until tomorrow night then | 01:07 |
Landon | I need to start getting some sort of backup system set up on my desktop | 01:08 |
Landon | it's been getting a little toasty fo its liking lately | 01:09 |
Landon | :\ | 01:09 |
tansell | Landon, you could always try install intrepid and see what happens | 01:52 |
Landon | but jaunty Just Works on my netbook without any custom kernels :P | 01:55 |
Landon | it's really not that big of a deal to get it working on my netbook | 01:56 |
Landon | I'm outta here in a week and my desktop will be in a much more usable area | 01:56 |
tansell | well the intel chipset in your netbook is the "bottom" target for your battleviewer | 02:00 |
tansell | (ie a bare bones battle with no pretty stuff) | 02:00 |
tansell | so it would be good to have it working | 02:02 |
Landon | ah | 02:05 |
tansell | I wish the Launchpad guys would hurry up and get their act together so I could upload the latest version of my python-ogre packages | 02:06 |
*** nash_ has quit IRC | 02:23 | |
*** alanp has quit IRC | 02:24 | |
*** greenlion has joined #tp | 03:20 | |
*** llnz has joined #tp | 03:42 | |
*** reac has joined #tp | 04:19 | |
*** zzorn has joined #tp | 04:39 | |
*** zzorn_ has quit IRC | 04:43 | |
*** zzorn has quit IRC | 04:44 | |
*** zzorn has joined #tp | 04:44 | |
*** llnz2 has joined #tp | 06:25 | |
*** llnz has quit IRC | 06:25 | |
*** llnz2 is now known as llnz | 06:25 | |
llnz | epyon: wiki edits looking good | 06:52 |
llnz | epyon: out of curiosity, why @param instead of \param in doxygen? | 06:53 |
tansell | @param is the normal java format | 06:55 |
llnz | ah | 06:55 |
* llnz had forgotten that | 06:55 | |
* llnz wanders off | 07:46 | |
llnz | later all | 07:46 |
*** llnz has quit IRC | 07:46 | |
mithro | epyon: I don't like your control structure indenting :P | 08:49 |
mithro | }\nelse\n{ <-- really? you like that? | 08:50 |
mithro | epyon: btw - it would be good to make sure that cpplint and indent work okay with your stuff | 08:51 |
*** mithro has quit IRC | 08:58 | |
*** mithro has joined #tp | 09:31 | |
mithro | tote: ping? | 09:35 |
mithro | reac: ping? | 09:36 |
mithro | epyon: you have feedback | 09:44 |
*** alanp has joined #tp | 10:19 | |
*** mithro has quit IRC | 11:34 | |
tote | mithro :/ | 13:21 |
alanp | tansell: ping | 13:23 |
*** alanp has quit IRC | 15:13 | |
*** verhoevenv has joined #tp | 15:48 | |
*** alanp has joined #tp | 15:58 | |
*** llnz has joined #tp | 16:04 | |
llnz | morning all | 16:05 |
*** alanp has quit IRC | 16:05 | |
*** alanp has joined #tp | 16:05 | |
llnz | hi alanp | 16:07 |
*** alanp has quit IRC | 16:09 | |
*** alanp has joined #tp | 16:12 | |
*** alanp_ has joined #tp | 16:18 | |
Landon | heh this works out | 16:23 |
Landon | on my laptop debugging the running client on my desktop | 16:23 |
Landon | tansell: laptop now runs the intro movie and segfaults on the 3d client now | 16:27 |
cherez | tansell: Ping? | 16:33 |
*** alanp has quit IRC | 16:38 | |
cherez | Sweet, the first unit test I ran found a flaw in the code. | 16:53 |
*** tuna-fish has quit IRC | 17:01 | |
llnz | hehe, cool | 17:09 |
*** greenlion has quit IRC | 17:09 | |
*** tuna-fish has joined #tp | 17:16 | |
*** tuna-fish has quit IRC | 17:22 | |
*** verhoevenv has quit IRC | 17:32 | |
*** tuna-fish has joined #tp | 17:37 | |
*** alanp_ is now known as alanp | 17:41 | |
greywhind | anyone know all about xstructs? | 18:38 |
*** peres has joined #tp | 19:04 | |
cherez | greywhind: What do you need to know? | 19:04 |
*** nash has joined #tp | 19:24 | |
epyon | anyone alive at this hour? | 20:18 |
epyon | O.o | 20:18 |
tansell | heyo | 20:18 |
tansell | epyon, yeah | 20:18 |
tansell | it's just morning here | 20:18 |
*** alanp has quit IRC | 20:24 | |
nash | epyon: Pants on | 20:31 |
greywhind | tansell: if you're around, i could use some help with dynamic object properties | 20:44 |
tansell | greywhind, shoot | 20:47 |
tansell | I'll answer if I can | 20:47 |
greywhind | tansell: i'm dealing with trying to change the FindPath() method in Path.py | 20:47 |
*** mithro has joined #tp | 20:48 | |
greywhind | tansell: so i've got it to the point where i can find the ObjectParamPosition3d structure inside the object properties | 20:48 |
greywhind | but then when i do stuff like: xpos = property.structures[0].structures[0].pack(xpos) | 20:48 |
greywhind | i always get 0 | 20:48 |
tansell | pack? | 20:51 |
greywhind | tansell: well, the last structures[0] returns an IntegerStructure | 20:51 |
greywhind | so i need to get the integer value out of it | 20:51 |
greywhind | and the .pack and .unpack methods seem to be what i'm supposed to use for that? or am I wrong? | 20:52 |
tansell | greywhind, I'm not sure what you are doing | 20:53 |
tansell | greywhind, the structures stuff is only used for the serialise/unserialise | 20:53 |
*** jmtan has quit IRC | 20:53 | |
greywhind | tansell: hmm... well, let me show you more of the code | 20:56 |
tansell | that would be good | 20:56 |
greywhind | http://pastebin.com/d3dfdc412 | 20:57 |
tpb | Title: pastebin - collaborative debugging tool (at pastebin.com) | 20:57 |
greywhind | Fleet of ships | 20:59 |
greywhind | (-1, (0, 0, 0)) | 20:59 |
greywhind | ^ the result | 20:59 |
greywhind | if i remove the lines that end in .unpack, the result is the same | 21:01 |
tansell | so why are you writing this code? | 21:02 |
tansell | where is this code? | 21:02 |
greywhind | well, in Path.py, there's a function made to find the path an object will take | 21:02 |
greywhind | it uses obj.pos, which no longer exists for DynamicObjects | 21:02 |
greywhind | so i'm replacing obj.pos with finding the position through obj.properties | 21:03 |
mithro | you best be to write a couple of "helper" functions | 21:08 |
greywhind | mithro: probably a good idea. | 21:09 |
greywhind | even so, am I going about the finding of the position correctly? if so, why do i always get 0? | 21:09 |
mithro | no your not | 21:09 |
mithro | seeing as there is no documentation that is pretty understandable | 21:10 |
mithro | you don't need to use pack/unpack yourself | 21:13 |
greywhind | mithro: how would you recommend finding the position, then? or perhaps you could point me to some sort of description of how the DynamicObjects contain data? | 21:13 |
mithro | this is the part of the code you have missed | 21:14 |
mithro | for property, arg in zip(self.properties, args): | 21:14 |
mithro | self.length += property.length(arg) | 21:14 |
mithro | setattr(self, property.name, arg) | 21:14 |
mithro | so you need to do | 21:14 |
mithro | http://pastebin.com/d6bc7bec8 | 21:16 |
tpb | Title: pastebin - collaborative debugging tool (at pastebin.com) | 21:16 |
mithro | that is getting closer to what you need | 21:16 |
mithro | actually | 21:16 |
mithro | I recommend you do a | 21:16 |
mithro | pprint.pprint(obj.__dict__) | 21:16 |
greywhind | ok. thanks. | 21:16 |
mithro | cherez: btw - commit early and commit often | 21:18 |
mithro | cherez: I expect to see a couple of commits each day | 21:18 |
greywhind | mithro: if i were to write a helper method for getting the position(s) of an object, what file do you think it would fit in?> | 21:21 |
*** mithro has quit IRC | 21:38 | |
*** mithro has joined #tp | 21:38 | |
greywhind | in DynamicObject itself, perhaps? | 21:39 |
tansell | dunno | 21:40 |
tansell | unless it's a "get args of type X" it probably belongs in the client | 21:40 |
greywhind | ok | 21:41 |
tansell | the libtpproto2-py stuff should make this a lot easier | 21:43 |
tansell | (and safer) | 21:44 |
cherez | tansell: Care to enlighten me on netlib's __init__.py does? | 21:56 |
cherez | It tries to import a module that doesn't exist. | 21:57 |
mithro | cherez: probably because i never finished that module | 22:04 |
mithro | what does commenting it out do? | 22:04 |
mithro | the reason it imports everything is to make it quicker to access stuff | 22:04 |
mithro | IT | 22:05 |
mithro | s/IT/IE | 22:05 |
mithro | from tp.netlib import objects | 22:05 |
mithro | rather then | 22:05 |
cherez | It works fine commented out, that's what I did to start with. | 22:05 |
mithro | from tp.netlib.objects.OrderDesc import OrderDesc | 22:05 |
mithro | anyway it's lunch for me | 22:06 |
cherez | And late dinner for me. | 22:06 |
*** jmtan has joined #tp | 22:20 | |
Landon | ahoy jmtan | 22:22 |
jmtan | hey Landon | 22:26 |
jmtan | how is your project going? | 22:28 |
Landon | haven't done much other than research today, I've been reading up on quaternions and such (that is the method to orient models in ogre, right?) | 22:29 |
jmtan | yup | 22:33 |
jmtan | did you get the battleviewer or client running on your netbook? | 22:33 |
Landon | neither, ogre has segfaulting problems | 22:33 |
Landon | gets as far as the intro clip on the client | 22:34 |
jmtan | that's strange, did you try running the python-ogre demos? | 22:37 |
Landon | yeah, they were all segfaulting too | 22:38 |
jmtan | you were able to get the client running on your main pc? | 22:39 |
Landon | yeah | 22:40 |
Landon | hit a snag, but it turns out I just had to install avbin and all was well | 22:40 |
jmtan | that's good, i guess you'll have to do your development on that then... recompiling python-ogre is kinda unfeasible on a netbook | 22:44 |
Landon | \ | 22:46 |
Landon | heh yeah | 22:46 |
jmtan | btw, how did you get python-ogre on your netbook? | 22:47 |
Landon | mithro had some jaunty packages scattered throughout launchpad | 22:49 |
jmtan | are those the ones your desktop is using too? | 22:50 |
Landon | no, my desktop is using the version it compiled | 22:52 |
jmtan | brb | 22:54 |
*** jmtan has quit IRC | 22:54 | |
*** jmtan has joined #tp | 23:00 | |
jmtan | Landon: if you're stuck with the netbook for now and have a connection to your desktop you could try copying the compiled version over | 23:01 |
Landon | hm thats worth a try | 23:05 |
Landon | I'll have to wait until it finishes backing up though | 23:14 |
tansell | cherez, so where are you at? | 23:17 |
cherez | Trying to figure out why I get different results from py.test than from running the test directly. | 23:17 |
*** greywhind_ has joined #tp | 23:21 | |
*** greywhind has quit IRC | 23:21 | |
tansell | maybe I can help - tell me what is happening | 23:22 |
cherez | xstruct didn't behave correctly with characters. | 23:23 |
tansell | I'm sure that it does | 23:23 |
cherez | If the input wasn't a list, string, or time object, it assumed it to be a numeric type. | 23:24 |
cherez | But 'c' takes a string of length 1. | 23:24 |
tansell | you'll have to be a bit more specific | 23:25 |
tansell | as 4c definitely works | 23:25 |
greywhind_ | tansell: do you think a function to find the positions of an object would fit in utils.py? | 23:26 |
tansell | otherwise libtpproto-py would never have worked | 23:26 |
tansell | greywhind_, which utils? | 23:26 |
greywhind_ | tansell: the one in tpclient-pywx | 23:26 |
tansell | extra/utils.py ? | 23:26 |
cherez | tansell: '4c' runs struct.pack with 'c' 4 times without checking the type. | 23:27 |
greywhind_ | tansell: i don't see an extra/utils.py, but there's one in the top level directory | 23:27 |
cherez | 'c' was assumed to be a numeric type, and type checked as such. | 23:27 |
cherez | So I added a special case for it. | 23:28 |
mithro | greywhind_: nope that would be the wrong place | 23:28 |
mithro | c is handled a similar way to a string | 23:28 |
greywhind_ | tansell: ok | 23:28 |
mithro | greywhind_: that files is adventually going away | 23:28 |
greywhind_ | mithro: or maybe it would be better to have a function that can get any attribute by name, but what if there are multiple attributes with the same name? | 23:29 |
tansell | greywhind_, libtpproto-py doesn't handled that | 23:29 |
tansell | libtpproto2-py will | 23:29 |
cherez | tansell: Well, the code in the repository makes no case for c. | 23:30 |
mithro | cherez: we are talking xstruct.py right? | 23:30 |
cherez | Right. | 23:31 |
cherez | In the big if clause that starts at line 99. | 23:31 |
greywhind_ | tansell: well, i'm not really sure what would be the better way to go here. it would be nice to have a function i can call to just try to get the position of any object, but i might end up needing a lot of similar functions for other attributes... | 23:31 |
mithro | greywhind_: you can put the funciton in ./extra/ | 23:32 |
mithro | it might be a candidate for libtpclient-py | 23:32 |
greywhind_ | mithro: should i just make a new file for it, for now? | 23:33 |
mithro | possibly | 23:33 |
greywhind_ | something like... objectutils.py? | 23:33 |
mithro | cherez: oh - I see whats up | 23:34 |
mithro | cherez: c == s | 23:34 |
mithro | the documentation is wrong is appears | 23:35 |
mithro | s/is/it | 23:36 |
cherez | I was operating with the assumption that xstruct would support any format string that struct supports. | 23:37 |
cherez | Should I change the documentation? | 23:37 |
mithro | cherez: it probably should :) | 23:38 |
mithro | cherez: so you have actually found a bug | 23:39 |
mithro | please also back-port a fix to libtpproto-py too | 23:39 |
cherez | The very first unit test I wrote, in fact. | 23:39 |
cherez | Alright, I guess I'll make this my first commit... and figure out how to commit. | 23:39 |
mithro | cherez: great | 23:40 |
cherez | We want an 's' too that's identical to 'c'? | 23:41 |
mithro | I think so | 23:45 |
mithro | have a look at Header.py in libtpproto-py | 23:45 |
mithro | xstruct.py is not nearly as important in libtpproto2-py | 23:45 |
mithro | (because of the structure stuff) | 23:45 |
tansell | btw - feel free to back port the tests as well if you want | 23:46 |
*** bddebian has quit IRC | 23:47 | |
cherez | I'm getting lookup errors from git? | 23:54 |
tansell | lookup errors? | 23:56 |
tansell | cherez, just a hint - if you post actual errors it'll be easier for me to figure out your problem :) | 23:56 |
*** peres has left #tp | 23:56 | |
cherez | $ git push | 23:57 |
cherez | fatal: The remote end hung up unexpectedly | 23:57 |
tansell | cherez, that means one of two things | 23:58 |
tansell | either you are trying to push to the git:// or http:// server rather then git+ssh:// | 23:58 |
tansell | or your ssh-keys are not working | 23:58 |
Generated by irclog2html.py 2.17.2 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!