[to_xp]Gekko
QCT junkie
it works for the player, but not for AIs
[to_xp]Gekko;12244279 said:it works for the player, but not for AIs
Red Key: The issue should be *very* rare. Can you reproduce it by choosing to play as "Random Good Leader"? Because for me it happens only after 20 or 30 tries. I started about 50 new games in normal Random/Random to test my current fix, but maybe I'm doing something wrong and it is simpler to reproduce it?
It was already mentioned that clicking the research bar while researching causes a python error (but I didn't found an issue in the tracker). I fixed that:
In CvMainInterface, change
toCode:screen.setText( "ResearchText", "Background", szText, CvUtil.FONT_CENTER_JUSTIFY, xCoord, yCoord, -0.4, FontTypes.GAME_FONT, WidgetTypes.WIDGET_RESEARCH, [B]-1[/B], -1 )
Code:screen.setText( "ResearchText", "Background", szText, CvUtil.FONT_CENTER_JUSTIFY, xCoord, yCoord, -0.4, FontTypes.GAME_FONT, WidgetTypes.WIDGET_RESEARCH, [b]gc.getPlayer(ePlayer).getCurrentResearch()[/B], -1 )
Explanation (I learned something new, why shouldn't someone else ): The first "-1" is the CvWidgetDataStruct.m_iData1 property, which is used in CvDLLWidgetData::doPediaTechJump(), called by CvDLLWidgetData::executeAltAction() (right click).
bool CvDLLWidgetData::executeAltAction( CvWidgetDataStruct &widgetDataStruct )
{
CvWidgetDataStruct widgetData = widgetDataStruct;
bool bHandled = true;
switch (widgetDataStruct.m_eWidgetType)
{
case WIDGET_HELP_TECH_ENTRY:
case WIDGET_HELP_TECH_PREPREQ:
case WIDGET_RESEARCH:
case WIDGET_TECH_TREE:
doPediaTechJump(widgetDataStruct);
break;
bool CvDLLWidgetData::executeAltAction( CvWidgetDataStruct &widgetDataStruct )
{
CvWidgetDataStruct widgetData = widgetDataStruct;
bool bHandled = true;
switch (widgetDataStruct.m_eWidgetType)
{
case WIDGET_HELP_TECH_ENTRY:
case WIDGET_HELP_TECH_PREPREQ:
case WIDGET_TECH_TREE:
doPediaTechJump(widgetDataStruct);
break;
case WIDGET_RESEARCH:
// To catch right-clicking on the current research text, which has widgetDataStruct.m_iData1 = -1, because it is supposed to reset research when left-clicked
if( widgetDataStruct.m_iData1 == -1 )
widgetDataStruct.m_iData1 = GET_PLAYER( GC.getGameINLINE().getActivePlayer() ).getCurrentResearch();
doPediaTechJump(widgetDataStruct);
break;
I've run into this three times. After rage-quitting the first couple of times I did manage to save a file.
So I've started a Luchuirp game. You know how it is in the early game. You build farms, you grow quickly, each turn barely takes more than a couple of seconds, and one of your cities gets stuck at 5 population.
Well, not always that last one.
For many turns, my second city has been stuck at 5 population. It is producing 13 food while only consuming 10, and it has a full food bar. When I examine the city, the game assures me that growth is imminent, but my city never expands.
It is worth noting, however, that my capital city was not affected by this, and currently stands at six population. While I'm a little peeved right now, I can honestly say that I loved my first game as the Khazad. You guys are awesome!
Tholal: I'm still not able to attach files to issues I'm not assigned to. I try to avoid attaching files at CFC to often, because I only have limited size available here. So I figured out a maybe better way to contribute: I will now upload the contributions in a repository, like Therken does with his extramodmod I do with my events enhanced modcomp. I will link the corresponding commits here.
Please tell me if you got any problems with this.
I don't think that's required as long as it is not too much for Tholal to merge things in himself. It would probably cause more trouble and administration work than it's worth; for example we would have to coordinate who is assigned to an issue.Maybe Tholal could let you upload directly to the MNAI Sourceforge repository. It's great to have a few people developing this mod.