Thursday, 2009-06-18

*** tpb has joined #tp00:00
*** ChanServ sets mode: +o tpb00:00
Greywhindtansell: ok, post done: http://greywhind.wordpress.com/2009/06/17/gsoc-weekly-update-4/00:18
tpb<http://ln-s.net/3LEs> (at greywhind.wordpress.com)00:18
llnzbbl00:32
*** llnz has quit IRC00:32
tansell-laptopokay00:32
tansell-laptopso age parameters are going to be trickey00:32
tansell-laptopas nothing supports them yet00:33
tansell-laptopand it'll need support in the starmap too00:35
tansell-laptopGreywhind, so how complete do you think the client is now?00:39
tansell-laptopGreywhind, can you play a game of minisec or risk through to the end starting from singleplayer?00:40
Greywhindtansell-laptop: i think minisec could be played through00:40
Greywhindtansell-laptop: i don't know for sure about risk00:40
tansell-laptopGreywhind, best way is to give it a go :)00:40
tansell-laptopso I would recommend spending some time playing through the games and fixing bugs00:43
Greywhindok00:47
tansell-laptopso you think by the end of next week you'll have the info panel done?00:49
Greywhindtansell-laptop: i think i can do it00:51
tansell-laptopand after that the only goal left is the age stuff?00:51
tansell-laptopdidn't we skip something to go onto this first?00:51
Greywhindtansell-laptop: the info panel was what we skipped00:52
Greywhindtansell-laptop: the only things left after aging will be libtpproto-py or libtpclient-py changes, that i'm not sure have been implemented yet or now00:52
Greywhind*not00:52
Greywhindbut you said that would probably be someone else's job, mostly?00:52
tansell-laptopwhat where the changes you where proposing to libtpproto/libtpclient?00:53
Greywhindtansell-laptop: see my original proposal. i'll lin kit00:59
tansell-laptopthanks01:00
Greywhindhttp://greywhind.wordpress.com/2009/05/22/detailed-proposal/01:01
tpb<http://ln-s.net/3Gbd> (at greywhind.wordpress.com)01:01
tansell-laptopahh filter support01:06
tansell-laptopI think it makes sense for cherez to do that in libtpclient2-py01:06
Greywhindright, that's what you said before01:06
Greywhindso that just leaves aged properties, i believe01:06
tansell-laptopsame with # Frame version checking, if necessary. (libtpproto-py, or libtpclient-py?)01:06
tansell-laptopoh - so I don't think we have really solved the media problem properly01:07
Greywhindyeah, i think revisiting that a bit could help01:07
tansell-laptopwe need a way to view the current downloads cancel downloads and etc01:07
Greywhindso i'll do that as one of those "go back and polish" things01:07
tansell-laptopwe also have the order parameter types that are not implimented01:08
Greywhindright01:08
tansell-laptopactually, it would probably be a good time to go back and review everything you have done01:08
Greywhindyeah01:09
tansell-laptopremeber how we where discussing putting the picture as part of the starmap?01:10
tansell-laptopIE it pops up when you select/mouse over an object01:11
Greywhindyeah01:12
tansell-laptopI think that would be a good thing to do01:13
tansell-laptopI think there are a bunch of general improvements we could work01:15
tansell-laptop(IE Better help issue)01:20
Greywhindtansell-laptop: ok, i'll note that down as well01:21
*** llnz has joined #tp01:22
tansell-laptopGreywhind, so lets say by next week you'll have a "my 1/3 of GSoC review" type report01:34
Greywhindtansell-laptop: ok01:34
tansell-laptopand we can put down some goals for the next 1/301:34
*** llnz2 has joined #tp02:54
*** llnz has quit IRC03:05
*** llnz2 is now known as llnz03:05
*** nash has quit IRC03:07
*** greenlion has joined #tp03:09
*** Greywhind has quit IRC04:02
*** greenlion has quit IRC04:45
CIA-21joelboh tpclient-pyweb * r9a6fa05adaad /frontend/index.html: Frontend: End of turn intitial state is empty.05:14
*** peres has joined #tp06:12
*** mithro has quit IRC06:44
*** tuna-fish has joined #tp07:53
*** krytzz has quit IRC08:21
*** krytzz has joined #tp08:21
* llnz wanders off08:32
llnzlater all08:32
*** llnz has quit IRC08:32
*** greenlion has joined #tp09:33
*** ezod has quit IRC09:46
*** ezod has joined #tp09:47
*** alanp has quit IRC09:59
Landontansell: well right now I'm working on individual events, but I don't think round progression is to far behind it once I get those done (just saw your message)10:10
*** tuna-fish has quit IRC10:12
*** bddebian has joined #tp10:14
bddebianHowdy10:16
*** peres has quit IRC11:47
*** Greywhind has joined #tp13:16
*** alanp has joined #tp15:43
*** llnz has joined #tp16:00
llnzmorning all16:50
ezodhey llnz16:52
llnzhi ezod16:52
alanphey16:55
totehello :)16:56
llnzhi alanp and tote17:07
llnz:-)17:07
ezodllnz: tpserver-cpp question17:23
llnzshoot17:24
ezodsuppose something in Ruleset::createGame() fails17:24
ezodand alanp wants that to make Game::load() fail, i guess17:24
alanpnod17:24
ezodcurrently createGame() is void return17:24
ezodand there's no conditional in Game::load()17:24
llnzok17:25
* alanp opened bug on google17:25
llnzi understand what you are getting at17:25
llnzthanks alanp17:25
alanpwhen it can't read the xml, it should stop17:26
alanpand in the end i think it is a good idea if we move all props/comps to xml in all rulesets17:26
llnzI suspect an exception should be thrown17:26
alanpdo we do exceptions?17:26
llnznot yet17:26
alanpah17:26
llnzwell... there are a few places where they are used17:27
*** Erroneous has joined #tp17:33
CIA-21alanp tpserver-cpp-mtsec * rfaac7c603b6d /modules/games/mtsec/mtsec.cpp: Fixed small bug with the way XML import was called.17:39
alanpno idea how that ever worked... :(17:40
* alanp shouldn't code so late17:41
*** bddebian has quit IRC17:45
*** greenlion has quit IRC19:00
tansellmorning20:12
Greywhindmorning20:19
Greywhindtansell: is there any way yet to compose and send a message to another player?20:20
tansellnope!20:22
Greywhindtansell: do you want me to hold off on putting a "send message" button in next to player references then?20:23
tansellyou could add the feature :)20:24
Greywhindseems like a rather large task20:25
alanptansell: how can i make the "design" dialogue in tpclient-pywx come up?20:34
tansellalanp, Windows -> Design20:35
alanphrmph20:35
tansellGreywhind, It shouldn't be more then a day or two worth of work20:36
Greywhindtansell: i'll keep it in mind for when i've run out of the other tasks i'm planning to do20:37
tansellokay20:37
alanptansell: how do i make it work? :P20:37
tansellwork?20:38
*** mithro has joined #tp20:39
alanpso that i can add components to a design20:39
tansellclick "new design"20:40
alanpright, and then edit20:41
alanpthen add?20:41
tansellyeah20:41
alanpdoesn't work20:41
tansellwhat doesn't work20:44
tansellneed more information then that20:44
tansellerror20:45
tansellscreenshots20:45
alanperr output, one sec20:45
alanphttp://pastebin.com/m9c4fc4f20:45
tpbTitle: pastebin - collaborative debugging tool (at pastebin.com)20:45
tansellalanp, so something references a property with id=0 which doesn't exist20:46
alanphmmm20:46
alanphttp://pastebin.com/m32c0b4b1 what's up with this one?20:49
tpbTitle: pastebin - collaborative debugging tool (at pastebin.com)20:49
alanpalso, i don't think anything is refernecing a property with id=020:51
alanpsame thing happens w/minisec on demo120:56
alanphttp://pastebin.com/m1869ac94 <-demo120:56
tpbTitle: pastebin - collaborative debugging tool (at pastebin.com)20:56
llnzalanp: the server executes the same scheme code, so it can't be wrong20:59
alanpwell the client does not like it apparently?20:59
llnzbut minisec does disallow creating new designs20:59
alanpah21:00
alanphow do you specifically disallow?21:00
llnzremove all the components from being "usable" for each player21:00
alanpah21:01
alanpyeah21:01
llnz*after* the standard designs are created21:01
alanpi'm not removing useable components :(21:01
llnzi think this happens well after the client trys to test the design though21:02
alanp?21:02
alanpi see all of the components, so they should be usable21:02
alanpi just can't add anything21:02
llnzthe client trys to calculate the properties, then sends the design to the server, which then calculates the properties (doesn't trust the client)21:03
alanpthe error is happening in the client-side parser, no?21:03
llnzat that point, the server dectects that the components are not usable and fails the design (in minisec)21:03
llnzappears so21:04
alanpi'll dummy down a hull component21:04
alanphmm, different error21:05
alanpThe value calculated for component 1 was 10000000021:06
llnzit almost looks like it dropped  quotes around "mega-units"21:06
alanpshouldn't that be for "property 1"?21:06
alanptp.client.pyscheme.error.SchemeError: Unknown expression type -- eval  mega-units21:07
llnzalanp: maybe property 1 for component 1?21:07
alanpheh21:07
alanpllnz: yes21:07
alanpbut i mean, it always says component X when it means property X (i think)21:07
llnzdouble quote chars missing21:07
llnzmaybe a problem in xml?21:07
llnzhumm... shouldn't affect demo121:08
alanp(lambda (design bits) (let ((n (apply + bits))) (cons n (string-append (number->string (/ n 1000000)) " mega-units")) )21:08
alanpthat's the tpcl Display for Speed21:08
alanpits in a CDATA[[]], so the quotes are escaped in the string21:08
alanpany idea?21:09
llnzi hope there is another ')' at the end of that lambda21:10
alanpthere is, it was line wrapped, sorry21:10
alanp<tpclDisplayFunction><![CDATA[(lambda (design bits) (let ((n (apply + bits))) (cons n (string-append (number->string (/ n 1000000)) " mega-units")) ) )]]></tpclDisplayFunction>21:10
llnzok21:10
alanpclient can't connect if you have the scheme wrong on startup, learned that painfully21:10
alanpthe best part is that you don't have to recompile on component/property changes :-)21:12
llnznice21:13
* alanp lost with this tpclient error21:13
llnzit would be cool if the ruleset development environment created the xml21:14
alanpwhat do you mean?21:14
* alanp intrigued21:14
tansellso there could be problems in the client, nobody uses the design stuff till now21:15
* alanp thinks so21:15
alanpmy python is nonexistant, i have been looking to learn but mid-gsoc is probably not the greatest time.  ezod said that he would help with pyclient stuff21:16
alanpi can ask him about it21:16
tansellalanp, you can also turn on debug stuff21:18
alanphm yes i could21:18
tanselland check what stuff you are getting in the packets21:18
alanpis it a command line switch?21:18
llnzalanp: tpruledev, it was a GSoC project from 200721:18
tansellalanp, no it's an option in the preferences21:19
alanpok, sorry21:19
alanpjust found a bug21:20
alanpwhen you save in preferences, the list gets doubled21:20
alanp(list of servers)21:20
alanpill open it on google code21:20
alanpactually, you don't even have to save21:21
alanpwhen you open it the list doubles21:21
CIA-21joelboh tpclient-pyweb * r0b3c5eebccf0 /frontend/index.html: Frontend: This document was successfully checked as XHTML 1.0 Strict!21:21
alanpno extra info in debug mode21:22
alanpwhich i think guarantees this to be client-end?21:23
tansellalanp, nope21:23
alanpah21:23
tansellso in debug mode21:24
tansellyou get the green/red printed values21:24
alanpright21:24
tansellof the packets that are sent/received21:24
tansellnow you want to remove your ~/.tp/cache*21:24
tanselland connect again21:24
tansellwatch as the packets fly past21:24
alanpok21:24
tansellcheck that the lambda is coming through correctly21:25
tansellie that the value it's getting is21:25
alanpwhat's the quickest way to format this properly?21:25
tansell(lambda (design bits) (let ((n (apply + bits))) (cons n (string-append (number->string (/ n 1000000)) " mega-units")) ) )21:25
tansellformat this properly?21:25
alanpReceived: \x28string\x2dappend \x28number\x2d\x3estring n\x29 \x22 hull\x22\x29\x29\x29\x29\x00\x00\x00\x1e\x28lambda \x28design\x29 \x28cons \x23t \x22\x22\x29\x2921:25
alanpquickest way to make that readable21:26
tansell\x28 is (21:26
tansell\x2d is )21:26
tansellopp21:26
tansell\x2d is -21:26
tansellthey are the ascii codes21:27
alanpsec21:27
* alanp nod21:27
tansellIn [1]: "\x28string\x2dappend \x28number\x2d\x3estring n\x29 \x22 hull\x22\x29\x29\x29\x29\x00\x00\x00\x1e\x28lambda \x28design\x29 \x28cons \x23t \x22\x22\x29\x29"21:27
tansellOut[1]: '(string-append (number->string n) " hull"))))\x00\x00\x00\x1e(lambda (design) (cons #t ""))'21:27
* alanp doing some replacements, sec21:27
tansellthe21:27
tansell\x00\x00\x00\x1e would be the string length in my guess21:28
llnzyes21:28
tansellalanp, python will do most of it for you21:29
alanp(lambda (design bits) (let ((n (apply \x2b bits))) (cons n (string-append (number-\x3estring (\x2f n 1000000)) \x22 mega-units\x22)) ) )21:29
alanp...looks good21:30
tansellso it looks like it's getting to the client okay21:30
alanpnod21:30
tansellalso looks like you haven't accidently used smart quotes or anything like that21:31
tansellllnz, so the server only calculates the values when the client sends the new design back to it right? this only occurs when the person clicks save21:31
llnztansell: yes, that's right21:31
tansellso the server may be unable to parse this code too - it never gets a chance however as the client fails first21:32
llnztansell: in minisec, the code is used to create the initial designs (scout, battleship, etc)21:33
alanpin mtsec the code is used in a design in code too21:33
tansellis this failing in minisec?21:33
alanpseems to fail in minisec too21:33
alanplet me double check21:34
alanpsame error in minisec actually21:34
alanpon the speed property, mega-units21:35
tansellalanp, got a full log?21:35
alanphow full?21:35
tansellas much as possible21:35
alanpi can script(1) it with debug output21:35
alanpsec21:36
tansellcherez, ping?21:37
chereztansell: Pong.21:37
tansellcherez, how are you going21:37
tansellI have not seen any CLs in a while21:37
*** Khezar has joined #tp21:37
cherezThe SAX parser is acting really weird about groups, which I'm trying to figure out.21:38
cherezAs far as I can tell the DOM parser works fine for everything but parameter sets.21:38
*** Greywhind has quit IRC21:38
alanpcrap i checked out the newest tpclient-pywx and i cannot run it21:39
cherezI'm still not understanding how parameter sets relate to packets....21:40
tansellwelp, tpserver-cpp segfaults on my computer21:42
alanpmy branch?21:42
alanpi didn't fix the relativity of the xml file yet in my branch21:43
alanpso if you're using quickstart-mtsec.conf, that's my fault21:43
tansellnope21:44
tansellmaster21:44
alanpminisec ruleset?21:44
tansellllnz, looks like the mzscheme plugin is borked21:45
* alanp using guile21:45
llnztansell: could be21:46
alanpmzscheme wouldnt link properly for me21:46
llnztansell: if you email the error for the mzscheme, i'll have another look at it21:50
tansellllnz, any idea how to get gdb to write out a coredump?21:50
llnznot sure with gdb, there is an ulimit command to allow the normal program to coredump though21:51
tansellhttp://code.google.com/p/thousandparsec/issues/detail?id=8321:51
tpb<http://ln-s.net/3LbP> (at code.google.com)21:51
llnzdamn, that's early21:52
llnzscheme_basic_env()21:52
tansellI'm rebuilding with guile21:54
*** alanp_ has joined #tp21:54
alanp_sorry, connection went bad had to switch providers21:55
alanp_did i miss anything?21:55
tansellalanp, we have logs, see the topic22:00
alanp_ah22:01
alanp_i think you need the ulimit command to dump the core22:03
tansellah gcore is the command22:06
*** Erroneous has quit IRC22:10
tansellalanp, what happens if you send it with single quotes rather then double quotes?22:12
alanp_let me try that, one minute22:13
alanp_actually, i can't22:14
*** alanp has quit IRC22:14
alanp_tpclient-pywx is broken for me now22:14
alanp_The following requirements where not met:22:14
alanp_     Client Library newer then 0.3.2 and older then 0.3.9922:14
alanp_     Client is development version, but Client Library (libtpclient-py) was not22:14
* alanp_ frustrated22:15
llnzalanp_: probably an issue with the submodules22:15
alanp_fresh clone22:15
tansellalanp_, you installed libtpclient-py didn't you?22:16
alanp_it's part of tpclient-pywx, no?22:17
alanp_submod22:17
alanp_git cmds fixed it22:17
tansellwhich commands?22:17
alanp_git submodule init22:18
tansellsubmodules should automatically be initted when you start up the client22:18
alanp_tpserver-cpp does not like the single quotes22:18
alanp_apparently, they weren't22:18
alanp_if i do a fresh clone, tpclient-pywx does not work22:18
tansellimport version22:18
tansellif hasattr(version, "version_git"):22:18
tansellfor module in modules:22:18
tansellif os.path.exists(module) and not os.path.exists(os.path.join(module, ".git")):22:18
tansellos.system("git submodule init")22:18
tansellos.system("git submodule update")22:18
alanp_2009-06-18 22:17:40 < Debug > Starting design eval22:18
alanp_ERROR: In procedure string-append:22:18
alanp_ERROR: Wrong type (expecting string): mega-units'22:18
tansellalanp_, i'm not sure why the parser doesn't like that line22:19
alanp_        <tpclDisplayFunction><![CDATA[(lambda (design bits) (let ((n (apply + bits))) (cons n (string-append (number->string (/ n 1000000)) ' mega-units')) ) )]]></tpclDisplayFunction>22:19
tansellalanp_, is git not in your path?22:19
alanp_it is...22:19
alanp_it executed some git commands the first time i ran it, but it would not start the client22:19
alanp_odd22:19
tanselllunch22:20
tansellbblr22:20
alanp_k22:20
*** alanp_ has quit IRC22:44
*** alanp_ has joined #tp22:45
*** bddebian has joined #tp22:49
tansellback now23:02
*** nash has joined #tp23:29
alanp_so what are we going to do about the design window problem?23:32
*** krytzz has quit IRC23:50
*** krytzz has joined #tp23:50
tansellwell I can't see why it isn't working23:52
* alanp_ either23:52

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