HtheChemist / BitBurnerCentralManager

A prototype thread manager for BitBurner
MIT License
26 stars 12 forks source link

ServerManager.js #3

Closed foopex closed 2 years ago

foopex commented 2 years ago

buyServer() appears to hang here:

    async function buyServer(hostname, ram) {
        if (!hackPaused) {
            ns.print("Waiting");
            await messageHandler.sendMessage(ChannelName.hackManager, new Payload(Action.pause));
            await messageHandler.waitForAnswer();
        }

ServerManager.js Log

disableLog: Disabled logging for getServerMaxRam
Max server not hit
Waiting

I have reloaded with killing scripts and it still occurs.

HtheChemist commented 2 years ago

Yes I have spotted the problem. The HackManager would not answer correctly. The next update will have this corrected.

klap50 commented 2 years ago

i try fix servermanager, but i dont have chance is to strong for my fool brain. :(

HtheChemist commented 2 years ago

The problem is solved in the next version (I will release it tonight).

The Hack Manager was not answer the pause request, hence it was always stuck.

HtheChemist commented 2 years ago

The update should solve this problem