Closed armoha closed 1 year ago
>>> a = Db(4)
>>> DoActions(CreateUnit(1, a, "Anywhere", P1))
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "E:\eudplib\eudplib\ctrlstru\basicstru.py", line 33, in DoActions
return tg.Trigger(actions=actions, preserved=preserved)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\eudplib\eudplib\trigger\triggerdef.py", line 71, in Trigger
tend = c.RawTrigger(conditions=patched_conds, actions=patched_actions, preserved=preserved)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\eudplib\eudplib\core\rawtrigger\rawtriggerdef.py", line 154, in __init__
act.CheckArgs(i)
File "E:\eudplib\eudplib\core\rawtrigger\action.py", line 231, in CheckArgs
raise ut.EPError("\n".join(error))
eudplib.utils.eperror.EPError: Invalid fields for action0 CreateUnit:
invalid unit_type: <eudplib.core.eudobj.bytedump.Db object at 0x0000018D9DC1F390>
The error is not catched until writing phase, hard to find where to look at.