Project Zomboid

Project Zomboid

Map Symbol Size Slider
 此主题已被置顶,因此可能具有重要性
capsgry  [开发者] 2022 年 1 月 29 日 上午 7:21
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
最后由 capsgry 编辑于; 2022 年 8 月 6 日 上午 6:45
< >
正在显示第 1 - 6 条,共 6 条留言
DOOMGUY 2022 年 2 月 8 日 上午 5:51 
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  [开发者] 2022 年 2 月 8 日 上午 6:32 
@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 2022 年 2 月 8 日 上午 8:44 
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 2022 年 11 月 15 日 上午 6:15 
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
Sunset Sarsaparilla 2023 年 2 月 22 日 上午 6:44 
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  [开发者] 2023 年 3 月 5 日 上午 2:41 
@Sunset Sarsaparilla
It's a limitation of the game itself. They don't show map symbols when zoomed out, for performance reasons I assume
< >
正在显示第 1 - 6 条,共 6 条留言
每页显示数: 1530 50