设为首页收藏本站|繁體中文

Project1

 找回密码
 注册会员
搜索
查看: 2819|回复: 13
打印 上一主题 下一主题

[已经解决] 用了截图存档脚本,但是并不能截图,求大佬解救!

[复制链接]

Lv1.梦旅人

梦石
0
星屑
50
在线时间
11 小时
注册时间
2017-7-27
帖子
8
跳转到指定楼层
1
发表于 2017-8-14 20:59:44 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式

加入我们,或者,欢迎回来。

您需要 登录 才可以下载或查看,没有帐号?注册会员

x
楼下放图和脚本。

Lv1.梦旅人

梦石
0
星屑
50
在线时间
11 小时
注册时间
2017-7-27
帖子
8
2
 楼主| 发表于 2017-8-14 21:01:39 | 只看该作者
脚本是这个




就是不能截图,其他都正常的样子

捕获.PNG (50.76 KB, 下载次数: 18)

捕获.PNG

点评

好的好的,以后不会再犯了  发表于 2017-8-15 16:34
截图的方法大概得问一些专业人士,或者是用DLL之类的,还有就算不连贴第一楼也算纯水违规  发表于 2017-8-14 23:11
抱歉,一直以为连帖是连续发两个主题帖的意思.... 那还有办法截图吗?  发表于 2017-8-14 22:41
这免dll截图有时会因为电脑配置的关系而截不了图,另外你连贴违规了  发表于 2017-8-14 22:11
回复 支持 反对

使用道具 举报

Lv5.捕梦者 (版主)

梦石
1
星屑
23984
在线时间
3339 小时
注册时间
2011-7-8
帖子
3926

开拓者

3
发表于 2017-8-15 08:13:43 | 只看该作者
用dll截图是没有问题的……如果没找到合适的话我给你发一份我现在正在用的吧
熟悉rgss和ruby,xp区版主~
正在填坑:《膜拜组传奇》讲述膜拜组和学霸们的故事。
已上steam:与TXBD合作的Reformers《变革者》
* 战斗调用公共事件 *
* RGSOS 网络脚本 *
回复 支持 反对

使用道具 举报

Lv2.观梦者

梦石
0
星屑
633
在线时间
50 小时
注册时间
2017-8-11
帖子
6
4
发表于 2017-8-15 15:49:51 | 只看该作者
guoxiaomi 发表于 2017-8-15 08:13
用dll截图是没有问题的……如果没找到合适的话我给你发一份我现在正在用的吧 ...

那你发啊!正好我也看看
回复 支持 反对

使用道具 举报

Lv1.梦旅人

梦石
0
星屑
50
在线时间
11 小时
注册时间
2017-7-27
帖子
8
5
 楼主| 发表于 2017-8-15 16:35:06 | 只看该作者
guoxiaomi 发表于 2017-8-15 08:13
用dll截图是没有问题的……如果没找到合适的话我给你发一份我现在正在用的吧 ...

好的,谢谢!
回复 支持 反对

使用道具 举报

Lv5.捕梦者 (版主)

梦石
1
星屑
23984
在线时间
3339 小时
注册时间
2011-7-8
帖子
3926

开拓者

6
发表于 2017-8-15 22:22:08 | 只看该作者
本帖最后由 guoxiaomi 于 2017-10-20 00:54 编辑

dll :
screenshot.zip (52.02 KB, 下载次数: 164)

我自己把原来的脚本修改过,加了一些蛋疼功能,使用说明:
1. dll放在根目录下,根目录建立 save 文件夹
2. 只会截取一部分
3. 这个脚本会验证存档,如果存档在外部被修改了,就会失效。
4. 事件脚本里用:
  1. command_autosave
复制代码
会自动存档到 save0
5. 如果建立了 ScreenShot 文件夹,事件脚本调用
  1. Screen::shot_fast
复制代码
会截图到此文件夹

脚本:
RUBY 代码复制
  1. #==============================================================================
  2. # 本脚本来自[url=http://www.66RPG.com]www.66RPG.com[/url],转载和使用请保留此信息
  3. #===============================================================================
  4.  
  5. BBS_66RPG_DIR = "Save/"  # 储存文件夹名,请制作游戏时自行建立此文件夹
  6.  
  7. # 若想使用自定义背景图,脚本62行的井号去掉,并放置一张相应图形。
  8.  
  9. # 在你的Scene_Title中找到这一段(如果使用其他插件脚本,在插件中找):
  10. #    for i in 0..3
  11. #      if FileTest.exist?("Save#{i+1}.rxdata")
  12. # 请自行把0..3改为0..最大进度号,比如0..9
  13. # "Save#{i+1}.rxdata" 改为"Save/Save#{i}.rxdata"
  14.  
  15. # 增加进度的方法:138,258行,继续添加。你也可以改“进度X”为“回忆X”或者“红/绿/蓝笔记本”
  16.  
  17. #===============================================================================
  18. module Screen  
  19.   @screen = Win32API.new 'screenshot', 'Screenshot', %w(l l l l p l l), ''
  20.   @readini = Win32API.new 'kernel32', 'GetPrivateProfileStringA', %w(p p p p l p), 'l'
  21.   @findwindow = Win32API.new 'user32', 'FindWindowA', %w(p p), 'l'
  22.   module_function
  23.   #-----------------------------------------------------------------------------
  24.   # here comes the stuff...
  25.   # i add here the stuff for automatic change of the number for the screenshot
  26.   # so it wont overrite the old one...
  27.   # if you want to change so stuff change them in this line below
  28.   # or you can change them in your command line... like
  29.   # Screen::shot("screenshot", 2)
  30.   # this change the name and the type of the screenshot
  31.   # (0 = bmp, 1 = jpg and 2 = png)
  32.   # ----------------------------------------------------------------------------
  33.   def shot(file = "shot", typ = 2)
  34.     # to add the right extension...
  35.     if typ == 0
  36.       typname = ".bmp"
  37.     elsif typ == 1
  38.       typname = ".jpg"
  39.     elsif typ == 2
  40.       typname = ".png"
  41.     end   
  42.     file_index = 0   
  43.     dir = "Save/"   
  44.     # make the filename....
  45.     file_name = dir + file.to_s + typname.to_s   
  46.     # make the screenshot.... Attention dont change anything from here on....
  47.     # @screen.call(0,0,640,480,file_name,handel,typ)
  48.     # 角色在不同的位置,选取不同的截图框
  49.     x = (($game_player.x > $game_map.width - 6)? 1:0) + (($game_player.x < 5)? 0:1)
  50.     y = (($game_player.y > $game_map.height - 4)? 1:0) + (($game_player.y < 4)? 0:1)
  51.     @screen.call(112*x,112*y,416,256,file_name,handel,typ)
  52.   end
  53.   # find the game window...
  54.   def handel
  55.     game_name = "\0" * 256
  56.     @readini.call('Game','Title','',game_name,255,".\\Game.ini")
  57.     game_name.delete!("\0")
  58.     return @findwindow.call('RGSS Player',game_name)
  59.   end
  60.   # 全图截图
  61.   def shot_fast
  62.     dir = "ScreenShot/"   
  63.     # make the filename....   
  64.     file = Time.now.strftime("%Y%m%d_%H%M%S")
  65.     file_name = dir + file + '.png'
  66.     # make the screenshot.... Attention dont change anything from here on....
  67.     @screen.call(0,0,640,480,file_name,handel,2)   
  68.   end
  69. end
  70.  
  71. class Window_File < Window_Base
  72.   attr_accessor :index
  73.   def initialize(index = 0)
  74.     @backsp = Sprite.new
  75.     #@backsp.bitmap = Bitmap.new("Graphics/Pictures/存盘背景.jpg")
  76.     @backsp.z = 99
  77.     super(160,64,480,416)
  78.     #这行可以不用
  79.     self.contents = Bitmap.new(width - 32, height - 32)
  80.     @index = index
  81.     #这里我要说明一句,之所以用sprite是为了放缩图片
  82.     @sprite = Sprite.new
  83.     @sprite.visible = false
  84.     @sprite.z = 100
  85.     @sp_ch = []
  86.     for i in 0..4
  87.       @sp_ch[i] = Sprite.new
  88.       @sp_ch[i].z = 101
  89.     end
  90.     # 刷新
  91.     refresh
  92.   end
  93.   def refresh
  94.     self.contents.clear
  95.     for i in @sp_ch
  96.       i.visible = false
  97.     end
  98.     @sprite.visible = false
  99.     if FileTest.exist?(BBS_66RPG_DIR+"Save#{@index}.rxdata")         
  100.       @sprite.visible = true
  101.       if FileTest.exist?(BBS_66RPG_DIR+"Save#{@index}.png")
  102.         @sprite.bitmap = Bitmap.new(BBS_66RPG_DIR+"Save#{@index}.png")
  103.       else
  104.         self.contents.draw_text(32,64,400,32,"截图似乎有点问题……")
  105.       end
  106.       @sprite.x = 192
  107.       @sprite.y = 96
  108.       #@sprite.zoom_x = 0.7
  109.       #@sprite.zoom_y = 0.7
  110.       file = File.open(BBS_66RPG_DIR+"Save#{@index}.rxdata", "r")
  111.       @time_stamp = file.mtime
  112.       @characters = Marshal.load(file)
  113.       @frame_count = Marshal.load(file)
  114.       @game_system = Marshal.load(file)
  115.       @game_switches = Marshal.load(file)
  116.       @game_variables = Marshal.load(file)
  117.       Marshal.load(file)
  118.       Marshal.load(file)
  119.       Marshal.load(file)
  120.       @game_party = Marshal.load(file)
  121.       Marshal.load(file)
  122.       @game_map = Marshal.load(file)
  123.       Marshal.load(file)
  124.       @total_sec = @frame_count / Graphics.frame_rate      
  125.       file.close
  126.       # 描绘角色
  127.       i = 0
  128.       @characters.each do |ch_ary|
  129.         character_name, character_hue = ch_ary[0], ch_ary[1]
  130.         bitmap = RPG::Cache.character(character_name, character_hue)
  131.         cw = bitmap.width / 4
  132.         ch = bitmap.height / 4
  133.         @sp_ch[i].bitmap = bitmap
  134.         @sp_ch[i].src_rect = Rect.new(0, 0, cw, ch)
  135.         @sp_ch[i].x = 192 + 40 * i
  136.         @sp_ch[i].y = 456 - ch
  137.         @sp_ch[i].visible = true
  138.         i = i + 1
  139.       end
  140.       # 设置文字颜色
  141.       self.contents.font.color = normal_color
  142.       # 描绘游戏时间
  143.       hour = @total_sec / 60 / 60
  144.       min = @total_sec / 60 % 60
  145.       sec = @total_sec % 60
  146.       time_string = sprintf("%02d:%02d:%02d", hour, min, sec)
  147.       self.contents.draw_text(4, 318, 420, 32, time_string, 2)      
  148.       # 描绘时间标记
  149.       time_string = @time_stamp.strftime("%Y/%m/%d %H:%M")
  150.       self.contents.draw_text(4, 348, 420, 32, time_string, 2)
  151.       # 描绘地图名
  152.       @mapinfos = load_data("Data/MapInfos.rxdata")
  153.       map_string = @mapinfos[@game_map.map_id].name
  154.       self.contents.draw_text(20, 288, 224, 32, map_string, 0)
  155.     else
  156.       self.contents.draw_text(32,32,420,32,"这个记录是空的")
  157.     end
  158.   end
  159.   def dispose
  160.     super
  161.     @sprite.dispose
  162.     @backsp.dispose
  163.     for i in @sp_ch
  164.       i.dispose
  165.     end
  166.   end
  167. end
  168.  
  169.  
  170. class Scene_Save
  171.   def main
  172.     # 档案文件名数组
  173.     ary = ["快速存档"]
  174.     for i in 1..20
  175.       ary.push sprintf("%s %02d", "档案", i)
  176.     end
  177.     # 创建档案窗口
  178.     @command_window = Window_Command.new(160,ary)
  179.     @command_window.y = 64
  180.     @command_window.height = 416
  181.     @command_window.index = $game_temp.last_file_index
  182.     @content_window = Window_File.new($game_temp.last_file_index)
  183.     # 添加帮助窗口
  184.     @help_window = Window_Help.new
  185.     @help_window.set_text("请选择要存入的档案")
  186.     # 执行过渡
  187.     Graphics.transition
  188.     # 主循环
  189.     loop do
  190.       # 刷新游戏画面
  191.       Graphics.update
  192.       # 刷新输入信息
  193.       Input.update
  194.       # 刷新画面
  195.       update
  196.       # 如果画面被切换的话就中断循环
  197.       if $scene != self
  198.         break
  199.       end
  200.     end
  201.     # 准备过渡
  202.     Graphics.freeze
  203.     @command_window.dispose
  204.     @content_window.dispose
  205.     # 释放帮助窗口
  206.     @help_window.dispose
  207.   end
  208.   def update
  209.     @command_window.update   
  210.     if @command_window.index != @content_window.index
  211.       @content_window.index = @command_window.index
  212.       @content_window.refresh
  213.     end   
  214.     #——————下面这一部分是原装脚本——————#
  215.     if Input.trigger?(Input::B)  
  216.       $game_system.se_play($data_system.cancel_se)
  217.       if $game_temp.save_calling
  218.         $game_temp.save_calling = false
  219.         $scene = Scene_Map.new
  220.         return
  221.       end
  222.       $scene = Scene_Menu.new(4)
  223.     end   
  224.     #———————————————————————#   
  225.     if Input.trigger?(Input::C)
  226.       # 演奏存档 SE
  227.       $game_system.se_play($data_system.cancel_se)
  228.       # 写入存档数据
  229.       file = File.open(BBS_66RPG_DIR+"Save#{@command_window.index}.rxdata", "wb")
  230.       write_save_data(file)
  231.       if FileTest.exist?(BBS_66RPG_DIR+"shot.png")
  232.         File.rename(BBS_66RPG_DIR+"shot.png", BBS_66RPG_DIR+"Save#{@command_window.index}.png")
  233.       end
  234.       file.close
  235.       #----------------------------------------------
  236.       # 将存档数据 Hash 写入 SaveHash
  237.       #----------------------------------------------
  238.       f = Game_Global.new("Save/SaveHash")
  239.       f.set "hash-#{@command_window.index}", File.open("Save/Save#{@command_window.index}.rxdata").read.hash
  240.       #----------------------------------------------
  241.       $game_temp.last_file_index = @command_window.index
  242.       # 如果被事件调用
  243.       if $game_temp.save_calling
  244.         # 清除存档调用标志
  245.         $game_temp.save_calling = false
  246.         # 切换到地图画面
  247.         $scene = Scene_Map.new
  248.         return
  249.       end
  250.       # 切换到菜单画面
  251.       $scene = Scene_Map.new
  252.     end
  253.     #———————————————————————#
  254.   end
  255.   #--------------------------------------------------------------------------
  256.   # ● 写入存档数据
  257.   #     file : 写入用文件对像 (已经打开)
  258.   #--------------------------------------------------------------------------
  259.   def write_save_data(file)
  260.     # 生成描绘存档文件用的角色图形
  261.     characters = []
  262.     for i in 0...$game_party.actors.size
  263.       actor = $game_party.actors[i]
  264.       characters.push([actor.character_name, actor.character_hue, actor.id, actor.battler_name, actor.battler_hue])
  265.     end
  266.     # 写入描绘存档文件用的角色数据
  267.     Marshal.dump(characters, file)
  268.     # 写入测量游戏时间用画面计数
  269.     Marshal.dump(Graphics.frame_count, file)
  270.     # 增加 1 次存档次数
  271.     $game_system.save_count += 1
  272.     # 保存魔法编号
  273.     # (将编辑器保存的值以随机值替换)
  274.     $game_system.magic_number = $data_system.magic_number
  275.     # 写入各种游戏对像
  276.     Marshal.dump($game_system, file)
  277.     Marshal.dump($game_switches, file)
  278.     Marshal.dump($game_variables, file)
  279.     Marshal.dump($game_self_switches, file)
  280.     Marshal.dump($game_screen, file)
  281.     Marshal.dump($game_actors, file)
  282.     Marshal.dump($game_party, file)
  283.     Marshal.dump($game_troop, file)
  284.     Marshal.dump($game_map, file)
  285.     Marshal.dump($game_player, file)
  286.   end
  287. end
  288.  
  289.  
  290. class Scene_Load
  291.   def initialize
  292.     # 再生成临时对像
  293.     $game_temp = Game_Temp.new
  294.     # 选择存档时间最新的文件
  295.     $game_temp.last_file_index = 0
  296.     latest_time = Time.at(0)
  297.     for i in 0..20
  298.       filename = BBS_66RPG_DIR+"Save#{i}.rxdata"
  299.       if FileTest.exist?(filename)
  300.         file = File.open(filename, "r")
  301.         if file.mtime > latest_time
  302.           latest_time = file.mtime
  303.           $game_temp.last_file_index = i
  304.         end
  305.         file.close
  306.       end
  307.     end
  308.   end  
  309.   def main
  310.     # 档案文件名数组
  311.     ary = ["快速存档"]
  312.     for i in 1..20
  313.       ary.push sprintf("%s %02d", "档案", i)
  314.     end
  315.     # 创建档案窗口
  316.     @command_window = Window_Command.new(160,ary)
  317.     @command_window.y = 64
  318.     @command_window.height = 416
  319.     @command_window.index = $game_temp.last_file_index
  320.     @content_window = Window_File.new($game_temp.last_file_index)
  321.     # 添加帮助窗口
  322.     @help_window = Window_Help.new
  323.     @help_window.set_text("请选择要读取的档案")
  324.     # 执行过渡
  325.     Graphics.transition
  326.     # 主循环
  327.     loop do
  328.       # 刷新游戏画面
  329.       Graphics.update
  330.       # 刷新输入信息
  331.       Input.update
  332.       # 刷新画面
  333.       update
  334.       # 如果画面被切换的话就中断循环
  335.       if $scene != self
  336.         break
  337.       end
  338.     end
  339.     # 准备过渡
  340.     Graphics.freeze
  341.     @command_window.dispose
  342.     @content_window.dispose
  343.     # 释放帮助窗口
  344.     @help_window.dispose
  345.   end
  346.   def update
  347.     @command_window.update   
  348.     if @command_window.index != @content_window.index
  349.       @content_window.index = @command_window.index
  350.       @content_window.refresh
  351.     end   
  352.     #——————下面这一部分是原装脚本——————#
  353.     if Input.trigger?(Input::B)  
  354.     # 演奏取消 SE
  355.     $game_system.se_play($data_system.cancel_se)
  356.     # 切换到标题画面
  357.     $scene = Scene_Title.new
  358.     end   
  359.     #———————————————————————#   
  360.     if Input.trigger?(Input::C)
  361.       # 文件不存在的情况下
  362.       unless FileTest.exist?(BBS_66RPG_DIR+"Save#{@command_window.index}.rxdata")
  363.         # 演奏冻结 SE
  364.         $game_system.se_play($data_system.buzzer_se)
  365.         return
  366.       end
  367.       #----------------------------------------------------------
  368.       # 验证存档是否被篡改
  369.       #----------------------------------------------------------
  370.       f = Game_Global.new("Save/SaveHash")
  371.       if f.data["hash-#{@command_window.index}"] != File.open("Save/Save#{@command_window.index}.rxdata").read.hash
  372.         p '存档验证失败!无法读取此存档!'
  373.         return
  374.       end
  375.       #----------------------------------------------------------
  376.       # 演奏读档 SE
  377.       $game_system.se_play($data_system.cancel_se)
  378.       # 写入存档数据
  379.       file = File.open(BBS_66RPG_DIR+"Save#{@command_window.index}.rxdata", "rb")
  380.       read_save_data(file)
  381.       file.close
  382.       # 还原 BGM、BGS
  383.       $game_system.bgm_play($game_system.playing_bgm)
  384.       $game_system.bgs_play($game_system.playing_bgs)
  385.       # 刷新地图 (执行并行事件)
  386.       $game_map.update
  387.       # 切换到地图画面
  388.       $scene = Scene_Map.new
  389.     end
  390.     #———————————————————————#
  391.   end
  392.   #--------------------------------------------------------------------------
  393.   # ● 写入存档数据
  394.   #     file : 写入用文件对像 (已经打开)
  395.   #--------------------------------------------------------------------------
  396.   def read_save_data(file)
  397.     # 读取描绘存档文件用的角色数据
  398.     characters = Marshal.load(file)
  399.     # 读取测量游戏时间用画面计数
  400.     Graphics.frame_count = Marshal.load(file)
  401.     # 读取各种游戏对像
  402.     $game_system        = Marshal.load(file)
  403.     $game_switches      = Marshal.load(file)
  404.     $game_variables     = Marshal.load(file)
  405.     $game_self_switches = Marshal.load(file)
  406.     $game_screen        = Marshal.load(file)
  407.     $game_actors        = Marshal.load(file)
  408.     $game_party         = Marshal.load(file)
  409.     $game_troop         = Marshal.load(file)
  410.     $game_map           = Marshal.load(file)
  411.     $game_player        = Marshal.load(file)
  412.     # 魔法编号与保存时有差异的情况下
  413.     # (加入编辑器的编辑过的数据)
  414.     if $game_system.magic_number != $data_system.magic_number
  415.       # 重新装载地图
  416.       $game_map.setup($game_map.map_id)
  417.       $game_player.center($game_player.x, $game_player.y)
  418.     end
  419.     # 刷新同伴成员
  420.     $game_party.refresh
  421.   end
  422. end
  423.  
  424. class Scene_Menu
  425.   alias bbs_66rpg_shotsave_main main
  426.   def main
  427.     if @menu_index == 0
  428.       Screen::shot
  429.     end   
  430.     bbs_66rpg_shotsave_main
  431.   end
  432. end
  433.  
  434. class Interpreter
  435.   #--------------------------------------------------------------------------
  436.   # ● 调用存档画面
  437.   #--------------------------------------------------------------------------
  438.   def command_352
  439.     # 设置战斗中断标志
  440.     $game_temp.battle_abort = true
  441.     # 设置调用存档标志
  442.     $game_temp.save_calling = true
  443.     # 推进索引
  444.     @index += 1
  445.     # 结束
  446.     Screen::shot
  447.     return false
  448.   end
  449.   # 自动存档
  450.   def command_autosave
  451.     Screen::shot("Save0")
  452.     file = File.open(BBS_66RPG_DIR+"Save0.rxdata", "wb")
  453.     Scene_Save.new.write_save_data(file)
  454.     file.close
  455.     #--------------------------------------------
  456.     # 将存档数据 Hash 写入 SaveHash
  457.     #--------------------------------------------
  458.     f = Game_Global.new("Save/SaveHash")
  459.     f.set "hash-0", File.open('Save/Save0.rxdata').read.hash
  460.     #----------------------------------------------
  461.   end
  462. end


看上去我为了验证存档,还用了全局存档:
RUBY 代码复制
  1. #==============================================================================
  2. # ■ 二周目类 v2
  3. #------------------------------------------------------------------------------
  4. #  简单的保存与读取二周目数据的类,其中仅包含了key-value对
  5. #
  6. #   使用方法:
  7. #   0. 在根目录下创建 Global 文件夹,将脚本插到 main 前
  8. #   1. 创建实例 $game_save = Game_Global.new(filename,init_hash)
  9. #   注:filename 参数是存档文件名,init_hash 参数是初始的hash值
  10. #   2. 实例调用 $game_save.set(key, value) 设置key-value对
  11. #   3. 实例调用 $game_save.key 即可获取对应的value值
  12. #
  13. #   对key的值要求是字符串,不是Symbol对象
  14. #   对value的值没有任何限制,任意对象都可以
  15. #
  16. #   特点:
  17. #   创造不同的Global文件分别保存数据,避免对所有的Global内容进行频繁读写
  18. #==============================================================================
  19. class Game_Global
  20.         def initialize(name,init_hash={})
  21.                 @filename = name + '.rxdata'
  22.                 # 初始化 Hash 的各默认值
  23.                 @data = init_hash
  24.                 # 存档文件存在时则读取
  25.                 if exist?
  26.                         read
  27.                 end
  28.         end
  29.  
  30.         def write
  31.                 file = File.open(@filename, "wb")
  32.     Marshal.dump(Graphics.frame_count, file) # 总帧数
  33.                 Marshal.dump(@data, file)
  34.                 file.close
  35.         end
  36.  
  37.         def read
  38.                 file = File.open(@filename, "rb")
  39.                 Marshal.load(file) # 总帧数
  40.                 @data = Marshal.load(file)
  41.                 file.close
  42.         end
  43.  
  44.         def exist?
  45.                 return FileTest.exist?(@filename)
  46.         end
  47.  
  48.         def set(key,value)
  49.                 @data[key] = value
  50.                 write
  51.         end
  52.  
  53.         def method_missing(name)
  54.                 return @data[name.to_s]
  55.         end
  56.  
  57.         def data
  58.                 return @data
  59.         end
  60. end
  61. #==============================================================================
  62. # 本脚本由guoxiaomi制作,使用和转载请保留此信息
  63. #==============================================================================

评分

参与人数 2星屑 +100 梦石 +2 收起 理由
RyanBern + 2 认可答案
b565185756 + 100 郭兄大人宇宙无敌天下第一0.0

查看全部评分

熟悉rgss和ruby,xp区版主~
正在填坑:《膜拜组传奇》讲述膜拜组和学霸们的故事。
已上steam:与TXBD合作的Reformers《变革者》
* 战斗调用公共事件 *
* RGSOS 网络脚本 *
回复 支持 1 反对 0

使用道具 举报

Lv1.梦旅人

梦石
0
星屑
50
在线时间
11 小时
注册时间
2017-7-27
帖子
8
7
 楼主| 发表于 2017-8-16 16:48:20 | 只看该作者

非常非常感谢!但是下面那个二周目脚本使用方法里的创建实例是要怎么弄?而且添加上两个脚本后,游戏测试时速度变得很慢

点评

是什么原因?  发表于 2017-8-17 08:20
我刚刚弄了一下,解决帧数的问题了,非常非常感谢!  发表于 2017-8-16 22:33
我看了看应该不需要主动创建实例。帧率下降的原因我暂时还不知道,毕竟我的游戏还在开发……有空了测试一下。这个存档脚本应该和新建工程是.....  发表于 2017-8-16 21:59
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册会员

本版积分规则

拿上你的纸笔,建造一个属于你的梦想世界,加入吧。
 注册会员
找回密码

站长信箱:[email protected]|手机版|小黑屋|无图版|Project1游戏制作

GMT+8, 2024-9-21 20:52

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

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