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

Stereo sound and sound message nodes crashing things #379

Closed DoobesURU closed 11 months ago

DoobesURU commented 1 year ago

This is one I've been meaning to put up for awhile. I've encountered this after the #364 commit. I get this error when Korman exports a node tree using sound message nodes referencing 3D sounds that have recently been "split" into left and right. In this case, it was for the hidden door in Chiso:

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 138, in run
    self._export_referenced_node_trees()
  File "D:\Korman 0.15\2.79\scripts\addons\korman\exporter\convert.py", line 371, in _export_referenced_node_trees
    tree.export(self, bo, so)
  File "D:\Korman 0.15\2.79\scripts\addons\korman\nodes\node_core.py", line 522, in export
    node.export(exporter, bo, so)
  File "D:\Korman 0.15\2.79\scripts\addons\korman\nodes\node_responder.py", line 153, in export
    stateMgr.convert_states(exporter, so)
  File "D:\Korman 0.15\2.79\scripts\addons\korman\nodes\node_responder.py", line 130, in convert_states
    node.convert_state(exporter, so, state, i, self)
  File "D:\Korman 0.15\2.79\scripts\addons\korman\nodes\node_responder.py", line 324, in convert_state
    self._generate_command(exporter, so, stateMgr.responder, commands, i)
  File "D:\Korman 0.15\2.79\scripts\addons\korman\nodes\node_responder.py", line 378, in _generate_command
    self._generate_command(exporter, so, responder, commandMgr, i, childWaitOn)
  File "D:\Korman 0.15\2.79\scripts\addons\korman\nodes\node_responder.py", line 378, in _generate_command
    self._generate_command(exporter, so, responder, commandMgr, i, childWaitOn)
  File "D:\Korman 0.15\2.79\scripts\addons\korman\nodes\node_responder.py", line 360, in _generate_command
    messages = tuple(msgNode.convert_message(exporter, so))
  File "D:\Korman 0.15\2.79\scripts\addons\korman\nodes\node_messages.py", line 803, in convert_message
    yield from self._convert_sound_emitter_msg(exporter, so)
  File "D:\Korman 0.15\2.79\scripts\addons\korman\nodes\node_messages.py", line 834, in _convert_sound_emitter_msg
    sound_keys = tuple(soundemit.get_sound_keys(exporter, self.sound_name))
  File "D:\Korman 0.15\2.79\scripts\addons\korman\properties\modifiers\sound.py", line 692, in get_sound_keys
    raise ValueError(name)
ValueError: ChisoPreniv_SecretDoorOpen.ogg:L

location: <unknown location>:-1

location: <unknown location>:-1

Deleting and/or refreshing these nodes in the node tree and/or the sound modifier on the emitter object doesn't fix the problem AFAICT.

Here is a packed blend of Chiso that I am currently using that comes up with the error: https://www.dropbox.com/scl/fi/l7np9lwtt901r9n6az75m/ChisoPreniv.blend?rlkey=uj4fgcsrkoywx25k53qk8p439&dl=0

This was exported using a clean install of the beta version of 0.15. I've been screwing around with my 0.14 install; it exports things, but the game crashes each time I load the Age and I don't know why 🤣.