Need your advise for MOD making...

Gwydion62

Warlord
Joined
Apr 25, 2004
Messages
193
Location
Austria
Hi friends!

I made my first step and build a Civilization - thanks to the Modders guide :) and to emerald knight !

But now I want to add 3 things:

a national unique wonder? How to make that?

to make the gunpowder units range attack?

and to make a non range unit look like firing - as the are looking when attacking citys (warrior as e.g.)

Thanks for your ideas

regards
gwydion
 
Hi,

Short and end of it:

1. Find attributes for something like the Oxford Library (not sure why this is a national wonder but whatever) and edit that, should be easy enough.

2. You'll need to do more work here I think. You'll need to mod several files including the art defines. You may need do some animation work, not sure, hopefully not. You'll have to look through the units.xml and see what is in there, noting the ranged units. You'll need a range strangth, distance etc and you'll have to make sure the gunpowder unit you edit probably has an 'archer class.' But I haven't looked into it too much for you (that is for you to do!) Since the option is clearly available in this game for a couple of classes of units I'm sure it can be adopted by another. However the art/animations is what might break this. When the gunpowder unit goes to 'shoot' what is the game drawing upon? You'll just have to point it to the 'shooting' animation/art that already exists and hope it works, but i'm sceptical. Also look around, it might have been done as a mod by someone else already, I know others wanted this, thinking it makes more sense. Personally I don't think it does make sense - gunpowder units were terribly inaccurate and useless past a hundred feet or so up until WW1. Archery units however could fire vast distances with great accuracy and they could have a 'curved projection' (over blocking obstacles.) English longbowman could fire something like 300 metres (about 950 feet) accurately. Musketman could only dream of that - they only came about as means to penetrate medieval armour. So don't lose any sleep if you can't get it working :) It is definately possible, I just don't know if anyone has done it yet, I imagine it takes some skill, not just a few changes here and there. Usually a request like this, this early into a games modding life is just not going to happen.

3. I have no idea what you want here! Again sounds like an animations change. You can point it to new animations but I doubt it'll be that simple at all, never is, and wouldn't really make sense.

Perhaps not what you are looking for but wa are all getting frustrated/stumbling blindly through this, this early on. Point of interest best time to come to a game for modding? About 18 months after release apparently, for some reason, most has been done but people are still interested, and there is often a renewed interest after a lull.

Anyway try it out, keep posting back and let me know how it goes. If it works then you are probably the first to do it (check around though before going it alone) and at least you'll have bragging rights and can tell others how you did it.

Cheers.
 
a national unique wonder? How to make that?
Same way you would create a Unique normal building. Harvard took me 10min to crank out(no new art of course) it repalces the Oxford University for America.
Spoiler :
Code:
<GameData>
	<Buildings>
		<Row>
			<Type>BUILDING_HARVARD_UNIVERSITY</Type>
			<BuildingClass>BUILDINGCLASS_OXFORD_UNIVERSITY</BuildingClass>
			<Cost>250</Cost>
			<PrereqTech>TECH_EDUCATION</PrereqTech>
			<Description>TXT_KEY_BUILDING_HARVARD_UNIVERSITY</Description>
			<Civilopedia>TXT_KEY_CIV5_BUILDINGS_HARVARD_UNIVERSITY_TEXT</Civilopedia>
			<Strategy>TXT_KEY_BUILDING_HARVARD_UNIVERSITY_STRATEGY</Strategy>
			<ArtDefineTag>ART_DEF_BUILDING_HARVARD_UNIVERSITY</ArtDefineTag>
			<NukeImmune>true</NukeImmune>
			<NumCityCostMod>10</NumCityCostMod>
			<HurryCostModifier>-1</HurryCostModifier>
			<MinAreaSize>-1</MinAreaSize>
			<FreeTechs>1</FreeTechs>
			<FreePolicies>1</FreePolicies>
			<Culture>1</Culture>
			<NeverCapture>true</NeverCapture>
			<IconAtlas>BW_ATLAS_2</IconAtlas>
			<PortraitIndex>44</PortraitIndex>
		</Row>
	</Buildings>
	<Building_ClassesNeededInCity>
		<Row>
			<BuildingType>BUILDING_HARVARD_UNIVERSITY</BuildingType>
			<BuildingClassType>BUILDINGCLASS_UNIVERSITY</BuildingClassType>
		</Row>
	</Building_ClassesNeededInCity>
	<Civilization_BuildingClassOverrides>
		<Row>
			<CivilizationType>CIVILIZATION_AMERICA</CivilizationType>
			<BuildingClassType>BUILDINGCLASS_HARVARD_UNIVERSITY</BuildingClassType>
			<BuildingType>BUILDING_HARVARD_UNIVERSITY</BuildingType>
		</Row>
	</Civilization_BuildingClassOverrides>
	<Building_PrereqBuildingClasses>
		<BuildingType>BUILDING_HARVARD_UNIVERSITY</BuildingType>
		<BuildingClassType>BUILDINGCLASS_UNIVERSITY</BuildingClassType>
		<NumBuildingNeeded>-1</NumBuildingNeeded>
	</Building_PrereqBuildingClasses>
	<Language_en_US>
		<Row Tag="TXT_KEY_CIV5_BUILDINGS_HARVARD_UNIVERSITY_HEADING">
			<Text>Harvard University</Text>
		</Row>
		<Row Tag="TXT_KEY_CIV5_BUILDINGS_HARVARD_UNIVERSITY_STATBOX">
			<Text>missing stats</Text>
		</Row>
		<Row Tag="TXT_KEY_BUILDING_HARVARD_UNIVERSITY">
			<Text>Harvard University</Text>
		</Row>
		<Row Tag="TXT_KEY_BUILDING_HARVARD_UNIVERSITY_STRATEGY">
			<Text>The Harvard University National Wonder provides 1 free technology, 1 free social policy,  and +1 culture. The civilization must have a university in all cities before it can construct Oxford University.</Text>
		</Row>
		<Row Tag="TXT_KEY_CIV5_BUILDINGS_HARVARD_UNIVERSITY_TEXT">
			<Text>Harvard University is a private Ivy League university located in Cambridge, Massachusetts, established in 1636 by the Massachusetts legislature. Harvard is the oldest institution of higher learning in the United States and the first corporation (officially The President and Fellows of Harvard College) chartered in the country.</Text>
		</Row>
	</Language_en_US>
	<Building_Flavors>
		<Row>
			<BuildingType>BUILDING_HARVARD_UNIVERSITY</BuildingType>
			<FlavorType>FLAVOR_SCIENCE</FlavorType>
			<Flavor>25</Flavor>
		</Row>
		<Row>
			<BuildingType>BUILDING_HARVARD_UNIVERSITY</BuildingType>
			<FlavorType>FLAVOR_WONDER</FlavorType>
			<Flavor>20</Flavor>
		</Row>
	</Building_Flavors>
</GameData>

to make the gunpowder units range attack?
add the following tags <Range>#</Range> Where # is tiles away you want it to hit(standard is 2) and <RangedCombat>#</RangedCombat> Where # is the strength of the ranged attack.

and to make a non range unit look like firing - as the are looking when attacking citys (warrior as e.g.)
This one is much much harder (at least for me) because it requires you repalce the current attack animation with the bombard animation and I honestly don't know how to do htat yet.
 
Elistor: Is it really that simple for ranged attacks?
If the unit doesn't have a ranged attack animation, or would it just know to fire the gunpowder normal animation (for CC) when asked to perform a ranged attack? I haven't tried it personally but I'm suprised that would work, seems too easy.
 
Elistor: Is it really that simple for ranged attacks?
If the unit doesn't have a ranged attack animation, or would it just know to fire the gunpowder normal animation (for CC) when asked to perform a ranged attack? I haven't tried it personally but I'm suprised that would work, seems too easy.

Giving the unit the ability to attack is that simple. Making it LOOK like it can do that is a royal pain. One guess is you could also copy over the animation and LUA from an existing unit, but I've never tried yet so no clue how it would work. Sounds simple enough, but I said the same thing after I finished reading Kael's guide the first time....:blush::lol:
 
Giving the unit the ability to attack is that simple. Making it LOOK like it can do that is a royal pain. One guess is you could also copy over the animation and LUA from an existing unit, but I've never tried yet so no clue how it would work. Sounds simple enough, but I said the same thing after I finished reading Kael's guide the first time....:blush::lol:

Yep, what they said. Say you added that code to the base scout(someone did just that) without the animation change, when you told it to perform a ranged "attack" all the game sees is "attack" and so plays the attack animation, thus you scout would rush forward and hit there target then rush back. Getting them to actually fire/throw/shoot something with an animation would probably be easiest to do by duplicating there bombard animation but again I'm not exactly sure how to do that.
 
Hi,

exactly that was what I meant :)

Building I will try like u wrote for the Vienna "Staatsoper"

Yes, my scouts charged 2 hexes and then attacked and run back ;-) looks nice, but...

I saw that when u attack a city they are shooting first and then run - maybe the bombard is the shooting - I will try it...


New Questions: :confused:
How to make leaderheads? I read the modders guide, used the templates from ModBuddy, but I am not able to copy the cut of a picture into that samples with photoshop - I am to stupied for that programm...

Thanks again

gwydion
 
Hi,

maybe I am doing something wrong, but the harvard university is not working - the austrian civ is not loading if I am using the wonder (copy - paste from the thread...

any idea why?
 
Everything is working :-) - just looking for an idea to make the new leaderheads ;)
 
Hi,

maybe I am doing something wrong, but the harvard university is not working - the austrian civ is not loading if I am using the wonder (copy - paste from the thread...

any idea why?

I wrote that code in about 10min at work, I've never actually ran it. Looks like i messed up the artdefine.
Change:
<ArtDefineTag>ART_DEF_BUILDING_HARVARD_UNIVERSITY</ArtDefineTag>
to:
<ArtDefineTag>ART_DEF_BUILDING_OXFORD_UNIVERSITY</ArtDefineTag>
and:
Code:
<Civilization_BuildingClassOverrides>
		<Row>
			<CivilizationType>CIVILIZATION_AMERICA</CivilizationType>
			<BuildingClassType>BUILDINGCLASS_HARVARD_UNIVERSITY</BuildingClassType>
			<BuildingType>BUILDING_[COLOR="red"]HARVARD[/COLOR]_UNIVERSITY</BuildingType>
		</Row>
	</Civilization_BuildingClassOverrides>
To:
Code:
<Civilization_BuildingClassOverrides>
		<Row>
			<CivilizationType>CIVILIZATION_AMERICA</CivilizationType>
			<BuildingClassType>BUILDINGCLASS_[COLOR="Red"]OXFORD[/COLOR]_UNIVERSITY</BuildingClassType>
			<BuildingType>BUILDING_HARVARD_UNIVERSITY</BuildingType>
		</Row>
	</Civilization_BuildingClassOverrides>

looks like I got a bit replace happy.
 
Right, I did a similar mistake ;)
Did not use the right word (OPER instead of OPERA)...

IT's working fine now - only I do not know how to make this leaderheads with Fotoshop :(
 
Back
Top Bottom