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.
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.