Sunday, 2009-06-14

*** tpb has joined #tp00:00
*** ChanServ sets mode: +o tpb00:00
*** llnz has joined #tp01:00
* llnz ponders01:09
cherez?01:15
tansell_laptopcherez, pong01:18
chereztansell_laptop: I'm trying to understand parser. I've got a rough understanding, but I'd like to hear how it works from you.01:19
tansell_laptopit basically builds the equivalent of the objects/ directory from an xml file01:20
cherezAlso, is there documentation for protocol.xml's structure?01:20
tansell_laptopthere is a dtd01:21
Greywhindtansell_laptop: http://codereview.mithis.com/300101:21
tpbTitle: Issue 3001: Fixed panelOrder to work with tp04 and with multiple order queues. - Code Review (at codereview.mithis.com)01:22
tansell_laptoplooking now01:22
llnzcherez: if you have questions about protocol.xml, let me know01:22
Greywhindtansell_laptop: i need to talk to you at some point about panelInfo, and what kinds of things you think i should make it do/look like01:22
Greywhindi've got it displaying nicely, but i'm thinking of trying to do some sort of tree view with collapsing sections, as well as some sort of linking to objects functionality01:23
tansell_laptopGreywhind, sounds good01:25
Greywhindi just need to figure out the best way to do such things01:26
Greywhindand what else, if anything, you want me to add01:26
tansell_laptopI won't really know until you start drawing it01:30
Greywhindwell, i would really like to do something similar to what's on the protocol4 page01:30
Greywhindright above "Fail frame"01:31
chereztansell_laptop: So what are the objects that parser constructs. Are they just packets?01:31
Greywhindbut i'm not sure if it's possible to have plain text be collapsible like that in Python01:31
tansell_laptopcheck out the stuff in objects directory in libtpproto-py01:31
tansell_laptopGreywhind, you won't be able to keep it as plan text01:31
Greywhindtansell_laptop: is there a way to do something like that example? or would i need to use basically a similar list structure to the Systems panel?01:32
cherezThat's what I'm looking at but... they aren't really well documented.01:33
tansell_laptopYou would need something like the order paneel01:33
tansell_laptopwhat don't you understand?01:34
cherezWhat these objects actually represent.01:37
cherezAre they a 1:1 mapping with protocol.xml's packets?01:37
tansell_laptopGreywhind, done01:38
Greywhindtansell_laptop: thanks01:38
Greywhinddamn, too much C++ :P01:38
tansell_laptopcherez, you should be able to figure that out yourself01:38
Greywhindwait, i thought the "print args" stuff was already in there when i started. i guess i was wrong.01:39
Greywhindmy mistake01:39
*** mithro has joined #tp01:46
tansell_laptopyou might want to look into pylint01:47
tansell_laptophttp://www.logilab.org/project/pylint01:47
tansell_laptopcherez, you should look into pylint/pychecker too01:48
cherezI'm (passingly) familiar with it.01:49
tansell_laptoppylint basically checks your code for style conformance01:50
CIA-46Greywhind tpclient-pywx-tp04 * rbfa4d4550278 /libtpproto-py: Updated libtpproto-py to use fix for Order unpacking.01:51
CIA-46Greywhind tpclient-pywx-tp04 * r3d547684276a /windows/main/ (overlays/SystemIcons.py overlays/Systems.py panelStarMap.py): Added media support to a new overlay for the starmap, the SystemIcons overlay.01:51
CIA-46Greywhind tpclient-pywx-tp04 * rd5535b764ae4 /libtpclient-py: Updated libtpclient-py to fix order queue loading.01:51
CIA-46Greywhind tpclient-pywx-tp04 * r3e97dfbbdf02 / (12 files in 4 dirs): Fixed panelOrder to work with multiple order queues and with tp04.01:51
CIA-46Greywhind libtpclient-py-tp04 * ra68e90616cb9 /tp/client/cache.py: Fixed error in order queue loading - was using order queue ID where object ID was needed.01:53
mithroGreywhind: you still about?02:15
alanphm, i should probably move Props to XML doc too, agreed?02:23
alanpshould it be one XML file named mtsec.xml with <components> and <props> or should it be two separate xml files?02:24
*** llnz2 has joined #tp02:26
*** llnz has quit IRC02:28
cherezmithro: Should I replace the protocol.xml with the TP04 one?02:34
mithrocherez: it should be the protocol.xml from tp04 already?02:35
cherez<protocol version="TP03">02:35
mithroactually the libtpproto2-py should support both versions02:35
alanpmithro: any opinion on the xml issue?02:35
mithrocherez: hrm02:36
mithroyou can get the documents from the documents repository02:36
*** llnz2_64 has joined #tp02:36
cherezWell, the one it has now has at least 1 error in it.02:36
*** llnz2 has quit IRC02:38
cherezIs there any specific location to get the protocol.xmls from?02:40
*** jnengland77 has joined #tp02:44
* alanp makes short blog post02:51
mithrocherez: the documents repository03:06
*** llnz2_64 is now known as llnz03:10
alanpalso, where should the XML file go?  Does it have to be relative path based on where tpserver-cpp is launched like RISK?  Or can I install it somewhere?03:11
*** jnengland77 has quit IRC03:19
*** greenlion has joined #tp03:49
Greywhindmithro: pong04:02
*** peres1 has joined #tp04:21
*** peres has quit IRC04:22
*** peres1 is now known as peres04:22
*** Greywhind has quit IRC04:46
*** reac has joined #tp05:17
*** jmtan has joined #tp05:18
*** tuna-fish has joined #tp05:27
*** verhoevenv has joined #tp05:38
*** peres has quit IRC05:39
*** greenlion has quit IRC05:50
*** greenlion has joined #tp05:50
*** tuna-fish has quit IRC05:56
*** reac has quit IRC07:43
CIA-46joelboh tpclient-pyweb * r13f147542dc3 / (3 files in 3 dirs): Added a countdown for end of turn and did some clean up.08:05
* llnz wanders off08:15
llnzlater all08:15
*** llnz has quit IRC08:15
*** peres has joined #tp09:46
Landoney jmtan09:59
Landonhey*09:59
Landonreading your email now, I was wondering about whether my structure would work well last night10:00
Landonwhat I basically had in mind was for every event a complete scene10:00
Landonbut rea10:00
Landonding up on ogre10:00
Landon(how did that \n get in there?)10:00
Landonit looks like I might be able to layer on changes between scenes?10:01
Landonhm, that sounded better before I said it10:01
Landonsince not everything would be an addition10:01
jmtanhi landon, i'm not sure what exactly you intend to put within each scene10:18
jmtanbut as a scene comes with some overhead (setup, storage, transitioning) my thought in the email was to have a single scene for your battle and animate the events within that10:18
Landonyeah, I thought a scene was much 'lighter' when I came up with the idea10:19
Landon(replying to your email)10:21
Landonbtw sorry I haven't been as on the ball this last week, I thinkI need to just get everything organized today so I can hermit the rest of the week :P10:25
Landonemail sent, your idea about having methods on each ship seems good, I'm just wondering how to go aboutthis in a way that can be reversed if needed10:33
Landonalso, you said you used the CEGUI layout editor to make the gui elements? how did you work with that10:34
LandonI'm trying to get it working, but it's looking for a whole mess of directories where you have files10:35
*** mhilmi has joined #tp10:44
*** mithro has quit IRC10:46
*** tansell_laptop has quit IRC11:02
*** peres has quit IRC11:42
CIA-46joelboh tpclient-pyweb * rd252f3692902 /frontend/ (index.html scripts/map.js): (log message trimmed)11:45
CIA-46Created a UI lock object and a map click handler.11:45
CIA-46The UI lock object enables you to lock the UI for the user, currently11:45
CIA-46its used by login event and reloading page event.11:45
CIA-46You can now click on the objects on the map and get information about11:45
CIA-46the objects. Only basic information is available and map click handler11:45
CIA-46is far from done.11:45
*** mithro-andy has joined #tp12:10
*** jmtan has quit IRC12:30
*** mithro-andy has quit IRC13:08
*** Greywhind has joined #tp13:22
*** peres has joined #tp13:34
CIA-46joelboh tpclient-pyweb * r0fc9da04f84e /backend/application.py: Added the shell for order handler in backend.14:04
CIA-46joelboh tpclient-pyweb * r6bca63cc2e5f / (4 files in 3 dirs): Added tp logo and background and various cosmetic changes.14:04
CIA-46joelboh tpclient-pyweb * re9c46b32dac7 /frontend/index.html: Changed the title (long overdue).14:08
totehttp://test.jbohman.se/ <- if anyone is interested here is the code up and running :)14:14
tpbTitle: Thousand Parsec Web Client (at test.jbohman.se)14:15
CIA-46joelboh tpclient-pyweb * rff289ca303be /frontend/index.html: Frontend: Two IE fixes.14:20
*** peres has quit IRC14:52
*** tuna-fish has joined #tp15:11
*** llnz has joined #tp16:07
llnzmorning all16:21
CIA-46joelboh tpclient-pyweb * rc26a8bf64ade /frontend/ (index.html scripts/map.js):16:49
CIA-46Reworked how the end of turn countdown system works. Still not perfect16:49
CIA-46but getting closer.16:49
totemorning :)16:55
llnzhi tote16:57
*** alanp has quit IRC16:59
totellnz: http://test.jbohman.se/ if you wanna take a look :)17:02
tpbTitle: Thousand Parsec Web Client (at test.jbohman.se)17:02
llnzcool, will look shortly17:05
llnznice17:10
totellnz: thanks, you tried login in on a server? :)17:17
llnzyes17:20
cherezllnz: Could you explain the paramater set tag in protocol.xml?17:27
llnzcherez: parameter sets are using in Orders and Objects to define what parameters they can use17:35
cherezHow is that semantically different from the structures in other packets?17:41
cherezOr can it just be treated like a big structure with the parameters as substructures?17:42
llnzthey form part of the order or object packets, but multiple instances, in the number and arrangement given by the description frame17:42
llnzi suggest you have a look at the order desciprtions in the tp03 documentation17:42
llnzhopefully that might explain it17:42
cherezAlright, thanks.17:42
Landonhey llnz, looked any more at the battlexml protocol?17:55
llnzLandon: no, not yet18:44
llnzi'm thinking it might be passable as is18:44
llnzmaybe18:44
Landonwell18:44
Landonright now movement is for a 2d system isnt it?18:44
Landonwell, I guess if you took some creative measures it would work18:46
*** alanp has joined #tp18:46
*** alanp has quit IRC18:49
llnzLandon: my concerns were more about how combatant are defined (in particular weapons) and how they are not used in the actually battle description18:51
Landonah18:51
Landonlike the weaponpoints?18:51
* Landon was looking at the DTD, saw that section commented out18:51
llnzyeah18:53
llnzthere are other things as well... that i don't remember off hand18:53
*** mhilmi has quit IRC18:55
*** tuna-fish has quit IRC18:57
*** greenlion has quit IRC19:23
*** nash has joined #tp19:27
CIA-46joelboh tpclient-pyweb * r45a9024813ae /frontend/scripts/map.js: Added a logger object.19:42
tanselltote, user did not exist?20:12
totetansell: ?20:13
tanselltote, when I tried to login to demo1 using your web client20:13
toteahh, you get that if the account exists and the password did not match the account (tpclient-pywx does something else here right?)20:15
tansellwell that would be password wrong right?20:21
tanselltote, so what are you using for testing?20:22
totetansell: no testing yet :/20:25
toteand im not sure how to seperate User did not exists error and Wrong password, i can only go on if login fails or not :) but ye it should say something like: Wrong username or password.20:26
*** verhoevenv has quit IRC20:30
*** tansell_laptop has joined #tp20:30
CIA-46joelboh tpclient-pyweb * ra906f3b75382 /backend/middleman.py: Fixed error message for wrong password.20:38
*** mithro has joined #tp21:13
*** alanp has joined #tp21:43
*** Arpman has joined #tp21:57
Arpmanhello21:58
*** alanp_ has joined #tp22:00
Greywhindtansell_laptop: ping?22:02
*** mithro has quit IRC22:04
*** mithro has joined #tp22:05
*** alanp has quit IRC22:05
tansellGreywhind, pong22:06
tanselljust about to head to lunch however22:07
*** alanp__ has joined #tp22:07
tansellArpman, hello22:07
Greywhindtansell: i've done the tree-ification of the info panel22:08
Greywhindtansell: would you like me to submit it for review before i continue to trying to link things?22:08
Arpmanhow are things today?22:08
tansellGreywhind, can I see screenshots?22:08
Greywhindtansell: sure22:08
tansellGreywhind, yeah - I would upload for review22:09
tansellafter lunch I would like to chat about how I think we should display it visually22:09
tansellGreywhind, oh can you close http://codereview.mithis.com/3001/show22:09
tpbTitle: Issue 3001: Fixed panelOrder to work with tp04 and with multiple order queues. - Code Review (at codereview.mithis.com)22:09
Greywhindtansell: sure22:09
tansellbe back in an hour22:09
Greywhindscreenshot: http://img191.imageshack.us/img191/6757/tpinfopanel.png22:10
tpb<http://ln-s.net/3K3G> (at img191.imageshack.us)22:10
*** alanp__ has quit IRC22:10
ArpmanMan - oh man - its taking all day to install the correct software to run the client - that will teach me to use src22:13
*** alanp__ has joined #tp22:13
Arpmanis anyone working on a STARS! clone yet?22:14
*** alanp__ has joined #tp22:15
ArpmanI dont see anything about it in the forum or wiki22:15
alanp__llnz: ping22:16
*** alanp__ is now known as alanp22:16
llnzalanp: pong22:16
llnzArpman: not yet22:16
llnzArpman: still need to design and implement research and deplomancy22:16
llnzin the protocol22:16
alanpllnz: do category ids actually matter?22:16
Arpmanhmm - I might have to think on that..22:17
llnzalanp: category ids for what?22:17
alanpcomponents22:17
llnzyes22:17
Arpmanwell - I guess to make the game fully functional that would be required.22:17
alanpThe ones that are created all have a category ID of 122:17
alanpwhich I believe is Ships22:17
ArpmanBut I've been thinking about learning more C++ and this might be the time to start22:17
alanpis there somewhere which outlines the various category ids?22:18
llnzalanp: they are needed to indicate weather they are for ships or missiles22:18
alanpok22:18
alanpI got that actually22:18
alanpwhich components are for missiles?22:18
alanpare torpedoes using the same catid as missiles?22:18
llnzyes22:19
ArpmanI'm fairly new to C++, so I need to read up on OOP and such... This might be helpful22:19
llnzthe difference between missiles and torpedoes (imho) is the hull/body type22:19
alanpok22:19
alanpand the speed of the missile is set on the component that holds it?!22:20
alanpthe tubes have speeds22:20
*** alanp_ has quit IRC22:21
Arpmanwouldn't torpedoes carry a higher yield explosive then a missle?22:21
llnzalanp: the design of a missile or torpedo in cat id 2, creates a component that can be added to a ship in cat id 122:22
llnzArpman: yes, they do22:22
alanpllnz: is there a listing of catids that I am missing?22:22
llnzcategories are created at game creation, and are assigned ids from 122:23
ArpmanIn RL the difference between a torp and a missle is the medium that the object travels thru (ie water or air)22:24
Arpmanas far as I can tell22:24
llnzin MTSec, the difference is size and manouverability22:25
Arpmanoh22:25
llnziirc22:25
ArpmanI still have to try the client (still istalling supporting software)22:26
alanpyes22:26
alanpthey are huge but slow, so you can dodge them22:26
llnzLandon: that was another issue with battlexml, no real support for missiles, torpedos and other support craft22:26
Landonsupport craft?22:27
LandonI figured missiles/torpedos/lazors could be used by specifying their respective weaponpoints22:27
llnzshort range fighters, etc22:27
Landonah22:27
llnzmissiles could change direction after launch22:28
llnzthey are currently treated as if they were all the same speed, ie instant22:28
llnzlike a laser or beam weapon22:28
alanpi'm still confused about the tube component having a speed, is this the speed that the missile it holds travels?22:29
LandonI would think missiles changing direction would be left up to the battleviewer22:29
ArpmanIMHO - for a game mechanic - I would define missles as a short range low yield weapon and torps as a long range yield weapon (if I was designing)22:29
Arpmantube speed might mean - how long it takes to reload to fire again22:29
LandonI've been thinking about how to handle rounds and I think the best approach for me is to have many fire events22:29
Landonbut anything not logged in the battlexml file would be dodged22:30
Arpmanargh - the gcc takes forever to install from source....22:30
alanpllnz: ^22:32
ArpmanQuestion: Is there more to the forums then GSoC 2009?22:35
llnzalanp: i don't know sorry22:37
llnzArpman: we mostly use IRC and our mailing lists22:37
Arpmanllnz: Oh that explains why the forums are so bare...22:38
Arpmanwhere is the best place to see what people are working on?22:41
llnzArpman: the news page of the website has the latest22:44
llnzwhat actually been worked on now might be visible from the tp-cvs mailing list (shows our git commits)22:44
ArpmanIve read the news page.22:48
*** jnengland77 has joined #tp22:48
ArpmanI was hope to find a forum that I could look thru.  Getting ideas, seeing how people think...looking for inspration22:49
llnzthe main source for that would be tp-devel mailing list22:50
Arpmani think i'll take a look at the code and see if I cant figure some things out22:54
llnzthere are also some docs on the website, and the wiki22:56
alanpllnz: what do you think about armor size for ships?23:03
alanpthe two ships that were previously designed (Scout Hull Armor size 2) and (Battle Scout Hull Armor size 5)23:03
alanpshould I use +3 for each "battle" type?23:04
alanpshould i post to ML?23:04
llnzalanp: there is a fair amount of info on http://www.thousandparsec.net/tp/dev/documents/mtsec.php23:05
tpb<http://ln-s.net/JsQ> (at www.thousandparsec.net)23:05
alanpi'm looking at that now23:05
alanpit doesn't really specify23:05
alanpThere are 10 ship types. Most of the lighter ships have a normal and battle variety. The battle variety generally has more armor but is slower.23:05
alanpvague23:05
alanpit specifies speed/size23:06
alanpcan I have commit access to this page?23:06
* alanp would like to update as he goes23:06
alanpor should I do that on the wiki?23:06
llnzi think you should move it to the wiki23:06
llnzfaster and easier to edit than the static html pages23:07
alanpagreed23:07
alanpany suggestions on the armor issue?23:07
llnznot really, i think it will be a game balance issue23:08
alanpwhat do you think if it would follow a pattern of X, X+323:10
alanpthat probably wouldn't work, actually23:11
llnznot really23:11
llnzthe larger the ship, the less effect it has23:11
llnzprobably more like, X, X*1.523:11
alanpthe larger the ship the larger the armor though, right?23:11
llnz(or 1.2, or something23:12
llnz)23:12
alanpok23:12
llnzi guess so23:12
alanpi think that the larger ships would have to have more armor23:12
alanpi guess it would be easy to tweak the values later anyways23:12
tansellback now23:14
tansellGreywhind, so I think this is the wrong approach23:15
Greywhindtansell: why do you say that?23:19
tansellthe Tree widget is very inflexible23:19
Greywhindtansell: what would you replace it with?23:19
tansellyou will not be able to do things like place "goto" buttons23:19
tansellGreywhind, I think you'll need to dynamically build panels kinda like how the orders stuff work23:19
Greywhindtansell: well, i think it depends on what we want it to do.23:19
tansellI would recommend designing a panel for each type of ObjectParam23:19
Greywhindtansell: if we just want a panel that displays information and allows you to click on certain attributes that refer to objects and select that object, i think it can be done with the tree widget.23:19
tansellGreywhind, I think we want something more interactive23:19
Greywhindwell, in that case, i can work on the panel building.23:20
tanselland for example if someone has a "graph" parameter, that is not going to be able to be shown in a tree widget23:20
Greywhindbut i'm not sure what kind of interaction is really going to be useful here23:20
tansellI think the idea of collapsable panels is good23:20
Greywhindi mean, we don't have any graph parameter, for instance.23:20
Greywhindso what other kinds of interaction were you thinking of?23:21
tansellGreywhind, http://www.thousandparsec.net/tp/dev/documents/protocol4.php23:21
tpb<http://ln-s.net/JqO> (at www.thousandparsec.net)23:21
tansellsee the Property Types section23:21
Greywhindtansell: ah... but there's no graph parameter in Parameters.py23:22
llnzGreywhind: some of the objectparameters are also editable23:22
tansellllnz, they are?23:23
tansellGreywhind, buttons like "Goto" (for positional stuff)23:23
llnztansell: well... possibly, but currently no23:23
tansellor "Message" for a player id23:23
Greywhindtansell: but yeah, i can see how we could end up needing more interaction, so i'll work on the panel building23:23
tansellGreywhind, take a look at FoldPanelBar23:26
Greywhindwhere's that?23:27
tansellGreywhind, you have the wxDemo's installed right?23:28
Greywhindtansell: not sure23:28
tansellGreywhind, check out the wxDemo app23:28
Greywhindtansell: how do i tell if i have the demos installed?23:29
tansellapt-get install wx2.8-demos ?23:29
tansell/usr/share/doc/wx2.6-examples/examples/unpack_examples.sh ~/wxPython23:32
Greywhindah. found them.23:33
Greywhindthey're in /usr/share/doc/wxPython-2.8.9.1/demo/23:34
tansellthe demo app is great for discovering what type of useful widgets exist23:34
*** bddebian has quit IRC23:35
*** alanp has quit IRC23:41
*** alanp has joined #tp23:42
*** alanp_ has joined #tp23:47
*** Arpman has quit IRC23:54

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