logo

overlay

My own overlay for experimentations, use with caution, no support is provided git clone https://hacktivis.me/git/overlay.git

renpy-6.99.12.4-compat-style.patch (1964B)


  1. commit 1d350d993d2b51df7880e92b48ed103e059ec385
  2. Author: Andrew Savchenko <bircoph@gmail.com>
  3. Date: Sun Jul 16 17:07:27 2017 +0300
  4. Fix compatibility problem With ElvenRelations-1.2:
  5. When starting game:
  6. Full traceback:
  7. File "/home/andrew/src/_compat/styles.rpymc", line 22, in script
  8. File "/usr/lib64/python2.7/site-packages/renpy699/renpy/ast.py", line 814, in execute
  9. renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
  10. File "/usr/lib64/python2.7/site-packages/renpy699/renpy/python.py", line 1719, in py_exec_bytecode
  11. exec bytecode in globals, locals
  12. File "renpy/common/_compat/styles.rpym", line 374, in <module>
  13. style.selected_button = _SelectedCompat('button')
  14. File "renpy/common/_compat/styles.rpym", line 347, in __init__
  15. self.target = target
  16. File "renpy/style.pyx", line 378, in renpy.style.StyleCore.__setattr__ (gen/renpy.style.c:6236)
  17. raise Exception("Style property {} is not known.".format(name))
  18. Exception: Style property target is not known.
  19. "button*" properties are no longer present in RenPy, so relevant
  20. code is removed.
  21. diff --git a/renpy/common/_compat/styles.rpym b/renpy/common/_compat/styles.rpym
  22. index d83eeb0..174f0b6 100644
  23. --- a/renpy/common/_compat/styles.rpym
  24. +++ b/renpy/common/_compat/styles.rpym
  25. @@ -371,13 +371,6 @@ init python:
  26. self.property_updates = [ ]
  27. - style.selected_button = _SelectedCompat('button')
  28. - style.selected_button_text = _SelectedCompat('button_text')
  29. - style.gm_nav_selected_button = _SelectedCompat('gm_nav_button')
  30. - style.gm_nav_selected_button_text = _SelectedCompat('gm_nav_button_text')
  31. - style.prefs_selected_button = _SelectedCompat('prefs_button')
  32. - style.prefs_selected_button_text = _SelectedCompat('prefs_button_text')
  33. -
  34. def _apply_selected_compat():
  35. for scs in _selected_compat:
  36. scs.apply()