Can anyone tell me why my mod broke?!

Littlebob86

Prince
Joined
Oct 24, 2016
Messages
332
So I'd been stealing bits and pieces from mods that I really liked, and just having them in my own little mod.. And I'm suspicious that it might have been from the update, but I'm not getting error's in my modding log and I can't find out why!

Can someone please tell me what I've missed?? I'm really new at it all and don't really understand it, just been kinda copy catting stuff


[2791109.994] Status: Applying Component - KieronsChangesComponent
[2791109.994] Status: Creating database save point.
[2791109.994] Status: UpdateDatabase - Loading Improvements.xml
[2791109.994] Warning: UpdateDatabase - Error Loading XML.
[2791109.994] Status: UpdateDatabase - Loading Improvements.sql
[2791109.995] Warning: UpdateDatabase - Error Loading SQL.

Thanks in advanced!
 

Attachments

this line already exists in table:
<Row Era="ERA_ANCIENT" Unit="UNIT_WARRIOR" Quantity="2"/>
and the sql should be:
UPDATE Units SET Stackable = 1; --although you probably really don't need this, unless you're doing something different, I had this in multi-unit mod for a different function I was testing.

Stackable isn't a table, it's a true/false. It's used for units like planes.
 
I stole the stackable from you :p Because it was working so that my military and not war at other civs non military and vice versa was able to stack on the same tile :)

But now I'm getting the error, where I wasn't before??

so even after deleting the 2x warriors that start from the minor civs so it's just


<BonusMinorStartingUnits>
<Row Era="ERA_ANCIENT" Unit="UNIT_BUILDER"/>
<Row Era="ERA_ANCIENT" Unit="UNIT_ARCHER" Quantity="1"/>
</BonusMinorStartingUnits>

I'm still getting the xml error when loading the improvements.xml :(
 
Ahh sorry I did miss that post!

So I stole that bit off of civ 6 improvements patch, and looking at it, because it's editing features, there is feature_yieldchanges under the features.xml in the data file??

Is that the yieldchanges you're talking about?
 
You have this under improvements:
<Update>
<Where ImprovementType="IMPROVEMENT_PLANTATION" YieldType="YIELD_GOLD"/>
<Set YieldChange="2"/>
</Update>
it goes under different table:

Code:
<Improvement_YieldChanges>
     <Update>
           <Where ImprovementType="IMPROVEMENT_PLANTATION" YieldType="YIELD_GOLD"/>
           <Set YieldChange="2"/>
       </Update>
</Improvement_YieldChanges>
 
You're a wonderful person ;)

Although I still seem to be getting an error! (I also added another text file as I just wanted to steal the changes to natural wonders from civ 6 mod), and I just deleted the contents of the sql because I am just running your mod instead :)


[2797153.443] Status: Applying Component - KieronsChangesComponent
[2797153.443] Status: Creating database save point.
[2797153.443] Status: UpdateDatabase - Loading Improvements.xml
[2797153.444] Warning: UpdateDatabase - Error Loading XML.
[2797153.444] Status: UpdateDatabase - Loading Improvements.sql
[2797153.444] Status: UpdateDatabase - Loading Texts.xml
[2797153.445] Warning: UpdateDatabase - Error Loading XML.
 

Attachments

That's ok, I can just delete it and revert back to civ 6, as long as I can get my main one running.. I'm trying to remove some of the changes I had made to the tech that were working pre patch
 
I'm just going to create an improvements2.xml, and cut and paste half of the changes I've made, and trial and error until I can find out what change I've made is causing the problem!!
 
So there was the changes you made, plus I think I had put in the archery twice, and the second time I had put PUITREE ?? Anyway.. That's deleted and it's all working, and even although I cut and pasted the info I wanted from civ 6 text file, and then added in the <localization>,<\localization> my text file still had an error, but when I cut and pasted it back his doesn't.. So I'll just stick with his for now :)

Thank you again for your help :)

I attached my working file because I don't really know why ;)
 

Attachments

Start looking in Database.log for the direct reasons a file is not loading fully or correctly. All Modding.log tells you is whether a file loaded, but not why it did not load completely.
 
  1. Text files do not load into the game via <UpdateDatabase>, they are loaded via <LocalizedText>, so you need to alter your modinfo file as like this:
    Code:
    	<Components>
    		<UpdateDatabase id="KieronsChangesComponent">
    			<Properties>
    				<Name>LOC_OUTSIDE_GREATWALL_COMPONENT_NAME</Name>
    			</Properties>
    			<Items>
    				<File>Improvements.xml</File>
    				<File>Improvements2.xml</File>
    				<File>Improvements.sql</File>
    			</Items>
    		</UpdateDatabase>
    		<LocalizedText id="GREATWALL_GAMEPLAY_TEXT">
    			<Properties>
    				<Name>GREATWALL_GAMEPLAY_TEXT_CHANGES</Name>
    			</Properties>
    			<Items>
    				<File>Texts.xml</File>
    			</Items>
    		</LocalizedText>
    	</Components>
    Instead of what you currently have for the <Components> side of the game's database.
  2. Otherwise so far as I can tell everything in the latest version of the mod you posted seems to be working correctly

[edit]I altered your modinfo file as shown and the Database.log is clean of errors and everything (as mentioned) appears to be working.
 
Back
Top Bottom