[BtS MODCOMP] Resource Tech Research Modifier Mod

Grave

1 Goat = 400 Horses
Joined
May 5, 2002
Messages
1,530
Location
Louisiana
Resource Tech Research Modifier Mod v0.3
By: Grave, TheLopez


Patch Compatibility: Beyond the Sword v3.02
MP Compatible: ?

Description:
Spoiler :
I take no credit for creating this mod. This is the work of TheLopez. All
I did was port it over to Beyond the Sword.

This mod adds the tags to enable faster research of a technology if the
civilization has access to particular bonuses. So for instance in the sample
included CIV4BonusInfos.XML file, copper is now revealed by Mining instead of
Bronze Working and if the civilization has access to copper then researching
Bronze Working will be 95% faster. To achieve this the following XML tag
snippet was added to the copper definition in CIV4BonusInfos.XML following the <TechObsolete> tag.
Code:
			<ResearchPercentModifiers>
				<ResearchPercentModifier>
					<TechType>TECH_BRONZE_WORKING</TechType>
					<iResearchModifer>95</iResearchModifer>
				</ResearchPercentModifier>
			</ResearchPercentModifiers>

-----Notes to Modmakers-----

Spoiler :
If you want to use this mod component in your mod I have tried to make things
as easy as possible for you. In the SDK files I have added:
/*** RESOURCE TECH RESEARCH MODIFIER MOD 27 July 2007 by Grave START ***/
/*** RESOURCE TECH RESEARCH MODIFIER MOD 27 July 2007 by Grave END ***/
in all of the places where changes were made.


-----Version Information-----

Spoiler :
-----v0.3------

- Updated to be compatible with Beyond the Sword v3.02.

-----v0.2w------

- Updated to be compatible with Warlords v2.0.8.0 patch.

-----v0.1w------

- Setup the Resource Tech Research Modifier Mod infrastructure

- Added the code needed to enable resources to provide a bonus for researching
technologies.



-----===Credits & Thanks===-----

- TheLopez
Initial idea & coding for Warlords


SCREENSHOT:

Spoiler :
techresearch_JY0.jpg
 
I'd love to, but there is something hard broken with the code. While the tech research bar shows the corrected amount of turns with the right resource, the game itself does not.

So for example, you have a resource that gives a 50% bonus to discovering a tech. While it says it takes "5 turns" to discover a tech, reality is it still takes "10 turns".
 
Back
Top Bottom