Craig_Sutter
Deity
I've been working on a mod to get rid of technologies after the Medieval Era. I had the Mod working and things were going well... the following is the last working copy I did. It loaded in game and the tech screen was adequate.
Then things went south...
Here is my last working code:
I should say second to last... I added other entries to get rid of the prereqs for future tech:
<Update>
<Set PrereqTech="NONE"/>
<Where TechType="TECH_FUTURE_TECH"/>
</Update>
And added two entries to make Astronomy and Banking prerequisites for future tech. I removed the old prereqs and added the new ones in that order.
Anyhow, when I did that, my mod stopped working... so I removed the added entries and returned to my old code; however, for some reason it would not load anymore.
The thing is, not only that file, but no xml files I create seem to be working anymore... not even a simple part of the mod above:
I've worked at getting it going again for some time... I've rebuild and made certain I didn't forget onModActivate and UpDateDataBase, etc. I cleared different caches.
I still cannot get a simple mod to work...
So that leaves me with the belief something is wrong with Modbuddy... The thing is, when I started using the program, I could not get anything to work either... then suddenly, it did work, but now just as suddenly, it does not.
I'm thinking there might be something wrong with the Civ5 paths or user path so the mod is not being read properly, or perhaps there is a cache hidden somewhere in Modbuddy that I should empty. Or perhaps my deleting projects and redoing them to try for a fresh start is leaving bits of program scattered about and that is mixing things up.
Any explanation, advice or help would be appreciated...
By the way, my paths for modbuddy are:
c:/program files (x86)/steam\steamapps\common\sid meier's civilization v
for the program path... that was as installed, I never did a custom install.
and:
C:\Users\Craig and Nancy\Documents\My Games\Sid Meier's Civilization 5\MODS
for the user path.
So, as I said, I'd appreciate it if someone could check out the code... and any advice as to why Modbuddy has stopped working would be much appreciated.
Thanks
Then things went south...
Here is my last working code:
Code:
<?xml version="1.0" encoding="utf-8"?>
<!-- Created by ModBuddy on 6/4/2012 11:18:40 AM -->
<GameData>
<Technologies>
<Update>
<Set Era="ERA_MEDIEVAL"/>
<Where Type="TECH_ASTRONOMY"/>
</Update>
<Update>
<Set Era="ERA_MEDIEVAL"/>
<Where Type="TECH_BANKING"/>
</Update>
<Update>
<Set Era="ERA_RENAISSANCE"/>
<Where Type="TECH_FUTURE_TECH"/>
</Update>
<Update>
<Set Disable="true"/>
<Where Era="ERA_RENAISSANCE"/>
</Update>
<Update>
<Set Disable="true"/>
<Where Era="ERA_INDUSTRIAL"/>
</Update>
<Update>
<Set Disable="true"/>
<Where Era="ERA_MODERN"/>
</Update>
<Update>
<Set Disable="true"/>
<Where Era="ERA_FUTURE"/>
</Update>
<Update>
<Set Disable="false"/>
<Where Type="TECH_FUTURE_TECH"/>
</Update>
<Update>
<Set GridX="7" GridY="-10"/>
<Where Era="ERA_RENAISSANCE"/>
</Update>
<Update>
<Set GridX="8" GridY="-10"/>
<Where Era="ERA_INDUSTRIAL"/>
</Update>
<Update>
<Set GridX="9" GridY="-10"/>
<Where Era="ERA_MODERN"/>
</Update>
<Update>
<Set GridX="10" GridY="-10"/>
<Where Era="ERA_FUTURE"/>
</Update>
<Update>
<Set GridX="7" GridY="3"/>
<Where Type="TECH_FUTURE_TECH"/>
</Update>
<Update>
<Set Cost="825"/>
<Where Type="TECH_THEOLOGY"/>
</Update>
<Update>
<Set Cost="825"/>
<Where Type="TECH_CIVIL_SERVICE"/>
</Update>
<Update>
<Set Cost="825"/>
<Where Type="TECH_CURRENCY"/>
</Update>
<Update>
<Set Cost="825"/>
<Where Type="TECH_ENGINEERING"/>
</Update>
<Update>
<Set Cost="825"/>
<Where Type="TECH_METAL_CASTING"/>
</Update>
<Update>
<Set Cost="1125"/>
<Where Type="TECH_COMPASS"/>
</Update>
<Update>
<Set Cost="1455"/>
<Where Type="TECH_EDUCATION"/>
</Update>
<Update>
<Set Cost="1455"/>
<Where Type="TECH_CHIVALRY"/>
</Update>
<Update>
<Set Cost="1455"/>
<Where Type="TECH_MACHINERY"/>
</Update>
<Update>
<Set Cost="1455"/>
<Where Type="TECH_PHYSICS"/>
</Update>
<Update>
<Set Cost="2340"/>
<Where Type="TECH_ASTRONOMY"/>
</Update>
<Update>
<Set Cost="2340"/>
<Where Type="TECH_BANKING"/>
</Update>
<Update>
<Set Cost="3450"/>
<Where Type="TECH_FUTURE_TECH"/>
</Update>
</Technologies>
<Technology_PrereqTechs>
<Update>
<Set PrereqTech="NONE"/>
<Where TechType="TECH_ACOUSTICS"/>
</Update>
<Update>
<Set PrereqTech="NONE"/>
<Where TechType="TECH_PRINTING_PRESS"/>
</Update>
<Update>
<Set PrereqTech="NONE"/>
<Where TechType="TECH_GUNPOWDER"/>
</Update>
<Update>
<Set PrereqTech="NONE"/>
<Where TechType="TECH_NAVIGATION"/>
</Update>
<Update>
<Set PrereqTech="NONE"/>
<Where TechType="TECH_ECONOMICS"/>
</Update>
</Technology_PrereqTechs>
</GameData>
I should say second to last... I added other entries to get rid of the prereqs for future tech:
<Update>
<Set PrereqTech="NONE"/>
<Where TechType="TECH_FUTURE_TECH"/>
</Update>
And added two entries to make Astronomy and Banking prerequisites for future tech. I removed the old prereqs and added the new ones in that order.
Anyhow, when I did that, my mod stopped working... so I removed the added entries and returned to my old code; however, for some reason it would not load anymore.
The thing is, not only that file, but no xml files I create seem to be working anymore... not even a simple part of the mod above:
Code:
<?xml version="1.0" encoding="utf-8"?>
<!-- Created by ModBuddy on 6/6/2012 1:49:13 AM -->
<GameData>
<!-- TODO: Insert table creation example here. -->
<!-- TODO: Insert table data example here.-->
<!-- Enter your Game Data here. -->
<Technologies>
<Update>
<Set Disable="true"/>
<Where Type="TECH_NAVIGATION"/>
</Update>
</Technologies>
</GameData>
I've worked at getting it going again for some time... I've rebuild and made certain I didn't forget onModActivate and UpDateDataBase, etc. I cleared different caches.
I still cannot get a simple mod to work...
So that leaves me with the belief something is wrong with Modbuddy... The thing is, when I started using the program, I could not get anything to work either... then suddenly, it did work, but now just as suddenly, it does not.
I'm thinking there might be something wrong with the Civ5 paths or user path so the mod is not being read properly, or perhaps there is a cache hidden somewhere in Modbuddy that I should empty. Or perhaps my deleting projects and redoing them to try for a fresh start is leaving bits of program scattered about and that is mixing things up.
Any explanation, advice or help would be appreciated...
By the way, my paths for modbuddy are:
c:/program files (x86)/steam\steamapps\common\sid meier's civilization v
for the program path... that was as installed, I never did a custom install.
and:
C:\Users\Craig and Nancy\Documents\My Games\Sid Meier's Civilization 5\MODS
for the user path.
So, as I said, I'd appreciate it if someone could check out the code... and any advice as to why Modbuddy has stopped working would be much appreciated.
Thanks