Kunglao2011
18 years ago
I don't know how to change Oil Derricks to give off more money, and power plants to give off more power.

Anyone know how?
Sponsor
randomperson
18 years ago
try looking in techbuilding.ini for the oil derrick and try wading through factionbuilding.ini for the power plants, alternitivly you could mod the upgrade to give off more power.
UserPostedImage
fleetatks
18 years ago
Put this code in Note/wordPad and Save as Map.ini Then Put that in The Map you wish to have the effect take place. (I've never tried changing power but I Bet I can Figure out how)


Object TechOilDerrick
ReplaceModule ModuleTag_04
Behavior = AutoDepositUpdate ModuleTag_04_Override
DepositTiming = 12000
DepositAmount = 200
InitialCaptureBonus = 1000
End
End
End

;origonal deposit timing=12000, deposit amount=200, initial capture bonus=1000











Edit: Well There Probably has to be some kind of replace module or something but if this works Do it to all the codes of the Power Plants you want to change:

Object AmericaPowerPlant

BuildCost = 800
BuildTime = 10.0 ; in seconds
EnergyProduction = 5
EnergyBonus = 5
VisionRange = 200.0 ; Shroud clearing distance
ShroudClearingRange = 200
ArmorSet
Conditions = None
Armor = StructureArmor
DamageFX = StructureDamageFXNoShake
End


; Origonal Energy Bonus/production= 5
Email me if you ever need help (edited signature November 6th, 2014)
Kunglao2011
18 years ago


Put this code in Note/wordPad and Save as Map.ini Then Put that in The Map you wish to have the effect take place. (I've never tried changing power but I Bet I can Figure out how)


Object TechOilDerrick
ReplaceModule ModuleTag_04
Behavior = AutoDepositUpdate ModuleTag_04_Override
DepositTiming = 12000
DepositAmount = 200
InitialCaptureBonus = 1000
End
End
End

;origonal deposit timing=12000, deposit amount=200, initial capture bonus=1000











Edit: Well There Probably has to be some kind of replace module or something but if this works Do it to all the codes of the Power Plants you want to change:

Object AmericaPowerPlant

BuildCost = 800
BuildTime = 10.0 ; in seconds
EnergyProduction = 5
EnergyBonus = 5
VisionRange = 200.0 ; Shroud clearing distance
ShroudClearingRange = 200
ArmorSet
Conditions = None
Armor = StructureArmor
DamageFX = StructureDamageFXNoShake
End


; Origonal Energy Bonus/production= 5

Fleetatks wrote:

Where am I supposed to find these files?



I'm thinking I'm supposed to dump the map to a file and edit it from there, but am I supposed to copy the text from here or am I actually making a whole new file?...or both?

Edit: Oh, and is it supposed to be spelled Origonal, or Original?
fleetatks
18 years ago
The point is You knew I was going for original :P

And Like I said before: "Put this code in Note/wordPad and Save as Map.ini Then Put that in The Map you wish to have the effect take place."

The oil code I know for sure works as long as you only change the timing amount and capture bonus into real numbers. The power Plant code probably won't work because I made it myself, but if it does coodles to me.

Edit: And by "put it in the map" I mean put it in the folder of the map containing the .map and .tga files.
Email me if you ever need help (edited signature November 6th, 2014)