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]: Shield Generator adjacency: Error running OnAdjacentTo script #6475

Closed
Basilisk3 opened this issue Oct 11, 2024 · 4 comments
Closed

Comments

@Basilisk3
Copy link
Collaborator

Describe the Bug

OnAdjacentTo (Shield Generator)

WARNING: Error running OnAdjacentTo script in Entity ueb4202 at ...: ...ver\gamedata\lua.nx2\lua\sim\units\structureunit.lua(787): table index is nil
         stack traceback:
         	...ver\gamedata\lua.nx2\lua\sim\units\structureunit.lua(787): in function <...ver\gamedata\lua.nx2\lua\sim\units\structureunit.lua:776>

OnAdjacentTo (Power Generator)

WARNING: Error running OnAdjacentTo script in Entity ueb1101 at ...: ...ver\gamedata\lua.nx2\lua\sim\units\structureunit.lua(787): table index is nil
         stack traceback:
         	...ver\gamedata\lua.nx2\lua\sim\units\structureunit.lua(787): in function <...ver\gamedata\lua.nx2\lua\sim\units\structureunit.lua:776>

Reproduce the bug

Build a grid of Tech 2 Shield Generators and Tech 1 Power Generators. Depending on how many you build, the error will be logged eventually. Best reporuced with UEF Tech 2 Shield Generators.

Screenshots

No response

Additional context

No response

@lL1l1
Copy link
Contributor

lL1l1 commented Oct 19, 2024

Duplicate of #6425?

@Basilisk3
Copy link
Collaborator Author

warning: adjacent unit does not have self.EntityId: zxa0003

I am not sure, this warning from #6425 does not appear in my testing.

@lL1l1
Copy link
Contributor

lL1l1 commented Oct 23, 2024

That's a warning I added myself in that testing scenario to identify the unit causing the error.

@Basilisk3
Copy link
Collaborator Author

Probably a duplicate then, I will close this.

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

2 participants