Skip to content

SantiagoCalebe/WallpaperChanger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

image

Can i use this for my mod?

Sure thing! Be sure to credit me in game or in the plataform you use for publish your mod! You can use the links below https://santiagocalebe.neocities.org https://youtube.com/@santiagocalebe

My icon: https://github.com/SantiagoCalebe/Expurfunkin-SourceCode/blob/main/example_mods/ModFolder/images/credits/santiago.png

How to Use the Wallpaper Change Event

Inspired in mods that have this mechanic: Mario's Madness, Irrational Cruelty and Myths of Yamaha DEMO

How to Use It

  1. Prepare Your Image
    Make sure you have a BMP or PNG image ready for use.

image

  1. In Game
    Select the event and type in Value 1: [ON] - Enables. [OFF] - Disables.

In value 2, you will type (Only if Value 1 is 'ON') yourimagename.extension

Yourimagename - Your image name extension - The extension of your image, .PNG, .BMP

So it should look like below:

image

Q&A:

Q: How to turn off log? A: Take lines 33 to 48 off.

Q: How to change the directory? A:

Common Errors


By log:

  • Current wallpaper copied to: C:\Users\youruser\AppData\Roaming\Microsoft\Windows\Themes\TranscodedWallpaper.png It means that the copy was sucessful. but, what is this copy?

This copy is basically your wallpaper to be in png, if you check AppData\Roaming\Microsoft\Windows\Themes\ right now, you'll see that it has a file named TranscodedWallpaper. That if you change it into PNG, it's your wallpaper.

image

So the game copy it and turns the copy into PNG, so he can reset your wallpaper when the event is turned off or you leave the exit the game.


  • Returned Null: File not Found - Directory:

It means the file was not found, double check the directory, remember, the default is yourmodfolder/images/

  • Returned Null: Failed to restore user's default wallpaper.:

Restore Wallpaper was not sucessful.


  • Game crashes!!:
    Have in mind that this script was only tested on 0.7.3, so newer versions like 1.0, 1.0.1 and older versions like 0.7.1, 0.7.1h, 0.6.3, 0.6.2 WASN'T TESTED, feel free to test and feedback it.

Captura de tela 2025-01-23 110936

  • What versions of windows does it support?:
    Windows 7 or newer. By any chance, this was tested in Windows 10 22H2. And hopefully this works in Windows 11 24H2.

  • Does it work on MAC or Linux:
    Absolutely not. This acesses windows API. So if you want do this with mac you will have to port it yourself. IDK ¯_(ツ)_/¯

Anyway, have fun with this.

About

WallpaperChanger's Github

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages