adding new projects

bogdan666

Chieftain
Joined
Sep 22, 2009
Messages
14
Hi there,
I'm currently trying to add a new project to "Beyond the Sword", but I don't know how to do it and what xml files to modificate. I'd like to have something like SDI2 (without removing normal SDI) which only one nation can build and which has a nukeinterception probability of 100 % (for nukeattacks on targets within my borders).
I've tried to simply copy the SDI project command lines in CIV4ProjectInfo.xml by only changing everything with SDI to SDI2, making the project buildable only once worldwide and setting the interceptionprobability to 100. But everytime I want to load a savegame it CTD`s. What I am doing wrong that it doesn't work. Are there any other relevant files to be taken into consideration? The project should have the same prereqs and function like normal SDI. Many thx in advance for any help concerning this matter.

The Code looks like this:

<ProjectInfo>
<Type>PROJECT_SDI2</Type>
<Description>TXT_KEY_PROJECT_SDI2</Description>
<Civilopedia>TXT_KEY_PROJECT_SDI2_PEDIA</Civilopedia>
<Strategy>TXT_KEY_PROJECT_SDI2_STRATEGY</Strategy>
<VictoryPrereq>NONE</VictoryPrereq>
<TechPrereq>TECH_LASER</TechPrereq>
<AnyonePrereqProject>PROJECT_MANHATTAN_PROJECT</AnyonePrereqProject>
<iMaxGlobalInstances>1</iMaxGlobalInstances>
<iMaxTeamInstances>1</iMaxTeamInstances>
<iCost>1000</iCost>
<iNukeInterception>100</iNukeInterception>
<iTechShare>0</iTechShare>
<EveryoneSpecialUnit>NONE</EveryoneSpecialUnit>
<EveryoneSpecialBuilding>NONE</EveryoneSpecialBuilding>
<bSpaceship>0</bSpaceship>
<bAllowsNukes>0</bAllowsNukes>
<Button>,Art/Interface/Buttons/Buildings/SDI.dds,Art/Interface/Buttons/Buildings_Atlas.dds,1,6</Button>
<PrereqProjects/>
<VictoryThresholds/>
<VictoryMinThresholds/>
<iVictoryDelayPercent>0</iVictoryDelayPercent>
<iSuccessRate>0</iSuccessRate>
<BonusProductionModifiers>
<BonusProductionModifier>
<BonusType>BONUS_ALUMINUM</BonusType>
<iProductonModifier>100</iProductonModifier>
</BonusProductionModifier>
</BonusProductionModifiers>
<CreateSound/>
<MovieDefineTag/>
</ProjectInfo>
 
Hi, i've tried every combination, but it seems as it is not feasible without python or sdk.
Even adding the Interceptionability to Wonders doesn't work, but at least there is no CTD. It simply doesn`t recognize this additional code and my cities get still severe hits by enemy ICBMS

What I have done, is adding this following command to the Pyramid Wonder (CIV4BuildingInfos):
...
<iNukeInterception>100</iNukeInterception>
...
Every other building got this additional code:
...
<iNukeInterception>0</iNukeInterception>
...

and changed the scheme (CIV4BuildingsSchema) accordingly:
......
<ElementType name="iNukeInterception" content="textOnly" dt:type="int"/>
.......

and
......
<element type="iNukeInterception"/>
......

and it won't recognize it. What I am doing wrong (no simple modification in this game has been working for me no matter what I've tried and I use the right BTS folders).
 
I'd like to add some new projects too, but have never done it. Is it difficult to do? For instance does it involve a lot of python work?
 
I tested your code from the first post and it worked like charm. Just to be curious, did you actually copy the code from ProjectInfos.xml into BuildingInfos.xml?

I'd like to add some new projects too, but have never done it. Is it difficult to do? For instance does it involve a lot of python work?
Adding a project doesn't require anything but xml changes. If you want it to do something not defined in xml, you would need mayby python, if you don't want to do it in DLL.
 
But everytime I want to load a savegame it CTD`s.

Have you tried starting a new game instead of running a save game?

There are things you can do that will break savegame compatibility. Adding a project could be one of them. (I don't know if it is or not.)
 
I've tried it again and this time by starting a new game and it seems to work, at least it is shown as a real project with the right interception value. (and the old SDI is still there as it was my desire). Howewer savegames dont work and the error massage scene is shown for a too short time to see what is wrong.
And about the thing with the wonders/new tags and dll modding I will give it a try but at first I ve to find out how to compile in visual studio 2005. I thought iNukeInterception is a tag which the programme should know.
Ok many thanks for the advice.
 
Have you tried starting a new game instead of running a save game?

There are things you can do that will break savegame compatibility. Adding a project could be one of them. (I don't know if it is or not.)

Everything, which you add completly new, will break savegames.
 
Is savegameediting somehow possible? I dont want to loose my savegame with many strong enemies and my 8.000.000 soldiers :-)
 
ach I've found it out. Make a Worldbuildersave and then open it with the texteditor. Maybe he will swallow an SDI2 :-)
 
Everything, which you add completly new, will break savegames.

I thought I had added units (possibly unique units), and maybe a building or two, without breaking savegames.

I also think I may have added some promotions without breaking it.

But maybe not. :dunno:
 
Back
Top Bottom