Tuesday, 2009-02-24

*** tpb has joined #tp00:00
*** ChanServ sets mode: +o tpb00:00
*** Greywhind has quit IRC00:21
*** Greywhind has joined #tp00:21
*** DTRemenak|RDP has joined #tp00:24
*** Greywhind has quit IRC00:24
*** Greywhind has joined #tp00:25
*** DTRemenak has quit IRC00:42
*** DTRemenak|RDP has quit IRC00:44
*** Greywhind has quit IRC01:05
*** Greywhind has joined #tp01:06
*** nash has quit IRC01:26
*** peres has joined #tp01:52
*** peres has quit IRC02:21
*** peres has joined #tp02:22
*** peres has quit IRC02:26
*** mithro has quit IRC02:42
*** mithro has joined #tp03:06
*** DTRemenak has joined #tp03:35
*** peres has joined #tp03:55
*** welterde has quit IRC04:04
*** mithro_ has joined #tp04:05
*** welterde has joined #tp04:05
*** mithro has quit IRC04:06
*** mithro_ has quit IRC04:40
*** llnz has quit IRC05:10
*** mithro_ has joined #tp05:20
*** Demitar has quit IRC06:52
*** zzorn_ has joined #tp06:56
*** zzorn_ has quit IRC06:57
*** Demitar has joined #tp07:05
*** JLafont has quit IRC07:56
*** gau_veldt has quit IRC08:20
*** gau_veldt has joined #tp08:26
*** bddebian has joined #tp10:11
bddebianHeya10:13
*** Demitar has quit IRC11:13
*** peres has quit IRC11:13
*** Greywhind has quit IRC12:15
*** Erroneous has joined #tp13:41
*** llnz has joined #tp13:53
*** Greywhind has joined #tp14:43
devplayerBroken URL Link:15:22
devplayerDownload from SourceForge15:22
devplayerhttp://sourceforge.net/project/downloading.php?group_id=132078&filename=tpclient-pyogre-0.0.1-setup.exe15:22
devplayerfound at15:22
devplayerDownload tpclient-pyogre for Source  pyorge client from sourceforge.net link does work15:22
devplayerhttp://www.thousandparsec.net/tp/download-instructions.php?product=tpclient-pyogre&platform=source15:22
tpb<http://ln-s.net/2ufl> (at sourceforge.net)15:22
tpb<http://ln-s.net/2ufm> (at www.thousandparsec.net)15:22
llnzthanks devplayer15:27
llnzlooks like it hasn't actually been uploaded to SF15:27
llnztry downloading from Thousand Parsec Website instead15:29
devplayermore info on other links coming in a sec15:29
devplayerISSUES WITH LINKS: On Webpages15:30
devplayerDownload tpclient-pyogre for Microsoft Windows15:30
devplayerhttp://www.thousandparsec.net/tp/download-instructions.php?product=tpclient-pyogre&platform=win3215:30
devplayerDownload from Thousand Parsec Website - OGRE CLIENT HANGS ON STARTUP15:30
devplayerhttp://sourceforge.net/project/downloading.php?group_id=132078&filename=tpclient-pyogre-0.0.1-setup.exe15:30
tpb<http://ln-s.net/2uEi> (at www.thousandparsec.net)15:30
devplayerDownload from SourceForge - NOTHING DOWNLOADS15:30
tpb<http://ln-s.net/2ufl> (at sourceforge.net)15:30
devplayerhttp://sourceforge.net/project/downloading.php?group_id=132078&filename=tpclient-pyogre-0.0.1-setup.exe15:30
devplayerfigured i'd get the ogre client source and try that route next15:30
devplayerreally i was just curious what it looks like, even though i like the pywx client for turn base games15:31
devplayerif pywx client is going to die, figured i'd better look at the ogre client.15:31
devplayerllnz, does the server-cpp follow any oop patterns15:34
llnzyes15:35
devplayerwhich?15:35
llnzsingleton, strategy, and a few others15:36
llnzhere is some old documentation from my OOP class: http://www.thousandparsec.net/tp/dev/documents/tpserver-cpp/15:36
tpb<http://ln-s.net/L00> (at www.thousandparsec.net)15:36
devplayeryeah, was looking that over,15:37
devplayernever had any computer coding classes15:37
devplayeri was looking at beefing up the pywx-client into something like the wxPython demo AND the AUImanager Demo (in that demo)15:38
devplayerI liked the the plug and play (plugin) nature of the "views"15:39
devplayerviews being custom frames15:39
devplayerie each demo is plug-able15:39
devplayerseeing that the AUI is an advanced DOC/VIEW object15:40
llnzi haven't done much in tpclient-pywx, so i'm not sure how it is put together15:41
devplayerand seeing similarities with the DOC/VIEW wx-objects with the oop ModelViewPresenter pattern seems a good way to go15:41
llnztalk to mithro_ about it15:41
devplayerhaven't seem him in here.15:41
devplayeror "on"15:41
devplayeri'm having a bit of a trouble grasping the singleton concept...though i get the model-view-presenter pattern some15:43
llnzsingleton makes sure there is only one of a particular type of object15:45
devplayerthat helps15:45
devplayerto know15:45
llnzwhen you need to get the object you call the getInstance method (or similar, for example in tpserver-cpp, Game::getGame())15:45
devplayerk..listening15:46
llnzthe constructor is normally hidden so only the class itself can create the object15:47
llnzhidden == private or protected15:47
devplayerso the instance has a pointer to itself and if the pointer doesn't match the "saved"/exsisting object "handle" then the class will drop it or something... right15:47
devplayerkk15:48
llnzthe class holds a static instance pointer to the object15:48
llnzif it's NULL, the getInstance (static) method creates the object, assigns it to the instance pointer,  then returns the pointer15:49
devplayer.. and if it's not NULL then it must be "an" instance of the object ... but then you'd have to test to see if it is "THE" only instance of the object..15:50
llnznope15:50
llnzif it's not NULL, then it is *the* instance of the object, and just return it15:51
*** Greywhind has quit IRC15:51
devplayerbut why would you only want to ever be able to have one and only one instance of an object, why not have multiple game objects, or multiple, why enforce "singleton".15:51
llnzwell... tpserver-cpp only supports one game at a time15:51
llnzand to save having to save that pointer in every object that belongs to that game15:52
devplayerok....15:52
llnzit uses a singleton15:52
llnzsee the two following urls for game.h and game.cpp15:52
llnzhttp://git.thousandparsec.net/gitweb/gitweb.cgi?p=tpserver-cpp.git;a=blob;f=tpserver/game.h;h=8df78c63c621d7871fb4bf32987ac15ee8548e6d;hb=HEAD15:52
tpb<http://ln-s.net/2ugl> (at git.thousandparsec.net)15:52
llnzhttp://git.thousandparsec.net/gitweb/gitweb.cgi?p=tpserver-cpp.git;a=blob;f=tpserver/game.cpp;h=da5c512f2735b804cdea8fec8ad0cab63de8a8a2;hb=HEAD15:52
tpb<http://ln-s.net/2ugm> (at git.thousandparsec.net)15:52
devplayeri'm assuming #tpb is a bot15:53
llnzyes15:53
devplayercpp has been a little hard for me to understand.. it's why im going python first15:54
devplayerguess i don't have enough brain cycles lately15:54
*** Demitar has joined #tp15:55
devplayeroh that object diagram which i saved from the web... when zooming in to read the text, it's a little blurry but readable15:55
devplayerchecked out those links, do you have a sharper version of that tp-server-040724-full-small.png?16:02
devplayerand what do those red arrows represent in that diagram16:03
JLPdevplayer: if you click onto the iomage you get a full resolution version16:04
devplayernvm16:04
devplayergot it16:04
devplayersorry16:04
llnzhi JLP16:05
JLPllnz and *: ahoy16:05
*** Demitar has quit IRC16:41
*** Demitar has joined #tp16:44
*** bddebian has quit IRC16:48
*** nash has joined #tp17:03
*** Greywhind has joined #tp17:05
*** Greywhind has quit IRC18:07
*** mithro_ has quit IRC19:00
*** Greywhind has joined #tp19:10
devplayerwhat is rhs in the tpserver-cpp code?19:33
llnzRight Hand Side19:47
llnzis used for copy constructor Foo(oldfod), and assignment newfoo = oldfoo19:47
llnz"oldfoo" is the rhs19:47
devplayerkk19:50
devplayerhow up-to-date is your object diagram with the current cpp code?19:51
llnznot very at all19:54
devplayerlol kk19:54
llnzmost of the objects still exist, but things have been moved around a lot19:55
llnzgame has ben split into about 5 classes19:55
llnzplayer was split into Player and PlayerAgent19:55
llnza lots of other things19:56
llnzi could probably create a new diagram tonight if you think it would help you19:56
devplayerkk --trying to interpret the cpp code -- is ObjectFoo::ObjectFoo a constructor and ObjectFoo::~ObjectFoo a destructor?19:56
llnzyes19:57
devplayerit would help me, but i'm too new for you to waste time on that,19:57
devplayerthen what is the ObjectFoo::init?19:57
devplayeris that called by the constructor?19:57
llnzgenerally not19:58
llnzhave a look in main.cpp, which sets up and initialises all the main objects19:58
llnzinit == initialise19:58
llnzused when you don't have direct access to the constructor19:58
devplayerin python world the __init__ is an object constructor. - which i'm sure you knew already, but it's what confused me.19:59
llnzbbs, meeting19:59
devplayerbbs?19:59
llnzbe back shortly19:59
devplayerah kk19:59
*** Greywhind has quit IRC22:02
*** Greywhind has joined #tp22:04
*** Greywhind has quit IRC22:38
*** Greywhind has joined #tp22:41
*** Greywhind has quit IRC23:13
*** Greywhind has joined #tp23:17
*** Greywhind has quit IRC23:21
*** Greywhind has joined #tp23:23
*** llnz has quit IRC23:29
*** Erroneous has quit IRC23:37

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