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

created/owned structures missing from API in private server with broken patch #65

Open
sparr opened this issue Oct 26, 2017 · 5 comments

Comments

@sparr
Copy link
Contributor

sparr commented Oct 26, 2017

I have just init'd a brand new server, connected and created a player, then placed a spawn. Immediately I check and find that Game.spawns.Spawn is undefined, Game.rooms.W8N3.find(FIND_MY_STRUCTURES) finds only the room controller, Game.getObjectById(idofthespawn) returns null.

I have no idea how to further troubleshoot this. I encountered this problem first while using the cli to create some buildings to run some experiments, but later boiled it down to just a spawn on a fresh server.

@sparr
Copy link
Contributor Author

sparr commented Oct 26, 2017

Here's the db entry for the spawn in question:

[ { type: 'spawn',
    room: 'W8N3',
    x: 32,
    y: 17,
    name: 'Spawn1',
    user: 'c27ea75f29baff7',
    energy: 300,
    energyCapacity: 300,
    hits: 5000,
    hitsMax: 5000,
    spawning: null,
    notifyWhenAttacked: true,
    _id: 'bb91a769218034d',
    meta:
     { revision: 1,
       created: 1509051240984,
       version: 0,
       updated: 1509051241595 },
    '$loki': 349,
    off: false } ]

@sparr
Copy link
Contributor Author

sparr commented Oct 26, 2017

Here's how it appears in the client:

screenshot

@sparr
Copy link
Contributor Author

sparr commented Oct 26, 2017

It appears this was potentially caused by my using a patched engine, but I cannot find anything in my patch that would cause this behavior. Please keep this issue open for a short while as I attempt to narrow down the misbehavior?

@sparr
Copy link
Contributor Author

sparr commented Oct 26, 2017

@sparr sparr changed the title created/owned structures missing from API in private server created/owned structures missing from API in private server with broken patch Oct 26, 2017
@sparr
Copy link
Contributor Author

sparr commented Oct 26, 2017

Fixing some uses of global/C in that patch made the problem go away. However, I believe there still remains a bug here in that this failure was silent on the server/log side. Whatever was going wrong, it should have produced some error log output.

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