OneShot

OneShot

View Stats:
Kay-Kay Jul 2, 2018 @ 1:35pm
Code for Changing Wallpaper?
Hi,
When I played OneShot with my boyfriend (who has coding experience) he had a great time not only being shocked by all the tricks the game pulled, but also by figuring out how it might have been accomplished. The only trick he couldn't figure out was how you changed the desktop wallpaper.
Now, I have a friend trying to accomplish the same trick (using Python). Does anyone know how exactly to do this? Apparently all the other online tutorials haven't helped, so something more direct will do the trick.
Thanks!
< >
Showing 1-7 of 7 comments
GIR  [developer] Jul 3, 2018 @ 11:50pm 
For windows we just change the registry value in the windows registry that holds what file to display for the desktop wallpaper. We also hold on to the original registry value so that when the puzzle is over we can restore the user's desktop to what it was originally.
joridiculous Jul 5, 2018 @ 7:30am 
Originally posted by GIR:
For windows we just change the registry value in the windows registry that holds what file to display for the desktop wallpaper. We also hold on to the original registry value so that when the puzzle is over we can restore the user's desktop to what it was originally.
Neat and simple.

But wouldnt 3rd party programs like Wallpaper Engine mess this up somewhat?
Kay-Kay Jul 10, 2018 @ 12:14am 
THANK YOU
Nikoffee Jul 10, 2018 @ 6:09am 
Originally posted by joridiculous:
Neat and simple.

But wouldnt 3rd party programs like Wallpaper Engine mess this up somewhat?
I was using Wallpaper engine when the puzzle happened actually. It does cover the puzzle's wallpaper but you can see a glimpse of it when it changes. Then it just returns to the custom wallpaper.
Originally posted by GIR:
For windows we just change the registry value in the windows registry that holds what file to display for the desktop wallpaper. We also hold on to the original registry value so that when the puzzle is over we can restore the user's desktop to what it was originally.

I am using the slideshow feature in Windows 10 for my wallpapers, and the game was unable to restore my original setup on its own. It did change the fit back from 'center' to 'fit' like I had it, but the result was that the puzzle wallpaper remained but stretched to fit the screen. I was able to manually return my settings.

I am actually quite annoyed at these little events - I understand there's novelty in breaking the 4th wall, but I just don't see how it advances the story or the mood of the game in this case when it can just as easily be contained within the game itself. What I really didn't appreciate was having my computer's settings changed without my consent, even if it was just temporary.
fryeatergavin Dec 2, 2023 @ 2:00pm 
Originally posted by GIR:
For windows we just change the registry value in the windows registry that holds what file to display for the desktop wallpaper. We also hold on to the original registry value so that when the puzzle is over we can restore the user's desktop to what it was originally.
kinda dumb question but can these methods be recreated on the rpg maker mv engine?
GIR  [developer] Dec 3, 2023 @ 1:49am 
Originally posted by fryeatergavin:
Originally posted by GIR:
For windows we just change the registry value in the windows registry that holds what file to display for the desktop wallpaper. We also hold on to the original registry value so that when the puzzle is over we can restore the user's desktop to what it was originally.
kinda dumb question but can these methods be recreated on the rpg maker mv engine?
No idea.
< >
Showing 1-7 of 7 comments
Per page: 1530 50

Date Posted: Jul 2, 2018 @ 1:35pm
Posts: 7