Project1
标题:
测试游戏总不行!求高手解决
[打印本页]
作者:
ye815070596
时间:
2010-8-7 14:13
提示:
作者被禁止或删除 内容自动屏蔽
作者:
s554187203
时间:
2010-8-7 14:15
无语了~我彻底无语了
作者:
BBBBB6
时间:
2010-8-7 14:16
你的游戏的文件夹Pictures里面有没有一个png格式的图片叫做start-1?没有的话把这图放进去就可以了。
作者:
zhangbanxian
时间:
2010-8-7 14:55
缺少图片,随便放个图片改成如图所示的文件名...
作者:
越前リョーマ
时间:
2010-8-7 15:10
你没有这个素材啊,估计你复制了什么脚本但没有把素材复制进去。
作者:
猫猫~
时间:
2010-8-7 15:13
本帖最后由 猫猫~ 于 2010-8-7 15:14 编辑
小柯正解,无图的话用个容错脚本
#==============================================================================
# ■ 容错脚本第3版 BY 轮回者
#------------------------------------------------------------------------------
# 本脚本基于星大叔的容错脚本第2版,区别只是“下手”的地方不同而已。
# 说明请参看星大叔的容错脚本第2版。
#==============================================================================
$need_file_bitmap = []
if FileTest.exist?("log_bitmap.txt")
f = File.open("./log_bitmap.txt","r")
$need_file_bitmap = f.read.split(/\n/)
f.close
end
module Graphics
@transition = method("transition")
def self.transition(*arg)
begin
@transition.call(*arg)
rescue Errno::ENOENT
ary=[*arg]
filename=ary[1]
unless $need_file_bitmap.include?(filename)
$need_file_bitmap.push(filename)
f = File.open("./log_bitmap.txt","a")
f.write(filename + "\n")
f.close
end
@transition.call(ary[0])
end
end
end
class Bitmap < Object
alias ini initialize
def initialize(*arg)
begin
ini(*arg)
rescue Errno::ENOENT
filename=[*arg][0]
unless $need_file_bitmap.include?(filename)
$need_file_bitmap.push(filename)
f = File.open("./log_bitmap.txt","a")
f.write(filename + "\n")
f.close
end
ini(32,32)
end
end
end
$need_file_audio = []
if FileTest.exist?("log_audio.txt")
f = File.open("./log_audio.txt","r")
$need_file_audio = f.read.split(/\n/)
f.close
end
module Audio
@me_play = method("me_play")
def self.me_play(*arg)
begin
@me_play.call(*arg)
rescue Errno::ENOENT
filename=[*arg][0]
unless $need_file_audio.include?(filename)
$need_file_audio.push(filename)
f = File.open("./log_audio.txt","a")
f.write(filename + "\n")
f.close
end
me_stop
end
end
@bgm_play = method("bgm_play")
def self.bgm_play(*arg)
begin
@bgm_play.call(*arg)
rescue Errno::ENOENT
filename=[*arg][0]
unless $need_file_audio.include?(filename)
$need_file_audio.push(filename)
f = File.open("./log_audio.txt","a")
f.write(filename + "\n")
f.close
end
bgm_stop
end
end
@se_play = method("se_play")
def self.se_play(*arg)
begin
@se_play.call(*arg)
rescue Errno::ENOENT
filename=[*arg][0]
unless $need_file_audio.include?(filename)
$need_file_audio.push(filename)
f = File.open("./log_audio.txt","a")
f.write(filename + "\n")
f.close
end
se_stop
end
end
@bgs_play = method("bgs_play")
def self.bgs_play(*arg)
begin
@bgs_play.call(*arg)
rescue Errno::ENOENT
filename=[*arg][0]
unless $need_file_audio.include?(filename)
$need_file_audio.push(filename)
f = File.open("./log_audio.txt","a")
f.write(filename + "\n")
f.close
end
bgs_stop
end
end
end
复制代码
现在把Graphics删了也无所谓啦~\(≧▽≦)/~
作者:
Allguard
时间:
2010-8-7 15:35
提示:
作者被禁止或删除 内容自动屏蔽
作者:
bbaugle
时间:
2010-8-7 17:40
偻住昰儍妣
欢迎光临 Project1 (https://rpg.blue/)
Powered by Discuz! X3.1