Jump to content

Spyglass - v0.5.1


Fuami

Recommended Posts

Adds a new tool to the game, the spyglass.

Some metal smithing, and glass smelting you can have your very own spyglass, then go exploring the wilds, or spy on your neighbors from the safety of your windmill.

As of v0.3.0 - You can now use the mouse wheel to adjust your zoom some while your are using the spyglass.

As of v0.3.1 - Config Options

As of v0.4.7 - Added Bismuth spyglass, and removed damage.

As of v0.5.0 - New Config Options, including mouse wheel settings and options, and vignette options as well as French and Russian localization.

As of v0.5.1 - Pt-Br Localization.

 

Vingnette Settings

You can select one of several possible vignettes via the setting "vignetteStyle" in the mod config file.

  • "edge" - This is the default and appears as a soft darkening around the border of the screen.
  • "box" - This produces a hard edge the encroaches from the edge of the screen.
  • "square" - Produces a overlay that covers all but a centered square.
  • "circle" - Produces a overlay that covers all but a centered circle.

In addition to the style, you can adjust:

  • "edgeSize" - This is the number of pixels from the edge of the screen that the vignette will extend, circle and square use this setting on the smaller axis of your screen.
  • "edgeOpacity" - How transparent the vignette is, 0.0 being invisible, and 1.0 being virtually opaque; please note that the mod will adjust this value as you scroll and the interface animates in a way that I think improves the experience over all.

 

On the Mod DB at https://mods.vintagestory.at/spyglass

Or on GitHub at https://github.com/fuami/Spyglass

Edited by Fuami
Added v0.5.1
  • Like 4
Link to comment
Share on other sites

  • Fuami changed the title to Spyglass - v0.2.0

Heyo!

I built the shader (that eyeball shader effect) for Gox's most excellent Zoommod. https://mods.vintagestory.at/show/mod/233 (It's not in the video, you'd have to install the mod to see it in action).  Anyways, if you'd like to implement the same sort of thing (but circular) in your mod, you're more than welcome to that code.  

Link to comment
Share on other sites

7 hours ago, Chrysander said:

Minor niggle, though: Shouldn't it be "spyglass half" and not "spyglass halve"?

Quite right, I'll fix that. No Idea what I was thinking lol.

1 hour ago, Spear and Fang said:

Heyo!

I built the shader (that eyeball shader effect) for Gox's most excellent Zoommod. https://mods.vintagestory.at/show/mod/233 (It's not in the video, you'd have to install the mod to see it in action).  Anyways, if you'd like to implement the same sort of thing (but circular) in your mod, you're more than welcome to that code.  

Thanks for the offer, I'm personally not a big fan of the the vignette, if lots of people want it I might add a possible option. But I tried to ensure that the spyglass remained functional even with other mods that add a "zoom key." There by, adding it here would also possibly conflict in that way. Still I certainly appreciate it :D

Combining both zooms is pretty ridiculous, you can count the hairs on your sheep from the near by mountain.

  • Like 3
  • Haha 1
Link to comment
Share on other sites

  • Fuami changed the title to Spyglass - v0.2.1
  • Fuami changed the title to Spyglass - v0.2.2

This will probobly be the last update unless something is broken or I get an idea, since with this update I've pretty much finished what was left on my Todo List.

New for v0.3.0

  1. Adds a player animation for using the spyglass, so you should be able to see people using them, and your shadow reflects that.
  2. It also adds an addition where you can use your mouse wheel to adjust the zoom slightly while using the spyglass, letting you dial in what your looking at slightly.

I've also added a short demo video on the ModDB page so people can see what its like to use the item before they download :D

  • Like 1
  • Thanks 1
Link to comment
Share on other sites

  • Fuami changed the title to Spyglass - v0.3.0

Alright, so maybe "last update" was a bit premature.

But but there was a problem, so Its not like I'm a complete liar 😜

New for v0.3.1

  1. Fix an issue with dropping/throwing items with the mouse introduced in v0.3.0 (Whoops!)
  2. Added a very small "darkened edge" when using the spyglass.
  3. Added a config file, for full details

Regarding said "edge"; I'm not big on these, but a few people have poked at me about it on discord, so I added something that I felt wouldn't bother me, its very mild, and most people probobly won't even notice it without someone pointing it out. If for some reason you hate it you can turn it off by making it 0 in size, or opacity 0 in the config. If you want more, then you can make it bigger I guess? Not that that makes sense 🤪

Some highlights config wise include editing that edge I talked about, adding a dim to the spyglass if your into that, adjusting animation speed, mouse sensitivity, and disabling the spyglasses automatic switch to first person when using the spyglass ( which just lets you stare at yourself using a spy glass, for style points I guess. )

Edited by Fuami
  • Like 1
Link to comment
Share on other sites

  • Fuami changed the title to Spyglass - v0.3.1

Bug on the latest version.

equipped it and then tossed the glass to my buddy.  Now my screen keeps randomly zooming in even though I do not have the item.  It will let me zoom out with scroll wheel sometimes but it keeps randomly zooming in even when no buttons are being pressed and I don't have the item at all.

  • Like 1
  • Sad 1
Link to comment
Share on other sites

On 8/10/2021 at 11:30 PM, Sai3er said:

Bug on the latest version.

equipped it and then tossed the glass to my buddy.  Now my screen keeps randomly zooming in even though I do not have the item.  It will let me zoom out with scroll wheel sometimes but it keeps randomly zooming in even when no buttons are being pressed and I don't have the item at all.

I assume that this is all without restarting the game? Rather then just being forced into a zoom status at all times even after restarting it?

Best I can guess it might be a server issue with it never calling the "stop interacting" logic which disables the spyglass effect. I'll try to implement something to work around this. ( what I came up with is in v0.4.0 )

Edited by Fuami
Link to comment
Share on other sites

So thanks to someone literally throwing ideas at me this afternoon, a new version appears!

New for v0.4.0

2021-08-12_01-15-29.thumb.png.c04646e86978ae6278f2100693fea0a4.png

Changes / Features:

  1. Added Brass spyglass, cause I didn't even know brass was in the game...
  2. Spyglasses can now be placed in display cases, and on shelves. Admire your own handiwork, or show off your fancy collection!
  3. When on a tool-rack, the spyglass will be tilted slightly to make it more distinguishable from the chisel.
  4. When using a spyglass most HUD elements will now be hidden. Not chat though.

Fixes:

  1. Fixed a missing texture on the glass bulb of the spyglass model.
  2. Hopefully fix an issue where the game gets stuck in spyglass mode when you remove it from your inventory.

New Settings:

  1. glassColor - color of the glass you get when using glassBrightness ( the default is a quartz color, so lowering the brightness will make it slightly cloudy ) Setting this to 0 will change it back to the v0.3.1 version, where it dimmed to black.
  2. hideHUDWhileSpying - By default this is enabled, but can be set to false to keep the HUD elements visible when using the spyglass.
Edited by Fuami
Fancy Pictures!
  • Like 1
Link to comment
Share on other sites

  • Fuami changed the title to Spyglass - v0.4.0
On 8/12/2021 at 12:11 AM, Fuami said:

I assume that this is all without restarting the game? Rather then just being forced into a zoom status at all times even after restarting it?

Best I can guess it might be a server issue with it never calling the "stop interacting" logic which disables the spyglass effect. I'll try to implement something to work around this. ( what I came up with is in v0.4.0 )

I did restart the game and still had the issue. If the glass was or wasn't in my hand the screen would randomly zoom every once in a while. Some of the lighting of the game seemed to be affected as well. There was no pattern that I could notice. Just walking about and then my screen would start zooming and I had to use scroll wheel to zoom out again. It would do that for a few seconds and then normal again for a bit until the next time. I'll download the latest and test again tonight!

Link to comment
Share on other sites

I play on LAN with my friend. My friend is the host.

When they use the spyglass, everything is fine. They can zoom and nothing happens to me. However, if I am using a spyglass, any spyglass anywhere in the world, it zooms my friend in at the same time, making it pretty unusable. We've been testing this over multiple sessions over the week and it happens every time. On the latest version.

  • Sad 1
Link to comment
Share on other sites

8 hours ago, tuesdaey said:

I play on LAN with my friend. My friend is the host.

When they use the spyglass, everything is fine. They can zoom and nothing happens to me. However, if I am using a spyglass, any spyglass anywhere in the world, it zooms my friend in at the same time, making it pretty unusable. We've been testing this over multiple sessions over the week and it happens every time. On the latest version.

Please try this version: https://github.com/fuami/Spyglass/releases/download/0.4.1/spyglass_v0.4.1.zip

I believe that should fix the problem, I can't really test multiplayer as the game won't let me join a server twice but I'm pretty sure I understand the root cause of it.

Link to comment
Share on other sites

New for v0.4.2

image.png.575eb901f65819f51cf5f72baa18e843.png

Changes / Features:

1. You can now place spyglasses on the ground like boots and other items in the same space. Finally the feature we've all dreamed of, vast open fields of spyglasses to confuse the local wild life.

2. Added World Interaction Help,

image.png.9b5dcda94afd3da42a88eca9bad794e7.png

We can all relax knowing that the game will remind us that the right mouse button uses the spyglass to spy.

 

Overwhelming sarcasm aside, I didn't actually post an update in the thread yet for the update, so this v0.4.1 an v0.4.2 were released for 1.16 support. So have fun on the new version!

Edited by Fuami
Link to comment
Share on other sites

  • Fuami changed the title to Spyglass - v0.4.3

New for v0.4.3

  • Add support for Immersive First Person, previously you would end up just staring into the spyglass item which isn't very helpful.
  • Spy tubes can be be placed on the ground.

New for v0.4.4

  • Fixes compatibility issue with modded GUI elements not hiding properly when using a spy glass.
Edited by Fuami
0.4.4 Minor update.
Link to comment
Share on other sites

  • 1 month later...
On 8/2/2021 at 6:13 PM, Fuami said:

Thanks for the offer, I'm personally not a big fan of the the vignette, if lots of people want it I might add a possible option. But I tried to ensure that the spyglass remained functional even with other mods that add a "zoom key." There by, adding it here would also possibly conflict in that way. Still I certainly appreciate it :D

Combining both zooms is pretty ridiculous, you can count the hairs on your sheep from the near by mountain.

I'd just like to put it out there that the one thing I feel is missing from the mod is the option for the vignette. Having that vignette, for me, would make this mod perfect. I was messing around with the config to try and get a stronger vignette but came out disappointed. Regardless, love this mod a ton!

Link to comment
Share on other sites

  • Fuami changed the title to Spyglass - v0.4.7
  • 1 month later...

New for v0.5.0

  • New config options, including mouse wheel settings and options.
  • New config options, including preserveZoomBetweenUses which can be enabled to disable resetting the zoom between uses.
  • New config options, vignette style.
  • French and Russian localization.
On 2/28/2022 at 10:07 PM, Lodey said:

I'd just like to put it out there that the one thing I feel is missing from the mod is the option for the vignette. Having that vignette, for me, would make this mod perfect. I was messing around with the config to try and get a stronger vignette but came out disappointed. Regardless, love this mod a ton!

You might like some of the expanded options for this, I know that several people found the original options lacking.

Below are the new "circle" and "square" options.

2024-01-09_23-08-34.thumb.png.bb081f36da22da44c135311764789b36.png

2024-01-09_23-08-34b.png

Edited by Fuami
Added screenshots.
  • Thanks 1
Link to comment
Share on other sites

  • Fuami changed the title to Spyglass - v0.5.1
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.