Project Zomboid

Project Zomboid

Map Symbol Size Slider
 This topic has been pinned, so it's probably important
capsgry  [developer] 29 Jan, 2022 @ 7:21am
How to configure the slider (change min/max values, step value, default value)
For now you can change them manually if you really want to:
  1. Open the mod file with a text editor at this location:
    ...\Steam\steamapps\workshop\content\108600\2734705913\mods\Map Symbol Size Slider\media\lua\client\MapSymbolSizeSlider\MapSymbolSizeSlider.lua
  2. And change scaleMin, scaleMax, scaleStep values to your desired size. It's at the top of the file
You can tweak other values if you want. Default values:
consts = { scaleMin = 0.066, scaleMax = 1.266, scaleStep = 0.1 },
It will change the values on your client

You can change MapSymbolSizeSlider.params.currentScale to set the default scale upon entering a game. It's currently set to in-game size ISMap.SCALE (0.666).

Little hatch under the slider shows the default in-game size, if you want to change its position, change the MapSymbolSizeSlider.params.defaultScale
Last edited by capsgry; 6 Aug, 2022 @ 6:45am
< >
Showing 1-6 of 6 comments
DOOMGUY 8 Feb, 2022 @ 5:51am 
Hey! I have an Add-On mod for Wipe's "Extra Map Symbols" where I'm revamping all symbols to 256x256 (Vanilla and Mod's), my mod is now dependent on yours as well - I figured out that the minimum scale for it to be 1 square size is 0.00515625 - However, I'm having trouble figuring out the Max and Step values (I suck at math xD). Could you add me and help me out with some stuff please? Thanks alot!
capsgry  [developer] 8 Feb, 2022 @ 6:32am 
@Stann0xis
You can think of resulting image size on map as

resulting_size = image_size * scale

If you want your textures to be the same size as the original ones, then

orig_resulting_size = your_resulting_size orig_image_size * scale = your_image_size * desired_scale 20 * scale = 256 * desired_scale

and the formula is
desired_scale = scale * 20/256
or
desired_scale = scale * 0.078125

Just multiply the scale constants by this number 0.078125 and you should get what you want:
defaultScale (ISMap.SCALE) = 0.666 * 0.078125 = 0.05203125 scaleMin = 0.00515625 scaleMax = 0.09890625 scaleStep = 0.0078125
DOOMGUY 8 Feb, 2022 @ 8:44am 
I spent the last hour breaking my head in trial and error and literally just got to that conclusion before reading your answer ahahha Amazing mod! It was just what I needed for my Add-On! I'll make sure to leave credits and requirement for your mod on mine. Thanks again!
Lenar345 15 Nov, 2022 @ 6:15am 
hey im using this mod with the extra map symbols mod and the size slider is blocked by the C S ? X buttons, i cant use it, is there a way to move the interface? thanks
I attempted to increase the max size of the notes, which worked; but the issue I'm encountering is that it the note doesn't load in unless I have it zoomed in. What else will I have to edit to make notes appear when zoomed out? Thank you in advance
capsgry  [developer] 5 Mar, 2023 @ 2:41am 
@Sunset Sarsaparilla
It's a limitation of the game itself. They don't show map symbols when zoomed out, for performance reasons I assume
< >
Showing 1-6 of 6 comments
Per page: 1530 50