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

Memory needs to be changed to global.Memory in MemHack snippet #30

Open
DollarAkshay opened this issue Oct 9, 2021 · 0 comments
Open

Comments

@DollarAkshay
Copy link

Just implemented this snippet.
if you try to run Memory = memory you get a Memory is not defined error in screeps.
Changing that line to global.Memory = memory solved it

Here is a preview of how overmind does it : https://github.com/bencbartlett/Overmind/blob/5eca49a0d988a1f810a11b9c73d4d8961efca889/src/memory/Memory.ts#L86

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

No branches or pull requests

1 participant