• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

Millero15

Corporal
50 Badges
Oct 26, 2015
31
172
  • Victoria 2
  • Crusader Kings II: Monks and Mystics
  • Hearts of Iron IV: Together for Victory
  • Stellaris: Leviathans Story Pack
  • Europa Universalis IV: Rights of Man
  • Crusader Kings II: Reapers Due
  • Hearts of Iron IV: Cadet
  • Stellaris
  • Crusader Kings II: Conclave
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Mandate of Heaven
  • Stellaris: Apocalypse
  • Crusader Kings III
  • Imperator: Rome - Magna Graecia
  • Imperator: Rome Sign Up
  • Crusader Kings II: Holy Fury
  • Stellaris: Distant Stars
  • Hearts of Iron IV: Death or Dishonor
  • Europa Universalis IV
  • Stellaris: Humanoids Species Pack
  • Hearts of Iron IV: Expansion Pass
  • Europa Universalis IV: Cradle of Civilization
  • Stellaris: Synthetic Dawn
  • Stellaris - Path to Destruction bundle
  • Crusader Kings II: Jade Dragon
  • Imperator: Rome
  • Hearts of Iron IV: Expansion Pass
  • Europa Universalis IV: Third Rome
  • Europa Universalis IV: Mare Nostrum
  • Europa Universalis IV: Art of War
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
I've increased the map size of my total conversion mod by 1.2, and as a result all the positions are messed up. As the positions file is massive, it would take forever to manually multiply every number there by 1.2 so that everything is in position again. Unfortunately I have no experience with code, but I'm sure that there's a way to multiply every number in a file with relative ease. Can anyone help me with this?

To clarify, this is how the file looks:

#Helsinki
1=
{
position={442.500 479.500 451.500 486.500 445.000 491.000 454.000 491.000 446.000 481.500 447.000 474.000 447.000 474.500}
rotation={0.000 0.000 0.000 0.000 -7.069 0.000 0.000}
height={0.000 0.000 0.000 0.950 0.000 0.000 0.000}
}
#Kuopio
2=
{
position={636.000 800.000 633.000 793.500 651.000 799.500 649.000 798.000 640.500 799.500 643.500 804.500 651.000 801.000}
rotation={0.000 0.000 0.000 0.000 -1.571 0.000 0.000}
height={0.000 0.000 0.000 20.000 0.000 0.000 0.000}
}
#Central Gulf of Riga
3=
{
position={318.000 200.000 336.000 182.000 318.000 200.000 318.000 200.000 323.000 205.000 318.000 200.000 318.000 200.000}
rotation={0.000 0.000 0.000 0.000 0.000 0.000 0.000}
height={0.000 0.000 0.000 20.000 0.000 0.000 0.000}
}

Every number, preferably only those after "position={" should be multiplied by a factor of 1.2. And there's a lot of them.