Help with techs needed

hr_oskar

Deity
Joined
Jun 21, 2002
Messages
624
Location
Iceland
I'm trying to get my mod of the Middle Ages in Europe ready for playing but Civ4TechInfos.xml is giving me a lot of trouble. I'm actually making a completely new tech tree, which of course makes it all a lot more complicated.

First I wrote up all the techs, ignoring costs, flavors and icons, just focussing on having a functioning entry for each TechType. That works fine, no errors are reported during launch and all the techs display correctly in the Civilopedia. I also assigned them some rough grid co-ordinates.

Then I wrote up the tech requirements. With patch v1.52, the requirements were all correct in the Civilopedia, but the game would always crash to desktop once I hit EOT on the first turn, or after a while browsing the science advisor, without any error message at all. Since the techs weren't too wisely placed on the grid, and the arrows were all messed up, I concluded maybe I'd just have to arrange the techs properly first.

Then came patch v1.61, and now there's no CTD. However, the tech requirements either don't show up at all, or are completely wrong, pointing to the wrong tech. I tried deleting all the techs except the first 10 or so, just to see if they would work properly, but they don't. Since there's no error message at any point, I have no idea why this isn't working.

If you think you can help, please verify the attached Civ4TechInfos.xml file.
 

Attachments

The techs need to be properly arranged. I didn't look at your code but from my experience with this that file is pretty picky.

Here's what I'll suggest:

Make a spreadsheet with all your techs and put them in the order you want them to appear on the tech tree itself. Then make sure each tech gets the proper coords (it's easy once you have a spreadsheet). I like to put all my techs in order, from left to right (moving from up to down).

So for the vanilla tech tree the fist tech might be fishing, then mining, then hunting, then mysticism, or whatever the vanilla techs are (haven't played it in such a long time). The point is, I go start at the top of column, then have all the techs in that column, then move on to the next column. Worked for me.

Also, make sure that your reqs are correct. And, you can't have too many reqs for a tech. Also, keep new eras separated by new columns. Good luck.
 
Thank you Shqype :)

I did do exactly that - I made a spreadsheet with correct co-ordinates to get an overview. It seems to be pretty picky, yes.

I haven't paid attention to the eras though... so I'll try to make sure now that they are separated by new columns as you advice. Thanks.
 
Ok thanks a lot Great Apple, it's working now :goodjob:

So the problem was that I'd added comments, after all.
 
Unfortunately I don't have anything to add and since the problem has been fixed, it doesn't really matter anyways. :p

However, I do think spacing the techs by era is a really good idea. Wish I had thought of that when I made my mod.

Looks like it will take me a while to do that to my tech file. 126 techs and 7 eras! :eek:

==300th POST==
 
Back
Top Bottom