Quick Modding Questions Thread

1) only for the whole mod, via XML\GlobalDefines.xml
PHP:
	<Define>
		<DefineName>RIVER_ATTACK_MODIFIER</DefineName>
		<iDefineIntVal>-25</iDefineIntVal>
	</Define>
	<Define>
		<DefineName>AMPHIB_ATTACK_MODIFIER</DefineName>
		<iDefineIntVal>-50</iDefineIntVal>
	</Define>

2 + 3) Short version: No.
For 4 I'd not even have an idea how to possibly do it.
 
For #1, thats not what I was looking for. That controls the comabt penalty.
I'm talking about hte movement penalty - ie your Gunship with 4 movement points leaves the transport, and is left with 0 movement points.
I would like to change it so it still has 3 remaining.

It sort of goes along with the theme of the paratroopers I want, and that is that a fleet offshore can more directly threaten cities a couple tiles inland, instead of just those directly on the coast.

Sure... you've got airstrikes from the carriers, and guided missiles/tactical nukes from the cruisers/submarines, but you can't actually capture the cities in 1 turn (whereas you could if you had paratroopers, or helos that could fly marines straight to the city on the same turn that they landed.
Right now, the only way to accomplish that is if there is a nearby city directly on the coast, such that you can capture it, and then unload your transports inside the city where the movement penalty isn't applied. (and with no mods you would then need units with commando, and a road/rail going to that city)
 
This is what he wants, but I removed it :D
Works, but not great for performance in big games
Spoiler :

Civ4ScreenShot0003-6.jpg
 
mmhh?
He said the contrary, that it doesn't work like first thought.

A tag like that would requiere SDK modding :/.

Hm, i must find someone who know to work with SDK.
 
Is it possible to make a cylindrical map into a flat map?

I want to turn a pre-made map into a flat map.
 
By "pre-made" I assume you mean one that is a worldbuilder save, not a regular saved game.

If you open up the x.CivBeyondSwordWBSave file (assuming it is BtS, otherwise whatever it is called) in Notepad or similar program you will see that it is a file full of text. Find the section that starts with BeginMap. In that section are two values that control the wrapping calle d"warp X" and "wrap Y". A cylindrical map has "wrap X=1". If you change that to "wrap X=0" it will be a flat map.
 
By "pre-made" I assume you mean one that is a worldbuilder save, not a regular saved game.

If you open up the x.CivBeyondSwordWBSave file (assuming it is BtS, otherwise whatever it is called) in Notepad or similar program you will see that it is a file full of text. Find the section that starts with BeginMap. In that section are two values that control the wrapping calle d"warp X" and "wrap Y". A cylindrical map has "wrap X=1". If you change that to "wrap X=0" it will be a flat map.

Yes, it's a world builder save. Thank you very much.
 
My question concerning Events.

How many events can happen per turn? Only one for all players, only one for each player, many?

Thank you.
 
I was wondering if anyone knew of a solution to the following problem:

When loading my (very basic) mod designed using the moddersguild.pdf, the Leader/Nation select screen does not have a sidescroll bar. If I fool the software into giving me a scroll bar, all leaders alphabetically after mine no longer appear. As I don't have ay unclosed tags, I'm not sure how or why this is happening.

As per one suggestion, I tried adding a Civilization_BuildingClassOverrides and a Civilization_UnitClassOverrides to my basic civilization definition file, but that didn't fix the issue.

Any suggestions would be greatly appreciated.
 
...er...what are you trying to do?

One possibility: You have a language line in a custom text tag missing somewhere, and this screws up a lot of other text.

Why is this happening? I hate this :mad:.
Does these thing happens to others or i have crazy computer? :badcomp:

Custom unit, or default civ unit?
If it's a custom unit, then the creator just did something which Nifscope can't handle :dunno:.

My question concerning Events.

How many events can happen per turn? Only one for all players, only one for each player, many?

Thank you.

1 event for all players.

Consolidating teh Text.xml files may not speed anything up, but they certainly do reduce the size of my Mod.

I assume you consolidation includes cleaning out default text tags, right? Else I can't see how it would reduce the size :dunno:.
 
hi guys, hi The_J :)
i managed to fix my previous problem with a little testing/experimenting on the values but as i was working on a new idea, another "small" problem came up: how can i add a new unit as a special unit?
to be more specific, i added a new ship and i want the cargo of this ship to be only one type of unit, for example only warriors to be able to come aboard this ship. is it possible?
 
Just define a new Special Unit under CIV4SpecialUnitInfos.XML?

Then set <Special>NONE</Special> to that for Warrior
And set <SpecialCargo>SPECIALUNIT_XXX</SpecialCargo> to that for the Transport
Both in CIV4UnitInfos.XML
 
Back
Top Bottom