Project JSON modification — Topic


#287

@UTheDevHS LOL I just realized I could read that deleted topic because it was emailed to me, and boi did things get weird. I see what you mean now…


#288

So does anyone know where the list of these new blocks and their numbers is in the webplayer? I got the method down for using them and have successfully implemented a destroy object block in my project, but I want to use more of these. If anyone knows any keywords to search for to find this list?


#289

HSBlockType.

I believe it’s in an array in a variable or something.


#290

https://c.gethopscotch.com/p/zsz4ieao0


#291

#292

@Petrichor I found the instances of the the names of blocks after the keyword you gave me, but where do I look for it’s number?


#293

It should say something like [“destroy” = 55] = “destroy” or something. That number is it’s I’d.


#294

Guyz.
So basically I did some searching in the webplayer. And wasted 47 minutes of formatting it. And made this list of all the HSBlockTypes and their call numbers. All 125 of em’.
Enjoy.

Click for list

WaitTilTimestamp=19

None=22

Move=23

Rotate=24

ChangeX=27

ChangeY=28

Scale=29

Clear=30

StrokeWidth=31

StrokeColor=32

ChangeCostume=33

ChangeSpeed=34

Wait=35

SetOpacity=36

PenDown=37

PenUp=38

SetHeading=39

SetText=40

SetPosition=41

SendToBack=42

BringToFront=43

ChangeVariable=44

SetVariable=45

MoveWithTrail=46

SetInvisibility=47

Grow=48

Shrink=49

Flip=50

SetSize=51

PlaySound=52

MakeAClone=53

SetColor=54

Destroy=55

SetImage=56

LeaveATrail=26

Repeat=120

RepeatForever=121

CheckOnceIf=122

Ability=123

CheckIfElse=124

ChangeScene=125

Random=233

XPos=234

YPos=235

Random110=236

Random1100=237

Random11000=238

Variable=239

ConditionalOperatorEquals=1e3

ConditionalOperatorNotEquals=100

ConditionalOperatorLessThan=1002

ConditionalOperatorGreaterThan=1003

ThanConditionalOperatorAnd=1004

ConditionalOperatorOr=1005

HS_END_OF_CONDITIONAL_OPERATORS=1006

TraitRotation=2e3

TraitXPosition=2001

TraitYPosition=2002

TraitInvisibility=2003

TraitSize=2004

TraitSpeed=2005

TraitCloneIndex=2006

TraitTotalClones=2007

HS_END_OF_OBJECT_TRAITS=2008

StageTraitWidth=3e3

StageTraitHeight=3001

StageTraitTiltUp=3002

StageTraitTiltDown=3003

StageTraitTiltLeft=3004

StageTraitTiltRight=3005

StageTraitLastTouchX=3006

StageTraitLastTouchY=3007

StageTraitTotalObjects=3008

HS_END_OF_STAGE_TRAITS=3009

MathOperatorAdd=4e3

MathOperatorSubtract=4001

MathOperatorMultiply=4002

MathOperatorDivide=4003

MathOperatorRandom=4004

MathOperatorPower=4005

MathOperatorSquareRoot=4006

MathOperatorSine=4007

MathOperatorCosine=4008

MathOperatorRound=4009

MathOperatorAbs=4010

MathOperatorModulo=4011

MathOperatorTangent=4012

MathOperatorInverseSine=4013

MathOperatorInverseCosine=4014

MathOperatorInverseTangent=4015

HS_END_OF_MATH_OPERATORS=4016

ColorOperatorRandom=5e3

ColorOperatorRGB=5001

ColorOperatorHSB=5002

HSBHS_END_OF_COLOR_OPERATORS=5003

Rule=6e3

RulePreview=6001

EventOperatorStart=7e3

EventOperatorTap=7001

EventOperatorIsTouching=7002

EventOperatorHold=7003

EventOperatorTiltRight=7004

EventOperatorTiltLeft=7005

EventOperatorTiltUp=7006

EventOperatorTiltDown=7007

EventOperatorLoudNoise=7008

EventOperatorShake=7009

EventOperatorBump=7010

EventOperatorSwipeRight=7011

EventOperatorSwipeLeft=7012

EventOperatorSwipeUp=7013

EventOperatorSwipeDown=7014

EventOperatorEnterTheWorld=7015

EventOperatorTiltRightEditor=7016

EventOperatorTiltLeftEditor=7017

EventOperatorTiltUpEditor=7018

EventOperatorTiltDownEditor=7019

EventOperatorNotPressed=7020

HS_END_OF_EVENT_OPERATORS=7021

Object=8e3

ObjectAnyObject=8001

ScreenEdge=8002

Device=8003

Self=8004

OriginalObject=8005

Let me know if this is somehow helpful when editing json files. I think the “e” stands for scientific notation. Also should I make a video on this process?


#295

Eh, I just open it in the handy Notepad++ and use search/find


#296

@Awesome_E That’s what I did, but if anyone doesn’t want to dig into the webplayer, here it is.


#297

I mean, yeah, but I can even load it on iPad using Google Docs

Edit: I only said I don’t really need the list because I edit on Notepad++ and I have the webplayer open on there. But it is nice of you to provide it to us who don’t have a good text editor


#299

Thank you for creating that list! I am sure that this would be useful to someone at some point.


#300

Woah! This is very interesting.


#301

Thank you for this!

It will help me make better things.


#302

I also wanted to let everyone know that it is possible to easily write a web application that can access Featured and Trending without any auto tokens and similar. You can view projects and play them that way. If somebody makes a “spare account” an retrieves user ID and auto token, I could probably make a full implementation of browsing function on Hopscotch, available to anyone without the app.

I have already started with Featured and Trending and have retrieved, parsed and rendered the results successfully.


#303

One second getting them now
id": 4753230,
“auth_token”: “qKok4lCx8YB9Wgp+o862AA==”,


#304

Thank you! Are these keys just for a spare account so that I can use them to make a working web implementation with liking as well?


#305

inspect this

Iframes don’t work.


#306

could you program something that monitors the rising/feature and shows them if you do that would be nice I need it for an website. @William04GamerA


#307

Absolutely. That is what I am working on right now.