ASF maintainance mod

Post here if you want to help developing something for FAF.

ASF maintainance mod

Postby RoLa » 21 Dec 2013, 14:17

i experimented with some settings on asf

MaintenanceConsumptionPerSecondEnergy = 65
MaintenanceConsumptionPerSecondMass = 1

or with negative production values:

ProductionPerSecondEnergy = -65
ProductionPerSecondMass = -1


both show up right when produced in factory, but after produced there seems not to be any effect. I suspect i have to set a category or something so ProductionPerSecondEnergy gets used. Maybe someone can help me?

There seem to be two queries in buff.lua:
elseif atype == 'EnergyProduction' then
elseif atype == 'MassProduction' then
User avatar
RoLa
Contributor
 
Posts: 313
Joined: 23 Apr 2013, 22:14
Has liked: 5 times
Been liked: 19 times
FAF User Name: RoLa

Re: ASF maintainance mod

Postby Ze_PilOt » 21 Dec 2013, 14:39

Yes, you need to set the unit in the correct categories for economy (I don't know them like that, check any unit that affect economy).
Nossa wrote:I've never played GPG or even heard of FA until FAF started blowing up.
User avatar
Ze_PilOt
Supreme Commander
 
Posts: 8985
Joined: 24 Aug 2011, 18:41
Location: fafland
Has liked: 18 times
Been liked: 376 times
FAF User Name: Ze_PilOt

Re: ASF maintainance mod

Postby RoLa » 21 Dec 2013, 16:33

i added categories
'ECONOMIC',
'ENERGYPRODUCTION',

it has no effect.
User avatar
RoLa
Contributor
 
Posts: 313
Joined: 23 Apr 2013, 22:14
Has liked: 5 times
Been liked: 19 times
FAF User Name: RoLa

Re: ASF maintainance mod

Postby RoLa » 22 Dec 2013, 01:52

Can someone explain how exactly is refuel/repair cost calculated?
RefuelingMultiplier = 50,
RefuelingRepairAmount = 500,
RepairConsumeEnergy = 5,
RepairConsumeMass = 0.5,

It seems repairing air consumes 5mass per second whatever unit it is
User avatar
RoLa
Contributor
 
Posts: 313
Joined: 23 Apr 2013, 22:14
Has liked: 5 times
Been liked: 19 times
FAF User Name: RoLa

Re: ASF maintainance mod

Postby Vee » 22 Dec 2013, 02:36

It does, but some aircraft get repaired much quicker than others (e.g. interceptors vs restos).
Vee
Evaluator
 
Posts: 677
Joined: 04 Dec 2013, 20:43
Has liked: 275 times
Been liked: 225 times
FAF User Name: Vee

Re: ASF maintainance mod

Postby RoLa » 14 Jan 2014, 23:35

So i did some tests, and made some changes to air staging to increase maintainance cost. how do i get an uid? What i have to do to upload a mod?

EDIT:
It'S uploaded as AirMaintainanceTest

http://www.faforever.com/forums/viewtopic.php?f=58&t=5690&p=61995&hilit=maintainance+mod#p62003
User avatar
RoLa
Contributor
 
Posts: 313
Joined: 23 Apr 2013, 22:14
Has liked: 5 times
Been liked: 19 times
FAF User Name: RoLa


Return to Contributors

Who is online

Users browsing this forum: No registered users and 1 guest