ETC custom text use


#1

Hello,

I am looking at using the ETC for live custom text animation.
currently using the mode: Spanish flash cards.
I have edited the text in quotes…

I get this error.

does anyone know how to fix this?

also: got any sweet text/word modes to share?
thanks

kaz


#2

Hi -

It looks like that error is ultimately coming from the ‘spanish.py’ file (though it is occurring as ‘main.py’ is run). Can you post a screenshot of or copy the contents of spanish.py? It should like:

words = [[u"a partir de", u"from, as of"],
[u"a través de", u"through, across"],
[u"a", u"a, to"],
[u"abajo", u"down, below, downstairs"],
[u"abandonar", u"to abandon"],

Did you change the ‘main.py’ file at all?


#3

I only changed the Spanish.py file


#4

I did not change the “main.py” file…


#5

perhaps the best thing is to zip up the mode and post it on dropbox, so that others can test it…


#6

here is the zip’d file.
hopefully it work.

thanks,
George


#7

Hi @gkazaklis,

Sorry for the delay - working on this now. Get back to you soon!


#8

@gkazaklis

Please try this new version of the flash card mode: https://patchstorage.com/1-new-flash-cards/
Download, unzip and copy to your ETC’s Mode folder.

I updated the code in the main.py file. You should be able to edit the flashcards.py as discussed before.

Let me know how it goes!


#9

thank you so much…

I will ask on the post and to you.

could be simple.

to change the font… do I just drag a new font in?

geo


#10

Hi

The font is defined in the line 30 of the mode 1-new-flash-cards:
font = pygame.freetype.Font(etc.mode_root + "/font.ttf", size)
You have to place the *.ttf file of your font in the modes directory then then change the file name in line 30

Florian


#11

…you could also just rename the *.ttf file to ‘font.ttf’ so you wouldn’t have to modify the code…


#12

Got it!!!

Thanks