幻想森林

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 4622|回复: 13

[KR] [求助]对话框和头像问题

[复制链接]

2

主题

24

帖子

266

积分

③业余

积分
266
发表于 2007-4-14 23:53:50 | 显示全部楼层 |阅读模式
分层制作出对话框和头像,可是在first测试的时候没问题,一旦放到其他的文件里测试就会出现问题,详细如下

代码是
@menul


@macro name="framein"
@fg layer=3 storage=frame.png page=fore
@layopt layer=3 page=fore autohide=true
@endmacro

@macro name="frameout"
@cl layer=4
@cl layer=3
@endmacro

@macro name="head"
@fg layer=4 storage=%head page=fore l=45 t=375
@layopt layer=4 page=fore autohide=true
@endmacro

@macro name="name"
@current layer=message1
@position layer=message1 page=fore visible=true opacity=0
@locate x=10 y=280
@nowait
@font color=0xff0080
@endmacro

@macro name="text"
@endnowait
@current layer=message0
@position layer=message0 page=fore visible=true opacity=0
@position layer=message0 left=0 top=0 marginl=170 margint=360 marginb=30 marginr=50
@endmacro


*start

@bg storage=40 page=back time=1000
@wait time=500

@framein
@head head=ssample1

@name
【名字】
@text
试试看frameout消除对话框。[l][r]
@frameout
@wait time=500

@framein
@head head=ssample1
@name
【名字】
@text
试验结束。[l][r]



此部分放到first里测试完全正常,然后我把此语法又复制到另一文件的事件结束之后测试。事件结束之后马上出现问题。
以下是控制台的显示
20:20:30 script exception : 发生了错误另一
文件 : 一护.ks   行 : 130
标记 : image ( ← 可能显示了错误前后的标记 )
无法将 (void) 类型变换为 Object 。对于要求 Object 型的参数传递了 Object 型以外的值将会产生此错误 at conductor.tjs(197)[(function) timerCallback]


就是在背景转换后,本该施行此语法的时候就出现了,所以我也不知道到底问题是出自哪里。。。。

另外,如果不执行
@framein
@head head=ssample1
则可进行到“试试看frameout消除对话框。”,此句结束后也会弹出刚才那样的错误信息
如果把@frameout
@framein
@head head=ssample1的部分都去掉就不会出现那个问题,不过对话框和头像也就没有了。。。。。
回复

使用道具 举报

18

主题

428

帖子

5260

积分

⑦老手

在美工荒中挣扎的全能

积分
5260
QQ
发表于 2007-4-14 23:58:29 | 显示全部楼层
请给出上下文……或者完整的Console Log……
光靠这个我似乎没办法判断……
回复 支持 反对

使用道具 举报

2

主题

24

帖子

266

积分

③业余

积分
266
 楼主| 发表于 2007-4-15 00:09:49 | 显示全部楼层
啊,怎么说呢。
http://kcddp.keyfc.net/里看了看半透明并带小头像的对话框(图例&脚本)的帖子,然后照葫芦画瓢。仅把图片名称等等改了。
详细的应该是。
firsr——跳转到script,再跳转到另一文件。

文件初为段落
一段一段的文字,加上一个背景和音乐没有什么其他的东西。
然后段落结束后,我在后面插入
@menul


@macro name="framein"
@fg layer=3 storage=frame.png page=fore
@layopt layer=3 page=fore autohide=true
@endmacro

@macro name="frameout"
@cl layer=4
@cl layer=3
@endmacro

@macro name="head"
@fg layer=4 storage=%head page=fore l=45 t=375
@layopt layer=4 page=fore autohide=true
@endmacro

@macro name="name"
@current layer=message1
@position layer=message1 page=fore visible=true opacity=0
@locate x=10 y=280
@nowait
@font color=0xff0080
@endmacro

@macro name="text"
@endnowait
@current layer=message0
@position layer=message0 page=fore visible=true opacity=0
@position layer=message0 left=0 top=0 marginl=170 margint=360 marginb=30 marginr=50
@endmacro


*start

@bg storage=40 page=back time=1000
@wait time=500

@framein
@head head=ssample1

@name
【名字】
@text
试试看frameout消除对话框。[l][r]
@frameout
@wait time=500

@framein
@head head=ssample1
@name
【名字】
@text
试验结束。[l][r]

ssample1是头像一张,40是背景。为了测试,在放入事件前,先放到first里试了下,没有问题,然后才插到事件中,然是一直出现
标记 : image ( ← 可能显示了错误前后的标记 )
无法将 (void) 类型变换为 Object 。对于要求 Object 型的参数传递了 Object 型以外的值将会产生此错误 at conductor.tjs(197)[(function) timerCallback]
如果把@frameout
@framein
@head 除去,则没有问题。。。。。恩,我的解释能力有限,不晓得这些能不能说清楚

[s:8]
回复 支持 反对

使用道具 举报

18

主题

428

帖子

5260

积分

⑦老手

在美工荒中挣扎的全能

积分
5260
QQ
发表于 2007-4-15 00:18:13 | 显示全部楼层
@framein
@head head=ssample1

= =是这个么……?

出错信息能不能再往上发几行过来?
回复 支持 反对

使用道具 举报

2

主题

24

帖子

266

积分

③业余

积分
266
 楼主| 发表于 2007-4-15 00:21:30 | 显示全部楼层
从控制台复制的部分。。。。。。不晓得大人是不是说这个


00:20:58 一护.ks :                  不记得对方的面貌[l][r]
00:20:59 一护.ks :                         声音[l][r]
00:20:59 一护.ks :                     可是我记得[l][r]
00:20:59 一护.ks :                     我的心很疼[p]
00:20:59 一护.ks : call stack depth before calling : 0
00:20:59 ================================================================================
00:20:59 Scenario loaded : autolabel.ks
00:20:59 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
00:20:59 autolabel.ks : jumped to : *autoLabelLabel
00:20:59 autolabel.ks : 标签/页 : *autoLabelLabel/
00:20:59 autolabel.ks : @return
00:20:59 ================================================================================
00:20:59 Scenario loaded : 一护.ks
00:20:59 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
00:20:59 一护.ks : jumped to : *start
00:20:59 一护.ks : returned to : *start line offset 88
00:20:59 一护.ks : call stack depth after returning : 0
00:20:59 一护.ks :
00:20:59 一护.ks : @menul
00:20:59 一护.ks : @macro name="framein"
00:20:59 一护.ks : @fg layer=3 storage=frame.png page=fore
00:20:59 一护.ks : @layopt layer=3 page=fore autohide=true
00:20:59 一护.ks : @endmacro
00:20:59 macro : framein : [fg layer=3 storage=frame.png page=fore][layopt layer=3 page=fore autohide=true]
00:20:59 一护.ks : @macro name="frameout"
00:20:59 一护.ks : @cl layer=4
00:20:59 一护.ks : @cl layer=3
00:20:59 一护.ks : @endmacro
00:20:59 macro : frameout : [cl layer=4][cl layer=3]
00:20:59 一护.ks : @macro name="head"
00:20:59 一护.ks : @fg layer=4 storage=%head page=fore l=45 t=375
00:20:59 一护.ks : @layopt layer=4 page=fore autohide=true
00:20:59 一护.ks : @endmacro
00:20:59 macro : head : [fg layer=4 storage=%head page=fore l=45 t=375][layopt layer=4 page=fore autohide=true]
00:20:59 一护.ks : @macro name="name"
00:20:59 一护.ks : @current layer=message1
00:20:59 一护.ks : @position layer=message1 page=fore visible=true opacity=0
00:20:59 一护.ks : @locate x=10 y=280
00:20:59 一护.ks : @nowait
00:20:59 一护.ks : @font color=0xff0080
00:20:59 一护.ks : @endmacro
00:20:59 macro : name : [current layer=message1][position layer=message1 page=fore visible=true opacity=0][locate x=10 y=280][nowait][font color=0xff0080]
00:20:59 一护.ks : @macro name="text"
00:20:59 一护.ks : @endnowait
00:20:59 一护.ks : @current layer=message0
00:20:59 一护.ks : @position layer=message0 page=fore visible=true opacity=0
00:20:59 一护.ks : @position layer=message0 left=0 top=0 marginl=170 margint=360 marginb=30 marginr=50
00:20:59 一护.ks : @endmacro
00:20:59 macro : text : [endnowait][current layer=message0][position layer=message0 page=fore visible=true opacity=0][position layer=message0 left=0 top=0 marginl=170 margint=360 marginb=30 marginr=50]
00:20:59 一护.ks : @name
00:20:59 一护.ks : 【名字】
00:20:59 一护.ks : @text
00:20:59 一护.ks : 试试看frameout消除对话框。[l][r]
00:21:00 一护.ks : @frameout
00:21:00 ==== An exception occured at mainwindow.tjs(6818)[(function expression) (anonymous)], VM ip = 13 ====
00:21:00 -- Disassembled VM code --
00:21:00 #(6818)         getLayerFromElm(elm).freeImage(elm);
00:21:00 00000007 calld %1, %-2.*2(%-3)    // *2 = (string)"getLayerFromElm"
00:21:00 00000013 calld %0, %1.*3(%-3)    // *3 = (string)"freeImage"
00:21:00 -- Register dump --
00:21:00 %-3=(object)(object 0x044EF230:0x044EF230)  %-2=(object)(object 0x0012F1BC:0x00000000)
00:21:00 %-1=(object)(object 0x046EC9E4:0x046EC9E4)  %0=(void)  %1=(void)
00:21:00 -----------------------------------------------------------------------------------------------------
00:21:00 无法将 (void) 类型变换为 Object 。对于要求 Object 型的参数传递了 Object 型以外的值将会产生此错误 at mainwindow.tjs(6818)[(function expression) (anonymous)]
00:21:00 trace : conductor.tjs(448)[(function) onTag] <-- conductor.tjs(104)[(function) timerCallback]
00:21:00 发生了错误
文件 : 一护.ks   行 : 123
标记 : freeimage ( ← 可能显示了错误前后的标记 )
无法将 (void) 类型变换为 Object 。对于要求 Object 型的参数传递了 Object 型以外的值将会产生此错误
00:21:00 script exception : 发生了错误
文件 : 一护.ks   行 : 123
标记 : freeimage ( ← 可能显示了错误前后的标记 )
无法将 (void) 类型变换为 Object 。对于要求 Object 型的参数传递了 Object 型以外的值将会产生此错误 at conductor.tjs(197)[(function) timerCallback]
回复 支持 反对

使用道具 举报

2

主题

24

帖子

266

积分

③业余

积分
266
 楼主| 发表于 2007-4-15 00:24:39 | 显示全部楼层
另外,同样的语法,复制到first里,没有出现问题,同样从控制台复制的部分
00:24:08 (info) Loading options from embedded area...
00:24:08 吉里吉里[Kirikiri] 2 执行内核/2.28.1.9906 (Compiled on Jan  1 2007 18:46:50) TJS2/2.4.21 Copyright (C) 1997-2006 W.Dee and contributors All rights reserved.
00:24:08 版本情报详细可以按 Ctrl + F12 详细阅览
00:24:08 Program started on Windows NT 5.1.2600 Service Pack 2 (Win32)
00:24:08 (info) Rebuilding Auto Path Table ...
00:24:08 (info) Total 0 file(s) found, 0 file(s) activated. (0ms)
00:24:08 (info) Total physical memory : 232243200
00:24:08 (info) Selected project directory : file://./e/kagexpress/魔咒/data/
00:24:08 (info) CPU #0 :   FPU:yes  MMX:yes  3DN:no  SSE:yes  CMOVcc:yes  E3DN:no  EMMX:yes  SSE2:yes  TSC:yes  Intel(GenuineIntel) [        Intel(R) Pentium(R) M processor 1.60GHz]  CPUID(1)/EAX=000006D8 CPUID(1)/EBX=00000816
00:24:08 (info) finally detected CPU features :   FPU:yes  MMX:yes  3DN:no  SSE:yes  CMOVcc:yes  E3DN:no  EMMX:yes  SSE2:yes  TSC:yes
00:24:08 (info) Specified option(s) : (none)
00:24:08 (info) Loading startup script : startup.tjs
00:24:08 (info) Rebuilding Auto Path Table ...
00:24:08 (info) Total 251 file(s) found, 247 file(s) activated. (0ms)
00:24:08 OS : Windows NT 5.1.2600 Service Pack 2 (Win32)
00:24:08 KAG : 3.27-dev.20060219
00:24:08 Kirikiri : 2.28.1.9906
00:24:08 读取了Config.tjs ,消耗时间(46ms)
00:24:08 读取了UpdateConfig.tjs ,消耗时间(63ms)
00:24:08 KAG System 正在读取中...
00:24:08 读取了LayerEx.tjs ,消耗时间(16ms)
00:24:08 读取了Utils.tjs ,消耗时间(0ms)
00:24:08 读取了KAGLayer.tjs ,消耗时间(0ms)
00:24:08 读取了ButtonLayer.tjs ,消耗时间(15ms)
00:24:08 读取了SelectLayer.tjs ,消耗时间(16ms)
00:24:08 读取了MapSelectLayer.tjs ,消耗时间(0ms)
00:24:08 读取了DialogLayer.tjs ,消耗时间(31ms)
00:24:08 读取了HistoryLayer.tjs ,消耗时间(16ms)
00:24:08 读取了BGM.tjs ,消耗时间(15ms)
00:24:08 读取了SE.tjs ,消耗时间(0ms)
00:24:08 读取了Movie.tjs ,消耗时间(16ms)
00:24:08 读取了Conductor.tjs ,消耗时间(0ms)
00:24:08 读取了AffineLayer.tjs ,消耗时间(16ms)
00:24:08 读取了ActionLayer.tjs ,消耗时间(15ms)
00:24:08 读取了AnimationLayer.tjs ,消耗时间(16ms)
00:24:08 读取了GraphicLayer.tjs ,消耗时间(15ms)
00:24:09 读取了MessageLayer.tjs ,消耗时间(79ms)
00:24:09 读取了Menus.tjs ,消耗时间(15ms)
00:24:09 读取了DefaultMover.tjs ,消耗时间(63ms)
00:24:09 读取了MainWindow.tjs ,消耗时间(234ms)
00:24:09 脚本读取消耗了 687ms 的时间
00:24:10 KAGMainWindow 的创建消耗了 1483ms 的时间
00:24:10 (info) Rebuilding Auto Path Table ...
00:24:10 (info) Total 251 file(s) found, 247 file(s) activated. (2ms)
00:24:10 ================================================================================
00:24:10 Scenario loaded : func.ks
00:24:10 开始处理
00:24:10 (info) Startup script ended.
00:24:10 (info) CPU clock (roughly) : 1610MHz
00:24:10 func.ks :
00:24:10 func.ks :
00:24:10 func.ks :
00:24:10 func.ks :
00:24:10 func.ks : @loadplugin module=wuvorbis.dll
00:24:10 wuvorbis: SSE enabled. MMX enabled. 3DNow! disabled.
00:24:10 插件已经读取 : wuvorbis.dll
00:24:10 func.ks : @loadplugin module=wump3.dll
00:24:10 插件已经读取 : wump3.dll
00:24:10 func.ks : @loadplugin module=wutcwf.dll
00:24:10 插件已经读取 : wutcwf.dll
00:24:10 func.ks : @loadplugin module=extrans.dll
00:24:11 插件已经读取 : extrans.dll
00:24:11 func.ks : @loadplugin module=extNagano.dll
00:24:11 插件已经读取 : extNagano.dll
00:24:11 func.ks :
00:24:11 func.ks : @if exp="global.useconfigMappfont==true"
00:24:11 func.ks : @mappfont storage=&global.configMappfont
00:24:11 func.ks : @endif
00:24:11 func.ks :
00:24:11 func.ks : @macro name=vend
00:24:11 func.ks : @if exp="tf.KAGeXpress_voice=1"
00:24:11 func.ks : @eval exp="tf.KAGeXpress_voice=0"
00:24:11 func.ks : @endhact
00:24:11 func.ks : @endif
00:24:11 func.ks : @endmacro
00:24:11 macro : vend : [if exp="tf.KAGeXpress_voice=1"][eval exp="tf.KAGeXpress_voice=0"][endhact][endif]
00:24:11 func.ks :
00:24:11 func.ks : @macro name=p
00:24:11 func.ks : @vend
00:24:11 func.ks : @oporig
00:24:11 func.ks : @endmacro
00:24:11 macro : p : [vend][oporig]
00:24:11 func.ks :
00:24:11 func.ks : @call storage=snow.ks
00:24:11 func.ks : call stack depth before calling : 0
00:24:11 ================================================================================
00:24:11 Scenario loaded : snow.ks
00:24:11 snow.ks : @if exp="typeof(global.snow_object) == 'undefined'"
00:24:11 读取了Plugin.tjs ,消耗时间(10ms)
00:24:11 snow.ks : @endif
00:24:11 snow.ks : @macro name="snowinit"
00:24:11 snow.ks : @eval exp="snow_object.init(17, mp)"
00:24:11 snow.ks : @endmacro
00:24:11 macro : snowinit : [eval exp="snow_object.init(17, mp)"]
00:24:11 snow.ks : @macro name="snowuninit"
00:24:11 snow.ks : @eval exp="snow_object.uninit()"
00:24:11 snow.ks : @endmacro
00:24:11 macro : snowuninit : [eval exp="snow_object.uninit()"]
00:24:11 snow.ks : @macro name="snowopt"
00:24:11 snow.ks : @eval exp="snow_object.setOptions(mp)"
00:24:11 snow.ks : @endmacro
00:24:11 macro : snowopt : [eval exp="snow_object.setOptions(mp)"]
00:24:11 snow.ks : @return
00:24:11 ================================================================================
00:24:11 Scenario loaded : func.ks
00:24:11 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
00:24:11 func.ks : jumped to : *init
00:24:11 func.ks : returned to : *init line offset 25
00:24:11 func.ks : call stack depth after returning : 0
00:24:11 func.ks : @call storage=rain.ks
00:24:11 func.ks : call stack depth before calling : 0
00:24:11 ================================================================================
00:24:11 Scenario loaded : rain.ks
00:24:11 rain.ks : @if exp="typeof(global.rain_object) == 'undefined'"
00:24:11 rain.ks : @endif
00:24:11 rain.ks : @macro name="raininit"
00:24:11 rain.ks : @eval exp="rain_object.init(17, mp)"
00:24:11 rain.ks : @endmacro
00:24:11 macro : raininit : [eval exp="rain_object.init(17, mp)"]
00:24:11 rain.ks : @macro name="rainuninit"
00:24:11 rain.ks : @eval exp="rain_object.uninit()"
00:24:11 rain.ks : @endmacro
00:24:11 macro : rainuninit : [eval exp="rain_object.uninit()"]
00:24:11 rain.ks : @macro name="rainopt"
00:24:11 rain.ks : @eval exp="rain_object.setOptions(mp)"
00:24:11 rain.ks : @endmacro
00:24:11 macro : rainopt : [eval exp="rain_object.setOptions(mp)"]
00:24:11 rain.ks : @return
00:24:11 ================================================================================
00:24:11 Scenario loaded : func.ks
00:24:11 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
00:24:11 func.ks : jumped to : *init
00:24:11 func.ks : returned to : *init line offset 26
00:24:11 func.ks : call stack depth after returning : 0
00:24:11 func.ks : @call storage=staffroll.ks
00:24:11 func.ks : call stack depth before calling : 0
00:24:11 ================================================================================
00:24:11 Scenario loaded : staffroll.ks
00:24:11 staffroll.ks : @if exp="typeof(global.staffroll_object) == 'undefined'"
00:24:11 staffroll.ks : @endif
00:24:11 staffroll.ks : @macro name=staffrollinit
00:24:11 staffroll.ks : @eval exp="staffroll_object.init()"
00:24:11 staffroll.ks : @endmacro
00:24:11 macro : staffrollinit : [eval exp="staffroll_object.init()"]
00:24:11 staffroll.ks : @macro name=staffrolltext
00:24:11 staffroll.ks : @eval exp="staffroll_object.addText(mp)"
00:24:11 staffroll.ks : @endmacro
00:24:11 macro : staffrolltext : [eval exp="staffroll_object.addText(mp)"]
00:24:11 staffroll.ks : @macro name=staffrollimage
00:24:11 staffroll.ks : @eval exp="staffroll_object.addImage(mp)"
00:24:11 staffroll.ks : @endmacro
00:24:11 macro : staffrollimage : [eval exp="staffroll_object.addImage(mp)"]
00:24:11 staffroll.ks : @macro name=staffrollstart
00:24:11 staffroll.ks : @eval exp="staffroll_object.startMove(mp.width !== void ? +mp.width : +mp.height, +mp.time)"
00:24:11 staffroll.ks : @endmacro
00:24:11 macro : staffrollstart : [eval exp="staffroll_object.startMove(mp.width !== void ? +mp.width : +mp.height, +mp.time)"]
00:24:11 staffroll.ks : @macro name=staffrolluninit
00:24:11 staffroll.ks : @eval exp="staffroll_object.uninit()"
00:24:11 staffroll.ks : @endmacro
00:24:11 macro : staffrolluninit : [eval exp="staffroll_object.uninit()"]
00:24:11 staffroll.ks : @return
00:24:11 ================================================================================
00:24:11 Scenario loaded : func.ks
00:24:11 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
00:24:11 func.ks : jumped to : *init
00:24:11 func.ks : returned to : *init line offset 27
00:24:11 func.ks : call stack depth after returning : 0
00:24:11 func.ks :
00:24:11 func.ks :
00:24:11 func.ks :
00:24:11 func.ks : @autolabelmode mode=true
00:24:11 func.ks : @erafterpage mode=true
00:24:11 func.ks :
00:24:11 func.ks :
00:24:11 func.ks : @macro name=fg
00:24:11 func.ks : @eval exp="mp.method=universal" cond=mp.us
00:24:11 func.ks : @backlay
00:24:11 func.ks : @image * layer=%layer|%lay|0 page=back storage=%storage|%file visible=true key=%key left=%l top=%t opacity=%op pos=%pos
00:24:11 func.ks : @trans * method=%method|crossfade time=%time|200 layer=base
00:24:11 func.ks : @wt
00:24:11 func.ks : @endmacro
00:24:11 macro : fg : [eval exp="mp.method=universal" cond=mp.us][backlay][image * layer=%layer|%lay|0 page=back storage=%storage|%file visible=true key=%key left=%l top=%t opacity=%op pos=%pos][trans * method=%method|crossfade time=%time|200 layer=base][wt]
00:24:11 func.ks :
00:24:11 func.ks : @macro name=cl
00:24:11 func.ks : @eval exp="mp.method=universal" cond=mp.us
00:24:11 func.ks : @if exp=mp.all
00:24:11 func.ks : @clearlayers page=back
00:24:11 func.ks : @backlay layer=message cond=mp.keep=="msg"|"back"
00:24:11 func.ks : @backlay layer=base cond=mp.keep=="back"
00:24:11 func.ks : @clearlayers page=fore keep=%keep
00:24:11 func.ks : @copylay srclayer=message destlayer=message srcpage=back destpage=fore cond=mp.keep=="msg"|"back"
00:24:11 func.ks : @copylay srclayer=message destlayer=message srcpage=back destpage=fore cond=mp.keep=="back"
00:24:11 func.ks : @endif
00:24:11 func.ks : @backlay
00:24:11 func.ks : @freeimage layer=%layer|%lay|0 page=back
00:24:11 func.ks : @trans * method=%method|crossfade time=%time|200 layer=base
00:24:11 func.ks : @wt
00:24:11 func.ks : @endmacro
00:24:11 macro : cl : [eval exp="mp.method=universal" cond=mp.us][if exp=mp.all][clearlayers page=back][backlay layer=message cond=mp.keep=="msg"|"back"][backlay layer=base cond=mp.keep=="back"][clearlayers page=fore keep=%keep][copylay srclayer=message destlayer=message srcpage=back destpage=fore cond=mp.keep=="msg"|"back"][copylay srclayer=message destlayer=message srcpage=back destpage=fore cond=mp.keep=="back"][endif][backlay][freeimage layer=%layer|%lay|0 page=back][trans * method=%method|crossfade time=%time|200 layer=base][wt]
00:24:11 func.ks :
00:24:11 func.ks : @macro name=bg
00:24:11 func.ks : @eval exp="mp.method=universal" cond=mp.us
00:24:11 func.ks : @backlay
00:24:11 func.ks : @image * layer=base storage=%storage|%file layer=base page=back left=%l top=%t
00:24:11 func.ks : @trans * method=%method|crossfade time=%time|0 layer=base
00:24:11 func.ks : @wt
00:24:11 func.ks : @endmacro
00:24:11 macro : bg : [eval exp="mp.method=universal" cond=mp.us][backlay][image * layer=base storage=%storage|%file layer=base page=back left=%l top=%t][trans * method=%method|crossfade time=%time|0 layer=base][wt]
00:24:11 func.ks :
00:24:11 func.ks : @macro name=lr
00:24:11 func.ks : @l
00:24:11 func.ks : @r
00:24:11 func.ks : @endmacro
00:24:11 macro : lr : [l][r]
00:24:11 func.ks :
00:24:11 func.ks : @macro name=bgm
00:24:11 func.ks : @if exp=mp.play||(!mp.stop)
00:24:11 func.ks : @if exp=mp.time!=0
00:24:11 func.ks : @xchgbgm storage=%storage|%file overlap=%time loop=%loop|true volume=%volume|100
00:24:11 func.ks : @endif
00:24:11 func.ks : @if exp=mp.time==(void)
00:24:11 func.ks : @playbgm storage=%storage|%file loop=%loop|true volume=%volume|100
00:24:11 func.ks : @endif
00:24:11 func.ks : @endif
00:24:11 func.ks : @if exp=mp.stop
00:24:11 func.ks : @fadeoutbgm buf=%buf|0 time=%time|0
00:24:11 func.ks : @endif
00:24:11 func.ks : @if exp=mp.wait
00:24:11 func.ks : @wb buf=%buf|0
00:24:11 func.ks : @endif
00:24:11 func.ks : @endmacro
00:24:11 macro : bgm : [if exp=mp.play||(!mp.stop)][if exp=mp.time!=0][xchgbgm storage=%storage|%file overlap=%time loop=%loop|true volume=%volume|100][endif][if exp=mp.time==(void)][playbgm storage=%storage|%file loop=%loop|true volume=%volume|100][endif][endif][if exp=mp.stop][fadeoutbgm buf=%buf|0 time=%time|0][endif][if exp=mp.wait][wb buf=%buf|0][endif]
00:24:11 func.ks :
00:24:11 func.ks : @macro name=se
00:24:11 func.ks : @if exp=mp.play||(!mp.stop)
00:24:11 func.ks : @if exp=mp.time!=0
00:24:11 func.ks : @fadeinse buf=%buf|0 storage=%storage|%file time=%time volume=%volume|100 loop=%loop|false loop=%loop|false
00:24:11 func.ks : @endif
00:24:11 func.ks : @if exp=mp.time==(void)
00:24:11 func.ks : @playse storage=%storage|%file loop=%loop|false volume=%volume|100 buf=%buf|0
00:24:11 func.ks : @endif
00:24:11 func.ks : @endif
00:24:11 func.ks : @if exp=mp.stop
00:24:11 func.ks : @fadeoutse buf=0 time=%time|0
00:24:11 func.ks : @endif
00:24:11 func.ks : @if exp=mp.wait
00:24:11 func.ks : @wf buf=%buf|0
00:24:11 func.ks : @ws buf=%buf|0
00:24:11 func.ks : @endif
00:24:11 func.ks : @endmacro
00:24:11 macro : se : [if exp=mp.play||(!mp.stop)][if exp=mp.time!=0][fadeinse buf=%buf|0 storage=%storage|%file time=%time volume=%volume|100 loop=%loop|false loop=%loop|false][endif][if exp=mp.time==(void)][playse storage=%storage|%file loop=%loop|false volume=%volume|100 buf=%buf|0][endif][endif][if exp=mp.stop][fadeoutse buf=0 time=%time|0][endif][if exp=mp.wait][wf buf=%buf|0][ws buf=%buf|0][endif]
00:24:11 func.ks :
00:24:11 func.ks : @macro name=vo
00:24:11 func.ks : @if exp=mp.play||(!mp.stop)
00:24:11 func.ks : @eval exp="tf.WSB.stop()"
00:24:11 func.ks : @eval exp="tf.KAGeXpress_voice=1"
00:24:11 func.ks : @playse storage=%storage|%file buf=1
00:24:11 func.ks : @eval exp="tf.ds=tf.strs1+mp.file+tf.strs2"
00:24:11 func.ks : @hact exp=&tf.ds
00:24:11 func.ks : @endif
00:24:11 func.ks : @if exp=mp.stop
00:24:11 func.ks : @stopse buf=1
00:24:11 func.ks : @endif
00:24:11 func.ks : @endmacro
00:24:11 macro : vo : [if exp=mp.play||(!mp.stop)][eval exp="tf.WSB.stop()"][eval exp="tf.KAGeXpress_voice=1"][playse storage=%storage|%file buf=1][eval exp="tf.ds=tf.strs1+mp.file+tf.strs2"][hact exp=&tf.ds][endif][if exp=mp.stop][stopse buf=1][endif]
00:24:11 func.ks :
00:24:11 func.ks : @macro name=movie
00:24:11 func.ks : @video visible=true left=0 top=0 width=640 height=480
00:24:11 func.ks : @playvideo storage=%storage|%file
00:24:11 func.ks : @wv canskip=true
00:24:11 func.ks : @endmacro
00:24:11 macro : movie : [video visible=true left=0 top=0 width=640 height=480][playvideo storage=%storage|%file][wv canskip=true]
00:24:11 func.ks :
00:24:11 func.ks : @macro name=wse
00:24:11 func.ks : @ws buf=1 canskip=true
00:24:11 func.ks : @endmacro
00:24:11 macro : wse : [ws buf=1 canskip=true]
00:24:11 func.ks :
00:24:11 func.ks : @macro name=wvo
00:24:11 func.ks : @ws buf=0 canskip=true
00:24:11 func.ks : @endmacro
00:24:11 macro : wvo : [ws buf=0 canskip=true]
00:24:11 func.ks :
00:24:11 func.ks : @macro name=frame
00:24:11 func.ks : [position layer=%layer|%layer|message0 page=fore visible=true opacity=%op top=%t height=%h left=%l width=%w marginl=%ml margint=%mt marginr=%mr marginb=%mb frame=%frame| ]
00:24:11 func.ks : @endmacro
00:24:11 macro : frame : [position layer=%layer|%layer|message0 page=fore visible=true opacity=%op top=%t height=%h left=%l width=%w marginl=%ml margint=%mt marginr=%mr marginb=%mb frame=%frame| ]
00:24:11 func.ks :
00:24:11 func.ks : @macro name=fx
00:24:11 func.ks :
00:24:11 func.ks : @if exp=mp.rain
00:24:11 func.ks : @if exp=!mp.stop
00:24:11 func.ks : @raininit forevisible=true backvisible=true
00:24:11 func.ks : @playse storage=rain.wav buf=2 loop=true
00:24:11 func.ks : @endif
00:24:11 func.ks : @if exp=mp.stop
00:24:11 func.ks : @rainuninit
00:24:11 func.ks : @stopse buf=2
00:24:11 func.ks : @endif
00:24:11 func.ks : @endif
00:24:11 func.ks :
00:24:11 func.ks : @if exp=mp.snow
00:24:11 func.ks : @if exp=!mp.stop
00:24:11 func.ks : @snowinit forevisible=true backvisible=true
00:24:11 func.ks : @endif
00:24:11 func.ks : @if exp=mp.stop
00:24:11 func.ks : @snowuninit
00:24:11 func.ks : @stopse buf=2
00:24:11 func.ks : @endif
00:24:11 func.ks :
00:24:11 func.ks : @endif
00:24:11 func.ks :
00:24:11 func.ks : @if exp=mp.shake
00:24:11 func.ks : @quake time=%time hmax=%h
00:24:11 func.ks : vamx=%v
00:24:11 func.ks : @if exp=mp.wait==true
00:24:11 func.ks : @wq
00:24:11 func.ks : @endif
00:24:11 func.ks : @endif
00:24:11 func.ks :
00:24:11 func.ks : @endmacro
00:24:11 macro : fx : [if exp=mp.rain][if exp=!mp.stop][raininit forevisible=true backvisible=true][playse storage=rain.wav buf=2 loop=true][endif][if exp=mp.stop][rainuninit][stopse buf=2][endif][endif][if exp=mp.snow][if exp=!mp.stop][snowinit forevisible=true backvisible=true][endif][if exp=mp.stop][snowuninit][stopse buf=2][endif][endif][if exp=mp.shake][quake time=%time hmax=%h ]vamx=%v[if exp=mp.wait==true][wq][endif][endif]
00:24:11 func.ks :
00:24:11 func.ks : @macro name=shake
00:24:11 func.ks : @quake time=%time hmax=%h
00:24:11 func.ks : vamx=%v
00:24:11 func.ks : @endmacro
00:24:11 macro : shake : [quake time=%time hmax=%h ]vamx=%v
00:24:11 func.ks :
00:24:11 func.ks : @macro name=text
00:24:11 func.ks :
00:24:11 func.ks : @if exp=mp.on
00:24:11 func.ks : @backlay
00:24:11 func.ks : @layopt layer=message page=back visible=true
00:24:11 func.ks : @trans method=crossfade time=%time|0
00:24:11 func.ks : @wt
00:24:11 func.ks : @layopt layer=message page=fore visible=true
00:24:11 func.ks : @endif
00:24:11 func.ks :
00:24:11 func.ks : @if exp=mp.off
00:24:11 func.ks : @layopt layer=message page=back visible=false
00:24:11 func.ks : @trans method=crossfade time=%time|0
00:24:11 func.ks : @wt
00:24:11 func.ks : @layopt layer=message page=fore visible=false
00:24:11 func.ks : @endif
00:24:11 func.ks :
00:24:11 func.ks : @endmacro
00:24:11 macro : text : [if exp=mp.on][backlay][layopt layer=message page=back visible=true][trans method=crossfade time=%time|0][wt][layopt layer=message page=fore visible=true][endif][if exp=mp.off][layopt layer=message page=back visible=false][trans method=crossfade time=%time|0][wt][layopt layer=message page=fore visible=false][endif]
00:24:11 func.ks : @call storage=textset.ks
00:24:11 func.ks : call stack depth before calling : 0
00:24:11 ================================================================================
00:24:11 Scenario loaded : textset.ks
00:24:11 textset.ks : @macro name=menul
00:24:11 textset.ks : [position layer=%layer|message page=fore visible=true opacity=0 top=0 height=480 left=0 width=640 marginl=0 margint=0 marginr=0 marginb=0 frame=%frame| ]
00:24:11 textset.ks : @endmacro
00:24:11 macro : menul : [position layer=%layer|message page=fore visible=true opacity=0 top=0 height=480 left=0 width=640 marginl=0 margint=0 marginr=0 marginb=0 frame=%frame| ]
00:24:11 textset.ks :
00:24:11 textset.ks : @macro name=val
00:24:11 textset.ks : [position layer=%layer|message0 page=fore visible=true opacity=128 top=15 height=450 left=20 width=600 marginl=60 margint=45 marginr=24 marginb=30 frame=%frame| ]
00:24:11 textset.ks : @endmacro
00:24:11 macro : val : [position layer=%layer|message0 page=fore visible=true opacity=128 top=15 height=450 left=20 width=600 marginl=60 margint=45 marginr=24 marginb=30 frame=%frame| ]
00:24:11 textset.ks :
00:24:11 textset.ks : @macro name=advl
00:24:11 textset.ks : [position layer=%layer|message0 page=fore visible=true opacity=128 top=360 height=120 left=0 width=640 marginl=16 margint=8 marginr=10 marginb=8 frame=%frame| ]
00:24:11 textset.ks : @endmacro
00:24:11 macro : advl : [position layer=%layer|message0 page=fore visible=true opacity=128 top=360 height=120 left=0 width=640 marginl=16 margint=8 marginr=10 marginb=8 frame=%frame| ]
00:24:11 textset.ks :
00:24:11 textset.ks :
00:24:11 textset.ks : @return
00:24:11 ================================================================================
00:24:11 Scenario loaded : func.ks
00:24:11 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
00:24:11 func.ks : jumped to : *init
00:24:11 func.ks : returned to : *init line offset 247
00:24:11 func.ks : call stack depth after returning : 0
00:24:11 func.ks : @jump storage=first.ks
00:24:11 ================================================================================
00:24:11 Scenario loaded : first.ks
00:24:11 first.ks : @menul
00:24:11 first.ks :
00:24:11 first.ks :
00:24:11 first.ks : @macro name="framein"
00:24:11 first.ks : @fg layer=3 storage=frame.png page=fore
00:24:11 first.ks : @layopt layer=3 page=fore autohide=true
00:24:11 first.ks : @endmacro
00:24:11 macro : framein : [fg layer=3 storage=frame.png page=fore][layopt layer=3 page=fore autohide=true]
00:24:11 first.ks :
00:24:11 first.ks : @macro name="frameout"
00:24:11 first.ks : @cl layer=4
00:24:11 first.ks : @cl layer=3
00:24:11 first.ks : @endmacro
00:24:11 macro : frameout : [cl layer=4][cl layer=3]
00:24:11 first.ks :
00:24:11 first.ks : @macro name="head"
00:24:11 first.ks : @fg layer=4 storage=%head page=fore l=45 t=375
00:24:11 first.ks : @layopt layer=4 page=fore autohide=true
00:24:11 first.ks : @endmacro
00:24:11 macro : head : [fg layer=4 storage=%head page=fore l=45 t=375][layopt layer=4 page=fore autohide=true]
00:24:11 first.ks :
00:24:11 first.ks : @macro name="name"
00:24:11 first.ks : @current layer=message1
00:24:11 first.ks : @position layer=message1 page=fore visible=true opacity=0
00:24:11 first.ks : @locate x=10 y=280
00:24:11 first.ks : @nowait
00:24:11 first.ks : @font color=0xff0080
00:24:11 first.ks : @endmacro
00:24:11 macro : name : [current layer=message1][position layer=message1 page=fore visible=true opacity=0][locate x=10 y=280][nowait][font color=0xff0080]
00:24:11 first.ks :
00:24:11 first.ks : @macro name="text"
00:24:11 first.ks : @endnowait
00:24:11 first.ks : @current layer=message0
00:24:11 first.ks : @position layer=message0 page=fore visible=true opacity=0
00:24:11 first.ks : @position layer=message0 left=0 top=0 marginl=170 margint=360 marginb=30 marginr=50
00:24:11 first.ks : @endmacro
00:24:11 macro : text : [endnowait][current layer=message0][position layer=message0 page=fore visible=true opacity=0][position layer=message0 left=0 top=0 marginl=170 margint=360 marginb=30 marginr=50]
00:24:11 first.ks :
00:24:11 first.ks :
00:24:11 first.ks :
00:24:11 first.ks : @bg storage=40 page=back time=1000
00:24:11 40 的读取花费了 65ms。
00:24:12 first.ks : @wait time=500
00:24:12 first.ks :
00:24:12 first.ks : @framein
00:24:12 frame.png 的读取花费了 22ms。
00:24:12 first.ks : @head head=ssample1
00:24:12 ssample1 的读取花费了 30ms。
00:24:12 first.ks :
00:24:12 first.ks : @name
00:24:12 first.ks : 【名字】
00:24:12 first.ks : @text
00:24:12 first.ks : 试试看frameout消除对话框。[l][r]
00:24:12 first.ks : @frameout
00:24:13 first.ks : @wait time=500
00:24:13 first.ks :
00:24:13 first.ks : @framein
00:24:13 frame.png 的读取花费了 1ms。
00:24:13 first.ks : @head head=ssample1
00:24:13 ssample1 的读取花费了 0ms。
00:24:13 first.ks : @name
00:24:13 first.ks : 【名字】
00:24:13 first.ks : @text
00:24:13 first.ks : 试验结束。[l][r]
00:24:13 first.ks :
00:24:13 first.ks :
00:24:13 first.ks :
00:24:13 first.ks :
00:24:13 first.ks :
00:24:13 first.ks :
00:24:13 first.ks :
00:24:13 first.ks :
00:24:13 first.ks : ----对话框在layer3,指令为framein----
00:24:13 first.ks : ----小头像在layer4,指令为head----
00:24:14 first.ks : @menul
00:24:14 first.ks :
00:24:14 first.ks :
00:24:14 first.ks : @macro name="framein"
00:24:14 first.ks : @fg layer=3 storage=frame.png page=fore
00:24:14 first.ks : @layopt layer=3 page=fore autohide=true
00:24:14 first.ks : @endmacro
00:24:14 macro : framein : [fg layer=3 storage=frame.png page=fore][layopt layer=3 page=fore autohide=true]
00:24:14 first.ks :
00:24:14 first.ks : @macro name="frameout"
00:24:14 first.ks : @cl layer=4
00:24:14 first.ks : @cl layer=3
00:24:14 first.ks : @endmacro
00:24:14 macro : frameout : [cl layer=4][cl layer=3]
00:24:14 first.ks :
00:24:14 first.ks : @macro name="head"
00:24:14 first.ks : @fg layer=4 storage=%head page=fore l=45 t=375
00:24:14 first.ks : @layopt layer=4 page=fore autohide=true
00:24:14 first.ks : @endmacro
00:24:14 macro : head : [fg layer=4 storage=%head page=fore l=45 t=375][layopt layer=4 page=fore autohide=true]
00:24:14 first.ks :
00:24:14 first.ks : @macro name="name"
00:24:14 first.ks : @current layer=message1
00:24:14 first.ks : @position layer=message1 page=fore visible=true opacity=0
00:24:14 first.ks : @locate x=10 y=280
00:24:14 first.ks : @nowait
00:24:14 first.ks : @font color=0xff0080
00:24:14 first.ks : @endmacro
00:24:14 macro : name : [current layer=message1][position layer=message1 page=fore visible=true opacity=0][locate x=10 y=280][nowait][font color=0xff0080]
00:24:14 first.ks :
00:24:14 first.ks : @macro name="text"
00:24:14 first.ks : @endnowait
00:24:14 first.ks : @current layer=message0
00:24:14 first.ks : @position layer=message0 page=fore visible=true opacity=0
00:24:14 first.ks : @position layer=message0 left=0 top=0 marginl=170 margint=360 marginb=30 marginr=50
00:24:14 first.ks : @endmacro
00:24:14 macro : text : [endnowait][current layer=message0][position layer=message0 page=fore visible=true opacity=0][position layer=message0 left=0 top=0 marginl=170 margint=360 marginb=30 marginr=50]
00:24:14 first.ks :
00:24:14 first.ks :               公主和王子的童话故事,[l][r]
回复 支持 反对

使用道具 举报

18

主题

428

帖子

5260

积分

⑦老手

在美工荒中挣扎的全能

积分
5260
QQ
发表于 2007-4-15 03:45:07 | 显示全部楼层
是不是前景层的数量问题?
从这里的反汇编信息看好像是没有找到对应的层的感觉?

按理上讲你这边调用的cl是很确定的了……
可能的话你把帖子转到KCDDP去,我找人帮忙看下吧……

你中间是不是调用过laycount一类(虽然我想应该没有XD)?

= =所以说,处理这种东西还是直接用文字层好啊……= =那种处理方法还是比较麻烦的……
回复 支持 反对

使用道具 举报

50

主题

742

帖子

402

积分

版主

自定义头衔

Rank: 7Rank: 7Rank: 7

积分
402
发表于 2007-4-15 08:46:36 | 显示全部楼层
提个反动的观点………………如果真的要做很自定义化的AVG还是应该考虑从底层实现……不然偶个人觉得还是顺着KR期望的模式就好了……
当然有达人们鼎立支持的特效或者EX等另当别论^^
Style-C
回复 支持 反对

使用道具 举报

2

主题

24

帖子

266

积分

③业余

积分
266
 楼主| 发表于 2007-4-15 09:50:37 | 显示全部楼层
引用第6楼Miliardo2007-04-15 03:45发表的:
是不是前景层的数量问题?
从这里的反汇编信息看好像是没有找到对应的层的感觉?

按理上讲你这边调用的cl是很确定的了……
可能的话你把帖子转到KCDDP去,我找人帮忙看下吧……
.......
偶素新人》。。。。所以应该是没调用那个指令 [s:5] (没那个能力)
用文字层可以解决吗?
偶是因为只知道这种办法。。。。。。 [s:8]
如果有更简单的方法当然最好
回复 支持 反对

使用道具 举报

122

主题

3954

帖子

24万

积分

超级版主

传说中的Bunny坑神~!

Rank: 8Rank: 8

积分
244543

声命组铜赏

发表于 2007-4-15 11:05:00 | 显示全部楼层
实在不行你找个地方把工程发上来吧……= =|||
http://www.nvlmaker.net/
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|幻想森林

GMT+8, 2024-5-3 21:50 , Processed in 0.037447 second(s), 22 queries .

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表