Recent content by StPeter

  1. S

    Solving the mystery: Unit Maintenance

    Pure win. Thx man.:goodjob:
  2. S

    Solving the mystery: Unit Maintenance

    Yup, I know about the settings. My first approach was trying to find if the values are used in some .lua, so I could avoid doing all that work. But the actual maintenance stuff seems to be done in "CvGameCoreDLLFinal Release.dll". So no luck there. Reverse-engineering how the parameters fit...
  3. S

    Solving the mystery: Unit Maintenance

    I agree that the dudes likely did not use a polynomial. However, the form Total Maintenance Cost = (a * Unit count)^(b + c * Turn number), where a,b,c are constants, cannot fit the data. That is a fact. Hope you can find a nicer function though. Lemme dump some raw data for you here - hope...
  4. S

    Solving the mystery: Unit Maintenance

    Giving the cubic fit for B: B=a+b*T+c*T^2+d*T^3 Where: a: 0,5 b: 7,8467E-3 c: 2E-6 d: 5,2317E-9 T: game turn for Standard speed Goes with: P=1+p*T Where: p: 2,859E-4 T: game turn for Standard speed So put together - the function should match the unit maintenance cost exactly in...
  5. S

    Solving the mystery: Unit Maintenance

    First post ;) But I've done quite some legwork for it. The formula form for any turn is in the form: C = B * N ^ P Where C: Unit maintenance cost B: Base coefficient P: Power coefficient Result is rounded down (in-game C=Floor(BN^P)) Both B and P are changing every turn. The power...
Back
Top Bottom