You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
raiseIndexError(f"No asset found for {self.shortString}")
75
+
raiseIndexError(f"WARNING: No asset found for {self.shortString}")
76
76
ifself.discriminator==None:
77
77
iflen(offsets) >1:
78
-
raiseIndexError(f"Multiple assets found for {self.shortString}, candidates are "+", ".join(f"{index}: 0x{offset:x}"forindex, offsetinenumerate(offsets)) +". Please add a field like 'Discriminator: 0' to indicate which block should apply to which asset (do NOT use quotes around the number, do not use the raw address). For an example, see https://github.com/07th-mod/higurashi-dev-guides/wiki/UI-editing-scripts#unitytextmodifier")
78
+
raiseIndexError(f"WARNING: Multiple assets found for {self.shortString}, candidates are "+", ".join(f"{index}: 0x{offset:x}"forindex, offsetinenumerate(offsets)) +". Please add a field like 'Discriminator: 0' to indicate which block should apply to which asset (do NOT use quotes around the number, do not use the raw address). For an example, see https://github.com/07th-mod/higurashi-dev-guides/wiki/UI-editing-scripts#unitytextmodifier")
79
79
self.offset=offsets[0]
80
80
else:
81
81
iflen(offsets) <=self.discriminator:
82
-
raiseIndexError(f"Not enough offsets found for ${self.trimmedE} / {self.trimmedJ} to meet request for #{self.discriminator}, there were only {len(offsets)}")
82
+
raiseIndexError(f"WARNING: Not enough offsets found for {self.shortString} to meet request for #{self.discriminator}, there were only {len(offsets)}")
83
83
self.offset=offsets[self.discriminator]
84
84
85
85
defcheckObject(self, id, object, bundle):
@@ -113,6 +113,7 @@ def __str__(self):
113
113
try: returnf"<ScriptEdit for position 0x{self.offset:x}>"
0 commit comments