Skip to content

cloudlink: various fixes#2458

Merged
GarboMuffin merged 11 commits into
TurboWarp:masterfrom
MikeDev101:patch-1
Jun 25, 2026
Merged

cloudlink: various fixes#2458
GarboMuffin merged 11 commits into
TurboWarp:masterfrom
MikeDev101:patch-1

Conversation

@MikeDev101

Copy link
Copy Markdown
Contributor

This is my (hopefully) final PR relating to Classic CloudLink.

This is a slightly altered variant of "CloudLink Improved", created by @Mistium.
https://github.com/Mistium/extensions.mistium/blob/main/files%2FCloudlink4_Improved.js

This addresses miscellaneous bugs encountered since the last major PR and "shuts up" the logs.

I do not take credit for the many wonderful contributions provided by Mist.

This is my (hopefully) final PR relating to Classic CloudLink.

This is a slightly altered variant of CloudLink Improved, created by @Mistium (https://github.com/Mistium/extensions.mistium/blob/main/files%2FCloudlink4_Improved.js).

This addresses various bugs encountered since the last major PR and enhances QoL.
@github-actions github-actions Bot added the pr: change existing extension Pull requests that change an existing extension label Apr 10, 2026
@MikeDev101

This comment was marked as outdated.

Comment thread extensions/cloudlink.js Outdated
Comment thread extensions/cloudlink.js Outdated
Comment thread extensions/cloudlink.js Outdated
Comment thread extensions/cloudlink.js Outdated
@@ -1,11 +1,20 @@
// Name: CloudLink V4
// Name: Cloudlink

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the version number seems somewhat important? since there are others

Comment thread extensions/cloudlink.js Outdated
Comment thread extensions/cloudlink.js Outdated
Comment thread extensions/cloudlink.js Outdated
Comment thread extensions/cloudlink.js Outdated
Comment thread extensions/cloudlink.js
Comment thread extensions/cloudlink.js
@Mistium

Mistium commented Apr 10, 2026

Copy link
Copy Markdown

@MikeDev101 ive made some upstream changes for cl4 improved, commit here: Mistium/extensions.mistium@3d88928

i decided to clean up some of the issues raised, but some stuff like the local server list are things that i see as less than necessary to implement but i understand the requirement so ill leave them to mike to copy over from the original version of the extension

Merged changes from

Mistium/extensions.mistium@3d88928

and restored the static serverlist property.
@MikeDev101

This comment was marked as outdated.

@MikeDev101

Copy link
Copy Markdown
Contributor Author

!format

@CubesterYT

Copy link
Copy Markdown
Member

@MikeDev101 you still have some reviews that you need to address

@MikeDev101

Copy link
Copy Markdown
Contributor Author

@MikeDev101 you still have some reviews that you need to address

just finished addressing them 🦆

@MikeDev101

Copy link
Copy Markdown
Contributor Author

I could be wrong, but as of b0d4615 it should be safe now.

@SharkPool-SP SharkPool-SP left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems good to me.

@Brackets-Coder Brackets-Coder left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are just a few clarifying questions so I can understand better what's going on. I'll have to do more looking later

Comment thread extensions/cloudlink.js
Comment thread extensions/cloudlink.js
console.warn(
"[CloudLink] Ignoring attempt to send a packet while disconnected."
);
//console.warn("[CloudLink] Ignoring attempt to send a packet while disconnected.");

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why did we comment out the warnings? I personally find them helpful for debugging

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

They're annoying for normal users and kinda affect performance

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interesting

Comment thread extensions/cloudlink.js
Comment thread extensions/cloudlink.js
Comment on lines +678 to +694
clVars.recentlyJoinedUser = packet.val;
Scratch.vm.runtime.startHats("cloudlink_whenuserconnects");
break;
case "remove":
clVars.ulist.slice(clVars.ulist.indexOf(packet.val), 1);
case "remove": {
let index = -1;
for (let i = 0; i < clVars.ulist.length; i++) {
let user = clVars.ulist[i];
if (user.uuid == packet.val.uuid) {
index = i;
break;
}
}
clVars.ulist.splice(index, 1);
clVars.recentlyLeftUser = packet.val;
Scratch.vm.runtime.startHats("cloudlink_whenuserdisconnects");
break;
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll have to look at this more later

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this was one of my changes, the original code used slice, which i can only assume was a typo for splice. the new version properly handles the remove command and actually removes the user from the ulist array

@SharkPool-SP

Copy link
Copy Markdown
Collaborator

This is ready for merge

@GarboMuffin

Copy link
Copy Markdown
Member

Ok

@GarboMuffin GarboMuffin changed the title Update CloudLink cloudlink: various fixes Jun 25, 2026
@GarboMuffin
GarboMuffin merged commit ac92bfa into TurboWarp:master Jun 25, 2026
4 checks passed
@MikeDev101
MikeDev101 deleted the patch-1 branch July 12, 2026 19:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr: change existing extension Pull requests that change an existing extension

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants