OK thanks.
What is MEMORY_ACCEPTED_JOIN_WAR in the leaderheadinfos.xml?
I've never recieved any diplo bonus from accepting to join an AI in a war request...
One of the memory decay types is MEMORY_RECEIVED_TECH_FROM_ANY
Is this referring to the "You have traded with our worst enemies" diplo penalty?
While waiting for next update of RoM few days ago, I came across the code fr your modcomp here in HitM. I wanted to install your modcomp but Grave already beat me to it.
Actually, I perceive you as a good Internet pal and I thought it may brighten your day a bit ot think that not only RoM is using your modcomp.
He did.![]()
In post #2 look for the spoiler for the Change Log to v3.19e
Afforess, do you know where these memory decay things are handled in the DLL? In other words, I want to see the calculation that uses the number.
I noticed you said the numbers refer loosely to how long it will take for the number to decay, but where can I check this myself or is it hidden in the engine?
for (iI = 0; iI < MAX_PLAYERS; iI++)
{
if (GET_PLAYER((PlayerTypes)iI).isAlive())
{
for (iJ = 0; iJ < NUM_MEMORY_TYPES; iJ++)
{
if (AI_getMemoryCount(((PlayerTypes)iI), ((MemoryTypes)iJ)) > 0)
{
if (GC.getLeaderHeadInfo(getPersonalityType()).getMemoryDecayRand(iJ) > 0)
{
if (GC.getGameINLINE().getSorenRandNum(GC.getLeaderHeadInfo(getPersonalityType()).getMemoryDecayRand(iJ), "Memory Decay") == 0)
{
AI_changeMemoryCount(((PlayerTypes)iI), ((MemoryTypes)iJ), -1);
}
}
}
}
}
}
I provided the two source files I changed. My changes are commented "Afforess" and "Realistic Diplomacy." Sorry if the other comments in their confuse you, the files are from RevDCM's sources.
View attachment 223752
[snip]
There is no download for this ModComp, as it isn't for playing. It is for merging.
I do have a working example made, but it requires the latest RevDCM or Rise of Mankind. (That's who I originally made it for).
Here is an example. It was made for WoC, and is split up by leader.
View attachment 227325
So the code for this is already in RevDCM ? The first link / attachment is no longer working, as that was the source code I am not entirely sure![]()