Closed MAGNAT2645 closed 5 years ago
I've enabled Debug Mode and now CoilSnake logs:
Compiling Staff...
Reading staff character-to-code mapping
Reading staff text
Traceback (most recent call last):
File "coilsnake\ui\gui.py", line 302, in _do_compile_help
File "coilsnake\ui\common.py", line 159, in compile_project
File "coilsnake\modules\eb\StaffModule.py", line 247, in read_from_project
File "coilsnake\modules\eb\StaffModule.py", line 167, in read_staff_text_from_project
File "coilsnake\modules\eb\StaffModule.py", line 117, in read_big_line_from_project
File "coilsnake\modules\eb\StaffModule.py", line 108, in read_text_line_from_project
KeyError: 'S'
'S'
The Staff/staff_chars.yml file contains the mapping from characters to codes. It allows you to add additional entries past 98 and their format is:
number:
Type: <big or small>
Row: <the top row of the character in 8x8 tiles>
Column: <the left column of the character in 8x8 tiles>
Character: <a Unicode code point that is used in staff_text.md>
The row and column are, of course, relative to the character position in credits.png.
As for the KeyError: 'S' message, did you remove/replace the entry with "Character: S" from staff_chars.yml?
Ah, i think i got it. I've replaced all original characters (Character key) with codes like "[45]". So i can actually use Unicode symbols like ж or д?
Yes, that should work. I did not add support for ccscript-style codes, just single Unicode characters. Let us know how it goes :)
Thanks, now it works.
But is there any way to extend dynamic_names.yml max string length? (or that's engine limit?)
How to put your own font chars to markdown (staff_text.md) ? Also, i have this staff_text (seems to be fine):
but CoilSnake says:
and stops compiling.
Another problem is that staff_chars doesn't have space/sections for extra characters. I have this credits.png
So i can't (or i can somehow?) add characters that comes after semicolon.