Wednesday, 2011-11-09

*** tpb has joined #freeorion00:00
*** VargaD has quit IRC00:47
*** lethu has quit IRC03:43
*** lethu has joined #freeorion03:55
*** lethu has joined #freeorion03:55
*** STalKer-Y has joined #freeorion04:53
*** STalKer-X has quit IRC04:53
*** StrangerDanger has joined #freeorion05:34
*** gvdm has joined #freeorion07:20
GeofftheMediogvdm: ResourceCenterChangedSignal is a signal, not a regular function.  it has no definition in ResourceCenter, but instead is connected to other functions by GG::Connect calls.07:28
gvdmwhere would I see these GG::Connect calls?07:28
GeofftheMediolots of places07:28
*** tpb has joined #freeorion07:32
gvdmI'm basically trying to track down where the focus target meter is set and where all the other target meters are set to 007:32
gvdmResourceCenter::SetFocus07:33
gvdmis the closest I can find07:33
GeofftheMedioSetFocus has nothing to do with meter values07:33
gvdmI imagine that ResourceCenter::Reset() is called before making the focus meters target set to a value (modified by effects)07:34
GeofftheMedioMeter values are set mainly by effects.  When calculating target meter values, they are all reset to 0, then effects applied to calculate their value.07:34
gvdmright, so where would I find this?07:34
GeofftheMediono; Reset is used when starving / removing player ownership of a planet07:34
gvdmquote: they are all reset to 007:34
gvdmright07:34
gvdmand ResourceCenter::ResourceCenterResetTargetMaxUnpairedMeters()?07:35
gvdmcould I add some comments to these functions?07:35
GeofftheMediothere's not much to comment about in that function07:36
gvdmmore, like, when and why its called07:36
gvdmResourceCenterPopGrowthProductionResearchPhase() has a descriptive enough name to not warrant that kind of comment07:37
GeofftheMediothe base UniverseObject class has such a comment for its ResetTargetMaxUnpairedMeters07:37
GeofftheMedioduplicating it for all derived classes (which ResourceCenter effectively, if not technically, is)07:37
GeofftheMediois not necessary07:37
gvdmvoid UniverseObject::ResetTargetMaxUnpairedMeters()07:37
gvdm{ GetMeter(METER_STEALTH)->ResetCurrent(); }07:37
gvdm?07:37
gvdmno comment07:38
GeofftheMedioheader07:38
gvdmok, so that's called, and then effects are calculated?07:39
GeofftheMediolook at UpdateMeterEstimates in Universe07:40
GeofftheMedioand ApplyAllEffectsAndUpdateMeters07:41
*** GeofftheMedio_ has joined #freeorion08:22
*** GeofftheMedio has quit IRC08:24
*** GeofftheMedio_ is now known as GeofftheMedio08:24
*** VargaD has joined #freeorion08:26
gvdmok09:05
gvdmso, i've been reading code for a bit now09:06
gvdmand, i still can't see where the differentiation between the focused and unfocused meters is made to set the target meters, unless the effects files check that, in which case, why the f am i reading c++?09:07
GeofftheMedioas I said, effects determine meter values09:07
GeofftheMedioI'm not sure why you're reading c++... presumably because of interest or bad assumptions?09:07
gvdmbit of both09:08
gvdmok, so currently species.txt shows what happens to targets when they are focused, shouldn't there be a formula something along the lines of default_target = pop*x, focused_target = default_target*something09:15
gvdmright now its just focused_target=pop*something09:15
GeofftheMediouh... no?09:15
gvdmhmm?09:16
GeofftheMedioit works as it works, not how you suggest.09:16
gvdmlike, for food, default_target = pop*0.7, focused_target = default_target*209:16
gvdmwell, currently, as just the focused target counts, when the meters are reset, they all go to DEFAULT_VALUE, which is 009:17
GeofftheMedioyes...09:17
gvdmso only the focused stat gets produced, resulting in a crappy startup and unbalanced empire when there are too few planets09:17
GeofftheMediothere are other bonuses to meters besides from focus / species09:18
gvdmyes, I was just thinking that09:18
GeofftheMediobut yes; you have to pick a particular focus, and can't do everything at first.  this is itentional.09:18
gvdmok, IMO, crappy economy setup09:19
*** __alex has joined #freeorion09:19
gvdmthe insta death thing with colonies would also not have been such an issue if they produced a minimal (but not sufficient amount) of food while focusing industry09:20
gvdmthat is, with blockade and supply lines09:20
gvdmfocus should be taken into account after all the other effects I think, so species effect first, then modified by techs, then shuffled according to focus, ie non focused gets nerfed to the point where the planet is dependent on empire (but still produces) and focused makes planet exporting09:23
gvdmok, but I now am busy for rest of day09:23
gvdmso, I see you all later09:23
*** __alex has quit IRC09:28
*** dansan has quit IRC09:38
*** dansan has joined #freeorion09:38
*** __alex has joined #freeorion09:38
*** theTroy has joined #freeorion09:43
*** gvdm has quit IRC10:01
*** gvdm has joined #freeorion10:02
*** theTroy has quit IRC11:45
*** gvdm has quit IRC13:06
*** StrangerDanger has quit IRC14:40
*** VargaD has quit IRC14:47
*** lethu has quit IRC14:58
*** lethu has joined #freeorion14:59
*** lethu has joined #freeorion14:59
*** StrangerDanger has joined #freeorion15:00
*** lethu has quit IRC15:02
*** lethu has joined #freeorion15:03
*** lethu has joined #freeorion15:03
*** gvdm has joined #freeorion15:04
*** gvdm has quit IRC15:09
*** __alex has quit IRC16:24
*** theTroy has joined #freeorion17:21
*** VargaD has joined #freeorion17:54
*** neoneurone has joined #freeorion19:28
*** neoneurone has quit IRC21:12
*** StrangerDanger has quit IRC21:31

Generated by irclog2html.py 2.5 by Marius Gedminas - find it at mg.pov.lt!