History Rewritten (Original Thread)

Most certainly! At the moment the new leaders going into 0.4 are:

Assyria
*Shamshi-Adad (Ent/Imp)
*Shammuramat (Dip/Fin)
*Ashurbanipal (Org/Tac)

Hatti
*Hattusili (Ent/Prt)
Suppiluliuma (Dip/Tac)

Phoenicia
Hiram (Ent/Exp)

Swahili
*Shehe Mvita (Ent/Phi)
*Abu'l Mawahib (Ent/Org)

The ones with a * in front of them are ones that I haven't got personalities for yet, so feel free to have a go at some of those. There are also a bunch of leaders already in that could really used more appropriate personalities too, if they appeal to you more:

Djoser of Egypt
El Cid of Spain
Herod of Israel
Jimmu of Japan
Le Loi of Vietnam
Lobsang Gyatso of Tibet
Tin Hinan of the Berber

At the moment these are largely copies of other leaders with a few tweaks at most. The vast majority of AI's I borrow from other mods as I'm not that proficient at creating them myself.

Well, I know a fair bit about El Cid, so I might start with him. Just the standard tags, right? LEADER_EL_CID and stuff like that. I haven't seen El Cid's current personality yet, though, so I'll go look at that before I start.
 
So I tried bootcamp on Windows to see if it would work better and perhaps crash for me less. But it won't load, lots of XML errors, here's the ones I got before it died on me, unfortunately I can't find a log of exactly what went wrong but I'll give you the best estimates I can:

Tibet:
Civ4ArtDefines_Unit.xml -> Line 1 triggers bad syntax, there seems to be a space at the beginning of the line, could that be it?
Civ4BuildingInfos.xml -> <BuildingInfo> cannot be empty according to schema (I believe it was tibet, not sure I think this error came up for a few things, Nubia as well, seemed to be whoever doesn't have a UB yet)

Polynesia:
Civ4ArtDefines_Unit.xml -> Line 408 gives an error saying it was expecting a <bActAsLand> tag and not <NIF>
Civ4BuildingInfos.xml -> Line 173 says you use an <iDCMAirBombMission> tag which is not defined in the schema, this seems to be true, I couldn't find it in the schema file

Vietnam:
Civ4BuildingInfos.xml -> <BuildingInfo> cannot be empty according to schema


There might be more but the game crashes after just a few of these, does the Mac version not require things the PC version does? cuz that seems bizarre...
 
Can't open 0.3

All the normal missionaries (Christian, Jewish, Islamic, Taoist, Confucian, Hindu, Buddhist) have an error that states their tag is missing.

XML\gameinfo/CIV4Religions

The \ is intentional. And, you see, there is no CIV4Religions file. There are also some glitches, but I can't remember what they are for. I cannot open the mod, no matter what I do.
 
My first version of the new El Cid AI is done! However, I can't test it because I can't open 0.3

The old version depicted him as a dishonourable, demanding semi-warmonger.

In truth, he was an honourable, respectful, tolerant man forced to fight.
 
My first version of the new El Cid AI is done! However, I can't test it because I can't open 0.3

The old version depicted him as a dishonourable, demanding semi-warmonger.

In truth, he was an honourable, respectful, tolerant man forced to fight.

I'm no expert on El Cid. However, I do know that he served as a military captain (in the old sense of the term) for both the Christian and Moslem monarchs. So he certainly was not a religious idealist.
 
The latest version (0.3) will not load for me. When I select it and the app restarts, nothing happens. I have to force-quit the app.

It can take quite a long time for the loading splash to even appear, depending on your system. Many minutes even. This is because I cannot pack the artfiles into FPKs, doing so would mean the mod would load in a fraction of the time.

AlanH said he'd have a look at adding packing functionality to Macapaka but that won't be til May at the earliest as he is busy.

Well, I know a fair bit about El Cid, so I might start with him. Just the standard tags, right? LEADER_EL_CID and stuff like that. I haven't seen El Cid's current personality yet, though, so I'll go look at that before I start.

Yeah standard tags. El Cid definitely deserves a good AI of his own, I think at the moment he has a personality I borrowed from a Michael Collins of Ireland.

So I tried bootcamp on Windows to see if it would work better and perhaps crash for me less. But it won't load, lots of XML errors, here's the ones I got before it died on me, unfortunately I can't find a log of exactly what went wrong but I'll give you the best estimates I can:

Tibet:
Civ4ArtDefines_Unit.xml -> Line 1 triggers bad syntax, there seems to be a space at the beginning of the line, could that be it?
Civ4BuildingInfos.xml -> <BuildingInfo> cannot be empty according to schema (I believe it was tibet, not sure I think this error came up for a few things, Nubia as well, seemed to be whoever doesn't have a UB yet)

Polynesia:
Civ4ArtDefines_Unit.xml -> Line 408 gives an error saying it was expecting a <bActAsLand> tag and not <NIF>
Civ4BuildingInfos.xml -> Line 173 says you use an <iDCMAirBombMission> tag which is not defined in the schema, this seems to be true, I couldn't find it in the schema file

Vietnam:
Civ4BuildingInfos.xml -> <BuildingInfo> cannot be empty according to schema


There might be more but the game crashes after just a few of these, does the Mac version not require things the PC version does? cuz that seems bizarre...

Actually Mac BTS ignores the schema files that are compulsory for the Windows version, also the Mac version uses a slightly different xml parser. Which makes cross compatible mods a real pain. Each version will throw errors for completely different things :(

Those error messages help a ton though, I'll fix them and then post a patch soon.

Can't open 0.3

All the normal missionaries (Christian, Jewish, Islamic, Taoist, Confucian, Hindu, Buddhist) have an error that states their tag is missing.

XML\gameinfo/CIV4Religions

The \ is intentional. And, you see, there is no CIV4Religions file. There are also some glitches, but I can't remember what they are for. I cannot open the mod, no matter what I do.

Hmm that is strange. This hasn't happened to anyone else that I've heard so it's either a corrupt download or something strange about how you installed it.

There is not supposed to be a CIV4ReligionsInfo.xml in Assets/XML/GameInfo/ in the mod, it should be loading the standard one from normal BTS. There is however a modular addition called Religions_CIV4ReligionsInfo.xml in Assets/Modules/Religions/. Can you check it exists at that location? There should be about 30 files/folders in there.

Can you also check that you have Modular Loading enabled, Custom Assets disabled (both in History Rewritten.ini), and that the mod was installed in the right location (see first post). It's better to delete a previous version and install the new version fresh; overwriting the old version would very likely cause problems.
 
How large is the total file supposed to be (The 0.3 Folder)? Mine is 1.23 gigabytes.

I haven't got 0.3 installed atm but that sounds about right. Did you see that the install location changed for 0.3?
 
Tibet:
Civ4ArtDefines_Unit.xml -> Line 1 triggers bad syntax, there seems to be a space at the beginning of the line, could that be it?
Civ4BuildingInfos.xml -> <BuildingInfo> cannot be empty according to schema (I believe it was tibet, not sure I think this error came up for a few things, Nubia as well, seemed to be whoever doesn't have a UB yet)

I can't see anything else wrong with it so I'm guessing it's that leading space. Leading spaces don't throw errors in Civ on Mac but they do cause a message in the Console.

Polynesia:
Civ4ArtDefines_Unit.xml -> Line 408 gives an error saying it was expecting a <bActAsLand> tag and not <NIF>
Civ4BuildingInfos.xml -> Line 173 says you use an <iDCMAirBombMission> tag which is not defined in the schema, this seems to be true, I couldn't find it in the schema file

I think the <bActAsLand> and <bActAsAir>tags were introduced in BTS, meaning any unit define I've copied from a Warlords mod might not have them. I've attached a fix for that file, but there could be a few more of them somewhere. No easy way to search for something that isn't there but should be :/

The <iDCMAirBombMission> tag should not be there. I've attached a fixed copy of that file too.

Vietnam:
Civ4BuildingInfos.xml -> <BuildingInfo> cannot be empty according to schema

Ah yeah, Israel_CIV4BuildingInfos.xml, Nubia_CIV4BuildingInfos.xml, Vietnam_CIV4BuildingInfos.xml will need to be deleted for the time being. I really need to get UBs for those 3 but finding art has proven difficult thus far.


Could you apply all these changes and see if that gets you any further on Windows? I appreciate the testing, means I have a better chance of avoiding such mistakes in future.
 

Attachments

Oh, and the file size... It's a bit big. Do you think it would be possible to merge the files of leaders of a certain civ together? (Eg.: Lincoln, Washington and Roosevelt's Ai files are put into one big one) Simple things like that would make the mod much smaller but retain the quality.
 
Oh, and the file size... It's a bit big. Do you think it would be possible to merge the files of leaders of a certain civ together? (Eg.: Lincoln, Washington and Roosevelt's Ai files are put into one big one) Simple things like that would make the mod much smaller but retain the quality.

The AI is just xml, putting them all together will save next to nothing in terms of filesize, a few kilobytes across the entire mod at most. It would cut down on the number of schema files needed but still, that wouldn't amount to much as they're just text.

The size comes entirely from artfiles, mostly leaders and units. There's not a great deal more I can do to reduce it, I'm already pruning duplicate files as I find them. Most can't be removed without heavy editing of each unit's nif file and I most definitely don't have the time or patience to do that. There are a few units I know of that have unnecessarily large textures that I plan to replace/resize eventually though.

At some point I will do a stocktake of what's been added and remove anything with minimal differences, but at a rough guess - all up we're talking 10-20MB maximum shaved off.

Any luck getting it to run yet? If not are you getting any Console messages or helpful information in the Log folder?
 
[13213.424] ERR: CIV Init FAILED, exiting
That was in the log folder. I am currently starting up the mod, and I will record the error messages.

Ok. It started. Init XML... half progress. Paused.

Tag: UNITCLASS_JEWISH_MISSIONARY in Info class was incorrect
Current XML file is: xml\GameInfo/CIV4ReligionInfo.xml

It does that for the 7 standard religions...

and then no messages. Frozen at halfway progress.

Then it randomly quits.
 
[13213.424] ERR: CIV Init FAILED, exiting
That was in the log folder. I am currently starting up the mod, and I will record the error messages.

Ok. It started. Init XML... half progress. Paused.

Tag: UNITCLASS_JEWISH_MISSIONARY in Info class was incorrect
Current XML file is: xml\GameInfo/CIV4ReligionInfo.xml

It does that for the 7 standard religions...

and then no messages. Frozen at halfway progress.

Then it randomly quits.

I just did a test. I switched off modular loading and I got the same messages about the missionaries as you. I've set HR to have modular loading on by default (the setting is in History Rewritten.ini). Did you rename the mod's folder? This would cause BTS to skip the included .ini and create it's own with the wrong settings. Your History Rewritten.ini should look like this:


Code:
[CONFIG]

; Modular XML Loading
ModularLoading = 1

; Skip Main menu
SkipMainMenu = 0

; Custom Art from user folder is not loaded
NoCustomArt = 1

; Custom XML and Python from user folder are not loaded
NoCustomAssets = 1

; No Custom Scenario option in main menu
NoCustomScenario = 0

; No team play allowed
NoTeams = 0

; Read Game options from XML, not .ini
ForceGameOptions = 0

; Always start in the standard era
ForceStandardEra = 0

; Scenario file (Single player)
ForceScenario = 0

; This mod is only for single player games
SinglePlayerOnly = 0

; Allow public maps to be used with this mod
AllowPublicMaps = 1

; Mod Image file
ImageFile = 0

; Name of Mod
Name = History Rewritten 0.3

; Description of Mod
Description = A Work in Progress

The other possibility is that modular loading has been disabled completely for all mods. Open the file /Documents/Civilization IV Beyond the Sword/CivilizationIV.ini. Search for 'modular' and you should see this entry:

Code:
; Modular XML Loading
ModularLoading = 1

If that is set to 0 then modular loading is disabled. Change it to 1.
 
jingu_civ4leaderheadinfos.xml - element content is invalid according to schema, line 473, expecting diplomacyMusicPeace, got <DiplomacyIntroMusicPeace>

Tag: LEADER_JINGU in Info class was incorrect -> japan_civ4civilizations (I'm guessing this is just because the xml call failed though)

After that it loads up just fine, I didn't have time to start a game but checked the civilopedia and it looks like it loaded everything but tossed out Jingu. I looked at the file and it almost looks like there are duplicate tags? but I know next to nothing about xml files in civ mods so... I'll let the expert figure it out ;)

I can probably test it more tomorrow night (like 8pm GMT-5) so if you happen to get to it by then I can let you know how it goes.

I also tried reinstalling civ on the mac side gonna see if that fixes my crashing issue there.
 
jingu_civ4leaderheadinfos.xml - element content is invalid according to schema, line 473, expecting diplomacyMusicPeace, got <DiplomacyIntroMusicPeace>

Tag: LEADER_JINGU in Info class was incorrect -> japan_civ4civilizations (I'm guessing this is just because the xml call failed though)

After that it loads up just fine, I didn't have time to start a game but checked the civilopedia and it looks like it loaded everything but tossed out Jingu. I looked at the file and it almost looks like there are duplicate tags? but I know next to nothing about xml files in civ mods so... I'll let the expert figure it out ;)

I can probably test it more tomorrow night (like 8pm GMT-5) so if you happen to get to it by then I can let you know how it goes.

I also tried reinstalling civ on the mac side gonna see if that fixes my crashing issue there.

Gah, that was caused by a stupid copy/paste error. However it has a wider significance because I've suspected for a while now that Japan was provoking some of audio issues - exactly what that section dealt of xml dealt with. Fix attached.

I'm glad you're able to test this on Windows, it's picking up all sorts of errors that affect both versions. Proving that even in a crucial aspect like error checking, Aspyr have really shortchanged us with Civ4 :(

That sounds like the last error which is great news. There is a chance that some may occur while the map is generating though; I don't think BTS parses things like diplomacy text until that stage.
 

Attachments

Loads right up with that fix and the previous ones. Generates a map and I played a good 15 minutes, founded a few religions, and such like that (just clicked the go button on play now so it was chieftain). So it looks like with all those fixes you're good to go on Windows compatibility :goodjob:
 
I will restart a new after abandoning 1888 AD save, because bad backward in sciences...

Next try : Nubia...
 
Loads right up with that fix and the previous ones. Generates a map and I played a good 15 minutes, founded a few religions, and such like that (just clicked the go button on play now so it was chieftain). So it looks like with all those fixes you're good to go on Windows compatibility :goodjob:

Sweet. Hopefully I don't introduce any new ones with the 0.4 stuff! I have a much better idea of how to prevent them now though, many many thanks.

As for 0.4, I was originally planning to revise, reorganize and add wonders but that's going to take me ages so I'll leave it for a later version. 0.4 will add Assyria, Hatti, Phoenicia and the Swahili, an update to Cultural Citystyles, the giant earth map that Lachlan requested, and lots of fixes/polish. Going to try have it finished by the end of the month.
 
Back
Top Bottom