T shape becomes T 2 if shape starting with T exists

1 sentence description of the problem:
T shape is named T 2 if another object with a name starting with T is put in first
Steps to reproduce the problem every time:
(Start in a blank draft if possible)

  1. Put in any shape that starts with T (other than the T shape) ex. Text or Triangle
  2. Put in T shape. Its name becomes T 2
    OR
    ⠀1. Put in any object.
    ⠀2. Rename it to something starting with T.(or Z or X or L if you are doing it with those.)
    ⠀3. Put in a T.

I expected this to happen:
Its name to be T
But instead this happened:
Its name was T 2
Screenshots/video:
(Include project link if relevant)


Your username:
_Alboy_ Coding
Device type, iOS version:

Hopscotch version & player version:
(you can go to :gear: > “About”, and take a screenshot)
image

4 Likes

Also: I would assume this would happen with Z, X, or L if there are other shapes/characters that start with one of those letters.

5 Likes

yea it does

4 Likes

Is there a character that starts with z x or l…?

i couldnt find one

4 Likes

not z, but X does in fact exist

3 Likes

But what shape starts with X other than X itself?

3 Likes

you just rename an object to a word starting with x-

3 Likes

Oh thats another way to make the bug hmm… should i add that to the original post?

Also there are Z and L blocks if thats what you are saying

3 Likes

Really strange.

It seems to be checking if the shape contains the letter of the new shape rather than seeing if it is exactly the same (“Text” contains “T”, when it should be “Text” == “T”) before deciding to add a number to prevent a duplicate name.


Speaking of, there’s another bug regarding duplicating an object named with a number at the end without a space in between (“Text1”)… (it names the duplicated one “Text1” instead of “Text1 2”)

4 Likes

Oh i just tried it thats weird so you break the rules and have two objects with the same name

4 Likes

Yep. I just reported it so it’s easier to track.

3 Likes