TCAX 字幕特效制作工具官方论坛 | ASS | TCAS | Python | Aegisub | Lua

标题: Index & Fatal Error (about effects "Hyouka OP2" by youkaze) [打印本页]

作者: Mirael    时间: 2013-10-17 22:30:22     标题: Index & Fatal Error (about effects "Hyouka OP2" by youkaze)

http://www.tcax.org/forum.php?mo ... &extra=page%3D1
My question is: why it not work?

TCC Files:       
# tcc file version

< tcc file version = 1.0 >


# mode configuration

< inherit ass header = false >
< k mode = adv >
< text layout = horizontal >
< tcaxpy init = true  >
< tcaxpy user = true >
< tcaxpy fin = true>


# py settings

< py file = Hyouka_OP2.py >     < beg line = 1 >    < end line = 0 >


# main settings

< k-timed ass file = test_k.ass >
< font file = DFMincho-UB_0.ttc >    < font face id = 2 >    < font size = 45 >
< fx width = 1280 >    < fx height = 720 >    < fx fps = 23.976 >
< alignment = 8 >
< x offset = 0 >    < y offset = 26 >
< spacing = 1 >    < space scale = 1 >


# style settings

< font face name = "" >
< bord = 3 >    < shad = 0 >
< primary color = F0E7DA >    < secondary color = FFFFFF >    < outline color = 000066 >    < back color = 000000 >
< primary alpha = 0 >    < secondary alpha = 255 >    < outline alpha = 0 >    < back alpha = 255 >


# additional settings

< blur = 2.0 >


Error


The problem is gdiFont? Tcax version? I changed the font and the same thing...

作者: milkyjing    时间: 2013-10-18 23:00:12

the script may contain a bug when applying with different fonts, ask youkaze to get the original font, and try if it works, and upload your font, or telling us the font name, maybe youkaze the nice guy may help you figure out the problem you are facing.
作者: yyxxlc    时间: 2013-10-18 23:14:48

其实我也发生过这个问题呢  因为用的不是游风大人的那个_k.ass文件  自己打的karaoke里面有全角空格或者为空的情况  因为这里只跳过半角的if text[i][j] == ' ': #text[i][j] == '' text[i][j] == ' '  貌似就会这么报错  可以尝试下看看_k.ass 文件是不是打了全角的空格 (大概吧....)
作者: yyxxlc    时间: 2013-10-18 23:16:12

或者把 if text[i][j] == ' ': #text[i][j] == '' text[i][j] == ' '  改成 if text[i][j] == ' ' or text[i][j] == '' or  text[i][j] == ' ' :
作者: yyxxlc    时间: 2013-10-18 23:17:46

我反正是这么过的   希望乃看的懂天朝语
作者: Mirael    时间: 2013-10-19 00:01:45

本帖最后由 Mirael 于 2013-10-19 00:31 编辑

@Milky
I wrote to youkaze, see if will write ...
@yyxxlc
So the problem is difirent into syllables for k?

I tried both the font ttf & ttc and still not works...
I tried in romanji:


Dialogue: 0,0:07:10.50,0:07:15.50,~Macross~Frontier~TV~OPI,,0,0,0,,{\k7}{\k99}Ki{\k35}mi {\k34}wa {\k34}da{\k30}re {\k38}to {\k21}ki{\k23}su {\k35}o {\k40}su{\k104}ru
Dialogue: 0,0:07:15.60,0:07:20.38,~Macross~Frontier~TV~OPI,,0,0,0,,{\k7}{\k14}Ho{\k51}shi {\k16}o {\k48}me{\k29}gu{\k38}ru {\k24}yo {\k22}ju{\k19}n{\k39}jo{\k171}u
Dialogue: 0,0:07:22.04,0:07:26.90,~Macross~Frontier~TV~OPI,,0,0,0,,{\k7}{\k31}Yo{\k37}wa{\k26}mu{\k47}shi {\k26}na{\k47}ki{\k36}mu{\k56}shi {\k39}tsu{\k47}re{\k106}te


Not fully understand what you mean, this notation:
if text[j] == ' ': text [j] == '' text [j] == ' '   &  if text[j] == ' ' or text[j] == '' or  text[j] == ' ' :
Google translator is not ideal...

Disabling "#" & change for "or" gives me another error:
http://postimg.org/image/5mabltzwb/

But thanks guys for your help. :)

作者: youkaze    时间: 2013-10-19 00:51:05

Mirael 发表于 2013-10-19 00:01
@Milky
I wrote to youkaze, see if will write ...
@yyxxlc

这里是 Hyouka OP2 的的全部工程文件
解压后 Parse Hyouka_op2_jp.tcc  看看是否能成功

或者把你的K值文件和字体打包发给我 ~~

下面是下载链接:
http://pan.baidu.com/s/1xKfoK
作者: Mirael    时间: 2013-10-19 01:18:16

本帖最后由 Mirael 于 2013-10-19 01:25 编辑

Thank you, youkaze. ;)
However in my k_syllable romanji it does not work...
Error crashes always for line efect karaoke "shine".
Video: (00:46s/01:30)

Font &test_k.rar (27.73 KB, 下载次数: 2056)
Is the fault of the split into syllables k? The difference in characters between kanji and romanji?


附件: Font &test_k.rar (2013-10-19 01:16:31, 27.73 KB) / 下载次数 2056
http://tcax.org/forum.php?mod=attachment&aid=MTQ2NXw2NWIxNTY4YXwxNzE0NzEwNzc5fDB8MA%3D%3D
作者: jijidata    时间: 2013-10-19 04:26:37

Mirael 发表于 2013-10-19 01:18
Thank you, youkaze. ;)
However in my k_syllable romanji it does not work...
Error crashes always for ...


you can try this py script~
it's working!
I just revise it,THX yyxxlc
QQ截图20131019042130.png
youkaze-016.py (18.43 KB, 下载次数: 1781)
不知道我这烂英文您能看懂不~


附件: youkaze-016.py (2013-10-19 04:20:35, 18.43 KB) / 下载次数 1781
http://tcax.org/forum.php?mod=attachment&aid=MTQ2N3wzNGUxNTlmOHwxNzE0NzEwNzc5fDB8MA%3D%3D

图片附件: QQ截图20131019042130.png (2013-10-19 04:20:19, 323.6 KB) / 下载次数 731
http://tcax.org/forum.php?mod=attachment&aid=MTQ2NnxjMTQ5MDk3N3wxNzE0NzEwNzc5fDB8MA%3D%3D


作者: Mirael    时间: 2013-10-19 05:06:33

Ok, in fact... It works... Again cliché I try rewrote it, but without it ":"
As usual, I'm looking everywhere, not where you have to...


Thanks to all for your help.
The trivial problem can be considered solved, thank you all for your help and sorry for the trouble.
作者: yyxxlc    时间: 2013-10-19 08:08:22

真是外国人啊~O.O  
作者: milkyjing    时间: 2013-10-20 00:28:10

yyxxlc 发表于 2013-10-19 08:08
真是外国人啊~O.O

波兰的啊-_-

论坛其实有不少外国友人的 233
作者: youkaze    时间: 2013-11-7 16:09:00

Mirael 发表于 2013-10-19 05:06
Ok, in fact... It works... Again cliché  I try rewrote it, but without it ":"
As usu ...

实际上 改回默认的 if text[j] == ' ' or text[j] == '' or  text[j] == ' '  不算是解决了问题 因为这样的话 空格 部分就没效果了

然后再 saiyaku大神的帮助下找到了问题

问题是提供的K值中的这句

Dialogue: 0,0:07:49.40,0:07:54.45,~Macross~Frontier~TV~OPI,,0,0,0,,{\K10}{\K24}Mi{\K15}ka{\K49}ta {\K34}da {\K43}ke{\K36}do {\K66}{\K18}a{\K14}i{\K15}shi{\K49}te{\K34}na{\K34}i {\K21}to {\K64}ka


{\K66}{\K18}a 部分


所以代码改成这样才行

if text[j] == '':# text[j] == ''text[j] == ' '

直跳过空字符  让全角和半角空格都有效果






欢迎光临 TCAX 字幕特效制作工具官方论坛 | ASS | TCAS | Python | Aegisub | Lua (http://tcax.org/) Powered by Discuz! X2