Bug fixes

* Fixed updater logo issues
* Fixed modpath getting 'mods' subpath appended to it recursively with each clone
This commit is contained in:
LoafyLemon 2023-07-20 22:11:17 +01:00
parent 37ed32f50d
commit ac39490836
5 changed files with 18 additions and 4 deletions

View File

@ -383,7 +383,8 @@ init python:
def clone(self): def clone(self):
"""Creates a clone of this cloth object. Since it requires a parent object it should be used internally only to avoid object depth issue.""" """Creates a clone of this cloth object. Since it requires a parent object it should be used internally only to avoid object depth issue."""
return DollCloth(self.name, self.categories, self.type, self.id, [x for x in self.color] if self.color else None, self.zorder, self.unlocked, self.level, self.blacklist, self.modpath, self) modpath = self.modpath.lstrip("mods/")
return DollCloth(self.name, self.categories, self.type, self.id, [x for x in self.color] if self.color else None, self.zorder, self.unlocked, self.level, self.blacklist, modpath, self)
def is_modded(self): def is_modded(self):
"""Returns True if item comes from a mod.""" """Returns True if item comes from a mod."""

View File

@ -183,4 +183,5 @@ init python:
def clone(self): def clone(self):
"""Creates a clone of this cloth object. Since it requires a parent object it should be used internally only to avoid object depth issue.""" """Creates a clone of this cloth object. Since it requires a parent object it should be used internally only to avoid object depth issue."""
return DollClothDynamic(self.name, self.categories, self.type, self.id, [x for x in self.color] if self.color else None, self.zorder, self.unlocked, self.level, self.blacklist, self.modpath, self._tracking, self) modpath = self.modpath.lstrip("mods/")
return DollClothDynamic(self.name, self.categories, self.type, self.id, [x for x in self.color] if self.color else None, self.zorder, self.unlocked, self.level, self.blacklist, modpath, self._tracking, self)

View File

@ -62,4 +62,5 @@ init python:
def clone(self): def clone(self):
"""Creates a clone of this cloth object. Since it requires a parent object it should be used internally only to avoid object depth issue.""" """Creates a clone of this cloth object. Since it requires a parent object it should be used internally only to avoid object depth issue."""
return DollMakeup(self.name, self.categories, self.type, self.id, [x for x in self.color] if self.color else None, self.zorder, self.unlocked, self.level, self.blacklist, self.modpath, self, self.tracking) modpath = self.modpath.lstrip("mods/")
return DollMakeup(self.name, self.categories, self.type, self.id, [x for x in self.color] if self.color else None, self.zorder, self.unlocked, self.level, self.blacklist, modpath, self, self.tracking)

View File

@ -168,6 +168,7 @@ init python:
build.classify("game/presplash_*.png", "renpy") build.classify("game/presplash_*.png", "renpy")
build.classify("game/outfits/**", "all") build.classify("game/outfits/**", "all")
build.classify("game/mods/ExampleMod/**", "all") build.classify("game/mods/ExampleMod/**", "all")
build.classify("update/generic.webp", "pc mac")
build.classify("**.py", None) build.classify("**.py", None)
build.classify("**.txt", None) build.classify("**.txt", None)

View File

@ -156,6 +156,16 @@ init python:
if ev.completed and not states.cho.ev.inspect_her_body.T2_E3_complete: if ev.completed and not states.cho.ev.inspect_her_body.T2_E3_complete:
states.cho.ev.inspect_her_body.T2_E3_complete = True states.cho.ev.inspect_her_body.T2_E3_complete = True
if current < 1.453:
for i in states.dolls:
doll = getattr(store, i)
for j in doll.outfits:
for k in j.group:
if k.modpath:
k.modpath = "mods/" + k.modpath.split("/")[-1]
if current > latest: if current > latest:
raise Exception("Loaded save file is incompatible. (Save Version: {}, Game Version: {})".format(current, latest)) raise Exception("Loaded save file is incompatible. (Save Version: {}, Game Version: {})".format(current, latest))
@ -200,7 +210,7 @@ init python:
with open(path, "rb") as f: with open(path, "rb") as f:
data = f.read() data = f.read()
else: else:
data = Null() return Null()
return Fixed(im.Data(data, path), Text(UPDATE_VER, size=96, align=(0.5, 0.8), color="#000000", outlines=[( 1, "#ffffff", 0, 0 )]), fit_first=True) return Fixed(im.Data(data, path), Text(UPDATE_VER, size=96, align=(0.5, 0.8), color="#000000", outlines=[( 1, "#ffffff", 0, 0 )]), fit_first=True)