v0.28
I started a new game and I get the same Error : AttributeError: 'MyGallery' object has no attribute 'Add'"
I am not a Python expert but it seems that it is caused by kind of a "preliminary" (empty, default) class definition or some leftover code from the old gallery implementation ????
"Add" in Python is used to add elements to a set ... however there is no code in the script that "class MyGallery" is derived from a set or similar data type.
After the pool party the script tries to "add" lots of items to a gallery object of this class :
Code:
if add_phone_gallery < 2:
$ gallery = MyGallery()
$ gallery.Add(1)
$ gallery.Add(2)
$ gallery.Add(3)
$ gallery.Add(4)
$ gallery.Add(5)
$ gallery.Add(6)
$ gallery.Add(7)
$ gallery.Add(8)
$ gallery.Add(9)
$ gallery.Add(10)
$ gallery.Add(11)
$ gallery.Add(12)
$ gallery.Add(13)
$ gallery.Add(14)
$ gallery.Add(15)
$ gallery.Add(16)
$ gallery.Add(17)
$ gallery.Add(18)
$ gallery.Add(19)
$ gallery.Add(20)
$ gallery.Add(21)
$ gallery.Add(22)
$ gallery.Add(23)
$ gallery.Add(24)
$ phone = Phone()
$ phone.AddContact("Sarah")
$ phone.AddContact("Monique")
$ phone.AddContact("Kate")
$ phone.AddContact("Elizabeth")
$ phone.AddContact("Trevor")
$ showPhoneButton = True
$ add_phone_gallery = 2
At the end of that block, the "add_phone_gallery"-variable is set to 2, so these statements should not be called again and a similar block in another script file should be skipped right away.
You can ignore all the 24 Errors thrown by all these faulty "Add"-statements and try to continue the game. It should happen only once per playthrough. The gallery is working for me.
Here is a version of the script where I commented ('#') all the "gallery.Add"-statements. It should throw no error.
Use Right Mouse Button + "Save target as ..." option for download.
Place it in the game's "/game" folder.
In case you want to remove it, remove script.rpy and script.rpyc from the folder and the game should use the original script.rpy in archive.rpa again.
Edit :
Additionally fixed the bug that prevented Gallery Scene 9 to unlock.