a801-luadev / cannonup

The #cannonup official module.
0 stars 1 forks source link

Bug when loading a new round #1

Closed Seniru closed 4 years ago

Seniru commented 5 years ago

This issue is related with cannonup module and doesn't occurs all the time. I think this is a problem with a map

Steps to reproduce

Expected

Actual

I hope this could be fixed quickly as all of the mice have to get away from the room to fix this by themselves

Related: https://github.com/Lautenschlager-id/Transformice/issues/1

Lautenschlager-id commented 4 years ago

Hm, it's actually impossible to happen with the current code :thinking:

This is some pseudocode of the current eventLoop behavior:

if time2newmap > 0
    if --time2newmap <= 0
        newGame()
    return

if nomoretime or countalive < 2
    winner()
    time2newmap = 3
else
    cannon()

It's impossible to start the countdown for the next map while cannons are being summoned :thinking:

That said, a GIF would be very appreciated

Seniru commented 4 years ago

I'll try But I have no idea how to make a GIF :disappointed:

Lautenschlager-id commented 4 years ago

There are many tools for it, it can be a video too. Try bandicam. It's free.

Seniru commented 4 years ago

OK 👍 I'll send tomorrow

Seniru commented 4 years ago

OK! Finally I got a chance to get that bug again.

The GIF has no complete evidence. But this is the thing I said

Infinitely loading map

This is what happened before taking this video

I'll try to capture a full video next time

Seniru commented 4 years ago

Another instance

another example

Seniru commented 4 years ago

Here's what happened finally after everybody went

image

It says ' King_seniru won!' even I'm dead

Lautenschlager-id commented 4 years ago

I've edited some stuff in the code, maybe that was the problem. At least it's more efficient now. Let me know if it still happens.

Seniru commented 4 years ago

OK 👍