2022-05-16 23:48:22 +00:00
|
|
|
# Preferences
|
|
|
|
# https://www.renpy.org/doc/html/preferences.html
|
|
|
|
|
|
|
|
# Note: Only use default keyword for renpy preferences. Use settings.default for custom ones.
|
|
|
|
default preferences.text_cps = 40
|
|
|
|
default preferences.afm_time = 15
|
|
|
|
default preferences.pad_enabled = False
|
2022-06-24 17:32:41 +00:00
|
|
|
default preferences.renderer = "auto"
|
2022-05-16 23:48:22 +00:00
|
|
|
default preferences.gl_powersave = False
|
2022-06-16 17:46:57 +00:00
|
|
|
default preferences.audio_when_minimized = False
|
2022-05-16 23:48:22 +00:00
|
|
|
|
2023-07-14 22:52:27 +00:00
|
|
|
init python:
|
2024-06-01 19:46:53 +00:00
|
|
|
settings.default("theme", "auto") # TODO: Scrapped.
|
|
|
|
settings.default("text_color_day", "#402313ff") # TODO: Scrapped.
|
|
|
|
settings.default("text_color_night", "#341c0fff") # TODO: Scrapped.
|
|
|
|
settings.default("text_outline", "#00000000") # TODO: Scrapped.
|
2022-05-27 22:05:06 +00:00
|
|
|
settings.default("tooltip", True)
|
|
|
|
settings.default("tutorials", True)
|
2024-06-01 19:46:53 +00:00
|
|
|
settings.default("preserve_aspect_ratio", True) # TODO: Scrapped.
|
2022-05-27 22:05:06 +00:00
|
|
|
settings.default("animations", True)
|
2022-06-12 23:04:59 +00:00
|
|
|
settings.default("updates", True)
|
2023-03-24 19:16:22 +00:00
|
|
|
settings.default("image_cache_size", 512)
|
2023-07-14 01:33:58 +00:00
|
|
|
settings.default("multithreading", True)
|
2024-06-01 19:46:53 +00:00
|
|
|
settings.default("kinetictext", True)
|
2022-05-16 23:48:22 +00:00
|
|
|
|
2023-03-02 23:06:16 +00:00
|
|
|
renpy.music.register_channel("background", "sfx", True)
|
2023-05-16 18:02:13 +00:00
|
|
|
renpy.music.register_channel("sound2", "sfx", False)
|
2023-03-02 23:06:16 +00:00
|
|
|
renpy.music.register_channel("weather", "weather", True)
|
|
|
|
|
2024-06-06 19:25:13 +00:00
|
|
|
default _game_menu_screen = "navigation"
|
|
|
|
|
2022-05-16 23:48:22 +00:00
|
|
|
# Configuration
|
|
|
|
# https://www.renpy.org/doc/html/config.html
|
|
|
|
|
|
|
|
# Pre-Release related flags and variables
|
2023-07-04 17:49:30 +00:00
|
|
|
define prerelease = False
|
2022-05-16 23:48:22 +00:00
|
|
|
define config.autoreload = False
|
|
|
|
define config.developer = "auto"
|
2023-05-26 18:56:26 +00:00
|
|
|
define config.debug = config.developer or prerelease
|
2022-05-16 23:48:22 +00:00
|
|
|
define config.console = True
|
|
|
|
|
|
|
|
# Game version and naming
|
2024-03-31 20:20:39 +00:00
|
|
|
define config.version = "1.46.2"
|
2023-07-04 17:49:30 +00:00
|
|
|
define compatible_version = 1.451
|
2022-06-12 23:04:59 +00:00
|
|
|
define config.name = "Witch Trainer Silver"
|
2023-05-26 18:56:26 +00:00
|
|
|
|
2022-05-16 23:48:22 +00:00
|
|
|
# Application window settings
|
2023-05-13 15:08:35 +00:00
|
|
|
define config.window_title = f"{config.name} (v{config.version}{' PRE-RELEASE' if prerelease else ''}) ({get_renderer()}) ({renpy.bits}-bit)"
|
2022-05-16 23:48:22 +00:00
|
|
|
define config.window_icon = "gui/icon.webp"
|
|
|
|
define config.screen_width = 1080
|
|
|
|
define config.screen_height = 600
|
2023-06-10 16:07:50 +00:00
|
|
|
define config.physical_width = 1280
|
|
|
|
define config.physical_height = 720
|
2022-05-16 23:48:22 +00:00
|
|
|
define config.save_physical_size = True
|
|
|
|
|
|
|
|
# User interface settings
|
2024-05-19 20:12:51 +00:00
|
|
|
define config.layers = ["master", "transient", "screens", "dolls", "overlay"]
|
|
|
|
define config.menu_clear_layers = ["interface", "dolls"]
|
2022-05-16 23:48:22 +00:00
|
|
|
define config.default_tag_layer = "screens"
|
|
|
|
define config.top_layers = ["interface"]
|
2024-05-19 20:12:51 +00:00
|
|
|
define config.say_layer = "interface"
|
2024-05-15 22:02:05 +00:00
|
|
|
define config.choice_layer = "interface"
|
2022-05-16 23:48:22 +00:00
|
|
|
define config.transparent_tile = False
|
|
|
|
define config.narrator_menu = True
|
|
|
|
define config.hard_rollback_limit = 100
|
|
|
|
define config.history_length = 250
|
2024-05-28 20:10:37 +00:00
|
|
|
define config.mouse = {
|
|
|
|
"default": [("gui/creamy_pumpkin_pie/cursor_pointer_medium.png", 0, 0)],
|
|
|
|
"button": [("gui/creamy_pumpkin_pie/cursor_hand_medium.png", 0, 0)],
|
|
|
|
}
|
2022-05-16 23:48:22 +00:00
|
|
|
define config.help = None
|
|
|
|
define config.side_image_only_not_showing = True
|
|
|
|
define config.allow_underfull_grids = True
|
|
|
|
define config.crop_relative_default = False
|
2024-05-27 17:54:57 +00:00
|
|
|
define config.tag_layer = {
|
|
|
|
"tonks_main": "dolls",
|
|
|
|
"genie_main": "dolls",
|
|
|
|
"snape_main": "dolls",
|
|
|
|
"hermione_main": "dolls",
|
|
|
|
"luna_main": "dolls",
|
|
|
|
"cho_main": "dolls",
|
|
|
|
"astoria_main": "dolls",
|
|
|
|
"susan_main": "dolls",
|
2024-09-24 15:50:47 +00:00
|
|
|
"hooch_main": "dolls",
|
2024-05-27 17:54:57 +00:00
|
|
|
}
|
2022-05-16 23:48:22 +00:00
|
|
|
|
|
|
|
# Graphics and cache settings
|
|
|
|
define config.gl2 = True
|
|
|
|
define config.gl_enable = True
|
|
|
|
define config.gl_resize = True
|
|
|
|
define config.gl_clear_color = "#000"
|
|
|
|
define config.hw_video = True
|
|
|
|
define config.nearest_neighbor = False
|
|
|
|
define config.atl_start_on_show = False # Enables compatibility for ATL behaviour after Ren'py 7.4.7
|
2022-06-20 20:22:32 +00:00
|
|
|
# define config.use_drawable_resolution = (not renpy.android)
|
|
|
|
# define config.drawable_resolution_text = True
|
2022-05-16 23:48:22 +00:00
|
|
|
define config.cache_surfaces = False
|
|
|
|
define config.image_cache_size = None
|
2023-04-24 19:50:50 +00:00
|
|
|
define config.image_cache_size_mb = settings.get("image_cache_size")
|
2022-05-16 23:48:22 +00:00
|
|
|
define config.load_before_transition = True
|
|
|
|
define config.imagemap_cache = True
|
|
|
|
define config.optimize_texture_bounds = True
|
|
|
|
define config.debug_image_cache = False
|
2022-08-14 21:51:07 +00:00
|
|
|
# define config.atl_one_frame = False
|
|
|
|
define config.tag_zorder = {
|
|
|
|
"xray_child": -1,
|
|
|
|
"xray_overlay": -1,
|
|
|
|
"xray_mask": -1,
|
2023-03-02 23:06:16 +00:00
|
|
|
"cg": 17,
|
2024-01-08 15:13:20 +00:00
|
|
|
"cg2": 18,
|
2022-08-14 21:51:07 +00:00
|
|
|
}
|
2022-05-16 23:48:22 +00:00
|
|
|
|
|
|
|
# Saving and loading
|
2022-06-12 23:04:59 +00:00
|
|
|
define config.save_directory = "Witch Trainer Silver"
|
2022-05-16 23:48:22 +00:00
|
|
|
define config.has_autosave = True
|
|
|
|
define config.autosave_on_quit = True
|
|
|
|
define config.autosave_on_choice = True
|
|
|
|
define config.autosave_frequency = 200
|
|
|
|
define config.autosave_slots = 12
|
|
|
|
|
|
|
|
# Sound and music
|
|
|
|
define config.has_sound = True
|
|
|
|
define config.has_music = True
|
|
|
|
define config.has_voice = False
|
|
|
|
define config.sound_sample_rate = 48000
|
|
|
|
define config.main_menu_music = "music/aquarium-by-kevin-macleod.ogg"
|
2023-03-20 21:44:55 +00:00
|
|
|
define config.fadeout_audio = 1.0
|
2023-06-20 18:26:51 +00:00
|
|
|
define config.default_music_volume = 0.8
|
|
|
|
define config.default_sfx_volume = 1.0
|
2022-05-16 23:48:22 +00:00
|
|
|
|
2024-06-26 15:10:44 +00:00
|
|
|
# Transitions & Transforms
|
2024-06-06 19:25:13 +00:00
|
|
|
define config.enter_transition = None
|
2024-06-07 16:19:57 +00:00
|
|
|
define config.exit_transition = None
|
2022-05-16 23:48:22 +00:00
|
|
|
define config.intra_transition = d1
|
|
|
|
define config.main_game_transition = f3
|
|
|
|
define config.game_main_transition = f3
|
|
|
|
define config.end_splash_transition = d3
|
|
|
|
define config.end_game_transition = fade
|
|
|
|
define config.after_load_transition = fade
|
2024-05-21 00:58:08 +00:00
|
|
|
define config.window_show_transition = None
|
|
|
|
define config.window_hide_transition = None
|
2022-05-16 23:48:22 +00:00
|
|
|
define config.adv_nvl_transition = d3
|
|
|
|
define config.nvl_adv_transition = d3
|
|
|
|
define config.enter_yesno_transition = None
|
|
|
|
define config.exit_yesno_transition = None
|
|
|
|
define config.enter_replay_transition = None
|
|
|
|
define config.exit_replay_transition = None
|
2024-05-21 00:58:08 +00:00
|
|
|
define config.say_attribute_transition = None
|
2024-06-26 15:10:44 +00:00
|
|
|
define config.side_image_same_transform = d1
|
2022-05-16 23:48:22 +00:00
|
|
|
|
2024-03-25 14:57:36 +00:00
|
|
|
# Engine Compatibility
|
|
|
|
define config.check_conflicting_properties = True
|
|
|
|
|
2022-09-21 18:22:14 +00:00
|
|
|
# Python
|
|
|
|
define config.open_file_encoding = "utf-8"
|
2023-03-24 19:16:22 +00:00
|
|
|
|
|
|
|
# Debug
|
2023-06-24 22:27:13 +00:00
|
|
|
define config.profile = False
|
2022-09-21 18:22:14 +00:00
|
|
|
|
2022-05-16 23:48:22 +00:00
|
|
|
# Garbage Collector
|
2022-06-12 23:04:59 +00:00
|
|
|
# define config.manage_gc = True
|
|
|
|
# define config.gc_thresholds = (25000, 10, 10)
|
|
|
|
# define config.idle_gc_count = 10000
|
|
|
|
# define config.gc_print_unreachable = False
|
2022-05-16 23:48:22 +00:00
|
|
|
|
|
|
|
################################################
|
|
|
|
## Build configuration ##
|
|
|
|
## For information please refer to: ##
|
|
|
|
## https://www.renpy.org/doc/html/build.html ##
|
|
|
|
################################################
|
|
|
|
|
|
|
|
init python:
|
2022-05-27 22:05:06 +00:00
|
|
|
build.name = "WTS"
|
2023-07-05 16:06:58 +00:00
|
|
|
build.directory_name = f"WTS-{config.version}"
|
2022-05-29 21:27:18 +00:00
|
|
|
build.include_update = True
|
2022-05-27 22:05:06 +00:00
|
|
|
build.include_old_themes = False
|
|
|
|
build.exclude_empty_directories = True
|
2024-03-29 18:08:55 +00:00
|
|
|
build.update_formats += ['zsync']
|
2022-05-27 22:05:06 +00:00
|
|
|
|
2022-06-12 23:04:59 +00:00
|
|
|
build.classify("**.rpy", "renpy")
|
|
|
|
build.classify("**.rpyc", "all")
|
|
|
|
build.classify("game/images.whitespace", "all")
|
|
|
|
build.classify("**.webp", "all")
|
|
|
|
build.classify("**.webm", "all")
|
|
|
|
build.classify("**.ogg", "all")
|
|
|
|
|
|
|
|
build.classify("game/gui/**", "all")
|
|
|
|
build.classify("android-icon_*.png", "android")
|
|
|
|
build.classify("android-presplash.jpg", "android")
|
|
|
|
build.classify("icon.icns", "mac")
|
|
|
|
build.classify("icon.ico", "windows")
|
|
|
|
build.classify("game/presplash_*.png", "renpy")
|
|
|
|
build.classify("game/outfits/**", "all")
|
2023-07-19 15:39:24 +00:00
|
|
|
build.classify("game/mods/ExampleMod/**", "all")
|
2023-07-20 21:11:17 +00:00
|
|
|
build.classify("update/generic.webp", "pc mac")
|
2022-05-27 22:05:06 +00:00
|
|
|
|
|
|
|
build.classify("**.py", None)
|
2022-05-16 23:48:22 +00:00
|
|
|
build.classify("**.txt", None)
|
2022-05-27 22:05:06 +00:00
|
|
|
build.classify("**.md", None)
|
|
|
|
build.classify("**.png", None)
|
|
|
|
build.classify("**.jpg", None)
|
|
|
|
build.classify("**.jpeg", None)
|
|
|
|
build.classify("**.json", None)
|
|
|
|
build.classify("LICENSE", None)
|
|
|
|
build.classify("**.bak", None)
|
|
|
|
build.classify("**.old", None)
|
|
|
|
build.classify("**~", None)
|
|
|
|
build.classify("**.db", None)
|
|
|
|
build.classify("**.zip", None)
|
2024-03-29 18:08:55 +00:00
|
|
|
build.classify("android.keystore", None)
|
|
|
|
build.classify("bundle.keystore", None)
|
|
|
|
build.classify("update.pem", None)
|
2022-05-27 22:05:06 +00:00
|
|
|
|
2022-07-07 21:05:22 +00:00
|
|
|
build.classify("cache/**", "android")
|
2022-05-16 23:48:22 +00:00
|
|
|
build.classify("game/saves/**", None)
|
2022-06-27 21:31:51 +00:00
|
|
|
build.classify("game/mods/**", None)
|
2023-06-10 15:45:31 +00:00
|
|
|
|
2023-07-05 16:06:58 +00:00
|
|
|
# build.android_permissions = ["android.permission.WRITE_EXTERNAL_STORAGE"] # Not functional since API level 30+
|