[MOD] Ship Repair - Starbase Module

Introduction

It had been mentioned on the forums before, and I had written this for my personal use.  It is a small mod  that just adds a ship repair facility to starbases, increasing ship repair rates for ships in the starbase's area of effect.  There are two starbase modules, one which unlocks with Zero Gravity Construction and the other with Large Scale Construction.  The first module adds +3 to the existing repair rate.  The second module doubles the existing repair rate.  This can be easily edited to suit your fancy.  

 

Download and Install

Download the mod here: http://www.mediafire.com/download/z9lhdkn839rhigl/ShipRepair_-_Starbase_Module.zip

Unzip and place the folder "ShipRepair - Starbase Module" in your Mod folder (usually Documents/My Games/GalCiv3/Mods)

Make sure mods are enabled in your game options.

 

(Thanks for those who provided feedback to make this work.)

29,348 views 7 replies
Reply #1 Top

im not currently playing with mods yet but what might make a better balance would be something like 10% of max hp but im not sure if you can do that

a flat bonus is nice for smaller ships but becomes moot for larger hp ships
a % is going to be worse for smaller ships but pay off for larger ships ..

ehh 50/50

Reply #2 Top

Just do both at the same time, per example, + 3 hp AND + 10 %, so good for small ships and large ships. :)

Reply #3 Top

Well, I had also did a % and flat module... alas, it turns out my mod doesn't work at all. :(  I suck.

 

Anyway, in xml, the example I used was for the many modules which increase the attack or defense of nearby ships.  For instance:

 

<Stats>
<EffectType>BeamAttack</EffectType>
<Scope>AreaEffect</Scope>
<Target>
<TargetType>Ship</TargetType>
</Target>
<BonusType>Multiplier</BonusType>
<Value>0.1</Value>
</Stats>

 

In my module, I had written for one module:

<Stats>
<EffectType>TacticalRepair</EffectType>
<Scope>AreaEffect</Scope>
<Target>
<TargetType>Ship</TargetType>
</Target>
<BonusType>Flat</BonusType>
<Value>4</Value>
</Stats>

 

And for another 

 

<Stats>
<EffectType>TacticalRepair</EffectType>
<Scope>AreaEffect</Scope>
<Target>
<TargetType>Ship</TargetType>
</Target>
<BonusType>Multiplier</BonusType>
<Value>1.0</Value>
</Stats>

 

Neither module, however, has any apparent effect on repair rates, though.  I'm not sure why, either.  I tested the Energy Magnification module and sure enough, the beam weapons get boosted.  But the tactical repair does not.  I wonder if it is just listed as a valid string... 

Reply #4 Top

@Dumhed

Try to change the Scope to Global,

<Scope>Global</Scope>

and see if it work this way,

if it work, then perhaps the problem come from the

<Scope>AreaEffect</Scope>

Reply #5 Top

The effect TacticalRepair is used during battles. For repair outside battles the effect StrategicRepair should be applicable.

However the fact that an effect exist does not mean that it can be used for a given scope and/or target, therefor the only way to check whether it works is by trying it. So no guarantee that it will work.

I made a ship component mod that worked in Beta 4, but crashes the game in later versions of the game even while the syntax, definition and context are correct. The only combinations of effects, scopes and targets that are supported are the ones SD use. Hence let the user (of such a mod) beware.

+1 Loading…
Reply #6 Top

Thanks Thecw, that solved it.  Silly oversight on my part. 

 

The module now provdes two Starbase module options, one which provides a flat 3hp repair and the other which doubles the existing repair rate for ships (which stacks with the first bonus).  

 

Unfortunately, there is no way I can see to make the repair rate dependent on max HP.  A multiplier only applies to the repair rate. 

Reply #7 Top

Does this still work? For some reason I cant get it to show on the module list to build it.
I have a military starbase and the tech.

Actual mod file is in the path ..\Documents\My Games\GalCiv3\Mods\ShipRepair - Starbase Module\Game

so as you can see , I have the right folders in the right order etc.