won't open after choosing amount becuase of font isue
after it asks me how many creatures i want, and i type it in, it shows this error
File "C:\Users\REDACTED\jes-main\jes-main\jes.py", line 23, in <module>
ui = UI(_W_W=1920, _W_H=1078, _MOVIE_SINGLE_DIM=(650,650),
_GRAPH_COOR=(850,50,900,500), _SAC_COOR=(850,560,900,300), _GENEALOGY_COOR=(20,105,530,802,42),
_COLUMN_MARGIN=330, _MOSAIC_DIM=[10,24,24,30], #_MOSAIC_DIM=[10,10,17,22],
_MENU_TEXT_UP=180, _CM_MARGIN1=20, _CM_MARGIN2=1)
File "C:\Users\REDACTED\jes-main\jes-main\jes_ui.py", line 18, in __init__
self.bigFont = pygame.font.Font('C:/Users/caryk/AppData/Local/Microsoft/Windows/Fonts/Jygquip 1.ttf', 60)
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: No such file or directory: 'C:/Users/caryk/AppData/Local/Microsoft/Windows/Fonts/Jygquip 1.ttf'.
i don't know how to bypass this and the file wont open in python to edit
ps the REDACTED is my user
Change lines 18-20 in jes_ui.py to this:
self.bigFont = pygame.font.Font('visuals/Arial.ttf', 60)
self.smallFont = pygame.font.Font('visuals/Arial.ttf', 30)
self.tinyFont = pygame.font.Font('visuals/Arial.ttf', 21)
And it will work. Open jes_ui.py with notepad or a pure text editor.
Edit: Formatting
edit: replaced question
once pasting it in, and saving the file, running the game results in it not asking me the creature question, and just saying hello from pygame instead
EDIT:
nevermind i was going opening the wrong file (jes_ui instead of jes)
i just made them this lines 18-20
self.bigFont = pygame.font.Font(None, 60)
self.smallFont = pygame.font.Font(None, 30)
self.tinyFont = pygame.font.Font(None, 21)
idk if there is any difference
Yeah, had problems too But I'm trying out and seeing if the helpful internet people in the comments' advice will solve my issues