All my scripts have been reset

Hi, I was so close to being done with my game, but now when I start it up, it says “Connecting to server…”.

And I check my scripts, almost all of them have been reset to:

print("Hello world!")

Why is this happening and is this happening to anyone else? And is there a way to get all my scripts that I’ve worked so hard on back?

3 Likes

I had this problem a very long time ago, I think it had something to do with collaborative script editing or team create? Did you change a setting related to that recently?

Yes, I’ve turned collaborative script editing off sice it is very annoying, so that is probably the issue?

3 Likes

For me the issue was turning it on, maybe try turning it back to see if you get your scripts back. Otherwise, view an older version of your game to get your scripts back.

1 Like

Alright, I will try that. If one of your suggestions works, i’ll mark you as solution.

3 Likes

It works. I would have never thought of that. Thank you so much!

3 Likes

However, it’s still stuck on connecting to server, is there a fix for that issue?

3 Likes

Where do you see that message?

I can see that message in the output menu.

3 Likes

Well, can you still get into and edit the game?

1 Like

Yes I can still edit the game like normal

3 Likes

Then it shouldn’t be a problem. If ‘Connecting to server…’ still shows in output, it’s like printing this:

print("Loading...")
-- code
-- no "Loaded!" message

So it doesn’t mean anything, the game loaded successfully.

Thanks, if i’m not asking for too much, could you maybe help me out on my other topic?

3 Likes

Thank for sharing this.

Our hypothesis is:
Editing scripts in Drafts mode (Collaborative Editing) and turning the mode off without commit will cause you to “lose” the scripts. In reality, the scripts(drafts) were just saved locally and not being shown when Drafts mode is off.

@DanielosthebestYTAlt let me know if you have any questions

So if I commited all my scripts and then did the same thing (turn collaborative script editing off), it would save the scripts and when I didn’t commit it would temporarily remove them?

3 Likes

I commited all my scripts and then did the same thing (turn collaborative script editing off), it would save the scripts

Yes

when I didn’t commit it would temporarily remove them

They are saved locally, but not shown in Studio.
We realized that it’s not a good user experience, and plan to change it. What do you think if we prompt when user try to turn off Drafts mode with uncommitted drafts?

1 Like

That would be a great idea.
I would ask them something like:

“Are you sure you want to turn collaborative script edit off? Uncommited scripts may get lost.”

5 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.