Advertisement
Civilization Fanatics' Center  

Go Back   Civilization Fanatics' Forums > CIVILIZATION IV > Civ4 - Creation & Customization > Civ4 - Project & Mod Development > Civ4 - Caveman 2 Cosmos

Reply
 
Thread Tools
Old Oct 12, 2013, 03:24 PM   #1
Azurian
The Azurian
 
Azurian's Avatar
 
Join Date: Apr 2012
Location: Florida, USA
Posts: 2,080
Proposed Properties

Properties Cheatcheat

ElementDescription
bSourceDrainProperties that are declared as bSourceDrain are produced or consumed on game objects, move/spread/diffuse to other game objects and interact with other properties on the same game object. Game objects are plot, unit, city, player, team and game.
Property Source/Drains produce or consume a property on a game object when they are active. Examples: This can be a constant production with a limit or a percent based decay or growth that is exponential on low amounts and limited on higher amounts.
Property Interactions interactions between two different properties on the same game object. Examples: Two properties of which the higher reduces the other or a conversion between two properties or a spreading or diffusion from one property to the other.
Property Propagators cause a property to interact with the same property on other game objects. Example: A property diffuses or spreads or moves to other game objects or gathers to a game object.

Quote:
The most important thing to consider is bSourceDrain. It decides the behavior of the property. A property that is not source/drain will behave similar to something like happiness. Buildings add it or remove it, but the happiness remains constant when you don't build or lose buildings (except for temporary effects).
Source/drain properties on the other hand are dynamic properties that have sources that provide a property increase every turn and drains that decrease it. There are also interactions that might convert a property to a different one each turn or similar things. And finally there are propagators that spread, diffuse or gather properties to other objects.

ChangePropagators allow you to copy changes to a property on one object to another object type. This generates a kind of accumulated value. Example: Flammability uses that by propagating 100% of the city flammability to the player. So the player flammability will always be the sum of the flammabilities of the cities of that player.

PropertyManipulators are used for source/drain properties and are explained in the previous tutorial (using them in the property info itself applies them to all objects of a certain type).

PropertyBuildings allow you to specify buildings that should be automatically built when the property is in a certain range and removed once it is not. This might be real buildings (but always give them a hammer cost of -1 so they are not sellable) or pseudo buildings. The important thing is that that allows you to apply all kinds of effects on the cities depending on the property value. Mind that currently the requirements defined in the building info are ignored for this (I will change that at some point but it requires reevaluating the property buildings not only on property changes but also on changes that might influence those requirements).

PropertyPromotions is the same as PropertyBuildings except that it applies to units via promotions. So you can apply effects on the units depending on the property value. Important here is as well that you don't use promotions that the unit might get in another way.
Game ObjectDescription
GAMEOBJECT_GAMEonly one is present, it represents everything that is global
GAMEOBJECT_TEAM a group of players that are permanently allied and share tech and some wonder effects
GAMEOBJECT_PLAYERin a normal single player Civ4 game without set up teams there is no real difference between player and team
GAMEOBJECT_CITY 
GAMEOBJECT_UNIT 
GAMEOBJECT_PLOT 

Quote:
Game objects have properties (from the generic property system) and attributes (an abstract interface to the properties that are not modelled by the generic property system). There are relations between game objects (near, same plot, trade, associated).
Game objects can have game object modifiers (GOMs, that includes buildings, promotions, features, terrains, resources, traits, ...). Game objects either have a specific GOM or not (so you can query a GAMEOBJECT_CITY if it has the GOM_BUILDING BUILDING_PALACE or not).

ElementDescription
Propagator A type of manipulator
ChangePropagator Grants a property to Propagate (manipulates) another property.
GameObjectTypeFromThe "master" property that does the manipulation.
GameObjectTypeToThe "slave" property that is manipulated.
iChangePercent the strength of the manipulation.
Code:
 <ChangePropagators>
        <ChangePropagator>
          <GameObjectTypeFrom>GAMEOBJECT_CITY</GameObjectTypeFrom>
          <GameObjectTypeTo>GAMEOBJECT_PLAYER</GameObjectTypeTo>
          <iChangePercent>100</iChangePercent>
        </ChangePropagator>
      </ChangePropagators>
Quote:
Originally Posted by AiAndy
That means propagate any change of this property type on a city to a player (from city to player that means the owner) with 100% strength. So if crime on the city increases by 5, crime on the player increases by 5 as well.

SourceDescription
PROPERTYSOURCE_CONSTANTAdds X /Turn
iAmountPerTurn Amount of X /Turn
PROPERTYSOURCE_CONSTANT_LIMITED???
PROPERTYSOURCE_DECAYdecays X% of Property / Turn

Code:
<PropertyManipulators>
  <PropertySource>
    <PropertySourceType>PROPERTYSOURCE_CONSTANT</PropertySourceType>
    <PropertyType>PROPERTY_CRIME</PropertyType>
    <iAmountPerTurn>20</iAmountPerTurn>
  </PropertySource>
</PropertyManipulators>
Quote:
Adds 20 crime each turn.
ElementDescriptions
PROPERTYPROPAGATOR_SPREADSpreads the property without decreasing it on the source object
PROPERTYPROPAGATOR_GATHERCollects properties from other objects and moves it to the object with the propagator
PROPERTYPROPAGATOR_DIFFUSE Moves a property from a source object to target objects with a rate depending on the difference between them
iDistanceDiffuse from the city to all plots in a distance
iPercentHow much you want the difference reduced per turn


Code:
<PropertyManipulators>
  <PropertyPropagator>
    <PropertyPropagatorType>PROPERTYPROPAGATOR_DIFFUSE</PropertyPropagatorType>
    <PropertyType>PROPERTY_CRIME</PropertyType>
    <GameObjectType>GAMEOBJECT_CITY</GameObjectType>
    <TargetObjectType>GAMEOBJECT_PLOT</TargetObjectType>
    <RelationType>RELATION_NEAR</RelationType>
    <iDistance>1</iDistance>
    <iPercent>2</iPercent>
  </PropertyPropagator>
</PropertyManipulators>
Quote:
Originally Posted by aIAndy
this means diffuse crime from cities to nearby plots in a distance of max 1 with 2%.

ElementDescription
AiWeightThe Ai knows that higher values are either good or ba based on the sign of the aiweight (- is bad).For buildings and properties on cities this should be very easy. For properties on anything other than cities, and sources on anything other an buildings, if we want the AI to be able to react meaningfully to it, then we'll need new code, and at least for anything unit or route propagated, whole new strategy and tactical routines.
Operationranget knows the range over which the property operates (values below which or above which further improvements or degradations won't really make any practical difference), and based on where it is in that range currently it weighs buildings that add to or subtract from the property in question.
Quote:
properties that matter really only in cities, and are sourced by buildings
properties that are used to model environmental factors, the impact of which players (and the AI) need to deal with, but which they cannot be expected to have much actual control over
ElementDescription
RelationTypeonly used by propagators.
RELATION_ASSOCIATEDwhich depending on the TargetObjectType can mean owner, owned (e.g. from a team object with target type city it will mean all cities of that team, from a plot to a player it will mean the owner of that plot)
RELATION_TRADE which currently is only defined for cities with target cities and means the cities with which the city has trade routes
RELATION_NEARuses iDistance and means all objects within that distance of the TargetObjectType (e.g. with target object
GAMEOBJECT_UNIT and iDistance 2 it will mean all units within the plot on which the source object is
RELATION_SAME_PLOT is more or less the same as RELATION_NEAR with a distance of 0
Quote:
Most of what you will add to buildings will be sources or drains.
There are some buildings for which you might consider a propagator in addition. Like a Smuggler's Shanty moving more crime to the nearby water plots.
ElementDescription
AIScaleType tells the AI how it should scale the weight. AISCALE_CITY will cause it to consider the property more important in larger cities and less important in smaller cities.
iOperationalRangeMin and iOperationalRangeMaxwill tell the AI in which range the property will usually be and the AI will assume that getting a negative property close to the end of the range will cause considerably worse effects than having it somewhere in the mid of the range.


 Tips
 If your property is not a drain source property then the main next step is to consider all the buildings that you want to add that property to and then add them there in the building XMLs.
 For drain source properties you can add property manipulators to a lot of different info XMLs depending on what you want to model (buildings, unit types, promotions, leader traits, ...).
 You can also require minimum and maximum property values to allow building something (this is not the same as auto building).
 Events can be given property requirements as well.

Element Description
MinValueMinimumvalue needed for the building to exist
MaxValueIt is a range. If the property value gets outside that range, the building is removed.You need that if you want to have some buildings , for exampleonly at low crime or at negative crime.Or another use would be to have multiple versions of a building that are used at different crime levels.

Code:
<PropertyInfos>
		<PropertyInfo>
			<Type>PROPERTY_CRIME</Type>
		      	  <PropertyBuildings>
			 	<PropertyBuilding>
			     	<BuildingType>BUILDING_CRIME_TPING</BuildingType>
			     	<iMinValue>10</iMinValue>
			     	<iMaxValue>100000</iMaxValue>
		</PropertyInfo>
	</PropertyInfos>
</Civ4PropertyInfos>

Quote:
Crime Toilet Papering only exists when there is a Crime Value of at least 10. At Crime 9 it disappears.

Code:
<PropertyManipulators>
			  <PropertySource>
			    <PropertySourceType>PROPERTYSOURCE_CONSTANT</PropertySourceType>
			    <PropertyType>PROPERTY_CRIME</PropertyType>
			    <iAmountPerTurn>5</iAmountPerTurn>
			  </PropertySource>
			</PropertyManipulators>
</UnitInfo>

Quote:
If used on Unit, this Unit can spread 5 crime a Turn.
This are the Game Object Modifiers AI Andy Added.

GOM_BUILDING
GOM_PROMOTION
GOM_TRAIT
GOM_FEATURE
GOM_OPTION
GOM_TERRAIN
GOM_GAMESPEED
GOM_ROUTE
GOM_BONUS
GOM_UNITTYPE
GOM_TECH
GOM_CIVIC
GOM_RELIGION
GOM_CORPORATION

Code:
<PropertyManipulators>
				<PropertySource>
					<PropertySourceType>PROPERTYSOURCE_CONSTANT</PropertySourceType>
					<PropertyType>PROPERTY_ELECTRICTY</PropertyType>
					<iAmountPerTurn>1</iAmountPerTurn> ADD VALUE
					<Active>
						<Has>
				   			<GOMType>GOM_TECH</GOMType>
				   			<ID>TECH_CYBERNETICS</ID> ADD TECH
						</Has>
					</Active>
				</PropertySource>
			</PropertyManipulators>
Quote:
This means Cybernetics Tech will increase Electricity by 1.
Expressions
http://forums.civfanatics.com/showpo...7&postcount=27
Spoiler:
Quote:
Originally Posted by AIAndy View Post
Boolean Expression Tutorial
Some information about how to use the Boolean Expressions.
At the moment I write this there are 4 places you can use Boolean Expressions at:
  • In the Active tag of property manipulators. They will only have an effect if the Active expression evaluates to true.
  • NewCityFree tag in building info. If it evaluates to true when you found a new city, then that building will be added for free (if it can be constructed).
  • ConstructCondition tag in building info. If it evaluates to false for a city, then that city won't be able to build that building.
  • TrainCondition tag in unit info. Same as ConstructCondition except for units.

Boolean expressions can consist of several different tags of which many also have subexpressions.

Literal
If a tag expects a boolean expression, you can also simply use 0 for false or 1 for true similar to what simple boolean XML tags expect. So this is valid:
<NewCityFree>1</NewCityFree>
The building would always be free in a new city if it can be constructed at that time.
As you can now with all boolean XML tags you can also refer to a boolean global define:
<NewCityFree>BUILDING_X_FREE_IN_NEW_CITY</NewCityFree.

So to use the Has tag you first specify the type of the GOM and then the ID:
Code:
<NewCityFree>
  <Has>
    <GOMType>GOM_OPTION</GOMType>
    <ID>GAMEOPTION_BUILDING_X_FREE</ID>
  </Has>
</NewCityFree>
In this case the building would only be free in a new city if the game option GAMEOPTION_BUILDING_X_FREE is set.
The exact meaning of evaluating if a game object has a certain GOM depends on the GOM type and the game object type. GOM_RELIGION on a city evaluates if the city has the religion, on a player it evaluates if the religion is state religion of that player.

Is
The Is tag is somewhat similar to the Has tag but it doesn't check GOMs but some other states that a game object can have.
An easy example is to check if a game object is on water or next to a river:
Code:
<Active>
  <Is>TAG_WATER</Is>
</Active>
Added to the propagators that spread water pollution they would only be active next to rivers or on water instead of spreading the water pollution deep into deserts.

And
The And tag can have any number of subexpressions and it will only evaluate to true if all subexpressions are true.
An example of an And with three subexpressions:
Code:
<ConstructCondition>
 <And>
  <Is>TAG_FRESH_WATER</Is>
  <Has>
    <GOMType>GOM_BONUS</GOMType>
    <ID>BONUS_APPLE</ID>
  </Has>
  <Has>
    <GOMType>GOM_CIVIC</GOMType>
    <ID>CIVIC_FEUDAL</ID>
  </Has>
 </And>
</ConstructCondition>
So the city will only be able to build that building if it has fresh water, access to apples and its owner runs the feudal civic.

Or
Or is exactly the same as And, except that it is enough if one subexpression evaluates to true.

BEqual
That is short for boolean equal. It takes exactly two subexpressions and evaluates to true if both subexpressions evaluate to the same.
Example:
Code:
<ConstructCondition>
 <BEqual>
  <Is>TAG_FRESH_WATER</Is>
  <Has>
    <GOMType>GOM_BONUS</GOMType>
    <ID>BONUS_APPLE</ID>
  </Has>
 </BEqual>
</ConstructCondition>
This building would only be constructable if the city either has fresh water and apples or neither has fresh water nor apples. If it has apples but no fresh water then it won't be able to build it. Ok, not a very meaningful example.

Not
This tag inverts the result of its one subexpression.
Code:
<ConstructCondition>
 <Not>
  <Has>
    <GOMType>GOM_BONUS</GOMType>
    <ID>BONUS_APPLE</ID>
  </Has>
 </Not>
</ConstructCondition>
This building can only be built if there is no access to apples.

If
If has three subexpressions (If Expression then Expression else Expression). The first one decides if the second (if true) or the third (if false) is used.
Code:
<NewCityFree>
<If>
  <Has>
    <GOMType>GOM_CIVIC</GOMType>
    <ID>CIVIC_FEUDAL</ID>
  </Has>
  <Has>
    <GOMType>GOM_FEATURE</GOMType>
    <ID>FEATURE_FOREST</ID>
  </Has>
  <Has>
    <GOMType>GOM_FEATURE</GOMType>
    <ID>FEATURE_JUNGLE</ID>
  </Has>
</If>
</NewCityFree>
If you are running feudal, then you need a forest near the new city to get it for free. Otherwise you need a jungle near it.

IntegrateOr
This tag allows you to query other game objects and if any of them evaluate the subexpression to true, then it will be true.
The way to describe the objects to query is the same as for property manipulators. So you first tell which relation to the primary game object these game objects have in the tag named RelationType. For that you can use these:
  • RELATION_ASSOCIATED // owner, owned, ... depending on type
  • RELATION_TRADE // trade routes, query from a city to cities
  • RELATION_NEAR // needs iDistance tag to specify the distance
  • RELATION_SAME_PLOT
  • RELATION_WORKING // query plots from a city to get the plots belonging to the city and vice versa get the city to which the plot belongs
Then you specify the target object type, tag name GameObjectType. These are the game object types:
  • GAMEOBJECT_GAME
  • GAMEOBJECT_TEAM
  • GAMEOBJECT_PLAYER
  • GAMEOBJECT_CITY
  • GAMEOBJECT_UNIT
  • GAMEOBJECT_PLOT

Example:
Code:
<ConstructCondition>
  <IntegrateOr>
    <RelationType>RELATION_TRADE</RelationType>
    <GameObjectType>GAMEOBJECT_CITY</GameObjectType>
    <Has>
      <GOMType>GOM_BUILDING</GOMType>
      <ID>BUILDING_PALACE</ID>
    </Has>
  </IntegrateOr>
</ConstructCondition>
This building can only be built if the city has a trade route with a city that has a palace.


Code:
<Active>
  <And>
    <Has>
      <GOMType>GOM_FEATURE</GOMType>
      <ID>FEATURE_FOREST</ID>
    </Has>
    <Or>
      <Has>
        <GOMType>GOM_ROUTE</GOMType>
        <ID>ROUTE_ROAD</ID>
      </Has>
      <Has>
        <GOMType>GOM_ROUTE</GOMType>
        <ID>ROUTE_PAVED</ID>
      </Has>
    </Or>
  </And>
</Active>
Quote:
That one would mean the property manipulator is active on plots with a road or paved road running through a forest.
Has
The Has tag is one of the most common tags you will use with boolean expressions. It evaluates if the referenced game object modifier is on the object. Game object modifiers or short GOM are a lot of different things from promotion to religion:
Quote:
The Has tag allows to query a lot of different GOMs (game object modifiers).
That are:
GOM_BUILDING
GOM_PROMOTION
GOM_TRAIT
GOM_FEATURE
GOM_OPTION
GOM_TERRAIN
GOM_GAMESPEED
GOM_ROUTE
GOM_BONUS
GOM_UNITTYPE
GOM_TECH
GOM_CIVIC
GOM_RELIGION
GOM_CORPORATION

With GOM_OPTION you can make a certain source or propagator only active when a specific game option is chosen.
The result of most of those depends on which game object it is evaluated. A GOM_FEATURE evaluated on a city will return true if there are any plots with that feature belonging to the city. Evaluated on a plot it will only return true if that specific plot has the feature.
Name Description
Active In property manipulators. They will only have an effect if the Active expression evaluates to true.
NewCityFree In building info. If it evaluates to true when you found a new city, then that building will be added for free (if it can be constructed).
ConstructCondition In building info. If it evaluates to false for a city, then that city won't be able to build that building.
TrainCondition In unit info. Same as ConstructCondition except for units.

NameDescription
ATTRIBUTE_POPULATIONmanipulate property based on population
ATTRIBUTE_HEALTH manipulate property based on health
ATTRIBUTE_HAPPINESS manipulate property based on happiness

AND The And tag can have any number of subexpressions and it will only evaluate to true if all subexpressions are true
Or Or is exactly the same as And, except that it is enough if one subexpression evaluates to true.
BEqual That is short for boolean equal. It takes exactly two subexpressions and evaluates to true if both subexpressions evaluate to the same.
Not This tag inverts the result of its one subexpression




Templates



Code:
<PropertyManipulators>
			  <PropertySource>
			    <PropertySourceType>PROPERTYSOURCE_CONSTANT</PropertySourceType>
			    <PropertyType>PROPERTY_ELECTRICITY</PropertyType>
			    <iAmountPerTurn>5</iAmountPerTurn>
			  </PropertySource>
			</PropertyManipulators>
This code gives +5 Electricity per turn to a building.

Code:
<PropertyManipulators>
			  <PropertySource>
			    <PropertySourceType>PROPERTYSOURCE_DIFFUSE</PropertySourceType>
			    <PropertyType>PROPERTY_ELECTRICITY</PropertyType>
			    <iAmountPerTurn>5</iAmountPerTurn>
			  </PropertySource>
			</PropertyManipulators>
This building creates 5% Electricity a Turn.

Code:
	<PropertyInfos>
		<PropertyInfo>
			<Type>PROPERTY_ELECTRICITY</Type>
		      	  <PropertyBuildings>
			 	<PropertyBuilding>
			     		<BuildingType>BUILDING_ORBITALPOWERPLANT</BuildingType>
			     		<iMinValue>1500</iMinValue>
			     		<iMaxValue>1000000</iMaxValue>
 			  	</PropertyBuilding>
 			</PropertyBuildings>
		</PropertyInfo>
	</PropertyInfos>
This means The Orbital Power Plant requires 1500 Electricity to be enabled. Any less and its disabled.



Code:
<PropertySource>
					<PropertySourceType>PROPERTYSOURCE_CONSTANT</PropertySourceType>
					<PropertyType>PROPERTY_ELECTRCITY</PropertyType>
					<iAmountPerTurn>5</iAmountPerTurn>
					<Active>
						<Has>
				   			<GOMType>GOM_TECH</GOMType>
				   			<ID>TECH_CYBERNETICS</ID>
						</Has>
					</Active>
This means the building gains 5 Electricity at Cybernetics.


Code:
<PropertySource>
					<PropertySourceType>PROPERTYSOURCE_CONSTANT</PropertySourceType>
					<PropertyType>PROPERTY_ELECTRCITY</PropertyType>
					<iAmountPerTurn>-5</iAmountPerTurn>
					<Active>
						<Has>
				   			<GOMType>GOM_BUILDING</GOMType>
				   			<ID>BUILDING_DIGITALIBARY</ID>
						</Has>
					</Active>
This means the Digital Library Consumes 5 Electricity a Turn.

Code:
<PropertySource>
					<PropertySourceType>PROPERTYSOURCE_CONSTANT</PropertySourceType>
					<PropertyType>PROPERTY_ELECTRCITY</PropertyType>
					<iAmountPerTurn>-1</iAmountPerTurn>
					<Active>
						<Has>
				   			<GOMType>GOM_BONUS</GOMType>
				   			<ID>BONUS_COMPUTER</ID>
						</Has>
					</Active>
The Computer Resource consumes 1 electricity.

Code:
<Active>
  <And>
    <Has>
      <GOMType>GOM_FEATURE</GOMType>
      <ID>FEATURE_FOREST</ID>
    </Has>
    <Or>
      <Has>
        <GOMType>GOM_ROUTE</GOMType>
        <ID>ROUTE_ROAD</ID>
      </Has>
      <Has>
        <GOMType>GOM_ROUTE</GOMType>
        <ID>ROUTE_PAVED</ID>
      </Has>
    </Or>
  </And>
</Active>
That one would mean the property manipulator is active on plots with a road or paved road running through a forest.


Code:
<NewCityFree>
<If>
  <Has>
    <GOMType>GOM_CIVIC</GOMType>
    <ID>CIVIC_FEUDAL</ID>
  </Has>
  <Has>
    <GOMType>GOM_FEATURE</GOMType>
    <ID>FEATURE_FOREST</ID>
  </Has>
  <Has>
    <GOMType>GOM_FEATURE</GOMType>
    <ID>FEATURE_JUNGLE</ID>
  </Has>
</If>
</NewCityFree>
If you are running feudal, then you need a forest near the new city to get it for free. Otherwise you need a jungle near it.

Code:
<ConstructCondition>
 <And>
  <Is>TAG_FRESH_WATER</Is>
  <Has>
    <GOMType>GOM_BONUS</GOMType>
    <ID>BONUS_APPLE</ID>
  </Has>
  <Has>
    <GOMType>GOM_CIVIC</GOMType>
    <ID>CIVIC_FEUDAL</ID>
  </Has>
 </And>
</ConstructCondition>
So the city will only be able to build that building if it has fresh water, access to apples and its owner runs the feudal civic.


Code:
<TrainCondition>
			  <Greater>
			    <IntegrateCount>
			      <RelationType>RELATION_WORKING</RelationType>
			      <GameObjectType>GAMEOBJECT_PLOT</GameObjectType>
			      <Has>
			        <GOMType>GOM_FEATURE</GOMType>
			        <ID>FEATURE_FOREST</ID>
			      </Has>
			    </IntegrateCount>
			    <Constant>5</Constant>
			  </Greater>
			</TrainCondition>
The unit is trainable in the city if it has more than 5 forests (so at least 6).
Code:
<ConstructCondition>
  <Or>
    <Not>
      <Has>
        <GOMType>GOM_TERRAIN</GOMType>
        <ID>TERRAIN_X</ID>
      </Has>
    </Not>
    <Has>
      <GOMType>GOM_BUILDING</GOMType>
      <ID>BUILDING_Y</ID>
    </Has>
 </Or>
</ConstructCondition>
Cannot Build if X Terrain is in the city vicinity unless you have Y Building.
__________________
Current Focus: Transhuman Era

Last edited by Azurian; Oct 15, 2013 at 11:03 PM.
Azurian is offline   Reply With Quote
Old Oct 12, 2013, 03:31 PM   #2
Nimek
Emperor
 
Nimek's Avatar
 
Join Date: Jul 2010
Posts: 1,131
How about strategic resources as properties?
I would like to see such system with production/consume of resources but without stockpiling to make things as simple as possible.
__________________
CIV 4 XML Mass Editor Developer
BTC 1kRSJ3G26K4dFGNxYMiE77cPUL3zPVfoF

C2C beta tester. Balance issues resolving mentor.
C2C Combat Mod ideas developer.
Nimek is offline   Reply With Quote
Old Oct 12, 2013, 03:33 PM   #3
Faustmouse
Deity
 
Join Date: Jan 2012
Posts: 2,463
Quote:
Originally Posted by Nimek View Post
How about strategic resources as properties?
I would like to see such system with production/consume of resources but without stockpiling to make things as simple as possible.
We all do... But therefore we need 1D-Property System because otherwise each round will take about an hour...
__________________
Member of the C2C Modding Team

XML Assistant for Buildings, Resources and Alternative Timelines.

To do list:

Current projects: Event Review and applying the new capture tags on Combat Classes and Units.
Faustmouse is online now   Reply With Quote
Old Oct 12, 2013, 03:41 PM   #4
Azurian
The Azurian
 
Azurian's Avatar
 
Join Date: Apr 2012
Location: Florida, USA
Posts: 2,080
Education
Phase: Added
Slows the number of in the game
Certain buildings require a number of Education Points to be created
Certain buildings have stat replaced with education stat
Education can be used to lower modify stats like Disease without raising Science (Washing Hands)

Entertainment
Phase: Added
Slows the number of in the game
Certain buildngs require a number of Entertainment Points to be created
Certain buildings have stat replaced with entertainment stat
Entertainment can be used to modify stats like Happiness without raising Culture(Techno Rave , Cartoons, Social Network, Rollercoaster Park, Video Games)

Luxury
Phase: Added
Slows the number of in the game
Certain buildings require a number of Luxury Points to be created
Certain buildings have stat replaced with luxury stat
Luxury can be used to modify stats like Happiness without raising Gold (Butler Service ).
Luxury Points can be used to unlock more power version of certain buildings (Golf Course-->Country Club, Burger Hut --->French Cuisine, Nightclub --->Supper Club)
Luxury is raised by education, entertainment.
Luxury is lowered by crime, lowered by disease by modders

Tourism
Phase: Added
Certain Buildings Create Tourism Points
Tourism can be used to generate gold, science, culture, education, entertainment, luxury by modders
Tourism is lowered by flammability, air pollution, water pollution, radiation


Strategic Resources
system with production/consume of resources but without stockpiling to make things as simple as possible.

Rebelliousness
I'd say "warning" (orange) city revolt state halfs the amount of tourism generated and "danger" (red) state lowers it to 10% of the original "safe" (green) levels amount (100%), after the factors you stated above have also been taken into account, of course.

Morale
Quote:
Originally Posted by Thunderbrd
I also NEED morale as a property - the only problem I'm having with it is we need to figure out how to have the property set at the player level - each player having its own. Electricity probably should work something like this as well though it's probably fine not to so long as we can get it to not cross borders (unless a trade agreement allows for it.) But Morale would be trickier as each player needs its own accounting systems for its own morale pools.
Faith
Spreads Religion

SimCity/ Hydro
Spoiler:
Quote:
Quote:
Originally Posted by Hydromancerx View Post
Just posting some stuff I already said all in one spot.

Sim City
- Crime
- Fire
- Health (Sickness)
- Education
- Electricity
- Water
- Garbage
- Air Pollution
- Water Pollution
- Radiation
- Land Value
- Traffic
- Mayor Approval
- Tourism
- Residential Demand ($, $$, $$$)
- Commercial Demand ($, $$, $$$)
- Industrial Demand ($, $$, $$$)

I think there are some more but that covers most.

Also in Pharaoh it had Structural Integrity.

Here are links to the other Property Topics ...

- C2C - Flammability
- Crime & Punishment
- Air and Water Pollution
- C2C _ Unhealthiness Mod (aka Disease Property)
- On Power (electrical)
- Technological/Education Property
- Structural Integrity
- Jobs & Homeless


Electrical
Adds Electricity




Plumbing
Phase: Planning
Adds Aqua (water)
Certain buildings need Aqua
Allows creation of water bourne diseases.
Similiar to Electricity, certain buildngs without Aqua shut down.
Population consumes Aqua.

Radiation
Phase: Planning
The "soil pollution" that lead,nuclear buildings, antigrav,and nuclear bombs can spread on meltdown or detonation.


Habilitation
Phase: Planning
How livable a terrain is and a measurement on how the environment affects quality of life. Grass has more Habitation then Desert. Also determines the quality of life at space stations, space colonies, and spaceships. Different levels of life support increase habilitation from biomes to "cloud nine" terrestrial enclosures inside spaceships.

Artificial Intelligence
Phase: Planning
Stars with Computer Networks, How much computing power/calculations certain buildings requires. Similiar to Education, except the level of algorithm or A.I Core rase A.I.
A level of A.I is required to unlock certain A.I influenced buildings,(majority of Transhuman Era).


A Mining Ant may require 14 A.I while a Terra computer require 300 A.I.
__________________
Current Focus: Transhuman Era

Last edited by Azurian; Oct 15, 2013 at 10:40 PM.
Azurian is offline   Reply With Quote
Old Oct 12, 2013, 03:48 PM   #5
Faustmouse
Deity
 
Join Date: Jan 2012
Posts: 2,463
1) If not enough aqua (I don't like the name btw) then your Pop should be slowly dying. It should also increase the instability.

2) I think you could merge Radtiation into habilitation.

3) You could also merge AI into Education.
__________________
Member of the C2C Modding Team

XML Assistant for Buildings, Resources and Alternative Timelines.

To do list:

Current projects: Event Review and applying the new capture tags on Combat Classes and Units.
Faustmouse is online now   Reply With Quote
Old Oct 12, 2013, 03:56 PM   #6
Thunderbrd
Deity
 
Thunderbrd's Avatar
 
Join Date: Jan 2010
Posts: 10,430
Quote:
2) I think you could merge Radtiation into habilitation.
It may affect habilitation but it would not be the same thing. Radiation adds its own unique problems and is a nightmare to attempt to clean up. Storms would catch and spread radiation as well.
Thunderbrd is offline   Reply With Quote
Old Oct 12, 2013, 04:02 PM   #7
Azurian
The Azurian
 
Azurian's Avatar
 
Join Date: Apr 2012
Location: Florida, USA
Posts: 2,080
Quote:
Originally Posted by Faustmouse View Post
1) If not enough aqua (I don't like the name btw) then your Pop should be slowly dying. It should also increase the instability.

2) I think you could merge Radtiation into habilitation.

3) You could also merge AI into Education.
1.) What would you name it?

2.) See Thunderbrd's explanation.

3.) It could be merged I agree, and it might be simpler to just do that.
__________________
Current Focus: Transhuman Era
Azurian is offline   Reply With Quote
Old Oct 12, 2013, 04:08 PM   #8
n47
Prince
 
n47's Avatar
 
Join Date: Aug 2013
Posts: 339
@MrAzure, please remember to ask about the AI. -- The education is not an ordinary property. Blocking buildings construction may influence AI.
__________________
Any man who can drive safely while kissing a pretty girl is simply not giving the kiss the attention it deserves.
Albert Einstein
n47 is offline   Reply With Quote
Old Oct 12, 2013, 04:11 PM   #9
Faustmouse
Deity
 
Join Date: Jan 2012
Posts: 2,463
I just don't think that adding 10 new properties is very good...

I would simply go for Clean Water or Drinking Water or Fresh Water. The problem I see is that Aqua means simply Water in spanish, thus it also is aqua in the ocean.
__________________
Member of the C2C Modding Team

XML Assistant for Buildings, Resources and Alternative Timelines.

To do list:

Current projects: Event Review and applying the new capture tags on Combat Classes and Units.
Faustmouse is online now   Reply With Quote
Old Oct 12, 2013, 04:25 PM   #10
Azurian
The Azurian
 
Azurian's Avatar
 
Join Date: Apr 2012
Location: Florida, USA
Posts: 2,080
Quote:
Originally Posted by n47 View Post
@MrAzure, please remember to ask about the AI. -- The education is not an ordinary property. Blocking buildings construction may influence AI.
Agree, I think Properties many need an A.I weight. I originally wanted to do Education as a Commerce which allows for A.I weight, putting a Commerce requires DLL and Python.

@Faustmouse

Not good for?

Right now Education, Entertainment, and Luxury are the main ones I want to add.

Radiation was Thunderbrd and Habilitation later with Space Maps.
__________________
Current Focus: Transhuman Era

Last edited by Azurian; Oct 12, 2013 at 04:28 PM.
Azurian is offline   Reply With Quote
Old Oct 12, 2013, 06:06 PM   #11
DRJ
Hedonist
 
DRJ's Avatar
 
Join Date: Dec 2005
Location: Hamburg, Germany
Posts: 1,513
Quote:
Originally Posted by MrAzure View Post

Tourism
Tourism is lowered by flammability, air pollution, water pollution, radiation
Could you please add rebelliousness to the list as well? People don't like to visit sites if there is civil war or unrest.

I'd say "warning" (orange) city revolt state halfs the amount of tourism generated and "danger" (red) state lowers it to 10% of the original "safe" (green) levels amount (100%), after the factors you stated above have also been taken into account, of course.
__________________
We humans, in future, will create this universe where we are now living.
(Zappara, founder of Rise of Mankind, forefather of Caveman 2 Cosmos)


if code is law, creativity is its legislative authority and transparency its judiciary.
(myself)

Economic Left/Right: -9.62
Social Libertarian/Authoritarian: -8.31
DRJ is offline   Reply With Quote
Old Oct 12, 2013, 08:02 PM   #12
Hydromancerx
C2C Modder
 
Hydromancerx's Avatar
 
Join Date: Feb 2008
Location: California, USA
Posts: 15,155
Just posting some stuff I already said all in one spot.

Sim City
- Crime
- Fire
- Health (Sickness)
- Education
- Electricity
- Water
- Garbage
- Air Pollution
- Water Pollution
- Radiation
- Land Value
- Traffic
- Mayor Approval
- Tourism
- Residential Demand ($, $$, $$$)
- Commercial Demand ($, $$, $$$)
- Industrial Demand ($, $$, $$$)

I think there are some more but that covers most.

Also in Pharaoh it had Structural Integrity.

Here are links to the other Property Topics ...

- C2C - Flammability
- Crime & Punishment
- Air and Water Pollution
- C2C _ Unhealthiness Mod (aka Disease Property)
- On Power (electrical)
- Technological/Education Property
- Structural Integrity
- Jobs & Homeless

Last edited by Hydromancerx; Oct 12, 2013 at 08:12 PM.
Hydromancerx is online now   Reply With Quote
Old Oct 12, 2013, 09:20 PM   #13
Thunderbrd
Deity
 
Thunderbrd's Avatar
 
Join Date: Jan 2010
Posts: 10,430
hmm... revolutionary sentiment as a property might be an interesting overwrite of the rev system.

I also NEED morale as a property - the only problem I'm having with it is we need to figure out how to have the property set at the player level - each player having its own. Electricity probably should work something like this as well though it's probably fine not to so long as we can get it to not cross borders (unless a trade agreement allows for it.) But Morale would be trickier as each player needs its own accounting systems for its own morale pools.

Either AIAndy will end up coming back and helping us to further flesh out the property systems or I'll have to really get familiar with the 'next level' of programming knowledge so I can sort out what he's done enough to directly interact and manipulate. I may not be that far off now as I'm getting more familiar with what I do know. With n47 around we may be able to sort out the way it all works enough to implement adjustments.
Thunderbrd is offline   Reply With Quote
Old Oct 13, 2013, 12:09 AM   #14
Azurian
The Azurian
 
Azurian's Avatar
 
Join Date: Apr 2012
Location: Florida, USA
Posts: 2,080
Quote:
Originally Posted by Thunderbrd View Post
hmm... revolutionary sentiment as a property might be an interesting overwrite of the rev system.

I also NEED morale as a property - the only problem I'm having with it is we need to figure out how to have the property set at the player level - each player having its own. Electricity probably should work something like this as well though it's probably fine not to so long as we can get it to not cross borders (unless a trade agreement allows for it.) But Morale would be trickier as each player needs its own accounting systems for its own morale pools.

Either AIAndy will end up coming back and helping us to further flesh out the property systems or I'll have to really get familiar with the 'next level' of programming knowledge so I can sort out what he's done enough to directly interact and manipulate. I may not be that far off now as I'm getting more familiar with what I do know. With n47 around we may be able to sort out the way it all works enough to implement adjustments.
Yeah we do need a Morale system (like in Empire Earth).

Other Properties that could be useful but not sure if:
Fame (how famous a city is)
Tolerance (how accepting it is of other cultures)
Employment
__________________
Current Focus: Transhuman Era
Azurian is offline   Reply With Quote
Old Oct 13, 2013, 01:11 AM   #15
Azurian
The Azurian
 
Azurian's Avatar
 
Join Date: Apr 2012
Location: Florida, USA
Posts: 2,080
Quote:
Originally Posted by n47 View Post
@MrAzure, please remember to ask about the AI. -- The education is not an ordinary property. Blocking buildings construction may influence AI.
You were right, and Koshling added AI Weight in SVN 4138. Disease is at -10.

Code:
PropertyInfo>
PROPERTY_DISEASE
TXT_KEY_PROPERTY_DISEASE
TXT_KEY_PROPERTY_DISEASE_STRATEGY
TXT_KEY_PROPERTY_DISEASE_DISPLAY
TXT_KEY_PROPERTY_DISEASE_CHANGE
TXT_KEY_PROPERTY_DISEASE_CHANGE_ALL_CITIES
TXT_KEY_PROPERTY_DISEASE_PREREQ_MIN
TXT_KEY_PROPERTY_DISEASE_PREREQ_MAX
1
-10 
AISCALE_CITY
0
110
4

Code:
Index: CIV4PropertyInfos.xml
===================================================================
--- CIV4PropertyInfos.xml(revision 4137)
+++ CIV4PropertyInfos.xml(revision 4138)
@@ -303,10 +303,10 @@
 TXT_KEY_PROPERTY_DISEASE_PREREQ_MIN
 TXT_KEY_PROPERTY_DISEASE_PREREQ_MAX
 1
-0 
+-10 
 AISCALE_CITY
 0
-1000
+110
 4

So, I am guessing to add +10 to Properties that are beneficial, and we can experiment with the values if needed.

Edit :Made changes see SVN thread.
__________________
Current Focus: Transhuman Era

Last edited by Azurian; Oct 13, 2013 at 01:55 AM.
Azurian is offline   Reply With Quote
Old Oct 13, 2013, 06:46 AM   #16
Dancing Hoskuld
Deity
 
Join Date: Jul 2004
Location: Canberra, Australia
Posts: 16,038
Quote:
Originally Posted by Thunderbrd View Post
I also NEED morale as a property - the only problem I'm having with it is we need to figure out how to have the property set at the player level - each player having its own. Electricity probably should work something like this as well though it's probably fine not to so long as we can get it to not cross borders (unless a trade agreement allows for it.) But Morale would be trickier as each player needs its own accounting systems for its own morale pools.

Either AIAndy will end up coming back and helping us to further flesh out the property systems or I'll have to really get familiar with the 'next level' of programming knowledge so I can sort out what he's done enough to directly interact and manipulate. I may not be that far off now as I'm getting more familiar with what I do know. With n47 around we may be able to sort out the way it all works enough to implement adjustments.
I also need a property at the player level for relations with Indigenous Peoples. The property is used in the events and there are nation wide activities you can do to improve relations plus diplomacy. AIAndy pointed me at how to do it so I will hunt it up.
__________________
Dyslexia luRs.
Dancing Hoskuld is offline   Reply With Quote
Old Oct 13, 2013, 07:20 AM   #17
bill2505
King
 
bill2505's Avatar
 
Join Date: Sep 2009
Posts: 640
now with those properties what about adding something like this http://forums.civfanatics.com/showthread.php?t=496047
bill2505 is offline   Reply With Quote
Old Oct 13, 2013, 08:31 AM   #18
Azurian
The Azurian
 
Azurian's Avatar
 
Join Date: Apr 2012
Location: Florida, USA
Posts: 2,080
Quote:
Originally Posted by DRJ View Post
Could you please add rebelliousness to the list as well? People don't like to visit sites if there is civil war or unrest.

I'd say "warning" (orange) city revolt state halfs the amount of tourism generated and "danger" (red) state lowers it to 10% of the original "safe" (green) levels amount (100%), after the factors you stated above have also been taken into account, of course.
I am thinking this could work as Mayor Approval (I like the name Governor better), or Morale.. Both rebelliousness (-) and admiration (+) are included, with bonuses for the amount of and other beneficial properties you have.

Agree, the last thing we want us cookie cutter properties and this will make tourism more fun. Currently instead of having property code modded all at once, I am adding Propgrators(Manipulators) by layers because it's easier to discuss them.


Edit: What do you guys think about a Faith property that spreads religion across the land?
__________________
Current Focus: Transhuman Era

Last edited by Azurian; Oct 13, 2013 at 09:05 AM.
Azurian is offline   Reply With Quote
Old Oct 13, 2013, 11:03 AM   #19
Nimek
Emperor
 
Nimek's Avatar
 
Join Date: Jul 2010
Posts: 1,131
@bill

We already have upgradable buildings and Platy abandoned this project.
__________________
CIV 4 XML Mass Editor Developer
BTC 1kRSJ3G26K4dFGNxYMiE77cPUL3zPVfoF

C2C beta tester. Balance issues resolving mentor.
C2C Combat Mod ideas developer.
Nimek is offline   Reply With Quote
Old Oct 13, 2013, 03:41 PM   #20
Azurian
The Azurian
 
Azurian's Avatar
 
Join Date: Apr 2012
Location: Florida, USA
Posts: 2,080
Added a Property Cheatcheat and updated Proposed Properties to OP.
__________________
Current Focus: Transhuman Era
Azurian is offline   Reply With Quote
Reply

Bookmarks

Go Back Civilization Fanatics' Forums > CIVILIZATION IV > Civ4 - Creation & Customization > Civ4 - Project & Mod Development > Civ4 - Caveman 2 Cosmos > Proposed Properties

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Advertisement

All times are GMT -6. The time now is 01:05 AM.


Powered by vBulletin®
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
This site is copyright Civilization Fanatics' Center.
Support CFC: Amazon.com | Amazon UK | Amazon DE | Amazon CA | Amazon FR