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

 找回密码
 新人加入
查看: 6126|回复: 12
打印 上一主题 下一主题

[已解决] Index & Fatal Error (about effects "Hyouka OP2" by youkaze) [复制链接]

Rank: 4

跳转到指定楼层
楼主
发表于 2013-10-17 22:30:22 |只看该作者 |倒序浏览
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...

Administrator

TCAX Dev.

Rank: 7Rank: 7Rank: 7

沙发
发表于 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.

Rank: 4

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

查看全部评分

Rank: 4

地板
发表于 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] == ' ' :

Rank: 4

5#
发表于 2013-10-18 23:17:46 |只看该作者
我反正是这么过的   希望乃看的懂天朝语

Rank: 4

6#
发表于 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. :)

Rank: 4

7#
发表于 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

Rank: 4

8#
发表于 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, 下载次数: 3154)
Is the fault of the split into syllables k? The difference in characters between kanji and romanji?

Rank: 5Rank: 5

9#
发表于 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, 下载次数: 2879)
不知道我这烂英文您能看懂不~

Rank: 4

10#
发表于 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.

Rank: 4

11#
发表于 2013-10-19 08:08:22 |只看该作者
真是外国人啊~O.O  

Administrator

TCAX Dev.

Rank: 7Rank: 7Rank: 7

12#
发表于 2013-10-20 00:28:10 |只看该作者
yyxxlc 发表于 2013-10-19 08:08
真是外国人啊~O.O

波兰的啊-_-

论坛其实有不少外国友人的 233

Rank: 4

13#
发表于 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] == ' '

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

您需要登录后才可以回帖 登录 | 新人加入

GitHub|TCAX 主页

GMT+8, 2024-11-22 09:53

Powered by Discuz! X2

© 2001-2011 Comsenz Inc.

回顶部
RealH