Log in

View Full Version : v0.8.1a CTD



dutch81
03-06-2007, 05:39
Man I hate to say this as in ALL my previous games of EB I did not once have a CTD ... I just downloaded the hotfix tonight and decided to start a campaign as the Lusotana. Well I am a little way into my campaign I have pushed Carthage off already ... and had just besieged a 3rd rebel town ... as I hit the end turn button CTD!

As it is a bit late I will try again tomorrow to see if it happens again and exactly what town it is. I hope it was just a fluke!

Edit:
It was the winter of 268 BC ... assaulting the central most city in Iberia ... as soon as I hit the end turn button ... I did load it up that night and it played through the AI turn and it allowed an assualt the next season so I guess it was a fluke. Like I said I have had no CTD's with EB before but this is my first time with these guys and w/ the recent hotfix.

Edit #2:
I did also notice that the Luotana generals have a bad tendency of dropping their swords in battle ... they start out with it but once they have engaged or perhpas when they throw their javelins ... they will no longer have a sword. I wonder does this mean they are no longer able to attack or is it just a graphic glitch? The rest of their bodyguard is fine ... in fact they look cooler then the general!

Tellos Athenaios
03-06-2007, 21:41
Alt + right click, and they should be fighting with swords again.

dutch81
03-06-2007, 23:17
Alt + right click, and they should be fighting with swords again.

No ... sorry that didn't work. It is a minor issue but just wanted the EB team to be aware of it ... it is only the generals sword that dissapears in battle although he continues to strike at the enemy as if he is holding one, and ofcourse he starts with the sword in hand at the beginning of any battle. It must just be some magical invisible sword!

I have the whole Iberian penninsula captured except the central city that keeps giving me a warning when I get close to it with troops that says they are my allies yet I am at war with them ... and that if I attack they will raise a large army. I am very afraid of what that attack might unleash as I have one unit per city now and a mobile army of a little over 400 troops. I guess I should consolidate?

:juggle2:

Irnerius
03-06-2007, 23:55
Hi altogether. I feel like dutch81.

I successfully downloaded & installed (zip-)hotfix 0.8.1a today (Clean 1.5 RTW, 0.80-Full, 0.81-Patch + 0.81a-Zip-Hotfix. This hotfix of course unzipped in the main-directory of RTW and overwriting existing files... Starting-screen indicates 0.81a is successfully installed!).
But I get a persistent CTD in my new started Rome-Campaign at date autumn 266 at AI-Turn (Bactria). Script activated or inactivated doesn't matter, always get a CTD!

Here is the file: http://uploaded.to/?id=146n25

If someone (perhaps someone with the full-0.81a-Install) can verify the CTD I would be glad.

Thank you!

Kull
03-07-2007, 08:21
If someone (perhaps someone with the full-0.81a-Install) can verify the CTD I would be glad.

Well that's depressing. Baktria has a city with revolt-level unrest (Sulek), and it CTD's on their turn. It certainly appears to be the Rebelling City CTD, although it has the ability to build exactly the units required to offset it (i.e. Saka or Rebel). Gah. :no:

MarcusAureliusAntoninus
03-07-2007, 08:51
Well that's depressing. Baktria has a city with revolt-level unrest (Sulek), and it CTD's on their turn. It certainly appears to be the Rebelling City CTD, although it has the ability to build exactly the units required to offset it (i.e. Saka or Rebel). Gah. :no:
Hmm
Has the city upgraded before being taken by Baktria? Maybe the owner is not Saka (the creator) and the crash is due to it trying to rebel to Seleucia or Parthia or Sarmatia?

(The only map I found said it would revert to Yuehzi. I need to find new versions of those creator/owner/ect maps. :laugh4:)

Irnerius
03-07-2007, 12:36
Thank you Kull and just want to say to you and the hole EB-Team: I love this mod for its historical accuracy and the challenge (CTD's excluded of course). Exspecially I like all this wonderful extras (music, latin voices, ....). I even like it more than Medieval II!
You will fix also this bug!

It really seems to be Sulek revolting as Kull reported. I tested it starting a Bactrian campaign (with money-cheating). I conquered Gava Haomavarga and intentionally let it revolting - it turned to Sarmatia (without CTD and without processing Units - Don't know if that's intentional, that in Gava Haomavarga was a revolt without processing Units):
File with Gava Haomavarga revolting successfully to Sarmatia (just click end-turn):
http://uploaded.to/?id=coapil

Then i conquered Sulek and let it intentionally revolting ---> CTD!
Here is the File before Sulek intentionally revolts (just click end-turn):
http://uploaded.to/?id=uryku3

@MarcusAureliusAntonius: Perhaps these File helps... Conquered Sulek and you can compare it with Gava Haomavarga (with some building in Gava Haomavarga built by myself later - in the first files with the rebellion without CTD there were the original ones there).

Perhaps its because Sulek has a Populated Area (Nomad) and Gava Haomavarga a inpopulated Area (Nomad)? I don't know, but I would be glad when my files could shorten your precious bug-fixing-time!

Thanks a lot for your fast previous answer! And excuse please for some sort of capturing this thread!

Edit1: (some) spell-errors corrected (Sorry I'm german speaking).

Oleo
03-07-2007, 13:52
Well that's depressing. Baktria has a city with revolt-level unrest (Sulek), and it CTD's on their turn. It certainly appears to be the Rebelling City CTD, although it has the ability to build exactly the units required to offset it (i.e. Saka or Rebel). Gah. :no:

The problem I think is the mercenary_unit attribute of the unit (steppe missile cavalry sauromatae fat aexsdzhytae) that will be recruited in case of a revolt. If I remove that attribute in EDU for this unit the CTD dissappears.

Irnerius
03-07-2007, 15:52
The problem I think is the mercenary_unit attribute of the unit (steppe missile cavalry sauromatae fat aexsdzhytae) that will be recruited in case of a revolt. If I remove that attribute in EDU for this unit the CTD dissappears.

Thank you very much for the solution Oleo! :applause:

I can confirm this. Just removed it as described by Oleo, restarted game and reloaded my previous posted 2 CTD-Files (Rome + Baktria).

With Oleo's solution, no CTD happened both times! :2thumbsup:

Instead I got in both cases a correctly rebelled (to Saka Rauka) Sulek with 11 Elite sauromatae fat aexsdzhytae only by removing its mercenary-trait. Perhaps its by the program not allowed, that mercenary-Units take control of a rebelling city?!

(If somebody wants it, i could provide screenshots or files for proof!)

Teleklos Archelaou
03-07-2007, 17:56
Very nice work guys. I hope we can implement this.

Kull
03-07-2007, 21:45
The problem I think is the mercenary_unit attribute of the unit (steppe missile cavalry sauromatae fat aexsdzhytae) that will be recruited in case of a revolt. If I remove that attribute in EDU for this unit the CTD dissappears.

Very nice piece of detective work! I was pulling my hair out over WHAT could possibly have gone wrong with our Palace recruiting solution.

However. I believe that Saka and Sauromatae have the SAME palace unit, so how did Irnerius have a successful revolt-to-Sauromatae in Gava Haomavarga? Could somebody take a look at that test game and see what the units look like in the revolting city? Because if it is the same Sarmatian Horse Archer unit that CTD's in Sulek.....then we have another mechanism at work here.

Going out on a limb (because i have no files to look at), can somebody pop open descr_merc and see if there is any mercenary recruitment in Sulek's province? And Gava Haomavarga province? Thanks!

BTW, the team REALLY appreciates it when fans take the time to delve into these CTD's and help us solve them - or even solve them all by yourselves! :2thumbsup:

Tellos Athenaios
03-07-2007, 22:10
Here you are,


pool Xiyu
regions Xiyu
;; unit SAKA ASPA SHIVATIR (Sakae Horse Archers)?, exp 0 cost 1000 replenish 0.11 - 0.16 max 2 initial 0

Dol Guldur
03-08-2007, 00:58
The dreaded presence of a mercenary causing problems still :( I wish that could be tracked down...I would guess that depleting the pool (getting a family member to recruit the merc(s) before the revolt (and before the next replenishment)) would also avoid the CTD?

Dooz
03-08-2007, 04:20
Guys, I read the posts but I'm still not sure what change to make exactly so I can avoid this CTD. If the solution has been discovered and confirmed, can someone explain what to do?

Oleo
03-08-2007, 13:40
Sulek:



pool Xiyu
regions Xiyu
;; unit SAKA ASPA SHIVATIR (Sakae Horse Archers)?, exp 0 cost 1000 replenish 0.11 - 0.16 max 2 initial 0



Gava-Haomavarga:


pool Dahyu_Haomavarga
regions Dahyu_Haomavarga
unit eastern missile eransahr arshtbara merc, exp 0 cost 1082 replenish 0.1 - 0.15 max 2 initial 1
;; unit SAKA ASPA SHIVATIR (Sakae Horse Archers)?, exp 0 cost 1000 replenish 0.1 - 0.16 max 2 initial 1

The Gava-Haomavarga save does indeed not get a ctd when revolting, after the revolt there is no garrison present. Not one unit.

In EDB the entries for recruitment for the faction armenia (Sauromatae) do not cover the city of Gava-Haomavarga (EA, B, y1, n2, y4, n8). Adding such an entry to EDB:


recruit "steppe missile cavalry sauromatae fat aexsdzhytae" 0 requires factions { armenia, } and hidden_resource EA and hidden_resource B and hidden_resource y1 and hidden_resource n2 and hidden_resource y4 and hidden_resource n8

results in a ctd like Sulek's ctd.

p.s. Bughunting is fun :laugh4:

Oleo
03-08-2007, 13:55
Guys, I read the posts but I'm still not sure what change to make exactly so I can avoid this CTD. If the solution has been discovered and confirmed, can someone explain what to do?

I think the best solution is to replace the recruitment of the unit that is causing the ctd with a unit that does not have the mercenary_unit attribute. My suggestion is: steppe missile fistaegfataexsdzhytae

What you have to do is first open up Export_descr_buildings.txt. This file starts with the governor buildings, which are the building that need adapting:

For these buildings (governors_house, governors_villa, governors_palace, proconsuls_palace, imperial_palace ) you will have to change all the lines starting with:


recruit "steppe missile cavalry sauromatae fat aexsdzhytae" 0

into a line starting with


recruit "steppe missile fistaegfataexsdzhytae" 0

So just copy-paste the new unit name over the old one.

Oh and make a backup before saving!!

dutch81
03-08-2007, 14:19
I think the best solution is to replace the recruitment of the unit that is causing the ctd with a unit that does not have the mercenary_unit attribute. My suggestion is: steppe missile fistaegfataexsdzhytae

What you have to do is first open up Export_descr_buildings.txt. This file starts with the governor buildings, which are the building that need adapting:

For these buildings (governors_house, governors_villa, governors_palace, proconsuls_palace, imperial_palace ) you will have to change all the lines starting with:


recruit "steppe missile cavalry sauromatae fat aexsdzhytae" 0

into a line starting with


recruit "steppe missile fistaegfataexsdzhytae" 0

So just copy-paste the new unit name over the old one.

Oh and make a backup before saving!!

Are you sure this is the right file, all I have is agent diplomats in those buildings.

Oleo
03-08-2007, 14:33
Are you sure this is the right file, all I have is agent diplomats in those buildings.

Yeah its the right file (install folder\EB\data is the path), maybe you have an older version (not 0.81a, older versions dont have these lines yet):

https://img172.imageshack.us/img172/9504/edbgu3.th.jpg (https://img172.imageshack.us/my.php?image=edbgu3.jpg)

dutch81
03-08-2007, 14:45
Well now I am really confused because I started with EB v.8 and then upgraded each subsequent one to .8.1a ... that is why I started this thread afterall ... but my file first of all does not have txt behind it as yours does ... nor does it have all those units there???

What is going on?

Edit #1:
By the way just loaded EB again and on the start up screen it does say V 0.8.1a ... so it must have updated???

Oleo
03-08-2007, 15:12
Well now I am really confused because I started with EB v.8 and then upgraded each subsequent one to .8.1a ... that is why I started this thread afterall ... but my file first of all does not have txt behind it as yours does ... nor does it have all those units there???

What is going on?

Edit #1:
By the way just loaded EB again and on the start up screen it does say V 0.8.1a ... so it must have updated???

Your file not showing .txt is probably a windows option. Open up a folder, then go to tools -> folder options -> view and find a line that says: hide extensions for known file types. uncheck the box and .txt will appear behind text-files.

I would say that your install is corrupt if you dont have those units in that file, which means you need to reinstall. But lets wait for some input from others before you do a reinstall and spend a lot of time for nothing.

Kull
03-08-2007, 19:43
Sulek:



Gava-Haomavarga:


pool Dahyu_Haomavarga
regions Dahyu_Haomavarga
unit eastern missile eransahr arshtbara merc, exp 0 cost 1082 replenish 0.1 - 0.15 max 2 initial 1
;; unit SAKA ASPA SHIVATIR (Sakae Horse Archers)?, exp 0 cost 1000 replenish 0.1 - 0.16 max 2 initial 1

The Gava-Haomavarga save does indeed not get a ctd when revolting, after the revolt there is no garrison present. Not one unit.

In EDB the entries for recruitment for the faction armenia (Sauromatae) do not cover the city of Gava-Haomavarga (EA, B, y1, n2, y4, n8). Adding such an entry to EDB:


recruit "steppe missile cavalry sauromatae fat aexsdzhytae" 0 requires factions { armenia, } and hidden_resource EA and hidden_resource B and hidden_resource y1 and hidden_resource n2 and hidden_resource y4 and hidden_resource n8

results in a ctd like Sulek's ctd.

p.s. Bughunting is fun :laugh4:

Nice. That locks it down very nicely. There is now NO DOUBT that what drives these CTDs is the presence of the merc_unit attribute in a Palace recruitable unit. I checked through all the palace recruitable units in the v.81a EDB, and this horsearcher is the only unit that has the attribute. Thus the bug is currently restricted to provinces with saka or sauromatae "base culture" (as defined in descr_regions.txt). So that's also good - we only have to fix the one unit.

Your choice of the Foot Archer looks to be correct, as we need to select a unit that's recruitable in these provinces AND is MIC Level 1. Unfortunately I'd prefer not to saddle horsearcher factions with a mass of foot units, but for now that's acceptable - it's better than a CTD, and you can't remove the merc_attribute from the horsearcher without totally screwing up it's skin.

I'll put together a corrected EDB so folks can just copy that over whole instead of trying to mod the thing - but it may take a day or so. In the meantime Oleo's manual fix should do the trick.

Dooz
03-09-2007, 02:17
Thanks O! Once again, you are the best. :bow:

Dooz
03-10-2007, 20:34
I just experienced the CTD, repeatable, I believe on Baktria's turn. I hadn't done the copy+paste yet when it happened, I just did though. I'm wondering if that horse archer post was the only thing that has to be changed, or if your post above that is for something too. If so, what exactly is it you have to do with regards to Gava-Haomavarga and Xiyu and all that?


-edit-
Nevermind! Should have tried it before posting I guess. Works like a charm, thanks again O.

Oleo
03-11-2007, 13:41
:2thumbsup:

Al_Veran
03-13-2007, 00:02
Very interesting debuging sequence :2thumbsup:


It inspires me to understand the functionning of the famous rebel CTD, and I hope I can solve my own CTD problem :wall:

I am always on the 0.81 version (I don't want to let my dear Roman Campain down :embarassed: ) but with the Marcus Aurelius "export_desc_building" file. I have a CTD caused by a Carthaginian city ( I hate Carthaginians... ).

As I read your debugging method, I think that the CTD could be caused by the "nature" of the unit used by the revolting city.

So I am going to work on this and try to solve it myself because it is not so important for me to have very good rebel units against me.

But Thank you guys, the mod is so pleasant that even debugging is motivating :2thumbsup:

Kull
03-14-2007, 05:10
As promised, a new EDB has been posted (https://forums.totalwar.org/vb/showthread.php?t=81220) that should solve all the v.81a rebel city CTDs (it won't work with v.80, but it *might* work with v.81).