*** tpb has joined #tp | 00:00 | |
*** ChanServ sets mode: +o tpb | 00:00 | |
*** Greywhind has quit IRC | 00:21 | |
*** Greywhind has joined #tp | 00:21 | |
*** DTRemenak|RDP has joined #tp | 00:24 | |
*** Greywhind has quit IRC | 00:24 | |
*** Greywhind has joined #tp | 00:25 | |
*** DTRemenak has quit IRC | 00:42 | |
*** DTRemenak|RDP has quit IRC | 00:44 | |
*** Greywhind has quit IRC | 01:05 | |
*** Greywhind has joined #tp | 01:06 | |
*** nash has quit IRC | 01:26 | |
*** peres has joined #tp | 01:52 | |
*** peres has quit IRC | 02:21 | |
*** peres has joined #tp | 02:22 | |
*** peres has quit IRC | 02:26 | |
*** mithro has quit IRC | 02:42 | |
*** mithro has joined #tp | 03:06 | |
*** DTRemenak has joined #tp | 03:35 | |
*** peres has joined #tp | 03:55 | |
*** welterde has quit IRC | 04:04 | |
*** mithro_ has joined #tp | 04:05 | |
*** welterde has joined #tp | 04:05 | |
*** mithro has quit IRC | 04:06 | |
*** mithro_ has quit IRC | 04:40 | |
*** llnz has quit IRC | 05:10 | |
*** mithro_ has joined #tp | 05:20 | |
*** Demitar has quit IRC | 06:52 | |
*** zzorn_ has joined #tp | 06:56 | |
*** zzorn_ has quit IRC | 06:57 | |
*** Demitar has joined #tp | 07:05 | |
*** JLafont has quit IRC | 07:56 | |
*** gau_veldt has quit IRC | 08:20 | |
*** gau_veldt has joined #tp | 08:26 | |
*** bddebian has joined #tp | 10:11 | |
bddebian | Heya | 10:13 |
---|---|---|
*** Demitar has quit IRC | 11:13 | |
*** peres has quit IRC | 11:13 | |
*** Greywhind has quit IRC | 12:15 | |
*** Erroneous has joined #tp | 13:41 | |
*** llnz has joined #tp | 13:53 | |
*** Greywhind has joined #tp | 14:43 | |
devplayer | Broken URL Link: | 15:22 |
devplayer | Download from SourceForge | 15:22 |
devplayer | http://sourceforge.net/project/downloading.php?group_id=132078&filename=tpclient-pyogre-0.0.1-setup.exe | 15:22 |
devplayer | found at | 15:22 |
devplayer | Download tpclient-pyogre for Source pyorge client from sourceforge.net link does work | 15:22 |
devplayer | http://www.thousandparsec.net/tp/download-instructions.php?product=tpclient-pyogre&platform=source | 15:22 |
tpb | <http://ln-s.net/2ufl> (at sourceforge.net) | 15:22 |
tpb | <http://ln-s.net/2ufm> (at www.thousandparsec.net) | 15:22 |
llnz | thanks devplayer | 15:27 |
llnz | looks like it hasn't actually been uploaded to SF | 15:27 |
llnz | try downloading from Thousand Parsec Website instead | 15:29 |
devplayer | more info on other links coming in a sec | 15:29 |
devplayer | ISSUES WITH LINKS: On Webpages | 15:30 |
devplayer | Download tpclient-pyogre for Microsoft Windows | 15:30 |
devplayer | http://www.thousandparsec.net/tp/download-instructions.php?product=tpclient-pyogre&platform=win32 | 15:30 |
devplayer | Download from Thousand Parsec Website - OGRE CLIENT HANGS ON STARTUP | 15:30 |
devplayer | http://sourceforge.net/project/downloading.php?group_id=132078&filename=tpclient-pyogre-0.0.1-setup.exe | 15:30 |
tpb | <http://ln-s.net/2uEi> (at www.thousandparsec.net) | 15:30 |
devplayer | Download from SourceForge - NOTHING DOWNLOADS | 15:30 |
tpb | <http://ln-s.net/2ufl> (at sourceforge.net) | 15:30 |
devplayer | http://sourceforge.net/project/downloading.php?group_id=132078&filename=tpclient-pyogre-0.0.1-setup.exe | 15:30 |
devplayer | figured i'd get the ogre client source and try that route next | 15:30 |
devplayer | really i was just curious what it looks like, even though i like the pywx client for turn base games | 15:31 |
devplayer | if pywx client is going to die, figured i'd better look at the ogre client. | 15:31 |
devplayer | llnz, does the server-cpp follow any oop patterns | 15:34 |
llnz | yes | 15:35 |
devplayer | which? | 15:35 |
llnz | singleton, strategy, and a few others | 15:36 |
llnz | here 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 |
devplayer | yeah, was looking that over, | 15:37 |
devplayer | never had any computer coding classes | 15:37 |
devplayer | i was looking at beefing up the pywx-client into something like the wxPython demo AND the AUImanager Demo (in that demo) | 15:38 |
devplayer | I liked the the plug and play (plugin) nature of the "views" | 15:39 |
devplayer | views being custom frames | 15:39 |
devplayer | ie each demo is plug-able | 15:39 |
devplayer | seeing that the AUI is an advanced DOC/VIEW object | 15:40 |
llnz | i haven't done much in tpclient-pywx, so i'm not sure how it is put together | 15:41 |
devplayer | and seeing similarities with the DOC/VIEW wx-objects with the oop ModelViewPresenter pattern seems a good way to go | 15:41 |
llnz | talk to mithro_ about it | 15:41 |
devplayer | haven't seem him in here. | 15:41 |
devplayer | or "on" | 15:41 |
devplayer | i'm having a bit of a trouble grasping the singleton concept...though i get the model-view-presenter pattern some | 15:43 |
llnz | singleton makes sure there is only one of a particular type of object | 15:45 |
devplayer | that helps | 15:45 |
devplayer | to know | 15:45 |
llnz | when you need to get the object you call the getInstance method (or similar, for example in tpserver-cpp, Game::getGame()) | 15:45 |
devplayer | k..listening | 15:46 |
llnz | the constructor is normally hidden so only the class itself can create the object | 15:47 |
llnz | hidden == private or protected | 15:47 |
devplayer | so 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... right | 15:47 |
devplayer | kk | 15:48 |
llnz | the class holds a static instance pointer to the object | 15:48 |
llnz | if it's NULL, the getInstance (static) method creates the object, assigns it to the instance pointer, then returns the pointer | 15: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 |
llnz | nope | 15:50 |
llnz | if it's not NULL, then it is *the* instance of the object, and just return it | 15:51 |
*** Greywhind has quit IRC | 15:51 | |
devplayer | but 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 |
llnz | well... tpserver-cpp only supports one game at a time | 15:51 |
llnz | and to save having to save that pointer in every object that belongs to that game | 15:52 |
devplayer | ok.... | 15:52 |
llnz | it uses a singleton | 15:52 |
llnz | see the two following urls for game.h and game.cpp | 15:52 |
llnz | http://git.thousandparsec.net/gitweb/gitweb.cgi?p=tpserver-cpp.git;a=blob;f=tpserver/game.h;h=8df78c63c621d7871fb4bf32987ac15ee8548e6d;hb=HEAD | 15:52 |
tpb | <http://ln-s.net/2ugl> (at git.thousandparsec.net) | 15:52 |
llnz | http://git.thousandparsec.net/gitweb/gitweb.cgi?p=tpserver-cpp.git;a=blob;f=tpserver/game.cpp;h=da5c512f2735b804cdea8fec8ad0cab63de8a8a2;hb=HEAD | 15:52 |
tpb | <http://ln-s.net/2ugm> (at git.thousandparsec.net) | 15:52 |
devplayer | i'm assuming #tpb is a bot | 15:53 |
llnz | yes | 15:53 |
devplayer | cpp has been a little hard for me to understand.. it's why im going python first | 15:54 |
devplayer | guess i don't have enough brain cycles lately | 15:54 |
*** Demitar has joined #tp | 15:55 | |
devplayer | oh that object diagram which i saved from the web... when zooming in to read the text, it's a little blurry but readable | 15:55 |
devplayer | checked out those links, do you have a sharper version of that tp-server-040724-full-small.png? | 16:02 |
devplayer | and what do those red arrows represent in that diagram | 16:03 |
JLP | devplayer: if you click onto the iomage you get a full resolution version | 16:04 |
devplayer | nvm | 16:04 |
devplayer | got it | 16:04 |
devplayer | sorry | 16:04 |
llnz | hi JLP | 16:05 |
JLP | llnz and *: ahoy | 16:05 |
*** Demitar has quit IRC | 16:41 | |
*** Demitar has joined #tp | 16:44 | |
*** bddebian has quit IRC | 16:48 | |
*** nash has joined #tp | 17:03 | |
*** Greywhind has joined #tp | 17:05 | |
*** Greywhind has quit IRC | 18:07 | |
*** mithro_ has quit IRC | 19:00 | |
*** Greywhind has joined #tp | 19:10 | |
devplayer | what is rhs in the tpserver-cpp code? | 19:33 |
llnz | Right Hand Side | 19:47 |
llnz | is used for copy constructor Foo(oldfod), and assignment newfoo = oldfoo | 19:47 |
llnz | "oldfoo" is the rhs | 19:47 |
devplayer | kk | 19:50 |
devplayer | how up-to-date is your object diagram with the current cpp code? | 19:51 |
llnz | not very at all | 19:54 |
devplayer | lol kk | 19:54 |
llnz | most of the objects still exist, but things have been moved around a lot | 19:55 |
llnz | game has ben split into about 5 classes | 19:55 |
llnz | player was split into Player and PlayerAgent | 19:55 |
llnz | a lots of other things | 19:56 |
llnz | i could probably create a new diagram tonight if you think it would help you | 19:56 |
devplayer | kk --trying to interpret the cpp code -- is ObjectFoo::ObjectFoo a constructor and ObjectFoo::~ObjectFoo a destructor? | 19:56 |
llnz | yes | 19:57 |
devplayer | it would help me, but i'm too new for you to waste time on that, | 19:57 |
devplayer | then what is the ObjectFoo::init? | 19:57 |
devplayer | is that called by the constructor? | 19:57 |
llnz | generally not | 19:58 |
llnz | have a look in main.cpp, which sets up and initialises all the main objects | 19:58 |
llnz | init == initialise | 19:58 |
llnz | used when you don't have direct access to the constructor | 19:58 |
devplayer | in python world the __init__ is an object constructor. - which i'm sure you knew already, but it's what confused me. | 19:59 |
llnz | bbs, meeting | 19:59 |
devplayer | bbs? | 19:59 |
llnz | be back shortly | 19:59 |
devplayer | ah kk | 19:59 |
*** Greywhind has quit IRC | 22:02 | |
*** Greywhind has joined #tp | 22:04 | |
*** Greywhind has quit IRC | 22:38 | |
*** Greywhind has joined #tp | 22:41 | |
*** Greywhind has quit IRC | 23:13 | |
*** Greywhind has joined #tp | 23:17 | |
*** Greywhind has quit IRC | 23:21 | |
*** Greywhind has joined #tp | 23:23 | |
*** llnz has quit IRC | 23:29 | |
*** Erroneous has quit IRC | 23:37 |
Generated by irclog2html.py 2.17.2 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!