Mod Ren'Py Long Road Home - Denoiser Mod [v1.0.0] [SomeGuyWithNoImagination]

SomeGuyWithNoImagination

❤️ Keep comfy. ❤️
Donor
Game Developer
May 31, 2019
631
2,349


Overview:
Denoises and sharpens the game, improving the quality of the renders.
This is not a perfect technology. Many scenes may continue to have noise.
Compatible with F4iunyl3x's video mod. You may use both together without conflicts.​

Updated: 2024-09-12
Game/Creator: Long Road Home / OBDGames
Modder: SomeGuyWithNoImagination /
Mod Version: 1.1.0
Game Version: Universal. (Last tested on v10 Part 3)

Features:
- Implements a shader to denoise and sharpen the images. Attempts to minimize render noise and may reduce compression artifacts.

Installation:
You don't have permission to view the spoiler content. Log in or register now.

Change-Log:
You don't have permission to view the spoiler content. Log in or register now.

Note to Modders and Game Developers:
You don't have permission to view the spoiler content. Log in or register now.

This mod is configured to reduce noise while attempting to retain fine detail in skin and other materials to the best of its ability.
As such, noise will still continue to appear in many scenes, but in reduced amounts.
Please see the comparison images below.

Comparison Images
You don't have permission to view the spoiler content. Log in or register now.

The render quality in later chapters of the game is significantly better than in earlier.
I do not believe this mod is needed for content added in v0.9.0 or later, but content from before then will still benefit from this mod.

If you do not plan on playing earlier parts of the game, I do not consider this mod to be necessary, or even recommended.

If installed while playing later content, it will continue to denoise those images, which could cause fine details (such as on skin or fabric) to be subdued.
If you uninstall the mod and load a save made with it installed, you may see an error.
It can be safely ignored. Simply roll forward or backward and keep ignoring the errors until they stop.
(It should only take a couple frames.)
Download:
 
Last edited:

SomeGuyWithNoImagination

❤️ Keep comfy. ❤️
Donor
Game Developer
May 31, 2019
631
2,349
hey mate just wanted to ask if you gonna uptade your mod and if so do you have an ata for it? :)
Unless the game errors, it's working and doesn't need updates.

(I know there is a potential for the game to error if you uninstall the mod, but if you simply click "continue" or whatever the button is, its not going to cause further issues.)
 
  • Like
Reactions: Feyd

slawam

Member
Feb 22, 2019
102
45
hell yeah thx did try it and had no problems. Does look a lot "cleaner" with your mod so big thx and keep up the good work(y)
 

SomeGuyWithNoImagination

❤️ Keep comfy. ❤️
Donor
Game Developer
May 31, 2019
631
2,349
is this mod an be applied to any game ?
More or less, yes. You can just take take the mod for this game and copy it to another. Just know that the settings for one game may not work so great on another.

For this game, I use rather conservative denoising, so as long as the noise levels are rather similar in this game to whatever you copy to, it'll probably work well.

If you do want/need to play with settings, there is a modified quick menu in 'configuration.rpy' that you can uncomment to show a button for that.

Note 1: Renpy doesn't really want to reload the images when it doesn't have to, so it's a bit finnicky to get settings to apply. I recommend first changing the settings a ton, applying, and then rolling forward or back until you see the effect. Do that a few times just to get a feel and know when it actually applies.

Note 2: Unless you play with the code a bit, only the 'sigma,' 'ksigma,' 'threshold,' 'contrast,' and 'sharpening' sliders will have any change. The other sliders are for other modes not currently used. I recommend reading README.md if you ever think of using this in your own projects, but then read 'MODDER_NOTE.md' for a bit more help as a modder (I forgot to update it with some recent changes, but you're a smart cookie and can figure it out).
 
  • Like
  • Heart
Reactions: Feyd and tuekop

EvilChef

Well-Known Member
Sep 23, 2016
1,162
1,531
I get this error Exception: u'glsl_cas.ubershader' is not a known shader part.
 

SomeGuyWithNoImagination

❤️ Keep comfy. ❤️
Donor
Game Developer
May 31, 2019
631
2,349
I get this error Exception: u'glsl_cas.ubershader' is not a known shader part.
If you uninstalled the mod, this is normal when you load a save made with the mod installed. You can click on "Continue" a couple of times until the error goes away.

If you just installed the mod, ensure that the game/denoising_shader/shaders/glsl_cas.rpy file exists.
 

EvilChef

Well-Known Member
Sep 23, 2016
1,162
1,531
N
If you uninstalled the mod, this is normal when you load a save made with the mod installed. You can click on "Continue" a couple of times until the error goes away.

If you just installed the mod, ensure that the game/denoising_shader/shaders/glsl_cas.rpy file exists.
Neither. I had the mod installed on last version and now on this version. I cant click continue as it crashes completely and closes the game.
 

lTTMl

Member
Aug 7, 2017
468
1,055
I just came to report that the mod is not compatible with URM, the game crashes directly at launch.

Only solution, remove URM or Denoiser Mod. I do not know if the problem can be solved with 0x52, or this is definitive. :unsure:
I'm sorry, but an uncaught exception occurred.

While running game code:
File "renpy/common/00start.rpy", line 207, in script call
call _gl_test
File "renpy/common/00gltest.rpy", line 388, in script
with None
File "renpy/common/00start.rpy", line 207, in script call
call _gl_test
File "renpy/common/00gltest.rpy", line 388, in script
with None
KeyError: u'x52Overlay'

-- Full Traceback ------------------------------------------------------------

Full traceback:
File "renpy/bootstrap.py", line 331, in bootstrap
renpy.main.main()
File "renpy/main.py", line 662, in main
run(restart)
File "renpy/main.py", line 148, in run
renpy.execution.run_context(True)
File "renpy/execution.py", line 922, in run_context
context.run()
File "renpy/common/00start.rpy", line 207, in script call
call _gl_test
File "renpy/common/00gltest.rpy", line 388, in script
with None
File "renpy/common/00start.rpy", line 207, in script call
call _gl_test
File "renpy/common/00gltest.rpy", line 388, in script
with None
File "renpy/ast.py", line 1443, in execute
renpy.exports.with_statement(trans, paired)
File "renpy/exports.py", line 1684, in with_statement
return renpy.game.interface.do_with(trans, paired, clear=clear)
File "renpy/display/core.py", line 2755, in do_with
self.with_none()
File "renpy/display/core.py", line 2782, in with_none
for layer, d in self.compute_scene(scene_lists).items():
File "renpy/display/core.py", line 2938, in compute_scene
raw[layer] = d = scene_lists.make_layer(layer, self.layer_properties[layer])
KeyError: u'x52Overlay'

Windows-10-10.0.19041
Ren'Py 7.4.11.2266
Long Road Home 10_Part_4_beta
Wed Sep 11 10:37:13 2024
 

SomeGuyWithNoImagination

❤️ Keep comfy. ❤️
Donor
Game Developer
May 31, 2019
631
2,349
I just came to report that the mod is not compatible with URM, the game crashes directly at launch.

Only solution, remove URM or Denoiser Mod. I do not know if the problem can be solved with 0x52, or this is definitive. :unsure:
I don't know why exactly, but injecting the denoiser at a slightly later load stage fixed it.

While I was in there, I improved a bunch of the code and fixed up the porting instructions. Nobody except maybe tuekop will care about that.
 
  • Haha
Reactions: tuekop