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

Doesn't seem to work #3

Closed
pawndev opened this issue Mar 14, 2020 · 6 comments
Closed

Doesn't seem to work #3

pawndev opened this issue Mar 14, 2020 · 6 comments

Comments

@pawndev
Copy link

pawndev commented Mar 14, 2020

Hello!

I tried to put this mod on my server (launched via screeps-laucher). I referenced it in config.yml, and is correctly in mods.json.
But, I can continue to "suicide" my creeps.

How can I test if the mod is correctly loaded ?

Thanks in advance

@AlinaNova21
Copy link
Member

Check in logs/backend.log, it should list the mods when the server starts, make sure theres no error there, if you are using other mods like screepsmod-mongo, may also need to make sure this mod is first so it inserts its routes before them.

@pawndev
Copy link
Author

pawndev commented Mar 14, 2020

Thanks for your reply, it was helpful!
The mod was correctly loaded, the only point is about order loading, I put this mod in first (before mongo) and it seems to work correctly.
I will continue my test and will tell you if it's okey!

Thanks again!

@pawndev
Copy link
Author

pawndev commented Mar 14, 2020

Maybe we could wrote this information in the readme of this repository ?
Oh, also, now my plugin is correctly loaded, do you know how I can put my very first spawn ?

@AlinaNova21
Copy link
Member

You would either need to add an entry in .screepsrc (It hasn't been updated with config.yml support) or do like botarena and enable the mod after spawning.

[pureAutomation]
placeSpawn = true

@AlinaNova21
Copy link
Member

You can also enable and disable the mod in CLI with pureAutomation.enable() and pureAutomation.disable() (It will always be enabled by default on server start)

@pawndev
Copy link
Author

pawndev commented Mar 14, 2020

Okey, thanks for your help! 😄

@pawndev pawndev closed this as completed Mar 14, 2020
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

2 participants