Friday, 2008-08-15

*** tpb has joined #tp00:00
*** ChanServ sets mode: +o tpb00:00
*** mithro has quit IRC00:09
*** mithro has joined #tp00:09
mithrogreywhind: any luck?00:15
mithroJLafont: is there a guest user support for DroneSec?00:21
* llnz_work wanders off00:39
llnz_worklater all00:39
*** llnz_work has quit IRC00:39
*** mithro has quit IRC01:31
*** mithro has joined #tp01:41
greywhindmithro: yeah, it runs now02:02
greywhindfirst time i tried to update it took forever02:02
greywhindit didn't connect to the server properly though02:03
greywhindanyway, i'll work on it tomorrow02:03
mithrookay cool02:45
*** mithro has quit IRC05:35
*** JLafont has quit IRC05:42
shenkimithro, where are you07:09
*** Iwanowitch has joined #tp07:19
*** mithro has joined #tp07:38
mithroshenki: i'm at home now07:39
shenkimithro: hello07:43
shenkii'm play with ogre07:43
shenkigdb isn't giving me symbols for libc or the dri driver :/07:43
shenkii've installed debug sym packages, and it's still saying no symbol info avalaible07:44
mithrodoes a file exist in /usr/lib/debug/usr/lib which matches the name of each one?07:45
mithroand does it actually have symbols07:47
shenkib$ file /usr/lib/debug/lib/libc-2.8.90.so07:47
shenki/usr/lib/debug/lib/libc-2.8.90.so: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), statically linked (uses shared libs), for GNU/Linux 2.6.8, not stripped07:47
shenki/usr/lib/debug/usr/lib/xorg/modules/drivers$ file intel_drv.so07:47
shenkiintel_drv.so: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, not stripped07:47
shenkiyep07:48
shenkipython: shader/slang/slang_codegen.c:2365: _slang_gen_swizzle: Assertion `child' failed.07:49
mithroand do they match the names of the libraries being loaded?07:49
shenkiProgram received signal SIGABRT, Aborted.07:49
shenki[Switching to Thread 0x7f27375d36e0 (LWP 11077)]07:49
shenki0x00007f27367f2095 in raise () from /lib/libc.so.607:49
shenki(gdb) bt full07:49
shenki#0  0x00007f27367f2095 in raise () from /lib/libc.so.607:49
shenkiNo symbol table info available.07:49
shenki#1  0x00007f27367f3c03 in abort () from /lib/libc.so.607:49
shenkiNo symbol table info available.07:49
shenki#2  0x00007f27367eae19 in __assert_fail () from /lib/libc.so.607:49
shenkiNo symbol table info available.07:49
shenki#3  0x00007f272af3bbc1 in ?? () from /usr/lib/dri/i965_dri.so07:49
shenkiNo symbol table info available.07:49
mithro/lib/libc.so.6 != /usr/lib/debug/lib/libc-2.8.90.so07:49
shenki#4  0x00007f272af3f05e in ?? () from /usr/lib/dri/i965_dri.so07:49
mithrointel_drv.so  != /usr/lib/dri/i965_dri.so07:50
shenkimmm07:50
shenkiohh, i didn't notice the intel/965 diff till then. i was doing this on the bus :/07:50
mithroequals FAIL!07:50
shenkiso symlinking is the way to go?07:50
shenkiubuntu equals fail, if they provide debug symbols that don't hook up properly07:50
mithrono07:51
shenkino? why provide packages with the symbols if it's not going to work with gdb?07:51
mithroyou want libc6-dbg07:53
* shenki switches all the dbgsym to dbg07:56
shenkiThe following NEW packages will be installed:07:56
shenkiThe following NEW packages will be installed:  libgl1-mesa-dri-dbg07:56
shenki0 upgraded, 1 newly installed, 1 to remove and 0 not upgraded.07:56
shenkiNeed to get 8104kB of archives.07:56
shenkiAfter this operation, 199MB of additional disk space will be used.07:56
shenkihuge!07:56
mithrodebug symbols are huge, that is why you strip them07:56
mithrois they where small everyone would just always ship them! :P07:57
shenki:)07:57
mithroHTW did it get so late07:57
shenkiHTW?07:57
mithrooh that should be HTF07:57
mithrowhat are you trying to debug?07:58
mithropython-ogre still?07:58
shenkimmm07:58
mithrodbg is the "non-automatic" way of getting debug symbols07:58
mithrodbgsym is the ubuntu "hacky" way07:58
shenkik07:59
shenkiok, still fail07:59
mithrofor people who are too lazy to produce dbgsym07:59
shenki$ ls -la libc*08:00
shenki-rwxr-xr-x 1 root root 9012631 2008-06-21 07:45 libc-2.8.90.so08:00
shenkilrwxrwxrwx 1 root root      14 2008-08-15 21:24 libc.so.6 -> libc-2.8.90.so08:00
shenki#0  0x00007fd4fbe70095 in raise () from /lib/libc.so.608:00
shenkiNo symbol table info available.08:00
shenki#1  0x00007fd4fbe71c03 in abort () from /lib/libc.so.608:00
shenkiNo symbol table info available.08:00
shenki#2  0x00007fd4fbe68e19 in __assert_fail () from08:00
shenki/usr/lib/debug$ file libc-2.8.90.so08:00
shenkilibc-2.8.90.so: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), for GNU/Linux 2.6.8, dynamically linked (uses shared libs), not stripped08:00
mithrohrm....08:01
mithroI have NFI why that is not working08:02
shenkimithro: google search should show me the footy scores when i search for teams like it does for the olympics08:02
shenki</aside>08:02
shenkiyeah, i've stopped caring for the moment too08:02
mithrotry forcing it with a08:02
mithrogdb -s <file to load for symbols>08:02
shenkistill fail08:04
*** mithro has quit IRC08:37
*** mithro has joined #tp08:40
*** peres has left #tp11:47
*** mithro has quit IRC12:25
*** mithro has joined #tp12:26
*** JLafont has joined #tp12:37
*** vi1985 has joined #tp12:46
vi1985Iwanowitch: here12:46
vi1985?12:46
CIA-32victor.ivri gencon-rfts-ai * rc95a3a2a8483 /gencon/ (7 files in 6 dirs): Finished implementing orders; began implementing ai.12:56
Iwanowitchvi1985: Yes, but probably not for too long.13:05
*** CIA-32 has quit IRC13:15
*** Erroneous has joined #tp13:16
vi1985Iwanowitch: just wondering about orders; seems like i've done them correctly, as I'm getting "ok" frames for both move and reinforce, but the server crashes every time it processes them13:26
vi1985Iwanowitch: did you encounter anything like this?13:27
Iwanowitchvi1985: No, it seems to work fine here.13:46
Iwanowitchvi1985: And wrong parameters just throw a client-side exception for me.13:46
vi1985Iwanowitch: interesting.. I am getting an "ok" from server, but for some reason it violates an assertion while being processed internally.13:48
vi1985Iwanowitch: by the way, however I try it, I'm still getting a "fail" when I colonize. I can try and tinker with it a bit more13:49
vi1985Iwanowitch: ok, I'm doing colonize exactly the same way as reinforce, and when attempting to colonize a neutral planet i get "fail".13:51
Iwanowitchvi1985: jphr also hasn't responded on the colonization thread the last few days. I ope he turns up.13:56
Iwanowitch*hope13:56
vi1985Iwanowitch: me too. What's even more frustrating for me is that i don't know what's the source of my error.13:57
*** CIA-32 has joined #tp13:58
vi1985Iwanowitch: i'll take a look at how you do it.13:58
vi1985Iwanowitch: perhaps there's a difference13:58
Iwanowitchvi1985: http://git.thousandparsec.net/gitweb/gitweb.cgi?p=daneel-ai.git;a=blob;f=mod-risk.py;h=f82970ee28a2857d8fc98d1137f2c2da9844a68c;hb=HEAD in the endTurn function is where I send my orders to the server.14:00
tpb<http://ln-s.net/2$4r> (at git.thousandparsec.net)14:00
IwanowitchBut I'm not too sure you can use it like that.14:00
IwanowitchAnyway, happy hunting.14:00
vi1985Iwanowitch: hm, you do colonize a bit differently from me. i'll try your way, and tell you how it goes14:03
vi1985Iwanowitch: no, i can't use it the way it is, but the two protocol libraries should be equivalent14:04
Iwanowitchvi1985: Well, colonize doesn't work, whatever I try. Reinforce and move do work though.14:05
vi1985Iwanowitch: try colonizing like so: args = [0, 0, -1, order.subtype, 0, [], ([], [(objid, amount)])]14:11
vi1985Iwanowitch: instead of having args = [0, objid, -1, order.subtype, 0, [], ([], [(amount, 0)])]14:11
Iwanowitchvi1985: "IOError: Unable to insert the order..."14:23
IwanowitchWhich is al the info I get.14:23
vi1985Iwanowitch: testing it the way you have... gimme a min14:26
vi1985*the way you have it set up14:26
*** jphr has joined #tp14:27
jphrvi1985: ping?14:27
vi1985jphr: pong14:27
jphrso it sounds like after I went on holidays the Risk ruleset exploded?14:27
vi1985jphr: hehe, don't think so; Iwanowitch says his move and reinforce works.14:28
jphrphew, I was really hoping it haden't, but it sounds like you are having an assertation fail?14:28
vi1985jphr: Yes. Would be great to know exactly what could have coused it. Seems i've been able to stop the server from crashing for some reason, now testing how!14:29
jphrwell what seems to be happening from the assertation fail is the target planet of a move order isn't a planet14:30
IwanowitchI'm sorry guys, I've got to go. I'll be back in 6 hours or so, if you have questions you can send them by mail if you want to be sure I don't miss them.14:30
jphrwhat happens is I Planet* target = dynamic_cast<Planet*>(om->getObject(planetID)->getObjectBehaviour()); Then I assert that the target exists (in case the planetID object wasn't a planet)14:30
vi1985jphr: oh, ok. that's strange. lemme check!14:31
vi1985thx :)14:31
jphrnp, i'14:31
jphr*i'm looking into any remaining bugs this afternoon and weekend before the 18th14:31
vi1985jphr: seems to have fixed it. give me a few more minutes to test it now..14:33
jphrok (it doesn't seem like I did anything though :P)14:33
jphrI gotta run for 30 minutes of errands14:34
vi1985sure, it was just an expression :)14:34
vi1985jphr: you actually did help me! at one place i've been passing the id of the star system instead of the planet..14:35
vi1985ok, problem solved!14:38
vi1985Iwanowitch: here's the fail frame I get from sending colonize: {Fail; code: NoSuchThing; result: No such Order Queue; super:{Response}}14:40
vi1985jphr: still here?14:40
*** mithro has quit IRC14:46
*** mithro has joined #tp14:47
CIA-32victor.ivri gencon-rfts-ai * rf3325d374a15 /gencon/ (3 files in 3 dirs): Fixed bugs in orders.14:49
jphrback15:03
vi1985jphr: heya :) could you tell me how should a "colonize" order look like? Seems like no matter what I do I get a Fail frame: {Fail; code: NoSuchThing; result: No such Order Queue; super:{Response}}15:10
jphrvi1985: like what a colonize order's parameters are?15:10
vi1985jphr: yep15:11
jphrwell the only parameter in my header is the ListParamter15:11
vi1985jphr: here's what I have: id = 0, param type = 6 (the list), order id = planet to be colonized, list = [(troops, 0)]15:12
jphrwithin the list parameter I BELIEVE that the order takes a uint32_t planet id and a uint32_t number (in list format because it can have multiples of course)15:13
vi1985tried that too.15:13
jphrI'm not trying to skirt responsibility but I'm terribly inept as to how orders are actually issued in client. As for issuing list parameter orders I am clueless :P (I just know how to take them and do stuff to them)15:14
vi1985oh, disregard the id = 0; that's the order description :)15:14
vi1985ok, so you're saying that the first (and only!) tuple in the list should contain planet_id and troops, in that order.15:15
vi1985let me try again15:15
vi1985jphr: :-/ no success15:17
vi1985the annoying thing is, that it's so similar to the move order, which works!15:17
jphrdon't take my word on that :P15:17
jphroh thats strange15:18
jphrlet me look at my generateListOptions (as they are the only part that is different in populating that list)15:18
vi1985well, you said that the server looks for a list (param type = 6), in which the first tuple is planet id and troops.15:18
vi1985sure15:18
vi1985ping me here~15:18
jphrlike this?15:19
jphrvi1985: ping15:19
vi1985jphr: roger out :)15:19
jphrhmm this is really baffling me as well15:19
vi1985which file is it in? i'd also like to take a look!15:20
vi1985(don't know c++ well, but most of it is readable to me)15:20
vi1985here's my java code...15:21
jphrmove.cpp and colonize.cpp hold the majority of the code for those orders15:21
jphrthe functions generateListOptions create... list options15:21
vi1985OrderInsert order = new OrderInsert(); order.setOtype(OrderTypes.COLONIZE);  <...>  //setting the parameters: OrderParams.OrderParamList list = new OrderParams.OrderParamList();  //setting destination and troops: SelectionType st = new SelectionType(); st.setId(star.PLANET_ID); st.setNumber(troops); list.getSelection().add(st);                        <...>15:22
vi1985oooh, that looks nasty15:22
vi1985disregard :)15:22
* jphr wonders if everyone codes on one line ;)15:24
vi1985oh yes, it's all the rage15:24
vi1985(did i say that?)15:25
vi1985jphr: ah, ok, you seem to look for the "resources" of the order. Do you do it throughout, or just in colonize?15:25
vi1985jphr: because there's a special field for resources, and it's not in the list tuple15:26
jphrin my doOrder or in the generate?15:26
vi1985one sec15:26
vi1985http://git.thousandparsec.net/gitweb/gitweb.cgi?p=tpserver-cpp.git;a=blob;f=modules/games/risk/colonize.cpp;h=63a0fa1b5ebdaf7b70c24d8369bb66989a344f9f;hb=risk15:27
tpb<http://ln-s.net/2$67> (at git.thousandparsec.net)15:27
vi1985line 8315:27
jphryeah I do the same sort of thing in move as well, it just sets an upper limit for how many units you can commit to an order15:27
vi1985ah, ok.15:27
vi1985hm, is there any difference at all between processing colonize and move, aside from move having an additional planet id, set as the order id (the "from" planet)?15:29
vi1985because both have a list parameter, and i'm wondering if the values there should be the same: [(planet_id, troops)]15:29
jphrwell colonize does look at every other colonize order in the universe as well, to check for conflicting orders to "auction" between15:29
jphrbut other than that I believe both orders TAKE the same thing15:30
jphronly difference being what planets appear in each "list"15:30
vi1985jphr: what do you mean by "each list"?15:31
vi1985jphr:  both colonize and move should have the "to" planet id as the first param of the tuple, right?15:31
jphryes, sorry.15:32
vi1985*the tuple being the first and only list element15:32
vi1985no worries :)15:32
jphrWhat I meant is the "to" planets for the move order are adjacent planets, and the "to" orders for colonize order are open planets15:32
vi1985oh, risht :)15:32
vi1985*right15:32
vi1985don't know. I'll let it go for a while, perhaps tomorrow this will resolve itself (either on my, or your side :) )15:33
jphrlets hope, iwan's problem kinda resolved itself after a reinstall15:34
vi1985from the conversation we had earlier today, he said it's still there15:35
jphrsay wah, dang it15:35
vi1985dang it indeed :)15:36
* vi1985 is away from chat. Ping him if anything comes up!15:37
CIA-32jphr tpserver-cpp-risk * r2104efd4cd71 /modules/games/risk/ (riskturn.cpp riskturn.h): Midway throught implementing constellation ownership bonuses16:06
CIA-32jphr tpserver-cpp-risk * r485a640f16a1 /modules/games/risk/ (bugs.txt mapimport.cpp riskturn.cpp testing-risk.conf): Bonus reinforcements for constellations now awarded. Now yet integrated into message total, but they're there16:06
CIA-32jphr tpserver-cpp-risk * r93b4c5568a50 / (4 files in 2 dirs): Added various debug printouts while fixing a bug16:06
CIA-32victor.ivri gencon-rfts-ai * r299ab25325c3 /gencon/ (7 files in 4 dirs): Added an 'advanced map' to assist AI. Minor changes to game-world representation.16:54
CIA-32victor.ivri gencon-rfts-ai * r2c66538f4ea4 /gencon/robolib/RISK/ (ActionMethods.java AdvancedMap.java): Improved advenced map; started adding control elements to ai.17:16
CIA-32victor.ivri gencon-rfts-ai * r6dce243cb552 /gencon/robolib/RISK/AdvancedMap.java: Fixed minor logic bug in advanced map.17:25
*** jphr has quit IRC17:50
*** zzorn has quit IRC18:02
*** mithro has quit IRC19:01
*** mithro has joined #tp19:14
IwanowitchAnd back.19:17
IwanowitchOh yay. Now tpserver-cpp doesn't even build anymore.19:22
Erroneousthree cheers for breaking the build19:28
mithroIwanowitch: why not?19:29
Iwanowitchriskturn.h:42: error: extra qualification ‘RiskRuleset::RiskTurn::’ on member ‘getPlayerAndUnits’19:30
mithropoke the list?19:32
IwanowitchOkay well the fix is actually easy. Just remove the RiskTurn:: part. Will post a patch.19:37
Iwanowitch(Or try to)19:37
mithroyou can also go back a patch or two19:42
IwanowitchIt already works for me, no problem.19:44
CIA-32verhoevenv daneel-ai * r21d759e5a001 / (daneel-ai rulesystem.py): Add time to the logging output19:55
CIA-32verhoevenv daneel-ai * r34683e7deb27 /rulesystem.py: Added clearer error message19:55
*** peres has joined #tp20:57
CIA-32jphr tpserver-cpp-risk * r68b288a56ecf /modules/games/risk/riskturn.h: Patched Risk with patch brought forth by vi198521:32
*** zzorn has joined #tp21:43
vi1985Iwanowitch: lol, we all look the same for jphr :)) ("Patched Risk with patch brought forth by vi1985")21:45
*** Erroneous has quit IRC21:55
IwanowitchOh well. :)22:18
*** Iwanowitch has quit IRC22:20
*** Guest93478 has quit IRC23:24
CIA-32victor.ivri gencon-rfts-ai * r6411ff7c2766 /gencon/robolib/RISK/AdvancedMap.java: Beefed up advanced map: improved 'threat' evaluation, and implemented a merge-sort of collection of stars, based on their threats.23:41
CIA-32victor.ivri gencon-rfts-ai * r8f6765269193 /gencon/robolib/RISK/AdvancedMap.java: Fixed array index bug.23:44
*** vi1985 has quit IRC23:46

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