The Ultimate Site of Worms Armageddon

Worms: Armageddon => General discussion => Wormkit Modules => Topic started by: StepS on January 15, 2017, 05:54 PM

Title: wkTrackMeBetter - your anti-CtrlHome
Post by: StepS on January 15, 2017, 05:54 PM
Suggested by: DonMega

TrackMeBetter is a small WormKit module that lets you configure the size of the in-game camera tracking box. You can set it so that the camera would move earlier than your worm (or mouse cursor, or any weapon) reaches the edge of the screen. This is an experimental replacement for Ctrl+Home.

Options are stored in the wkTrackMeBetter.ini file. The ConfinementPercentage option lets you specify the relative size (in percents) of the camera box. This is the first version, and only the following values are supported at the moment:
NOTE: Unfortunately, I had to remove support for 25 and 0 percentages as that had an unintended side effect with Invisibility. This may be resolved in the future. Sorry for the inconvenience. Always frustrating when good features have such side-effects (see wkKeyRemap).

Any unsupported values will be rounded down to the nearest supported.
Most people would want to enable 50. I should note that 50 is more than enough for BigRR/Tower/etc. needs.

The latest version is: 0.0.1.7 for W:A 3.7.2.1, download here (https://files.steps.moe/wa/wk/wkTrackMeBetter.zip).


Planned for future versions:


Post your feedback/suggestions here.
Title: Re: wkTrackMeBetter - your anti-CtrlHome
Post by: Sensei on January 15, 2017, 05:58 PM
Huh, this sounds pretty neat. Especially for Big RR's. Will try it asap.
Thx StepS!
Title: Re: wkTrackMeBetter - your anti-CtrlHome
Post by: Korydex on January 15, 2017, 06:13 PM
nice idea, gj!
Title: Re: wkTrackMeBetter - your anti-CtrlHome
Post by: WTF-8 on January 15, 2017, 07:58 PM
a CtrlHome-like mode that also works with the cursor and non-worm objects, and doesn't block mouse movement
just what I needed
works fine so far
thnx
Title: Re: wkTrackMeBetter - your anti-CtrlHome
Post by: WTF-8 on January 15, 2017, 09:54 PM
[attachment=1]
with wkTrackMeBetter it crashes at the end of turn one of that replay
idk why
Title: Re: wkTrackMeBetter - your anti-CtrlHome
Post by: StepS on January 15, 2017, 10:05 PM
with wkTrackMeBetter it crashes at the end of turn one of that replay
idk why
I assume you had the previous (removed) version with 0% enabled. Most likely a calculation error mentioned in the original log (so even 0.02% was not enough to prevent it, but then again I didn't test extensively). The crash is not reproducible from the replay alone.
25 and 0 are removed from the current version due to another issue. They will come back once I sort it out. Your feedback will be noted when that happens, thanks.
Title: Re: wkTrackMeBetter - your anti-CtrlHome
Post by: Jengu on January 17, 2017, 10:03 AM
Nice module. It would be better if it were open source but then you would have the TUS crowd up in arms.
Title: Re: wkTrackMeBetter - your anti-CtrlHome
Post by: Sensei on January 17, 2017, 11:48 AM
Said that I'm gonna try it, so might as well leave a comment too.
Camera in game (value 100, apparently) is much more appealing than 50, imho.

50 made me a bit sick. It was like my worm is traped in some kind of invisible square, trying to escape from it while roping his way through big rr map. Quitte trippy experience.

Nice module anyway, StepS. I'm sure some ppl will use it.
Title: Re: wkTrackMeBetter - your anti-CtrlHome
Post by: StepS on January 17, 2017, 12:00 PM
Said that I'm gonna try it, so might as well leave a comment too.
Camera in game (value 100, apparently) is much more appealing than 50, imho.

50 made me a bit sick. It was like my worm is traped in some kind of invisible square, trying to escape from it while roping his way through big rr map. Quitte trippy experience.

Nice module anyway, StepS. I'm sure some ppl will use it.
The effect depends on your resolution. Since the size of the rectangle is relative, it is bigger on full HD resolutions, and smaller on smaller resolutions, much closer to ctrl+home. It plays well on DonMega's 4K resolution, for example.
Perhaps the best solution for the camera would be a negative rectangle, so it could show much more than what lies ahead of your direction of movement. But work has to be done on the base code for that to work smoothly.
Title: Re: wkTrackMeBetter - your anti-CtrlHome
Post by: h3oCharles on January 17, 2017, 09:47 PM
It would be funny for the in-game cursors have an CTRL+Home effect xD
Title: Re: wkTrackMeBetter - your anti-CtrlHome
Post by: Dr Abegod on January 17, 2017, 10:26 PM
Perhaps the best solution for the camera would be a negative rectangle, so it could show much more than what lies ahead of your direction of movement. But work has to be done on the base code for that to work smoothly.
This would be awesome, but I imagine crazy fast camera shifting in a bigRR when you bounce off a wall and turn to the opposite direction