标题: 求助~~关于对话框和头像的问题
kakax
会员
Rank: 1



UID 159
精华 0
积分 35
帖子 25
阅读权限 5
注册 2007-4-10
 
发表于 2007-4-15 10:00  资料  短消息  加为好友 
求助~~关于对话框和头像的问题

因为比较长,所以开个新贴,希望大人们来看看
按照天娜大人的方法做出来的,只把背景的名字变了一下而已
分层制作出对话框和头像,可是在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里测试完全正常,然后我把此语法又复制到另一文件的事件结束之后测试。像这样:
firsr——跳转到script,再跳转到另一文件。

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


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


控制台的详细内容
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]

顶部
kakax
会员
Rank: 1



UID 159
精华 0
积分 35
帖子 25
阅读权限 5
注册 2007-4-10
 
发表于 2007-4-15 10:01  资料  短消息  加为好友 
另外,同样的语法,复制到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]

顶部
kakax
会员
Rank: 1



UID 159
精华 0
积分 35
帖子 25
阅读权限 5
注册 2007-4-10
 
发表于 2007-4-15 11:45  资料  短消息  加为好友 
啊,多谢,终于发现问题了,显示前景层是3,可是我明明设置的是5啊?前面我也没修改过啊?

顶部
kakax
会员
Rank: 1



UID 159
精华 0
积分 35
帖子 25
阅读权限 5
注册 2007-4-10
 
发表于 2007-4-15 12:48  资料  短消息  加为好友 
重头开始,每一步都按版主给的语法测试。发现如果从此事件开始测试,则显示前景层是3,如果从开头一直测试过来,到了同样的地方,就显示前景层为6了?????是因为存档的时候它自动保存了以前的图层数吗?还是因为什么呢?
不过从开头开始每步测试后,后面就正常了。多谢~~~

顶部
Miliardo
幕后黑手
Rank: 4


UID 1
精华 0
积分 379
帖子 339
阅读权限 255
注册 2006-12-3
 
发表于 2007-4-15 13:20  资料  短消息  加为好友 
我在幻森也回复过了……我想楼主前面应该调用过laycount一类的标签……





そんな世界を 僕らはゆく
誰かのために また目覚める
誰がいても 誰もいなくても そう思うよ
顶部
 



清除 Cookies - 联系我们 - [Key Fans Club] the Council of Doujin-game Development and Promotion - Archiver - WAP
Powered by Discuz! 5.5.0 © 2001-2006 Comsenz Inc.
Processed in 0.027787 second(s), 7 queries , Gzip enabled
粤ICP备05060595号
[ 当前模板 - 天高云淡 v 设计制作 - 七星论坛 v 请使用1024*768或以上分辨率浏览本模板 ]
请勿删除或修改此处版权图示