Skip to content

Launch your Genshin Impact automatically when the scrren is while.

License

Notifications You must be signed in to change notification settings

Choneas/GenshinImpactAutoLaunch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Genshin Impact Auto Launch

Alt text

Launch your Genshin Impact automatically when the scrren is while.

自动在您的屏幕偏白的时候启动原神。

About

forked from YinBuLiao/GenshinImpact_Start

Uses config.ini to make a personalize Genshin Impact launching style.

Features

  • pyparaser Read the configuration file
  • pydub Music play module
  • threading Multi-thread music play

Build

Build scripts is not in Release. You should download the ZIP of the repo.

  1. cd to the program's folder.
  2. pip install -r install_requirements.py
  3. cd to where the main.py in.
  4. pyinstaller main.py --icon=favicon.ico
  5. (If you want the program to be a single exe file)
    pyinstaller --onefile main.py --upx-dir="Your path" --icon=favicon.ico

Configurations

[launch]
readshortcut = false # Use the shortcut icon in desktop to detect Genshin Impact's path?
gamelocation = YuanShen.exe # If `readshortcut` is `false`, type your Genshin Impact executeable file's path here.
[check]
scaningscreendelay = 3 # Second(s). Scaning screen delay(Screenshot for checking the white percentage) 
launchwhitepercentage = 90 # Recommended to test this before your showcase. It maybe > 100
[music]
playlaunchmusic = true # Play music while launching?
musicdelay = 3 # Set the music delay.(For slow devices)
launchmusicstyle = 3 # Music file name in `Music` folder. Default: 1. Shed a Light(Clip) 2. 门酱DDD's 原神启动(the program cover image) 3. Both

FAQ

Why the music doesn't play while launching?

If you want to play music while launching, you should make sure the ffmpeg is in your path.

Why the music plays late?

I recommended to run musicplayer.exe just once before launching. Remember to set the musicDelay value.

TO-DO

  1. Support Genshin Impact(Not YuanShen)
  2. Change the configuration file to .toml or .yml not .ini
  3. Always running in background silently.
  4. Optimize the code.

About this frok's author

Hello, I am Choneas. I am a little human. This program made in the summer hoilday of 2023 that before I walk into a scary place. Now I think I won't use Python for a while, I'm rushing into C++ and Javascript(Typescript TSX) now.

Did there someone read this?

Oh I think not.

A midnight of September 19 (2:13 AM)