Stronghold: Definitive Edition

Stronghold: Definitive Edition

View Stats:
Orys Nov 7, 2023 @ 11:17am
2
2
Zoom unlock "mod"
I've made a quick mod to enable zooming which was not possible on my 5120x1440 screen for some reason.
It also makes zooming immediate

https://youtu.be/qg5Kd5rlyUo?si=-Ck8vstIaOi06hem

How to install

Follow the instructions at https://github.com/Oryss/StrongholdDEMod/tree/master
Last edited by Orys; Nov 11, 2023 @ 12:38am
< >
Showing 1-15 of 48 comments
hogaN. Nov 7, 2023 @ 11:26am 
Thank you =]
CaillouVelu Nov 7, 2023 @ 11:37am 
Thank you !
MaximB Nov 7, 2023 @ 11:47am 
Thanks,
Hope the devs will impant it by default, as it should.
Achilleslastand Nov 7, 2023 @ 1:19pm 
Compatible with multiplayer?
Locura Nov 7, 2023 @ 1:25pm 
man the default zoom levels annoy me so much thanks for this mod
Orys Nov 7, 2023 @ 10:06pm 
Originally posted by Achilleslastand:
Compatible with multiplayer?

No idea sorry I haven’t played multiplayer yet
thomasmayrhofer1 Nov 8, 2023 @ 4:38am 
I only had 2 zoom levels at 4k. This works too for 2180p resolution? And how exactly, does it add a 3rd zoom level?
Orys Nov 8, 2023 @ 4:57am 
Originally posted by thomasmayrhofer1:
I only had 2 zoom levels at 4k. This works too for 2180p resolution? And how exactly, does it add a 3rd zoom level?

It works for my screen/resolution I'm not sure about you. For me it would not zoom at all, I could only move up and down
Orys Nov 8, 2023 @ 4:59am 
Originally posted by thomasmayrhofer1:
And how exactly, does it add a 3rd zoom level?

It modifies a class in the game which handles zooming, it removes some checks that disable zooming with some conditions. It's a quick and dirty change and I'm just sharing it if some people find it useful
zakipwnz Nov 8, 2023 @ 5:10am 
looking for zoom level between 2 defaults, this mod not helped :( Thanks anyway!
yo Nov 8, 2023 @ 5:33am 
I’m not comfortable with downloading and running random DLLs. Can you please explain what exactly you did to achieve this?
Orys Nov 8, 2023 @ 12:15pm 
Originally posted by zakipwnz:
looking for zoom level between 2 defaults, this mod not helped :( Thanks anyway!

I'll try to see if it's possible to make it more like a free zoom level instead of notches which are annoying but I can't promise it :')
Orys Nov 8, 2023 @ 12:21pm 
Originally posted by yo:
I’m not comfortable with downloading and running random DLLs. Can you please explain what exactly you did to achieve this?

It's not my first mod for a game I've already made one for Souldiers and The Light Brigade which are both open-source : https://steamcommunity.com/app/1419160/discussions/0/3426689579765500402/?l=english&ctp=5

https://steamcommunity.com/app/1579880/discussions/0/3823037417866075695/

My github https://github.com/Oryss

The game is made with Unity, you can easily modify the game's code using a decompiler like dnSpy. You open Assembly-CSharp.dll, update the code, and save it. There are methods which handle zooming in the PerfectPixelWithZoom class. I changed some functions there like capZoom (nulled it) and made CanUserExtraZoom return true at all time

Someone smarter than me and with more free time could make it work better!
Orys Nov 8, 2023 @ 12:41pm 
Originally posted by zakipwnz:
looking for zoom level between 2 defaults, this mod not helped :( Thanks anyway!


Is this better? https://drive.google.com/file/d/1nfK4CHcjzLW76ssePNTgf-wQiUHQvwU9/view?usp=sharing There is a small glitch at first but then you can change the zoom better I think
Last edited by Orys; Nov 9, 2023 @ 4:34am
yo Nov 8, 2023 @ 1:47pm 
Originally posted by Orys:
The game is made with Unity, you can easily modify the game's code using a decompiler like dnSpy. You open Assembly-CSharp.dll, update the code, and save it. There are methods which handle zooming in the PerfectPixelWithZoom class. I changed some functions there like capZoom (nulled it) and made CanUserExtraZoom return true at all time

Someone smarter than me and with more free time could make it work better!
Thanks!
< >
Showing 1-15 of 48 comments
Per page: 1530 50

Date Posted: Nov 7, 2023 @ 11:17am
Posts: 48