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

bug: Multiplayer editing/deploy cycles reverts to older version of script #5042

Open
lwllendbro opened this issue Jan 10, 2025 · 0 comments
Open
Assignees
Labels
bug Something isn't working

Comments

@lwllendbro
Copy link

Describe the bug

When going through cycles of script revision and deploy, if a multiplayer session has been involved by clicking the mp button, the next mp session code in the editor reverts to a previous version. So if Dev A intermittently calls in Dev B for help, the code shared between the two parties is out of date in later mp sessions.

To reproduce

Start with a script and deploy. Add a comment line solo or in mp session and deploy again.

import os
import wmill

def main(input: str):
    """
    Changes:
    1. script created and deployed by admin
    2. added comment by dev A (solo) 
    3. Multiplayer session - admin joins dev A via link.  Dev A adds this comment and deploys
    4. dev A still in multiplayer. Admin has left - Dev A adds this comment and deploys. Script Diff shows only this comment
    5. dev A has run this script once. Then added this comment and deployed. 
    6. Every multiplayer session from here on, reverts to the 4th comment being the last line in this text block.     

    Is this intended behaviour? 
    """

    print(input)

Expected behavior

Expectation is that the code in the editor does not jump back X number of revisions when clicking the mp button

Screenshots

In our case we jump a couple revisions back every time we flip the mp session button.

Latest code in editor:
image

A couple revisions back:
image

image

Browser information

Chrome Version 131.0.6778.264 (Official Build) (64-bit)

Application version

EE v1.441.2-2-g383ecf846

Additional Context

No response

@lwllendbro lwllendbro added the bug Something isn't working label Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants