zer0fixer / MAS-Extraplus

A submod that adds an Extra+ button, as well as adding more content for Monika After Story.
53 stars 14 forks source link

I tried to update and got this error. #20

Closed End336 closed 1 year ago

End336 commented 1 year ago

Help it was working fine until I updated this submod. "[code] I'm sorry, but an uncaught exception occurred.

While running game code: File "game/Submods/ExtraPlus/Extra_Plus_Main.rpy", line 117, in script define extra_current_affection = int(_mas_getAffection()) File "game/Submods/ExtraPlus/Extra_Plus_Main.rpy", line 117, in define extra_current_affection = int(_mas_getAffection()) NameError: name '_mas_getAffection' is not defined

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

Full traceback: File "game/Submods/ExtraPlus/Extra_Plus_Main.rpy", line 117, in script define extra_current_affection = int(_mas_getAffection()) File "C:\Program Files (x86)\Steam\steamapps\common\Doki Doki Literature Club\renpy\ast.py", line 1816, in execute value = renpy.python.py_eval_bytecode(self.code.bytecode) File "C:\Program Files (x86)\Steam\steamapps\common\Doki Doki Literature Club\renpy\python.py", line 1743, in py_eval_bytecode return eval(bytecode, globals, locals) File "game/Submods/ExtraPlus/Extra_Plus_Main.rpy", line 117, in define extra_current_affection = int(_mas_getAffection()) NameError: name '_mas_getAffection' is not defined

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

Dsfan2 commented 1 year ago

Open Extra_Plus_Main.rpy, go to line 117, and replace 'define' with 'default'.

zer0fixer commented 1 year ago

Help it was working fine until I updated this submod. "[code] I'm sorry, but an uncaught exception occurred.

While running game code: File "game/Submods/ExtraPlus/Extra_Plus_Main.rpy", line 117, in script define extra_current_affection = int(_mas_getAffection()) File "game/Submods/ExtraPlus/Extra_Plus_Main.rpy", line 117, in define extra_current_affection = int(_mas_getAffection()) NameError: name '_mas_getAffection' is not defined

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

Full traceback: File "game/Submods/ExtraPlus/Extra_Plus_Main.rpy", line 117, in script define extra_current_affection = int(_mas_getAffection()) File "C:\Program Files (x86)\Steam\steamapps\common\Doki Doki Literature Club\renpy\ast.py", line 1816, in execute value = renpy.python.py_eval_bytecode(self.code.bytecode) File "C:\Program Files (x86)\Steam\steamapps\common\Doki Doki Literature Club\renpy\python.py", line 1743, in py_eval_bytecode return eval(bytecode, globals, locals) File "game/Submods/ExtraPlus/Extra_Plus_Main.rpy", line 117, in define extra_current_affection = int(_mas_getAffection()) NameError: name '_mas_getAffection' is not defined

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

I am currently reviewing the code for more errors. I will release a version that fixes that; I didn't realize that I set the variable before I started the function that gives Monika her current affect.

zer0fixer commented 1 year ago

If you want to do it yourself, go to line 117 in this location "game/Submods/ExtraPlus/Extra_Plus_Main.rpy" and in the file Extra_Plus_Main.rpy, and replace that line with this one: define 20 extra_current_affection = int(_mas_getAffection())

zer0fixer commented 1 year ago

I have already published the new update, I recommend you to reinstall the submod to fix it. https://github.com/zer0fixer/MAS-Extraplus/releases/tag/1.0.6