TheSuperHackers / GeneralsModBuilder

Mod Builder for Generals: Zero Hour
MIT License
1 stars 0 forks source link

Event script is called even if associated thing is not built #28

Closed xezon closed 1 year ago

xezon commented 1 year ago
Call script D:\Projects\TheSuperHackers\GeneralsGamePatch\Patch104pZH\Scripts\Python\OnBuildItemWithBlender3-4-1 ...
Script OnBuildItemWithBlender3-4-1.py called ...
Call script D:\Projects\TheSuperHackers\GeneralsGamePatch\Patch104pZH\Scripts\Python\OnBuildItemWithBlender3-4-1 ...
Script OnBuildItemWithBlender3-4-1.py called ...
ERROR CALLSTACK
Traceback (most recent call last):
  File "gui\gui.py", line 410, in _DoWork
  File "gui\gui.py", line 305, in <lambda>
  File "buildfunctions.py", line 115, in RunWithConfig
  File "build\engine.py", line 290, in Run
  File "build\engine.py", line 582, in __Build
  File "build\engine.py", line 631, in __BuildWithData
  File "build\engine.py", line 361, in __SendBundleEvents
  File "build\engine.py", line 335, in __CallScript
  File "D:\Projects\TheSuperHackers\GeneralsGamePatch\Patch104pZH\Scripts\Python\OnBuildItemWithBlender3-4-1.py", line 100, in OnEvent
    raise Exception("Unable to reference '{RAW_BUILD_THING}' in user script")
Exception: Unable to reference '{RAW_BUILD_THING}' in user script

bug?

xezon commented 1 year ago

Workaround in TheSuperHackers/GeneralsGamePatch#1883

xezon commented 1 year ago

As designed.