Error Table Validation for apostrophe

Fed_05Fed_05 Member, PRO Posts: 4
edited October 2015 in Tech Support

Hello guys, i've been working on a quiz game and have been encountering a problem in my table for validating answers.

I have a "TBAnswers" table that can store the texts that i input based from keyboard input variable. Then i have a "TBCorrectAnswers" that has the correct answers.

The problem is that whenever i have an answer that has an apostrophe such as "you'll" the TBCorrectAnswers doesn't seem to acknowledge it even if i edit the table for the correct answer to be just simply apostrophe and then type that as my answer it still doesn't acknowledge to be a correct answer.

Is this a bug or does GameSalad creator doesn't have this feature?

Comments

  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922

    It works as expected. Remember things are case sensitive as well.

  • Fed_05Fed_05 Member, PRO Posts: 4

    Yeah i see it, i do have that value in my app but this is what i've been encountering. Check this sample file that i made about that problem.

    It has a text box that shows the value from the correct answer, while the KeyAnswer actor in the middle is where you can type with the Keyboard input attribute.

    Then the Enter actor validates if the values of "tableCellValue( game.TBAnswers ,2,1)" is "tableCellValue( game.TBCorrectAnswers ,2,1)"

    By the time you press that Enter, the green actor should spawn if its correct, while red actor if its wrong.

    Notice how it acknowledge your while when its you're it doesnt....which is weird.

    I made a separate rule for the validation of the word "your" to compare them.

  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772
    edited October 2015

    In the first screen shot, if you look close the two apostrophes are different. The top one is straight, and the bottom one is 'curly'. These are two separate characters and will not match or be considered as equal.

  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922

    I bet this has to do with the font.

  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922

    So here is the issue game salad fonts are Helvetica New while the keyboard input is Helvetica.

  • Fed_05Fed_05 Member, PRO Posts: 4

    @jamie_c said:
    In the first screen shot, if you look close the two apostrophes are different. The top one is straight, and the bottom one is 'curly'. These are two separate characters and will not match or be considered as equal.

    Wow i didn't know that! Btw i just searched on the net about that curly apostrophe and added it to my "you're" value in the TBCorrectAnswers table and it worked! Thanks a lot sir jamie_c :D

  • Fed_05Fed_05 Member, PRO Posts: 4

    @Lost_Oasis_Games said:
    So here is the issue game salad fonts are Helvetica New while the keyboard input is Helvetica.

    Yeah come to think of it, whenever i type and even re-type the apostrophe in the Keyboard Input, it automatically corrects itself to that curly apostrophe....it may be related to the font in which i don't know how to change right now.

    But thanks a lot for helping me in this problem sir :) Hopefully GameSalad can make alternatives about this issue that i just encountered.

  • GeorgeGSGeorgeGS Member, PRO Posts: 478

    @Lost_Oasis_Games said:
    So here is the issue game salad fonts are Helvetica New while the keyboard input is Helvetica.

    Text is matched as text, it has nothing to do with the font being used.

  • QASaladQASalad Inactive, Chef Emeritus Posts: 142

    try disabling curly quotes and see if it still persists:

    http://www.iclarified.com/38772/how-to-disable-curly-quotes-in-mac-os-x-mavericks

  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772

    @Fed_05, you're welcome! :)

  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922
    edited October 2015

    @QASalad said:
    try disabling curly quotes and see if it still persists:

    http://www.iclarified.com/38772/how-to-disable-curly-quotes-in-mac-os-x-mavericks

    Tested and turning off "Use smart quotes and dashes" works

Sign In or Register to comment.