找回密码
 点一下
查看: 2534|回复: 3

《龙之舞者》试玩版本1.0出现的系统崩溃问题

[复制链接]
发表于 2006-4-18 19:24:21 | 显示全部楼层 |阅读模式
不得不寒一下,刚才找朋友测试了下《龙之舞者》试玩版本1.0,出现一个导致系统崩溃的问题……

这个问题的出现应该是和一个BUG函数有关系,最后终于查出了这个BUG函数:

[jass]function YiGeGe takes string S, string name returns nothing
    local integer a = StringLength(S)
    local integer index = 1
    local integer Random
    local string veiw = ""
    local location point = GetRectCenter(GetPlayableMapRect())
    loop
        exitwhen index > a
        if ModuloInteger(index, 2) == 1 then
        set Random = GetRandomInt(1, 4)
           if Random == 1 then
           call PlaySoundBJ( CreateSound( "Sound\\Units\\Footsteps\\HeroStep1.wav", false, false, true, 10, 10, "DefaultEAXON" ) )
           endif
           if Random == 2 then
           call PlaySoundBJ( CreateSound( "Sound\\Units\\Footsteps\\HeroStep2.wav", false, false, true, 10, 10, "DefaultEAXON" ) )
           endif
           if Random == 3 then
           call PlaySoundBJ( CreateSound( "Sound\\Units\\Footsteps\\HeroStep3.wav", false, false, true, 10, 10, "DefaultEAXON" ) )
           endif
           if Random == 4 then
           call PlaySoundBJ( CreateSound( "Sound\\Units\\Footsteps\\HeroStep4.wav", false, false, true, 10, 10, "DefaultEAXON" ) )
           endif
        endif
        set veiw = veiw + SubStringBJ(S,index,index+1)
        call TransmissionFromUnitTypeWithNameBJ( GetPlayersAll(), Player(0), 'ewsp', name, point, null, veiw, bj_TIMETYPE_ADD, 0, false )
        call TriggerSleepAction( 0 )
        set index = index + 2
    endloop
    call RemoveLocation(point)
    //return
endfunction
[/jass]

然后杀杀杀……最后声明一下,系统崩溃只会在联机游戏中才会出现,单机游戏不会出现这个问题,且这个问题只发生在非主机身上。

另外说一句,要怪就怪BLIZZARD吧 -_-;
 楼主| 发表于 2006-4-18 19:37:30 | 显示全部楼层
Jass Online制作中,近期即将开放..................
回复

使用道具 举报

发表于 2006-4-18 20:18:40 | 显示全部楼层
呃。看不懂。。。注释下哪里出错?
回复

使用道具 举报

发表于 2006-4-18 21:36:32 | 显示全部楼层
根据提示..莫非是这一句?
TransmissionFromUnitTypeWithNameBJ
不过PlaySoundBJ也挺可疑,一般用BJ方式调用声音都是预先初始化好的.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 点一下

本版积分规则

Archiver|移动端|小黑屋|地精研究院

GMT+8, 2024-5-8 13:47 , Processed in 0.089070 second(s), 18 queries .

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

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