Any tips on what to check wen converting vanilla to G&K???

ww2commander

Emperor
Joined
Aug 23, 2003
Messages
1,243
Location
Australia
I just bought and installed G&K and with great excitement I went to test my Eastern Front mod!

Crash to desktop as soon as click start scenario! :cry:

Question now is what would cause the crash as I am looking for a needle in a haystack.

Does anyone have any tips (from their experiences converting) that I could use to get my mod development back on track (i.e. obvious table changes or civ/building/unit dependencies that previously were not there)?
 
It did!

I had to update all my building and unit SQL to remove references to fields "Culture" (in buildings) and "IsReligious" (in units).

Unfortunately that solved my XML problems but I am still getting a CTD when loading.

Next step will have to be a complete strip out of all files and slowly adding each one back in (damn I hate doing this). I get a feeling the new additions in buildings and units might be causing the crash as I have removed most default entries via SQL from my scenario.

Painful to the extreme!
 
Are you using custom Art Defines files? If you are(for your units) that will most likely cause a crash, as you now have to update Art Defines via SQL. Postign logs always helps people help you too :)
 
I'm experiencing the same problem the database.log helps you could see that some stuff is not loaded which is placed in DLCs in the Extrension.
 
There is some change in the table of naval units :

CombatClass is now <CombatClass>UNITCOMBAT_NAVALRANGED</CombatClass> or <CombatClass>UNITCOMBAT_NAVALMELEE</CombatClass>

There is some change in the promotions as well and in the AI.

I'm just beginning to check and convert my own mod so there is probably a lot more changes.
 
There were also a lot of changes to Lua functions, although some of that was in the 674 patch and not the expansion itself. Some functions were removed, others had their functionality changed, so if your mod had any Lua in it then it might need a lot of work (or, in some cases, it might make the mod unplayable).
 
My MiniMod just changes worldsizes, so i wouldn't even know where or how to fix the problems, because i'm not touching units, promotions or anything.:(
 
I am away from my normally pc for the next few days, but when I get back I will need to start fresh with all the files. I have ruled out art def issues as I converted all these when I installed the patch. Lua functions are a possibility but at this stage I am not using any of the troublesome ones that may have changed across the patch.

Boy this is really a hassle!
 
Lua functions are a possibility but at this stage I am not using any of the troublesome ones that may have changed across the patch.

Don't assume this. Many Lua functions were removed, and many Lua events' functionalities were changed. And that's just in the 674 patch, even more changed in the G&K upgrade...
 
So I managed to narrow it down to my XML file that tinkers with the civilization table entries.

It seems that the 3 new civ entries my mod adds crash the loading. I removed these entries from the xml file and it loaded fine.

Not sure which field (or lack of field) is causing the crash yet but will update this post with any observations.

FURTHER UPDATE: Still no joy. I have included almost every field in the civ table and still CTD. I also tried adding religion entries just incase but that did not change anything!
 
Probably a question for other modders: Has anyone added a new civ entry in G&K (not replace existing ones) successfully?

If so, can you cut/paste a snippet of your XML/SQL so I can compare.
 
Turns out that the map was the issue as it had pre-placed civs on it. I opened the map and then saved it for G&K. Loads fine now :)

Having exhausted all XML options, I turned towards the map and realized that maybe the civ shuffling with G&K might have caused issues on maps created with vanilla civ.

So tip for the day: Make sure you open your map and save it again for G&K!
 
Back
Top Bottom