How to update technologies?

Decimatus

King
Joined
Oct 22, 2005
Messages
853
Trying to update a couple things in the tech tree.

1: EDIT: FiresForever answered this for me. #1 is the correct way to update the grid for a tech.
Spoiler :

<Update>
<Set GridY="4"/>
<Where Type="TECH_SAILING"/>
</Update>


2: EDIT: It works! This is how you add a prereq to a tech. Thanks again FiresForever!
Spoiler :

<Technology_PrereqTechs>
<Update>
<Set PrereqTech="TECH_AGRICULTURE"/>
<Where TechType="TECH_THE_WHEEL"/>
</Update>
</Technology_PrereqTechs>



3: Muahaha figured this one out on my own!

<Technology_PrereqTechs>
<Delete />


It works because I am redefining most if not all Prereqs. Anyone know how to delete an individual prereq for future reference?
 
This might help:

1. should be just Type not TechType, also the <gamedata> tags:

<GameData>
<Technologies>
<Update>
<Set GridY="4"/>
<Where Type="TECH_SAILING"/>
</Update>
</Technologies>
</GameData>

2. looks ok except again for the <gamedata> tags and also <Technology_PrereqTechs> tags:

<GameData>
<Technology_PrereqTechs>
<Update>
<Set PreReqTech="AGRICULTURE"/>
<Where TechType="TECH_SAILING"/>
</Update>
</Technology_PrereqTechs>
</GameData>
 
This seems appropriate place to ask, rather than a new thread:
Code:
	<Resources>
		<Set ResourceClassType="RESOURCECLASS_RUSH"/>
		<Where Type="RESOURCE_IVORY"/>
	</Resources>

	<Resources>
		<Set TechReveal="TECH_TRAPPING"/>
		<Where Type="RESOURCE_IVORY"/>
	</Resources>

	<Resources>
		<Set TechCityTrade="TECH_ANIMAL_HUSBANDRY"/>
		<Where Type="RESOURCE_IVORY"/>
	</Resources>


	<Resource_QuantityTypes>
		<Row>
			<ResourceType>RESOURCE_IVORY</ResourceType>
			<Quantity>2</Quantity>
		</Row>
	</Resource_QuantityTypes>

This doesn't quite seem to work properly, if at all.
 
"PreReqTech" should be "PrereqTech" No capital "R":

<GameData>
<Technology_PrereqTechs>
<Update>
<Set PrereqTech="AGRICULTURE"/>
<Where TechType="TECH_SAILING"/>
</Update>
</Technology_PrereqTechs>
</GameData>
 
also in 2. AGRICULTURE should be TECH_AGRICULTURE

Awesome, it all works! :) The tech tree pipes are kind of broken up though. Just asthetic, but maybe it will fix itself after I have ordered it better...

How about deleting a prereq?

<Technology_PrereqTechs>
<Update>
<Delete PrereqTech="TECH_AGRICULTURE"/>
</Update>
</Technology_PrereqTechs>

Would this delete everything that Agriculture leads to or would I have to set each individual instance with a separate line?
 
This seems appropriate place to ask, rather than a new thread:
Code:
	<Resources>
		<Set ResourceClassType="RESOURCECLASS_RUSH"/>
		<Where Type="RESOURCE_IVORY"/>
	</Resources>

	<Resources>
		<Set TechReveal="TECH_TRAPPING"/>
		<Where Type="RESOURCE_IVORY"/>
	</Resources>

	<Resources>
		<Set TechCityTrade="TECH_ANIMAL_HUSBANDRY"/>
		<Where Type="RESOURCE_IVORY"/>
	</Resources>


	<Resource_QuantityTypes>
		<Row>
			<ResourceType>RESOURCE_IVORY</ResourceType>
			<Quantity>2</Quantity>
		</Row>
	</Resource_QuantityTypes>

This doesn't quite seem to work properly, if at all.

You need update tags above and below the items you are updating.
 
<Technology_PrereqTechs>
<Delete />

And that is how you delete all the prereqs. Just place it at the top of your prereq string and all your new prereqs can follow behind.
 
Well i just tried it but it doesn't work.
I wanted to delete Biology and Steam Power to remain in renaissance forever.
I tried this code:

<?xml version="1.0" encoding="utf-8"?>
<!-- Created by ModBuddy on 10/2/2010 6:39:05 PM -->
<GameData>
<Technologies>
<Delete type="TECH_BIOLOGY"/>
<Delete type="TECH_STEAM_POWER"/>
</Technologies>
<Technology_PrereqTechs>
<Update>
<Set PrereqTech="TECH_SCIENTIFIC_THEORY"/>
<Where TechType="TECH_FUTURE_TECH"/>
</Update>
</Technology_PrereqTechs>
</GameData>
I also added OnModActivation - UpdateDatabase at the options for the mod.

In the test game biology was researchable. -.-
 
Well i just tried it but it doesn't work.
I wanted to delete Biology and Steam Power to remain in renaissance forever.
I tried this code:


I also added OnModActivation - UpdateDatabase at the options for the mod.

In the test game biology was researchable. -.-

Deleting the tech won't work unless you also delete things that need those techs like factories and oil.

You know there is already a mod that will let you end the game in whatever age you want? They are on the modhub now. 1 for each age you want to end in.
 
Hmm, what is the string for updating tech era?

<Technologies>
<Update>
<Set Era="MODERN"/>
<Where Type="TECH_NUCLEAR_FUSION"/>
</Update>
<Update>
<Set Era="MODERN"/>
<Where Type="TECH_PARTICLE_PHYSICS"/>
</Update>


This looks right but ends up wiping the tech tree clean...


Also, can you do:

Row
Row
Update
Update
Row
Row

or do you have to keep all the updates in 1 block if it is under 1 category like technologies?
 
Someone has to have a clue how to modify the era on a tech...

Pretty much the only thing holding me back from completing my tech tree. -_-

<Update>
<Set Era="ERA_RENNAISSANCE"/>
<Where Type="TECH_STEAM_POWER"/>
</Update>
<Update>
<Set Era="ERA_RENAISSANCE"/>
<Where Type="TECH_BIOLOGY"/>
</Update>

This causes me to have no techs in my tree and it basically gives me these 2 techs...
 
No use modifying resources. They are hard coded into the AssignStatingPlots.LUA. Even if you change the XML values for quantitiy it will not change antyhing in game. You will need to alter the UA file to have any effect. Same goes for anything placed on the map prior to game start.
 
No use modifying resources. They are hard coded into the AssignStatingPlots.LUA. Even if you change the XML values for quantitiy it will not change antyhing in game. You will need to alter the UA file to have any effect. Same goes for anything placed on the map prior to game start.

This thread isn't about modifying resources lol.

Tell me how to modify Tech Era! :crazyeye:
 
This thread isn't about modifying resources lol.

Tell me how to modify Tech Era! :crazyeye:

Really, I guess you missed this then.

This seems appropriate place to ask, rather than a new thread:
Code:
	<Resources>
		<Set ResourceClassType="RESOURCECLASS_RUSH"/>
		<Where Type="RESOURCE_IVORY"/>
	</Resources>

	<Resources>
		<Set TechReveal="TECH_TRAPPING"/>
		<Where Type="RESOURCE_IVORY"/>
	</Resources>

	<Resources>
		<Set TechCityTrade="TECH_ANIMAL_HUSBANDRY"/>
		<Where Type="RESOURCE_IVORY"/>
	</Resources>


	<Resource_QuantityTypes>
		<Row>
			<ResourceType>RESOURCE_IVORY</ResourceType>
			<Quantity>2</Quantity>
		</Row>
	</Resource_QuantityTypes>

This doesn't quite seem to work properly, if at all.
 
Really, I guess you missed this then.

I didn't!


This thread is about:

<Update>
<Set Era="ERA_RENNAISSANCE"/>
<Where Type="TECH_STEAM_POWER"/>
</Update>
<Update>
<Set Era="ERA_RENAISSANCE"/>
<Where Type="TECH_BIOLOGY"/>
</Update>

Someone tell me how to fix this! Do I need some disable/delete command before I update the tech's era, or what?

You have no idea how close I am to a tech tree containing 45 more tech than the Vanilla civ 5 tech tree! It is practically ready to show!

You know you want it! Give me the last piece to the puzzle!
 
Make sure you have the onmodactivated/updatedatabase action set uo right. Also where it shows up on the tech tree has little effect over what era it is in. try playing through it and see if it changes your era when it is supposed to.
 
Make sure you have the onmodactivated/updatedatabase action set uo right. Also where it shows up on the tech tree has little effect over what era it is in. try playing through it and see if it changes your era when it is supposed to.

I have the tree basically completed up to early future, but my era bars are grossly out of proportion and stretched out. According to the Era bars, all 100+ tech end around late industrial, early modern.

It isn't just that the eras are off, but some tech is pushed back and some is brought forward. If you play my game right now you will probably hit medieval or renaissance way too early.

If I can get this command though, I will be set. It is literally the last tech tree related thing I am waiting on.

I am going to move on into creating units, buildings, and wonders for all the new techs starting tonight, but hopefully I get this Era command so I can work on that instead.
 
Back
Top Bottom