Create and Fuck your AI Slut -70% OFF
x

xipomus

Newbie
Jun 4, 2017
61
120
218
Can anyone help with this error so i dont have to start from the begining -

Code:
I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/script.rpy", line 56690, in <module>
  File "game/karma.rpy", line 36, in set_karma
TypeError: 'int' object does not support item assignment

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

Full traceback:
  File "script.rpyc", line 56690, in script
  File "E:\WaifuAcademy-0.12.0-pc\renpy\ast.py", line 823, in execute
    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
  File "E:\WaifuAcademy-0.12.0-pc\renpy\python.py", line 1178, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "game/script.rpy", line 56690, in <module>
  File "game/karma.rpy", line 36, in set_karma
TypeError: 'int' object does not support item assignment

Windows-10-10.0.22631 AMD64
Ren'Py 8.2.3.24061702
Waifu Academy 0.12.0
Sat Aug  3 17:18:57 2024
Much appreciated if anyone can!
If i read the error correctly it says it can't set Karma. It's probably not in save or not the right value. Can you upload the save? it's in the game folder\game\save or saves, depending on page which is the first number then the number of the image. so page 2 image 3 would be 2-3-LT1.SAV. Then i might have a look what can be done.
 

juice2000

Member
Jun 2, 2017
149
278
257
If i read the error correctly it says it can't set Karma. It's probably not in save or not the right value. Can you upload the save? it's in the game folder\game\save or saves, depending on page which is the first number then the number of the image. so page 2 image 3 would be 2-3-LT1.SAV. Then i might have a look what can be done.
I made a save just before the first time the error occured -

Any help is appreciated, Thx
 

xipomus

Newbie
Jun 4, 2017
61
120
218
I made a save just before the first time the error occured -

Any help is appreciated, Thx
Like I thought, your Karma was still using the old variable. Deleted it from the save. Added the default Karma setting, so it's 0 instead of -80 you had... now you can continue again.

It's on the same spot now with the right Karma variable to continue.
 

natsu36

Active Member
Feb 28, 2019
712
352
239
is this a remake I Rember one just like this that i played along time ago i Rember the mother being a lot hotter
 

xipomus

Newbie
Jun 4, 2017
61
120
218
is this a remake I Rember one just like this that i played along time ago i Rember the mother being a lot hotter
Nope. Some characters have been updated... but i don't think the mother was. So she's still the original char.
 

xipomus

Newbie
Jun 4, 2017
61
120
218
* NEW VERSION*
For others with the karma error, i made a quick and dirty fix.
Place the fixKarmaOnLoad.rpy in the game folder\game and run the game. load the save and your karma will reset to default if the value is the older version.
Don't forget to save.

You can leave the file in the directory. It only changes it on load... but don't roll back before the scene or it will break again.
 
Last edited:
  • Like
Reactions: noble 271

juice2000

Member
Jun 2, 2017
149
278
257
Like I thought, your Karma was still using the old variable. Deleted it from the save. Added the default Karma setting, so it's 0 instead of -80 you had... now you can continue again.

It's on the same spot now with the right Karma variable to continue.
Tyvm for the help, Dont know if i could of started again xD
 
  • Like
Reactions: xipomus

Mograx

Active Member
Oct 16, 2019
739
2,085
366
Replaying the game (without the mod) and there's a game-breaking hard lock: You're given two choices
1) Retrieve the mini-camera
2) Rummage through some lockers.

The game does not move on from this. After choosing both, either, etc, it always takes you back to the choice screen and you can't progress.
 

Daisies

Member
Jun 12, 2017
135
162
61
I'm stuck on loop at the beach scene with Yukiko. Any way to fix that?

EDIT: nvm figured it out, the mod caused the loop. Just uninstalled it for that one part then reinstalled it and that worked.
 
Last edited:

xipomus

Newbie
Jun 4, 2017
61
120
218
Replaying the game (without the mod) and there's a game-breaking hard lock: You're given two choices
1) Retrieve the mini-camera
2) Rummage through some lockers.

The game does not move on from this. After choosing both, either, etc, it always takes you back to the choice screen and you can't progress.
If you have a savegame i can have a look what goes wrong.
 

Radigan12

Newbie
Jun 2, 2020
39
34
162
* NEW VERSION*
For others with the karma error, i made a quick and dirty fix.
Place the fixKarmaOnLoad.rpy in the game folder\game and run the game. load the save and your karma will reset to default if the value is the older version.
Don't forget to save.

You can leave the file in the directory. It only changes it on load... but don't roll back before the scene or it will break again.
But how did the karma variable, which was a dictionary, turn into an int instead? You don't think this is also related to the rollback errors, do you?
 

xipomus

Newbie
Jun 4, 2017
61
120
218
But how did the karma variable, which was a dictionary, turn into an int instead? You don't think this is also related to the rollback errors, do you?
Old version was an Int var.. new version is the dict var. So loading old savegames gives that issues... if you load a save and my fix runs, but you scroll back to far.. you remove the fix, and the karma var is int again... and crashes again :D
 

Radigan12

Newbie
Jun 2, 2020
39
34
162
Old version was an Int var.. new version is the dict var. So loading old savegames gives that issues... if you load a save and my fix runs, but you scroll back to far.. you remove the fix, and the karma var is int again... and crashes again :D
I don't have the int variable errors but I am getting rollback errors from 0.11, which was always a dictionary I think. and it happens on some of my saves. but not all.
 

xipomus

Newbie
Jun 4, 2017
61
120
218
I don't have the int variable errors but I am getting rollback errors from 0.11, which was always a dictionary I think. and it happens on some of my saves. but not all.
The fix after a savegame load, just checks if it's an Int... if yeah.. delete and make it a dict with the default value of 0.
If i knew all the variables for the different scenes I might be able to have it fill again with the right dict values, but for now you can at least keep playing with the fix.
 
4.10 star(s) 304 Votes