Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Frodo on Thu 16/05/2019 14:12:10

Title: Missing Apostrophes
Post by: Frodo on Thu 16/05/2019 14:12:10
I'm having a problem with the dialogues. 

When I 'build' dialogues in the editor, everything looks fine.
But then, when I Run the game to test it, the apostrphes (') are missing.
See Options 1 and 3 in the screenshot. 

[imgzoom]https://i.imgur.com/57keXP9.png[/imgzoom]

But it's not with every dialogue line.  Just some of them.
Why is this happening?  And how do I fix it? 

Thanks.
Title: Re: Missing Apostrophes
Post by: Crimson Wizard on Thu 16/05/2019 14:40:00
Are you sure the apostrophes are present in the font you are using?
Title: Re: Missing Apostrophes
Post by: Slasher on Thu 16/05/2019 14:58:16
Does the font you use actually have the ' symbol?

Have you copied text from elsewhere outside ags?
Title: Re: Missing Apostrophes
Post by: eri0o on Thu 16/05/2019 15:02:24
Ok, here are the possible symbols for the apostrophes:

Code (ags) Select
player.Say("1. don`t");
player.Say("2. don't");
player.Say("3. don't");
player.Say("4. don't");


My guess is you only have some of those symbols and not the other, and this is why it works sometimes and sometimes not. I have this when I copy paste text from LibreOffice (uses ' instead of ').
Title: Re: Missing Apostrophes
Post by: Khris on Thu 16/05/2019 15:21:01
1 and 2 are accents, and 4 is the beautified version used by word processors. Only 3 is a proper ASCII apostrophe, or single quote.
The default font supports 1 and 3, and shows a question mark for the other two.
Title: Re: Missing Apostrophes
Post by: Frodo on Thu 16/05/2019 15:50:53
Ahh, I hadn't noticed all the different versions of the ('). 

Yes, I had been writing it in Word, and then copy & pasting into AGS.  Word must be using a funny (')
I went through it all again, and re-did the (') directly into AGS, and it works now!

Who'd have thought a tiny little symbol could cause so much hassle?

Thanks everyone.   :smiley:
Title: Re: Missing Apostrophes
Post by: Crimson Wizard on Thu 16/05/2019 19:12:06
Copying text from editors like "Word" may be tricky, there are other symbols, such as "long dash", which are not found in common ags fonts.