Divide numbers in quotes by two
-
Hey everyone,
I have a multiple config files and would like to divide all numbers in quotes by two (rounded up).
I’m hoping there is a way to only effect the numbers that have the custom_viewport string.
Here is the example file:
aspect_ratio_index = “23”
custom_viewport_height = “1135”
custom_viewport_width = “1516”
custom_viewport_x = “327”
custom_viewport_y = “1093”
input_overlay = ":\overlays\vertical-arcade\arcade\game2\game2.cfgI appreciate any and all help. Thank you so much!
-
Search the forum for
add_1
. Use the same technique shown there, except your math will be to divide the matching number by 2. -
@PeterJones thank you!