multimokia / MAS-Submod-Auto-Outfit-Change

This submod allows Monika to change her outfits and hairstyles in the morning and evening, taking into account various different factors
21 stars 19 forks source link

Exception occurred when attempting to update JSONS #22

Closed User122012 closed 11 months ago

User122012 commented 1 year ago

[code] I'm sorry, but an uncaught exception occurred.

While running game code: File "renpy/common/00gamemenu.rpy", line 173, in $ ui.interact() File "renpy/common/00action_other.rpy", line 484, in call rv = self.callable(*self.args, **self.kwargs) File "game/Submods/Auto Hair Change/auto_hair_change.rpy", line 192, in _m1_auto_hair_change__updateJsons json_data = json.load(jfile) ValueError: Expecting property name: line 6 column 5 (char 106)

-- Full Traceback ------------------------------------------------------------

Full traceback: File "lib/windows-i686/00gamemenu.rpyc", line 173, in script File "C:\Users\Username\Documents\Games\DDLC-1.1.1-pc\renpy\ast.py", line 814, in execute renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store) File "C:\Users\Username\Documents\Games\DDLC-1.1.1-pc\renpy\python.py", line 1719, in py_exec_bytecode exec bytecode in globals, locals File "renpy/common/00gamemenu.rpy", line 173, in $ ui.interact() File "C:\Users\Username\Documents\Games\DDLC-1.1.1-pc\renpy\ui.py", line 285, in interact rv = renpy.game.interface.interact(roll_forward=roll_forward, kwargs) File "C:\Users\Username\Documents\Games\DDLC-1.1.1-pc\renpy\display\core.py", line 2526, in interact repeat, rv = self.interact_core(preloads=preloads, trans_pause=trans_pause, kwargs) File "C:\Users\Username\Documents\Games\DDLC-1.1.1-pc\renpy\display\core.py", line 3204, in interact_core rv = root_widget.event(ev, x, y, 0) File "C:\Users\Username\Documents\Games\DDLC-1.1.1-pc\renpy\display\layout.py", line 960, in event rv = i.event(ev, x - xo, y - yo, cst) File "C:\Users\Username\Documents\Games\DDLC-1.1.1-pc\renpy\display\transition.py", line 45, in event return self.new_widget.event(ev, x, y, st) # E1101 File "C:\Users\Username\Documents\Games\DDLC-1.1.1-pc\renpy\display\layout.py", line 960, in event rv = i.event(ev, x - xo, y - yo, cst) File "C:\Users\Username\Documents\Games\DDLC-1.1.1-pc\renpy\display\layout.py", line 960, in event rv = i.event(ev, x - xo, y - yo, cst) File "C:\Users\Username\Documents\Games\DDLC-1.1.1-pc\renpy\display\screen.py", line 651, in event rv = self.child.event(ev, x, y, st) File "C:\Users\Username\Documents\Games\DDLC-1.1.1-pc\renpy\display\layout.py", line 960, in event rv = i.event(ev, x - xo, y - yo, cst) File "C:\Users\Username\Documents\Games\DDLC-1.1.1-pc\renpy\display\layout.py", line 232, in event rv = d.event(ev, x - xo, y - yo, st) File "C:\Users\Username\Documents\Games\DDLC-1.1.1-pc\renpy\display\layout.py", line 960, in event rv = i.event(ev, x - xo, y - yo, cst) File "C:\Users\Username\Documents\Games\DDLC-1.1.1-pc\renpy\display\layout.py", line 232, in event rv = d.event(ev, x - xo, y - yo, st) File "C:\Users\Username\Documents\Games\DDLC-1.1.1-pc\renpy\display\layout.py", line 232, in event rv = d.event(ev, x - xo, y - yo, st) File "C:\Users\Username\Documents\Games\DDLC-1.1.1-pc\renpy\display\viewport.py", line 303, in event rv = super(Viewport, self).event(ev, x, y, st) File "C:\Users\Username\Documents\Games\DDLC-1.1.1-pc\renpy\display\layout.py", line 232, in event rv = d.event(ev, x - xo, y - yo, st) File "C:\Users\Username\Documents\Games\DDLC-1.1.1-pc\renpy\display\layout.py", line 960, in event rv = i.event(ev, x - xo, y - yo, cst) File "C:\Users\Username\Documents\Games\DDLC-1.1.1-pc\renpy\display\layout.py", line 960, in event rv = i.event(ev, x - xo, y - yo, cst) File "C:\Users\Username\Documents\Games\DDLC-1.1.1-pc\renpy\display\layout.py", line 960, in event rv = i.event(ev, x - xo, y - yo, cst) File "C:\Users\Username\Documents\Games\DDLC-1.1.1-pc\renpy\display\behavior.py", line 889, in event return handle_click(self.clicked) File "C:\Users\Username\Documents\Games\DDLC-1.1.1-pc\renpy\display\behavior.py", line 824, in handle_click rv = run(action) File "C:\Users\Username\Documents\Games\DDLC-1.1.1-pc\renpy\display\behavior.py", line 306, in run return action(*args, *kwargs) File "renpy/common/00action_other.rpy", line 484, in call rv = self.callable(self.args, **self.kwargs) File "game/Submods/Auto Hair Change/auto_hair_change.rpy", line 192, in _m1_auto_hair_change__updateJsons json_data = json.load(jfile) File "/home/tom/ab/x64lucid-deps/install/lib/python2.7/json/init.py", line 290, in load File "/home/tom/ab/x64lucid-deps/install/lib/python2.7/json/init.py", line 338, in loads File "/home/tom/ab/x64lucid-deps/install/lib/python2.7/json/decoder.py", line 366, in decode File "/home/tom/ab/x64lucid-deps/install/lib/python2.7/json/decoder.py", line 382, in raw_decode ValueError: Expecting property name: line 6 column 5 (char 106)

Windows-8-6.2.9200 Ren'Py 6.99.12.4.2187 Monika After Story 0.12.15 [/code]

multimokia commented 1 year ago

Could you send your json files? I think one of them is invalid.

User122012 commented 1 year ago

I assume this is what you were referring to. Zip file attached.


From: multimokia @.> Sent: Saturday, November 18, 2023 1:16 PM To: multimokia/MAS-Submod-Auto-Outfit-Change @.> Cc: User122012 @.>; Author @.> Subject: Re: [multimokia/MAS-Submod-Auto-Outfit-Change] Exception occurred when attempting to update JSONS (Issue #22)

Could you send your json files? I think one of them is invalid.

— Reply to this email directly, view it on GitHubhttps://github.com/multimokia/MAS-Submod-Auto-Outfit-Change/issues/22#issuecomment-1817587964, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BEBNUL3CVFNTQS35D7DC62DYFD3RNAVCNFSM6AAAAAA7P4H2DSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMJXGU4DOOJWGQ. You are receiving this because you authored the thread.Message ID: @.***>

User122012 commented 11 months ago

You were correct with the issue being in one of the json files. I was able to go through the files and correct the issue. Updating the jsons commend now works and the issue is resolved.

Thank you for your quick response,

multimokia commented 11 months ago

Ah glad to hear you resolved the issue!