
Sliding Windows
Adds openable glass windows which are craftable from glass and planks.

Description
<p>Want openable glass windows? Need a sink for all your lead and solder?</p> <p><span style="color: #000000;"><em>Look</em> no further...</span></p> <div>Now you can craft slideable glass windows from glass slabs or leaded glass and wood planks. If you want matching swinging doors or trapdoors, check out the content-only mods <a href="https://mods.vintagestory.at/glassdoors">Glass Doors</a> and <a href="https://mods.vintagestory.at/glasstrapdoors">Glass Trapdoors.</a></div> <h2>What's new</h2> <h4><span style="background-color: #f1c40f;">v1.3.1 (latest)</span></h4> <div> <p>- Added compatibility patches that fix transparency rendering while animated/open for the other glass window/door mods<br />- Moved rain sounds to the *Weather* group instead of *Ambient* and normalized volume against other weather sounds. <br />- Fixed a bug with glass pane texture sizing that was only noticeable on leaded windows</p> </div> <h4>v1.3</h4> <div>- Added 3x2 horizontally sliding doors (made from a pair of 3x1 fixed windows, also included in this mod)</div> <div>- Reworked animation rendering so that opened doors don't cause items to disappear behind them</div> <div>- Collapsed the handbook entries into one page for each size, and grouped display of the windows on other handbook pages</div> <h4>v1.2</h4> <div>- Added dynamic rain and hail sounds while indoors during precipitation</div> <div>- Added support for a modconfig and (untested!) ConfigLib (optional) so you can turn off the rain sounds</div> <div> </div> <div> <h4>v1.1</h4> <div>- Added 2x2 horizontally sliding doors (made from a pair of 2x1 fixed windows, also included in this mod)</div> </div> <h4>v1.0 </h4> <div>- Added 2x1 vertically sliding windows (made from a pair of 1x1 fixed windows, also included in this mod)</div> <h2>Behaviors and features</h2> <ul> <li>Unlike vanilla doors, these variants are<strong> horizontally centered</strong> within the block footprint (like leaded glass panes, in the middle of the block).</li> <li>For vertical windows, the bottom sash opens up when interacted with.</li> <li>For horizontal windows (patio doors) the side with the handle is the one that moves, and they retain the same auto-mirror logic and coordinated opening as vanilla.</li> <li>All sliding windows are airtight<em> when closed</em>, just like doors. Fixed windows are airtight always.</li> <li>Windows have real collision, too. The hitbox for the vertical window leaves<em> just less than</em> one block height clear at the bottom when open.</li> <li>Works with RealSmoke and supports all <a href="https://mods.vintagestory.at/wildcrafttree">Wildcraft tree species.</a></li> <li>These are based heavily on the vanilla doors so should inherit almost all of those behaviors and attributes (with the exception of rotation on opened).</li> </ul> <div> </div> <h4>Example mod config:</h4> <div> <pre class="language-javascript"><code>{ "EnableRainSoundsOnWindows": true, "EnableRainSoundsOnAllGlass": false, "VolumeScale": 1.0 } </code></pre> </div> <div> <div class="spoiler"> <div class="spoiler-toggle">Expand for instructions on editing the modconfig</div> <div class="spoiler-text"> <p><strong>EnableRainSoundsOnWindows</strong> controls whether to hear the rain at all. <strong><code>false</code> </strong>will remove rain sounds completely. default is <strong><code>true</code></strong></p> <p><strong>EnableRainSoundsOnAllGlass</strong> controls whether to play these sounds on all Glass materials in vanilla. <strong><code>true</code> </strong>will give you more rain sounds. default is <strong><code>false</code></strong>. This hasn't been tested a lot, so use at your own risk, and let me know how it goes. These would play on top of any other rain sounds (like what leaded panes already use)</p> <p><strong>VolumeScale</strong> lets you increase or decrease the volume of these sounds. They're already part of your "Weather" game sounds, but if you want them quieter or louder, you can adjust to any number between <code><strong>0.0</strong></code> (muted) and <strong><code>2.0</code></strong> (twice as loud as default, which is <code><strong>1.0</strong></code>).</p> </div> </div> </div> <h3>Compatibility & Known issues</h3> <p><span style="text-decoration: line-through;">- Vintage Story glass transparency rendering bug (expand for details) -- affects whether particles are visible through windows (RealSmoke and XV Shaders, etc)</span><strong> fixed (with a workaround) in 1.3</strong></p> <div class="spoiler"> <div class="spoiler-toggle">Weighted Order Independent Transparency makes transparent things block everything behind them</div> <div class="spoiler-text">There is a <a href="https://github.com/anegostudios/VintageStory-Issues/issues/1850">known rendering bug in VS</a> that sometimes occludes (hides) other transparent blocks and particle effects if they're behind a partially-transparent object, like these windows or regular leaded glass panes and blocks. The bug is more than 3 years old now so I don't know when it'll get fixed. If you know something about weighted order independent transparency rendering, give it a shot and let us know how it goes.</div> </div> <p>- Wildcrafttree woods are compatible, as long as you aren't mixing vanilla and wildcrafttree wood materials. (just pick one or the other library)</p> <p>- As far as I know, none of these recipes conflict with other mods, but let me know if they do!</p> <p>- You don't have to use ConfigLib to edit the modconfig, and I don't use it personally, but I did try to make it ConfigLib compatible. Please test it and let me know if it's wonky.</p> <h3>Notes, Etc. </h3> <div> </div> <div>Some credits: </div> <div>- <a class="mention username mceNonEditable" href="https://mods.vintagestory.at/show/user/B0A8EEA927DF00DD5E04" data-user-hash="B0A8EEA927DF00DD5E04">LunaTheFox</a> for the genius suggestion to use lead solder for these recipes. What else are you gonna do with it?</
Ratings & reviews
Sign in to leave a rating or comment.


