Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Frequent OnAdjacentTo error #6425

Open
lL1l1 opened this issue Sep 1, 2024 · 0 comments
Open

[Bug]: Frequent OnAdjacentTo error #6425

lL1l1 opened this issue Sep 1, 2024 · 0 comments

Comments

@lL1l1
Copy link
Contributor

lL1l1 commented Sep 1, 2024

Describe the Bug

Originates from #6093. The new ZXA0003 unit seems to cause a bug with adjacency since adjacency expects a Unit.EntityId but DummyUnit does not assign self.EntityId.
The line numbers below are modified to include my warning code of which adjacent unit doesn't have the entity ID, the correct line is 787 instead of 790.

warning: adjacent unit does not have self.EntityId: zxa0003
warning: Error running OnAdjacentTo script in Entity ueb0302 at 1b9ffe08: ...\documents\github\fa\lua\sim\units\structureunit.lua(790): table index is nil
         stack traceback:
         	...\documents\github\fa\lua\sim\units\structureunit.lua(790): in function <...\documents\github\fa\lua\sim\units\structureunit.lua:776>

Reproduce the bug

Replay 23216422

Screenshots

No response

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant