aliens

Author Topic: how to change starting funds  (Read 9847 times)

Offline ArcticGreen

  • Squaddie
  • *
  • Posts: 2
    • View Profile
how to change starting funds
« on: January 12, 2016, 08:48:25 am »
Hello,

I have just started tweeking the costs of everything in the rulesets using the openxcom ruleset editor  but I have had trouble finding a ruleset for changing the starting funds?

sorry that I am a noob on this but any help on changing the starting funds?

thanks

Offline SIMON BAILIE

  • Commander
  • *****
  • Posts: 676
    • View Profile
Re: how to change starting funds
« Reply #1 on: January 12, 2016, 02:17:27 pm »
Go to STANDARD\xcom1\vars.rul and you'll be able to edit the starting amount from 6000.

Offline ArcticGreen

  • Squaddie
  • *
  • Posts: 2
    • View Profile
Re: how to change starting funds
« Reply #2 on: January 13, 2016, 05:47:31 am »
Okay I found it and changed it  but the starting funds are also the monthly income now from the countries, is there a way to separate the two, so I could have a lot of starting funds but the monthly funds from the countries be different?
Example just to try it, I changed it to 60 million initial funds but that is now the monthly income.

Offline yrizoud

  • Commander
  • *****
  • Posts: 1014
    • View Profile
Re: how to change starting funds
« Reply #3 on: January 13, 2016, 11:28:55 am »
It's the variable "fundingBase" in the "countries" group (The string "fundingBase" should be present in only one .rul file)
Be aware that funding has a lot of randomness on game start. But at least, if you divide all values by 2, you can expect the total funding to be divided by 2 compared to the original game.

Offline Solarius Scorch

  • Global Moderator
  • Commander
  • *****
  • Posts: 11721
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
Re: how to change starting funds
« Reply #4 on: January 04, 2017, 05:19:05 pm »
Unfortunately, it doesn't seem to work for me.

Here's my countries ruleset:

Code: [Select]
countries:
  - delete: STR_USA
  - delete: STR_RUSSIA
  - delete: STR_UK
  - delete: STR_FRANCE
  - delete: STR_GERMANY
  - delete: STR_ITALY
  - delete: STR_SPAIN
  - delete: STR_CHINA
  - delete: STR_JAPAN
  - delete: STR_INDIA
  - delete: STR_BRAZIL
  - delete: STR_AUSTRALIA
  - delete: STR_NIGERIA
  - delete: STR_SOUTH_AFRICA
  - delete: STR_EGYPT
  - delete: STR_CANADA
  - type: STR_USA
    fundingBase: 100
    fundingCap: 10000
    labelLon: 260
    labelLat: -40.5
    areas:
      - [235, 255, -49, -32]
      - [255, 277.5, -49, -29]
      - [260, 265, -29, -26]
      - [277, 280, -32, -25]
      - [277.5, 286, -44, -32]
      - [286, 292.5, -45.5, -40]
      - [196.19, 208.34, -25.16, -16.42] #Hawaii
      - [190, 219, -80, -53.6] #Alaska Main Body
      - [219, 224, -60.4, -57] #Alaska Juneau Box 1
      - [224, 230, -58.5, -54] #Alaska Juneau Box 2
  - type: STR_RUSSIA
    fundingBase: 40
    fundingCap: 8000
    labelLon: 69
    labelLat: -64
    areas:
      - [30, 50, -80, -52.1] #European Russia Top
      - [34.1, 50, -52.1, -50.35] #European Russia Middle
      - [38.3, 48, -50.35, -42] #Caucasus
      - [50, 190.5, -80, -50.5] #Central Siberian Area Past Urals
      - [134, 146.1, -50.5, -45.63] #Sakhalin Island Area
      - [130, 137.6, -45.63, -42.36] #Vladivostok Area
      - [19.16, 22.84, -55.5, -54.52] #Kaliningrad Area
  - type: STR_UK
    fundingBase: 40
    fundingCap: 7000
    labelLon: 358
    labelLat: -53.625
    areas:
      - [352, 2, -60, -53.93] #Scotland and Northern Ireland
      - [353.9, 2, -53.93, -50] #Lower Part of England
      - [299.22, 302.33, 51.16, 52.66] #Falkland Islands
  - type: STR_FRANCE
    fundingBase: 60
    fundingCap: 8000
    labelLon: 2.5
    labelLat: -46.5
    areas:
      - [355, 7, -50, -43] #European France
      - [8.2, 9.88, -43, -41.3] #Corsica
      - [163.6, 167, 19.9, 22.71] #New Caledonia - E of Australia
      - [304, 308, -6.8, -2.6] #French Guiana - N of Brazil   
  - type: STR_GERMANY
    fundingBase: 50
    fundingCap: 9000
    labelLon: 8.64
    labelLat: -50.31
    areas:
      - [6, 15, -55, -47.5]
  - type: STR_ITALY
    fundingBase: 30
    fundingCap: 6000
    labelLon: 12.5
    labelLat: -43.875
    areas:
      - [7, 15, -46.5, -43]
      - [11, 18, -43, -37]
      - [18, 18.9, -40.88, -39.5] #Eastern Tip of Mainland
      - [13.34, 15.5, -37, -36.4] #Bottom of Sicily
      - [7.7, 10.33, -41.3, -38.4] #Sardinia
  - type: STR_SPAIN
    fundingBase: 20
    fundingCap: 5000
    labelLon: 355.5
    labelLat: -42.625
    areas:
      - [350, 355, -44.38, -41.66] #Galicia
      - [353.76, 355, -41.66, -41] #Little Tip 1
      - [355, 359, -44, -43] #Little Tip 2
      - [355, 4.13, -43, -41] #Northern Part of Spain
      - [353.59, 1, -41, -37.6] #Central Part of Spain
      - [352.411, 353.59, -39, -37.6] #C near Portugal 1
      - [352.917, 353.59, -40, -39] #C near Portugal 2
      - [352.32, 359.1, -37.6, -36.11] #Southern Part of Spain
      - [1.92, 3.7, -40.17, -39] #Maiorca
  - type: STR_CHINA
    fundingBase: 40
    fundingCap: 7000
    labelLon: 100
    labelLat: -35
    areas:
      - [75, 98, -50, -30]
      - [98, 122, -50, -22]
      - [122, 126.27, -52, -49.49]
      - [122.13, 129.48, -49.40, -41.85]
      - [108, 113, -22, -17.9] #Southern China near Hainan and Hainan Island
  - type: STR_JAPAN
    fundingBase: 70
    fundingCap: 10000
    labelLon: 138
    labelLat: -38.25
    areas:
      - [130, 143, -40, -30]
      - [138, 147, -46, -40]
      - [129, 130, -34.2, -31.95]
      - [141, 146, -54, -45.6] #Sakhalin
  - type: STR_INDIA
    fundingBase: 20
    fundingCap: 5000
    labelLon: 80
    labelLat: -24
    areas:
      - [70, 85, -30, -8]
      - [74, 79, -35, -30]
      - [85, 89, -27, -18]
      - [68, 70, -23.81, -21.27]
  - type: STR_BRAZIL
    fundingBase: 50
    fundingCap: 4000
    labelLon: 305
    labelLat: 10
    areas:
      - [286, 302, 3.8, 11.6] #Western Brazil Part 1
      - [296.2, 302, 11.6, 14.1] #Western Brazil Part 2
      - [298.7, 302, 14.1, 16.2] #Western Brazil Part 3
      - [289.878, 302, -1.7, 3.8] #Western Brazil Part 4
      - [295.6, 301, -5.5, -1.7] #Western Brazil Part 5
      - [302, 316, -2.5, 24] #Central Brazil
      - [316, 325, 1.4, 24] #Eastern Brazil
      - [304, 316, 24, 26.3] #Southern Brazil 1
      - [303.78, 312, 26.3, 33] #Southern Brazil 2
  - type: STR_AUSTRALIA
    fundingBase: 50
    fundingCap: 5000
    labelLon: 135
    labelLat: 25
    areas:
      - [110, 156, 10, 40] #Main Body of Australia
      - [144, 149, 40, 44.3] #Tasmania
      - [164, 177.2, 40, 47] #New Zealand 1
      - [172, 179, 33.5, 40] #New Zealand 2
  - type: STR_NIGERIA
    fundingBase: 30
    fundingCap: 2000
    labelLon: 7.5
    labelLat: -10
    areas:
      - [3, 14, -14, -4]
  - type: STR_SOUTH_AFRICA
    fundingBase: 20
    fundingCap: 3000
    labelLon: 17.5
    labelLat: 30
    areas:
      - [15, 25, 26, 35]
      - [25, 33, 22, 35]
  - type: STR_EGYPT
    fundingBase: 20
    fundingCap: 2000
    labelLon: 29
    labelLat: -27
    areas:
      - [25, 35, -32, -22]
  - type: STR_CANADA
    fundingBase: 50
    fundingCap: 4000
    labelLon: 260
    labelLat: -54
    areas:
      - [224, 230, -60.36, -58.5] #North of US Box Near Juneau
      - [219, 230, -80, -60.36] #Juneau Landsplit2
      - [230, 271, -80, -49] #moved up from -40 to -49 and cut off
      - [271, 285, -80, -44.5] #Eastern Canada Pt 1
      - [285, 305, -80, -45] #Eastern Canada Pt 2
      - [227, 230, -55, -52.1] #Extend Canada 5
      - [276, 279, -44.5, -41.59] #Toronto Region 1
      - [279, 281, -44.5, -42.74] #Toronto Region 2
      - [281, 284.3, -44.5, -43.38] #Toronto Region 3
      - [293.5, 298, -45, -43.2] #Newfoundland 1
      - [305, 307.89, -49.37, -46.77] #Newfoundland 2

As you can see, I drastically decreased funding for all countries. Initial funding should be between $690 000 and $1 380 000 (between the sum for all countries and double that sum)... However, starting a new game shows the same funding as usual, which is almost $3 000 000. Why?

Offline hellrazor

  • Commander
  • *****
  • Posts: 2027
  • Deep Ruleset Digger & Bughunter
    • View Profile
    • Github Account
Re: how to change starting funds
« Reply #5 on: January 06, 2017, 03:48:22 am »
fundingBase    Country's base funding, in thousands. The starting funding can be anywhere between 1x and 2x the base funding.
fundingCap    Country's funding cap, in thousands. Once a country reaches this maximum, it will no longer increase its funding.

Offline Solarius Scorch

  • Global Moderator
  • Commander
  • *****
  • Posts: 11721
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
Re: how to change starting funds
« Reply #6 on: January 06, 2017, 03:54:54 am »
fundingBase    Country's base funding, in thousands. The starting funding can be anywhere between 1x and 2x the base funding.
fundingCap    Country's funding cap, in thousands. Once a country reaches this maximum, it will no longer increase its funding.

Thanks, but I know this and it doesn't help.
According to this very article:

Initial funding should be between $690 000 and $1 380 000 (between the sum for all countries and double that sum)

But it's not working right, I still have around 3 million in a new game...

Offline hellrazor

  • Commander
  • *****
  • Posts: 2027
  • Deep Ruleset Digger & Bughunter
    • View Profile
    • Github Account
Re: how to change starting funds
« Reply #7 on: January 06, 2017, 04:17:08 am »
Did you set the "initialFunding: 6000" in vars.rul?
Or is it about the first funding month?

Offline Solarius Scorch

  • Global Moderator
  • Commander
  • *****
  • Posts: 11721
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
Re: how to change starting funds
« Reply #8 on: January 06, 2017, 12:40:17 pm »
Did you set the "initialFunding: 6000" in vars.rul?
Or is it about the first funding month?

Right, that was it! Thanks. :)