Bugfixes and refactoring

* Fixed history screen crash
* Changed default renderer to GL2
* Updated whitespace calculations file
* Updated minimum Ren'py version requirement
This commit is contained in:
LoafyLemon 2022-06-15 21:25:52 +01:00
parent a2ba831e9f
commit abaecc4c7f
4 changed files with 380 additions and 422 deletions

File diff suppressed because it is too large Load Diff

View File

@ -26,7 +26,7 @@ screen history():
default last_who = None
# Group consecutive entries by same character (convert to list to avoid multiple enumeration problems)
default groups = [(k, list(g)) for k, g in itertools.groupby(_history_list, key=lambda h: h.who or h.show_args.get("icon", None))]
default groups = [(k, list(g)) for k, g in itertools.groupby(_history_list, lambda x: x.who or x.show_args.get("icon", None))]
for k, g in groups:
vbox:

View File

@ -6,7 +6,7 @@
default preferences.text_cps = 40
default preferences.afm_time = 15
default preferences.pad_enabled = False
default preferences.renderer = "angle2" if renpy.windows else "gl2"
default preferences.renderer = "gl2"
default preferences.gl_powersave = False
python early:

View File

@ -1,6 +1,6 @@
init python early:
if renpy.version_tuple < (7,4,0,1006):
if renpy.version_tuple < (7,5,0,22061501):
raise RuntimeWarning("Your Ren'Py launcher is outdated, the current minimal requirement is 7.4.0.1006+\nPlease perform an update and try launching the game again.")
from renpy.uguu import glGetString, GL_VENDOR, GL_RENDERER, GL_VERSION
@ -38,13 +38,11 @@ init -1 python:
raise IOError("Missing image: {}".format(path))
return Image("images/blank.webp")
def missing_label_func(name):
global systemerror
systemerror = ["Missing label", name]
return "missing_label"
def TBA_message(msg="Currently unavailable, check in later versions of the game."):
renpy.show_screen("blktone")
renpy.with_statement(d3)