Log in

View Full Version : If you make mods, click here



Demon of Light
06-07-2003, 22:13
Essentially, the problem is this: every monarch in MTW version 2.0 and in VI dies at the age of 56. Every last one of them. No exceptions. I and many others (see topic in Main Hall) would like to know if this can be fixed by anyone here.

Sir Robin
06-07-2003, 22:23
It would be helpful, but I have a nasty feeling its hardcoded.

I've even lost Muslim faction campaigns because the king's heirs don't mature in time.

Portuguese Rebel
06-07-2003, 23:37
This is harcoded, Gil, a CA programer said that he looked in the code of vikings for this bug, so i presume there is nothing we can do, unless someone with good progrming skills can figure this out.

Kekvit Irae
06-07-2003, 23:54
Rumor is that the College of Surgeons can increase the life of your kings, but I seriously doubt it.

Gazza the Lionheart
06-08-2003, 01:52
Quote[/b] (kekvitirae @ June 07 2003,17:54)]Rumor is that the College of Surgeons can increase the life of your kings, but I seriously doubt it.
Unfortunately it doesn't. I had every building built in all my provinces and my kings kept dying before there 57th birthday. I had an idea to keep the new units and factions from VI in the original MTW but I don't know how to do it.

NagatsukaShumi
06-08-2003, 12:37
Personally I have not noticed this problem, I seriously doubt anyone here can actually modify it as someone said its hardcoded anyways. For now you'll have to put up with it until maybe a patch is released.

Demon of Light
06-08-2003, 22:48
Any chance someone can take a look and make sure it is hardcoded?

Also, we aren't expecting any patches. It would be great to get one but there hasn't been any indication that it will happen.

The bug is real BTW. Just start taking note of when your Kings die in MTW 2.0 and VI.

Portuguese Rebel
06-09-2003, 01:15
I've through all txt files and there is no entry or command related to this bug http://www.totalwar.org/forum/non-cgi/emoticons/frown.gif

Believe me, i searched

Lord Of Storms
06-09-2003, 01:18
I have not had time to play to the extent I could get a King that old, but I have been following the posts of those who have been experiencing this problem and it seems to be a bug/ Deliberate ? By CA, who knows the problem is that data is most likely hardcoded. I could find no refrences to Leaders stats that effect time of death in any accesible files. The problem is just something that will have to be and most likely can be worked around, The how is what remains to be worked up and tested. I am sure if we put our minds to it someone will come up with a temporary fix or workable solution until when and if a patch is made to address this problem. LOS

Lancer6969
06-09-2003, 16:07
CA probably hardcoded it, if you think about it, they would have to implement all kinds of new data to take away the 56 year old age limit for kings. They would have to include things that push the age limit, and things the make the king die earlier. This could take time, but im not sure.

WesW
06-10-2003, 05:18
The way these things work, there is a formula which would determine whether or not the king dies each turn. A bunch of factors would create a certain percentage that he would die, then a random number, or die roll, for you D&D guys out there, would determine whether or not he kicked the bucket.

For VI, CA has apparently altered the formula so that kings start getting age penalties at an earlier age, to represent the Dark Age life expectency. Unfortunately, whoever made this adjustment doesn't seem to have known what they were doing, and CA also didn't think to make the V Camp formula separate from the regular campaign's.

This is most likely something that is never going to be fixed, since, from what I gather, no one is working on MTW any more, and Rome will probably have its own formula.

Kekvit Irae
06-10-2003, 07:02
Quote[/b] (WesW @ June 09 2003,23:18)]or die roll, for you D&D guys out there, would determine whether or not he kicked the bucket.
*rolls her Fortitude*
*fails and dies*
*restarts as a level 1 modder all over again*

the Black Prince
07-14-2003, 11:40
the problem didn't exist in 1.0 and 1.1 versions, only in 2.0 and VI, therefore the formula that calculates death of kings taking in age probability of illness from province stats etc etc etc must still exist on files. surely it should be a simple matter to dupilcate this original formula, replace the MTW 2.0 formula with this one, and modify it slightly to take into account new stats of the 2.0 version. obviously a programmer with the right tools would have to do this though...

Turbo
07-15-2003, 17:40
One way of dealing with the 56 bug is to increase the number of princesses in the game. In my 'MOD' I enable AI factions to 'build' princesses but at a low build prioritiy. More princesses, more marriages and more heirs. It doesn't solve the problem, but it is a way of increasing the heirs.

barocca
07-15-2003, 20:10
The 56 Bug is hardcoded,
there were complaints that generals lived forever in v1.0 and v1.1, which was classed as unrealistic and also caused some hiccups with the inheritence issue if a faction dies out,

for v2.0 CA adjusted the code so a general dies 40 years after taking command,
UNFORTUNATELY no-one considered princes, which the game classes as a general unit,
a prince takes command at age 16, therefore he will die at 56, wether he becomes a king or not,

For replacement generals the default is "inheriting" daddy's V&V's,
there is a command line switch to force in-experienced replacement
when a general dies -green_generals

At this time it remains uncertain wether a patch will be released for VI.

Demon of Light
07-16-2003, 01:16
goscho suggested this in the Main Hall. I don't know how feasable it is but it might interest a few people to see this
========================================

Hello
I have an idea how to fix this bug. I don't have the VI, have no too mutch time to play now and cannot try this at home.
It's the following:
So far I see it's hardcoded in the game, that every general die at the age 56. This means that this age is somewhere in a binary file, maby in the the Vikings Invasions .exe file.
You could try to open this file with Hex Editor and to search for 00 00 00 38
00 00 00 38 is in hexadecimal system = 56 in decimal system
make first a backup copy of the file
then open the file with the hex editor and find how many times can you see this in the file. If you have luck, on of these is the dying age of the generals.
Try to replace the 38(hex) with 46(hex) = 70(decimal)
Then start the game and see if your generals could live more than this age(to 70 years). If yes you found a solution, if not(the game crashes or nothing happen), take the backup copy and replace on the another place 38 with 46.
If you have succes this means, that not only the kings, nut all generals will die to the 70 years. I think this is not so bad and will be more playable than now.
Try this if you have some experience with the hex editors. (If you don't have an idea what a hex editor is, better not trying this).
If somebody is found a solution, it will be possible to create a small patch, who change the age in the .exe file.

I don't know will this idea work or not. There is at least 20% chance to work. It's possible, that the age is not stored in this format, or it is stored in another binary file. But I'm only shure the age is not crypted and if you know where to search it, you can change it. It is possible also, that there is a copy protection, which check if the file is changed or not. In this case if you change something you will be unable to start the game after this.

Hope this will help somebody. Sory for my bad english, but he is not my mother language.
====================================
Demon of Light

Worth noting that the operative number isn't likely to be 56 but rather 40. Same principle though. Sounds like a plan. (I hope)All we need to know is what 40 is in binary.