Evolution of War

new version

http://www.4shared.com/archive/WXtyyVN8/EoW_12.html


Spoiler :
Assets\XML\Terrain
CIV4TerrainSchema.xml - (look for on labels <!-- VET AmountResourses -->)

CIV4YieldInfos.xml
Code:
	[B]<iFontButtonIndex>2</iFontButtonIndex>[/B]

CIV4FeatureInfos.xml
Code:
	<ArtDefineTag>ART_DEF_FEATURE_JUNGLE</ArtDefineTag>
	[B]<YieldTypeStructs>
		<YieldTypeStruct>
			<YieldType>YIELD_WOOD</YieldType>
			<iYieldChange>60</iYieldChange>
			<iYieldPrice>1</iYieldPrice>
		</YieldTypeStruct>
	</YieldTypeStructs>[/B]
	</YieldChanges>


CIV4BonusInfos.xml
Code:
	<TechObsolete>NONE</TechObsolete>
	[B]<YieldTypeStructs>
		<YieldTypeStruct>
			<YieldType>YIELD_MARBLE</YieldType>
			<iYieldChange>0</iYieldChange>					Produced resources without improvement
			<iYieldMinAmount>30000</iYieldMinAmount>
			<iYieldMaxAmount>120000</iYieldMaxAmount>
		</YieldTypeStruct>
	</YieldTypeStructs>[/B]
	</YieldChanges>


CIV4ImprovementInfos.xml
Code:
	[B]<YieldTypeStructs>
		<YieldTypeStruct>
			<YieldType>YIELD_COAL</YieldType>
			<iYieldPrice>4</iYieldPrice>
			<iYieldForPrice>400</iYieldForPrice>
		</YieldTypeStruct>
	</YieldTypeStructs>[/B]
	.....
	<BonusTypeStructs>
		<BonusTypeStruct>
			<BonusType>BONUS_COAL</BonusType>
			<bBonusMakesValid>1</bBonusMakesValid>
			<bBonusTrade>0</bBonusTrade>
			<iDiscoverRand>10000</iDiscoverRand>
			[B]<YieldTypeStructs>
				<YieldTypeStruct>
					<YieldType>YIELD_COAL</YieldType>
					<iYieldChange>400</iYieldChange>
				</YieldTypeStruct>
			</YieldTypeStructs>[/B]
			<YieldChanges>
				<iYieldChange>0</iYieldChange>
				<iYieldChange>1</iYieldChange>
				<iYieldChange>0</iYieldChange>
			</YieldChanges>
		</BonusTypeStruct>
	<BonusTypeStructs>



Icons for resources
CvGameTextMgr.cpp
void CvGameTextMgr::assignFontIds(int iFirstSymbolCode, int iPadAmount) (look for on labels VET AmountResourses)

Load XML tags
CvXMLLoadUtilitySet.cpp
void CvXMLLoadUtility::SetImprovementBonuses(CvImprovementBonusInfo** ppImprovementBonus) (look for on labels VET AmountResourses)
CvInfos.cpp (look for on labels VET AmountResourses)

Algorithms
CvPlot.cpp
void CvPlot::doTurn()
void CvPlot::updateYield(YieldTypes eUpdateYield)
int CvPlot::calculateImprovementYieldChange(ImprovementTypes eImprovement, YieldTypes eYield, PlayerTypes ePlayer, bool bOptimal, bool bBestRoute, bool bWithBonus, bool bForRealCity) const
int CvPlot::calculateNatureYield(YieldTypes eYield, TeamTypes eTeam, char cModFeature) const
int CvPlot::getYieldParametr(PlotYieldFunc Func, YieldTypes eYield) const


CvPlayer.cpp
void CvPlayer::changeExpensesByPlot(CvPlot* pPlot, char cMod)


CvGameCoreUtils.cpp (look for on labels VET AmountResourses)
 
I'm interested in seeing what multi-core enabling you did. I have downloaded the source and unpacked 'mySDK.rar' (which I assume is your changed version). Having grep'd the source for likely strings ('thread', 'multi-core', 'join', 'spawn') I cannot find anything. Can you point me at the right place to look please (and/or a delimiter string you use to comment your changes, if you use such a thing)

Thanks in advance
 
@Koshling

NeseryoznyjVET is poor in English so always use simple words that can be translated in google translator to russian. If he not respond please note me than I will ask him on RU forum.
 
Koshling
You mast unpacked EoW sourses.rar.
Look for the words "VET MultiThreads", "InterlockedIncrement", "InterlockedDecrement", "InterlockedExchangeAdd", "EnterCriticalSection", "LeaveCriticalSection", "volatile".
For multithreading I used the function _beginthreadex in CvPlayer.cpp, CvGlobals.cpp, CvPlayerAI.cpp, CvXMLLoadUtilitySet.cpp, CvMap.cpp.
Functions for _beginthreadex in CvGameCoreUtils.cpp (ThF_makeGCParametres, ThF_makeCivCanUpgUnitClassToUnitClass, ThF_resetArraysForPlaneCity, ThF_updateCityBestBuild, ThF_updateCityAssignWorkingPlots, ThF_addPlanCity)
 
Hi Nes, Just wanted to say this mod looks VERY interesting!

Would you be ok with me and my team looking through your code for our mod? It has some interesting concepts! (We will credit anything we use from you :) )

Also 2 spelling mistakes I saw in your screen shots.

maksimum = maximum
Professionalness = Professionalism (Better Translation) :)

Great Work! I am going to be watching this mod! :D

It's good to see a New Crazy Good Modder on the Forums :)

Welcome!

I have made some changes to some of your text files (Better Translations) I have only done a few, I will try to do some more if i have the time and energy :)
 

Attachments

Koshling
You mast unpacked EoW sourses.rar.
Look for the words "VET MultiThreads", "InterlockedIncrement", "InterlockedDecrement", "InterlockedExchangeAdd", "EnterCriticalSection", "LeaveCriticalSection", "volatile".
For multithreading I used the function _beginthreadex in CvPlayer.cpp, CvGlobals.cpp, CvPlayerAI.cpp, CvXMLLoadUtilitySet.cpp, CvMap.cpp.
Functions for _beginthreadex in CvGameCoreUtils.cpp (ThF_makeGCParametres, ThF_makeCivCanUpgUnitClassToUnitClass, ThF_resetArraysForPlaneCity, ThF_updateCityBestBuild, ThF_updateCityAssignWorkingPlots, ThF_addPlanCity)

Where do I find EOW_sources.rar? When I downloaded the SDK folder only contained:

MySDK.rar
Better BTS AI sources for 0.84.rar
Pictures.rar
 
amazing work was done here.

koshling - its the mysdk - thats his source.

That's where I was looking - search for 'CriticalSection' through the files in hat RAR gets me 0 hits...

The MySDK.rar file is dated 5 November 2011, which is a long time ago! Have I somehow got an old version?

Edit - just tried to redownload and I am unable to figure out how to get the download page to work - all I can seem to get is crappy downloads that want to install various executables NOT the actual RAR archive. I am NOT going to run an EXE from that site so I need a link to the RAR but I just cannot find one.
 
mm, i didnt took the time to venture through the dates and all,

did you dl this: http://www.4shared.com/archive/WXtyyVN8/EoW_12.html?

i suggest go to this guys : http://vet.civfanatics.ru/Site/EoW.htm

although its russian try to press and dl the links there, maybe youll find something.

also - i dont think he commented all the changes - best to do is compare to vanilla dll and look for the changes.

gluck.

The first link I couldn't get past the link trying to get m to download various EXEs to find one that actually linked to the RAR. I got it from the Russian site though - thanks.
 
The game keeps crashing when I hit the turn button and I get this message

Files that help describe the problem:
C:\Users\Owner\AppData\Local\Temp\WER50DF.tmp.WERInternalMetadata.xml
C:\Users\Owner\AppData\Local\Temp\WER5CA3.tmp.appcompat.txt
C:\Users\Owner\AppData\Local\Temp\WER5CE2.tmp.mdmp
Any Idea what the problem is?
 
Back
Top Bottom