Questions about GP Discovery Tech and MP Diplomacy Popup Window

Officer Reene

It hates you all
Joined
Jan 21, 2006
Messages
698
Location
In the middle of nowhere
I have two different questions:

1) Does anyone know how the game determines what "discovery tech" is allowed to a :gp: great person?

the reason I ask is that I created some custom techs and I want to add them to this discovery techs of the Great General and the Great Scientist...

I dont see any of my custom techs as an option when you want to "use" a GP to discover a tech... and I want to give that option...
(many of my techs were based on miltary options and is best suited for the GG)


and


2) Is there a way to change the Diplomacy Popup Window when the AI wants to talk to you at the beginning of each turn to the MP Human player type where the Human player rings you and you have to click on the civs name to pull up the diplomacy window...


This automatic popup at the beginning of each turn is annoying especially if I am at war with someone.... :mad:

I dont want to "have a chat to have tea" with another AI leader when I am in the middle of combat strategies and troop movements!

I'd rather take care of my war moves... (reinforce areas/track enemy movement/watch combat and see who is victorious/etc) then speak to any leader who wants to...


is it possible to do this?


Any help would be greatly appreciated! ;)
 
Officer Reene said:
I have two different questions:

1) Does anyone know how the game determines what "discovery tech" is allowed to a :gp: great person?

Here's the code:

Code:
TechTypes CvUnit::getDiscoveryTech() const
{
	TechTypes eBestTech;
	int iValue;
	int iBestValue;
	int iI, iJ;

	iBestValue = 0;
	eBestTech = NO_TECH;

	for (iI = 0; iI < GC.getNumTechInfos(); iI++)
	{
		if (GET_PLAYER(getOwnerINLINE()).canResearch((TechTypes)iI))
		{
			iValue = 0;

			for (iJ = 0; iJ < GC.getNumFlavorTypes(); iJ++)
			{
				[b]iValue += (GC.getTechInfo((TechTypes) iI).getFlavorValue(iJ) * flavorValue((FlavorTypes)iJ));[/b]
			}

			if (iValue > iBestValue)
			{
				iBestValue = iValue;
				eBestTech = ((TechTypes)iI);
			}
		}
	}

	return eBestTech;
}

The value of what research it will find is based on the sum of all the products of the unit and tech flavors. If your techs are of the military type, they are probably being beat out by other techs that cater more to the great person's flavor. Also note that ties go to the tech that is of the lower number, which will mean if you put your techs at the end of the file, it won't win in a tie.

2) Is there a way to change the Diplomacy Popup Window when the AI wants to talk to you at the beginning of each turn to the MP Human player type where the Human player rings you and you have to click on the civs name to pull up the diplomacy window...


This automatic popup at the beginning of each turn is annoying especially if I am at war with someone.... :mad:

I dont want to "have a chat to have tea" with another AI leader when I am in the middle of combat strategies and troop movements!

I'd rather take care of my war moves... (reinforce areas/track enemy movement/watch combat and see who is victorious/etc) then speak to any leader who wants to...


is it possible to do this?


Probably not without some SDK modding. Not too sure though, especially since I haven't played too much MP.
 
Gerikes said:
....The value of what research it will find is based on the sum of all the products of the unit and tech flavors. If your techs are of the military type, they are probably being beat out by other techs that cater more to the great person's flavor. Also note that ties go to the tech that is of the lower number, which will mean if you put your techs at the end of the file, it won't win in a tie.

Cool thanks. I'll increase the tech flavors... and unit flavors



Gerikes said:
Probably not without some SDK modding. Not too sure though, especially since I haven't played too much MP.


damn.. well thx for your help :)
 
Back
Top Bottom