scratchattach icon indicating copy to clipboard operation
scratchattach copied to clipboard

cloud.get_all_vars() doesn't get all variables.

Open MinePossu opened this issue 11 months ago • 4 comments

Minimum example project.

import scratchattach as scratch3

#conn = scratch3.get_tw_cloud(contact="MinePossu", project_id = "1140007777", purpose="Test")
#first one gets none, but the next one gets some variables but not all
conn = scratch3.get_tw_cloud(contact="MinePossu", project_id = "376922508", purpose="Test")

print(list(conn.get_all_vars().keys()))

MinePossu avatar Feb 27 '25 15:02 MinePossu

Hmm... Maybe a check in the project data is needed...

TheCommCraft avatar Feb 27 '25 17:02 TheCommCraft

I'll look into it

TheCommCraft avatar Feb 27 '25 17:02 TheCommCraft

It likely only gets the cloud variables that have been set on TurboWarp before (in the not too distant past)

TimMcCool avatar Feb 27 '25 21:02 TimMcCool

Hmm... Maybe a check in the project data is needed...

this could now be done with sa.editor, but the problem with sa.editor is that it doesnt have lazy loading (so it's quite slow)

I don't think lazy loading will come any time soon though. it still really needs some clean up and documentation

faretek1 avatar Oct 15 '25 21:10 faretek1