H-uru / korman

Blender plugin for creating ages for Cyan Worlds' proprietary Plasma engine and its open source variant, CyanWorlds.com Engine.
GNU General Public License v3.0
35 stars 17 forks source link

hsRAMStream error when packaging Age #384

Closed DoobesURU closed 8 months ago

DoobesURU commented 9 months ago

When using the option to package an Age to a zip, Korman throws this error:

Error: 'PyHSPlasma.hsRAMStream' object has no attribute 'close'
Traceback (most recent call last):
  File "D:\Korman 0.15\2.79\scripts\addons\korman\operators\op_export.py", line 228, in execute
    e.run()
  File "D:\Korman 0.15\2.79\scripts\addons\korman\exporter\convert.py", line 156, in run
    self._save_age()
  File "D:\Korman 0.15\2.79\scripts\addons\korman\exporter\convert.py", line 584, in _save_age
    self.mgr.save_age()
  File "D:\Korman 0.15\2.79\scripts\addons\korman\exporter\manager.py", line 372, in save_age
    self._write_age()
  File "D:\Korman 0.15\2.79\scripts\addons\korman\exporter\manager.py", line 381, in _write_age
    self._age_info.writeToStream(stream)
  File "D:\Korman 0.15\2.79\python\lib\contextlib.py", line 119, in __exit__
    next(self.gen)
  File "D:\Korman 0.15\2.79\scripts\addons\korman\exporter\outfile.py", line 268, in generate_dat_file
    stream.close()
AttributeError: 'PyHSPlasma.hsRAMStream' object has no attribute 'close'

location: <unknown location>:-1

location: <unknown location>:-1

This is likely due to, as Hoikas mentioned awhile back, Zrax's adjustments of hsRAMStream when the problem cropped up with the sound modifier: https://github.com/H-uru/korman/commit/b2270ba5f8c745c6b6a747eab203a373436d8b4a