查看: 2535|回复: 8

[已经解决] 按状态画面出现跳出问题请教一下

[复制链接]
梦石
0
星屑
606
在线时间
797 小时
注册时间
2014-7-1
回帖
501

开拓者

发表于 2017-2-25 14:58:41 | 显示全部楼层 |阅读模式

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

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

×
本帖最后由 jiushiainilip19 于 2017-2-25 15:09 编辑

这个应该是电脑内存问题 还是游戏脚本导致的。  或者是因为状态画面图片载图存在的问题呢?

图片大小是648*480 png格式!

我是加入了烛光脚本出现的
状态脚本

  1. class Window_Status < Window_Base
  2.   def initialize(actor)
  3.     super(0, 0, 640, 480)
  4.     self.contents = Bitmap.new(width - 32, height - 32)
  5.     @actor = actor
  6.     [url=home.php?mod=space&uid=1297990]@Fas[/url] = Sprite.new
  7.     @column_max = 2
  8.     self.opacity = 0
  9.     refresh
  10.   end
  11.   
  12.   def skill
  13.     return @data[self.index]
  14.   end
  15.   
  16.   def refresh
  17.       self.contents.clear
  18.       @fas.bitmap = RPG::Cache.autotile("#{@actor.id}")   
  19.     if self.contents != nil
  20.       self.contents.dispose
  21.       self.contents = nil
  22.     end
  23.     @data = []
  24.     for i in [email]0...@actor.skills.size[/email]
  25.       skill = $data_skills[@actor.skills[i]]
  26.       if skill != nil
  27.         @data.push(skill)
  28.       end
  29.     end
  30.     # 如果项目数不是 0 就生成位图、重新描绘全部项目
  31.     @item_max = @data.size
  32.     if @item_max > 0
  33.       self.contents = Bitmap.new(width - 40, height * 40)
  34.       for i in 0...@item_max
  35.         draw_item(i)
  36.       end
  37.     end
  38.   end
  39.   def draw_item(index)
  40.     skill = @data[index]
  41.     x = 280 + index % 2 * 160
  42.     #x = 4 + index % 4
  43.     y = 310 + index / 2 * 90
  44.     rect = Rect.new(x, y, self.width / @column_max - 40, 40)
  45.     self.contents.fill_rect(rect, Color.new(0, 0, 0, 0))
  46.     bitmap = RPG::Cache.icon(skill.icon_name)
  47.     opacity = self.contents.font.color == normal_color ? 255 : 128
  48.     self.contents.blt(x, y + 4, bitmap, Rect.new(0, 0, 40, 40), opacity)
  49.     self.contents.draw_text(x + 40, y, 204, 40, skill.name, 0)
  50.    
  51.      self.contents.font.size = 26
  52.      draw_actor_名(@actor,20,310)
  53.      draw_actor_号(@actor,20,350)
  54.      draw_actor_战(@actor,20,385)
  55.      draw_actor_位(@actor,20,424)
  56.      self.contents.font.size = 20
  57.      draw_actor_parameter(@actor, 90,330, 3)
  58.      draw_actor_parameter(@actor, 90,380, 4)
  59.      draw_actor_parameter(@actor, 90,426, 6)
  60.    end
  61.    def dispose
  62.      super
  63.      @fas.bitmap.dispose
  64.      @fas.dispose
  65.    end
  66. end
复制代码



VA烛光

  1. # coding: utf-8
  2. =begin
  3. = Bitmap類拡張 (DLL版)
  4. RPGツクールXP/VX共用
  5. 添加功能 Bitmap 類。
  6. - Marshaldump 啟用
  7. - 保存為PNG文件
  8. -色調變化
  9. -馬賽克效果
  10. -反相顏色
  11. -模糊效果
  12. -使用遮罩-切除
  13. -混合

  14. ■ 注意
  15. 這個腳本需要"tktk_bitmap.dll"(ver0.1.2.6以上)。

  16. Author::    半生
  17. Date::      2010/12/13
  18. Version::   0.1.2.6
  19. URL::       [url]http://www.tktkgame.com/[/url]

  20. ################更新########################
  21. 2010/12/13 ver 0.1.2.6
  22.  dll名稱從"hn_rg_bitmap.dll"變更為"tktk_bitmap.dll"
  23.  LARGE_BITMAP機能でメモリを確保できなかった場合の処理を追加
  24. 2010/10/12 ver 0.1.2.5(デンジャラスベータ版)
  25.  大きいサイズのBitmapオブジェクトを機能を試験的に実装(危険)
  26. 2010/03/24 ver 0.1.2.2
  27.  ブレンディング機能関連の軽量化。
  28.  画像連結系メソッドの分離。
  29. 2010/03/24 ver 0.1.2.1
  30.  ブレンディング機能関連のバグフィックス
  31. 2010/03/22 ver 0.1.2.0
  32.  加算合成等のブレンディング機能の追加
  33. 2010/02/07 ver 0.1.1.0
  34.  マーシャル化の処理の一部をDLLに移動
  35. 2010/01/17 ver 0.1.0.0
  36.  dllの名称を"hn_rx_bitmap.dll"から"hn_rg_bitmap.dll"に変更
  37.  モザイク効果・色反転・ぼかし効果の追加
  38. ############################################
  39. =end

  40. module TKTK_Bitmap
  41.   LARGE_BITMAP = true # 是否使用大型點陣圖的功能
  42.   DLL_NAME = 'tktk_bitmap'

  43.   ERROR_ALLOCATE_FAILED = -110002

  44.   @@png_save = Win32API.new(DLL_NAME, 'PngSaveA', 'p n i i', 'i')
  45.   @@blur = Win32API.new(DLL_NAME, 'Blur', 'n i', 'i')
  46.   @@change_tone = Win32API.new(DLL_NAME, 'ChangeTone', 'n i i i i', 'i')
  47.   @@clip_mask = Win32API.new(DLL_NAME, 'ClipMask', 'n n i i i', 'i')
  48.   @@invert = Win32API.new(DLL_NAME, 'InvertColor', 'n', 'i')
  49.   @@mosaic = Win32API.new(DLL_NAME, 'Mosaic', 'n i i i i i i', 'i')
  50.   @@address = Win32API.new(DLL_NAME, 'GetAddress', 'n', 'n')
  51.   @@get_pixel_data = Win32API.new(DLL_NAME, 'GetPixelData', 'n p i', 'i')
  52.   @@set_pixel_data = Win32API.new(DLL_NAME, 'SetPixelData', 'n p i', 'i')
  53.   @@blend_blt = Win32API.new(DLL_NAME, 'BlendBlt', 'n i i n i i i i i i', 'i')
  54.   #@@get_hwnd = Win32API.new(DLL_NAME, 'GetGameHWND', 'v', 'l')
  55.   @@change_size = Win32API.new(DLL_NAME, 'ChangeSize', 'n i i', 'i')
  56.   module_function

  57.   # PNG形式儲存
  58.   def png_save(bitmap,file_name,compression_level,filter)
  59.     return @@png_save.call(file_name, bitmap.object_id, compression_level, filter)
  60.   end

  61.   # 模糊效果
  62.   def blur(bitmap, r = 1)
  63.     return @@blur.call(bitmap.object_id, r)
  64.   end
  65.   
  66.   # 更改顏色平衡?
  67.   def change_tone(bitmap, red = 0, green = 0, blue = 0, simplify = 1)
  68.     return @@change_tone.call(bitmap.object_id, red, green, blue, simplify)
  69.   end
  70. # 剪貼蒙版圖像(α乘法)
  71.   def clip_mask(g_bitmap, m_bitmap, x=0, y=0, outer=0)
  72.     return @@clip_mask.call(g_bitmap.object_id, m_bitmap.object_id, x, y, outer)
  73.   end

  74.   # 色的反轉
  75.   def invert(bitmap)
  76.     return @@invert.call(bitmap.object_id)
  77.   end

  78.   # 馬賽克效果
  79.   def mosaic(bitmap, msw=5, msh=5)
  80.     return self.mosaic_rect(bitmap, bitmap.rect, msw, msh)
  81.   end

  82.   # 馬賽克效果(範圍指定)
  83.   def mosaic_rect(bitmap, rect, msw=5, msh=5)
  84.     return @@mosaic.call(bitmap.object_id,
  85.     rect.x, rect.y, rect.width, rect.height, msw, msh)
  86.   end

  87.   # 獲取Bitmap資料位址
  88.   def address(bitmap)
  89.     return @@address.call(bitmap.object_id)
  90.   end
  91.   
  92.   # 二進位資料獲取點Bitmap陣圖
  93.   def get_pixel_data(bitmap)
  94.     buffer = "bgra" * bitmap.width * bitmap.height
  95.     @@get_pixel_data.call(bitmap.object_id, buffer, buffer.size)
  96.     return buffer
  97.   end
  98.   
  99.   #替換為Bitmap中的二進位資料
  100.   def set_pixel_data(bitmap, data)
  101.     return @@set_pixel_data.call(bitmap.object_id, data, data.size)
  102.   end
  103.   
  104.   def blend_blt(dest_bmp, x, y, src_bmp, rect, blend_type=0, opacity=255)
  105.     @@blend_blt.call(dest_bmp.object_id, x, y, src_bmp.object_id,
  106.                 rect.x, rect.y, rect.width, rect.height,
  107.                 blend_type, opacity)
  108.   end

  109.   # 改變Bitmap的大小(風險)
  110.   def change_size(bitmap, new_width, new_height)
  111.     return -1 if (new_width <=0 or new_height <= 0)
  112.     result = @@change_size.call(bitmap.object_id, new_width, new_height)
  113.     if result == ERROR_ALLOCATE_FAILED
  114.       raise("tktk_bitmap:ERROR ALLOCATE FAILED")
  115.     end
  116.     return result
  117.   end
  118.   
  119. end

  120. class Font
  121.   def marshal_dump;end
  122.   def marshal_load(obj);end
  123. end
  124. class Bitmap
  125.   # PNG 壓縮篩檢程式
  126.   PNG_NO_FILTERS   = 0x00
  127.   PNG_FILTER_NONE  = 0x08
  128.   PNG_FILTER_SUB   = 0x10
  129.   PNG_FILTER_UP    = 0x20
  130.   PNG_FILTER_AVG   = 0x40
  131.   PNG_FILTER_PAETH = 0x80
  132.   PNG_ALL_FILTERS  = (PNG_FILTER_NONE | PNG_FILTER_SUB | PNG_FILTER_UP |
  133.                       PNG_FILTER_AVG | PNG_FILTER_PAETH)

  134.   # Marshal_dump
  135.   def _dump(limit)
  136.     return "" if self.disposed?
  137.     data = TKTK_Bitmap.get_pixel_data(self)
  138.     [width, height, Zlib::Deflate.deflate(data)].pack("LLa*") # ついでに圧縮
  139.   end
  140.   
  141.   # Marshal_load
  142.   def self._load(str)
  143.     if str == ""
  144.       b = Bitmap.new(1,1)
  145.       b.dispose
  146.       return b
  147.     end
  148.     w, h, zdata = str.unpack("LLa*"); b = new(w, h)
  149.     TKTK_Bitmap.set_pixel_data(b, Zlib::Inflate.inflate(zdata))
  150.     return b
  151.   end  
  152.   
  153.   def address
  154.     TKTK_Bitmap.address(self)
  155.   end

  156.   #         模糊效果
  157.   def blur2(r=1)
  158.     TKTK_Bitmap.blur(self, r)
  159.   end

  160.   # 色調變化
  161.   def change_tone(red, green, blue, simplify = 1)
  162.     TKTK_Bitmap.change_tone(self, red, green, blue, simplify)
  163.   end
  164.   
  165.   # 剪切
  166.   def clip_mask(bitmap, x=0, y=0, outer=0)
  167.     TKTK_Bitmap.clip_mask(self, bitmap, x, y, outer)
  168.   end

  169.   # 反相顏色
  170.   def invert
  171.     TKTK_Bitmap.invert(self)
  172.   end

  173.   # 馬賽克效果
  174.   def mosaic(msw=5, msh=5)
  175.     TKTK_Bitmap.mosaic(self, msw, msh)
  176.   end

  177.   # 馬賽克效果 (指定區域)
  178.   def mosaic_rect(rect=self.rect, msw=5, msh=5)
  179.     TKTK_Bitmap.mosaic_rect(self, rect, msw, msh)
  180.   end

  181.   # 混合
  182.   def blend_blt(x, y, src_bmp, rect, blend_type=0, opacity=255)
  183.     return if opacity <= 0
  184.     TKTK_Bitmap.blend_blt(self, x, y, src_bmp, rect, blend_type, opacity)
  185.   end

  186.   #Png 格式保存
  187.   def png_save(outp, level = 9, filter = PNG_NO_FILTERS)
  188.     if (TKTK_Bitmap.png_save(self, outp, level, filter) != 0)
  189.       raise("Bitmap\#png_save failed")
  190.     end
  191.   end

  192.   # 允許更大的 bitmap.new (危険)
  193.   # 寬度 * 高度大約是1073741823
  194.   if TKTK_Bitmap::LARGE_BITMAP
  195.     class << self
  196.       unless method_defined?(:_hn_large_bm__new)
  197.         alias :_hn_large_bm__new :new
  198.       end
  199.       def new(*args)
  200.         if args.size == 2 && args[0] * args[1] >= 4194304
  201.           new_width = args[0]
  202.           new_height = args[1]
  203.           # 暫時以小尺寸作成
  204.           bitmap = _hn_large_bm__new(16, 16)
  205.           TKTK_Bitmap.change_size(bitmap, new_width, new_height)
  206.           return bitmap
  207.         else
  208.           _hn_large_bm__new(*args)
  209.         end
  210.       end
  211.     end # Bitmap.new
  212.   end
  213. end # CLASS Bitmap
复制代码



烛光

  1. =begin
  2.   HN_Light version 1.0.1.0 for VX Ace
  3.         by 半生
  4. [url]http://www.tktkgame.com[/url]

  5.   要HN_RG_BITMAP(ver 0.1.2.1以降)

  6. 2012/01/08 ver 1.0.1.2
  7.  队列歩行の仲间に対応

  8. 2015/04/25 Xp移植(ver 1.0)
  9.   By RyanBern
  10.   
  11. 2015/12/20 ver 1.1
  12.   Z 坐标修正 && 战斗测试 BUG 修复

  13. =end

  14. # ----- 在这里设定-----
  15. module HN_Light
  16.   # 简略化0:(精细)~2:(粗暴,负荷轻)
  17.   SIMPLIFY = 2
  18.   
  19.   # 表示黑暗处的不透明度,数值为0-255,越大则不可见度越高
  20.   DARK_OPACITY = 100
  21.   
  22.   # 玩家的烛光类型使用的变量号码
  23.   PLAYER_LIGHT_TYPE = 35
  24.   
  25.   # 黑暗判断上使用的开关
  26.   DARK_SWITCH = 35

  27.   # 烛光事件识别用的正规表达式
  28.   REGEX_LIGHT = /@LIGHT(\d+)/

  29.   # 烛光图像的目录
  30.   LIGHT_IMG_DIR = "Graphics/Pictures/"

  31.   # 烛光Bitmap设定
  32.   LIGHTS = [
  33.   # [文件名  ,格栅数, 放大率,  Y偏移值, 色相]
  34.     ["light5",     1,    2.0,        0,    0],
  35.     ["light2",     1,    1.0,        0,    0],
  36.     ["light3",     1,    0.8,        0,    0],
  37.     ["light4",     1,    1.0,      -16,    0],
  38.     ["light5",     1,    2.0,        0,    0],
  39.     ["light6",     1,    1.0,        0,    0],
  40.     ["light7",     1,    3.0,      -16,    0],
  41.     ["light1",     1,    0.5,        0,    0],
  42.     ["light6",     1,    2.0,        0,    0],
  43.   ]
  44. end
  45. #  ----- 在这里设定 -----

  46. module HN_Light
  47.   # 事件mix-in用
  48.   module LightEvent
  49.     attr_reader :light_type
  50.     def initialize
  51.       super()
  52.       @light_type = 0
  53.     end

  54.     def check_light
  55.       @light_type = 0
  56.       return if @list.nil?
  57.       @list.each do |command|
  58.         break if @light_type > 0
  59.         if command.code == 108 or command.code == 408
  60.           command.parameters.each do |line|
  61.             if line =~ REGEX_LIGHT
  62.               @light_type = $1.to_i
  63.               break
  64.             end
  65.           end
  66.         end
  67.       end # END @list.each
  68.     end

  69.   end # END module LightEvent


  70.   class Light
  71.     attr_reader :bitmap
  72.     attr_reader :cells
  73.     attr_reader :width
  74.     attr_reader :height
  75.     attr_reader :ox
  76.     attr_reader :oy
  77.     def initialize(light_type, s_zoom = 1)
  78.       light = LIGHTS[light_type - 1]
  79.       if light.nil?
  80.         # 本来不应该来这里
  81.         @bitmap = Bitmap.new(32, 32)
  82.         @cells = 1
  83.         @zoom = 1.0
  84.         @oy = 16
  85.         @ox = 16
  86.         @width  = 32
  87.         @height = 32
  88.       else
  89.         @bitmap = Bitmap.new(LIGHT_IMG_DIR + light[0])
  90.         @bitmap.invert()
  91.         @cells = light[1].to_i
  92.         @cells = 1 if (@cells < 1 or @cells > @bitmap.width)
  93.         @zoom = light[2].to_f
  94.         @zoom = 1.0 if @zoom <= 0.0
  95.         @zoom /= s_zoom
  96.         @width  = @bitmap.width / @cells
  97.         @height = @bitmap.height

  98.         # 缩放处理
  99.         if @zoom != 1.0
  100.           new_width  = (@width * @zoom).round
  101.           new_height = (@height * @zoom).round
  102.           if new_width * new_height < 1
  103.             @zoom = 1.0
  104.           else
  105.             @width = new_width
  106.             @height = new_height
  107.             new_bitmap = Bitmap.new(@width * @cells, @height)
  108.             new_bitmap.stretch_blt(new_bitmap.rect,@bitmap, @bitmap.rect)
  109.             @bitmap.dispose
  110.             @bitmap = new_bitmap
  111.           end
  112.         end
  113.         @ox = @width / 2
  114.         @oy = @height / 2 - light[3].to_i / s_zoom

  115.         # 色相変换
  116.         if ( (hue = light[4].to_i) != 0)
  117.           @bitmap.hue_change(hue)
  118.         end
  119.       end
  120.     end # End def initialize

  121.     # 色调转换
  122.     def dispose
  123.       @bitmap.dispose
  124.       @bitmap = nil
  125.     end
  126.   end

  127. end

  128. class Game_Event
  129.   include HN_Light::LightEvent
  130.   alias :_hn_light__setup :refresh unless method_defined?(:_hn_light__setup)
  131.   def refresh
  132.     _hn_light__setup
  133.     check_light()
  134.   end
  135. end

  136. class Game_Player
  137.   def light_type
  138.     return $game_variables[HN_Light::PLAYER_LIGHT_TYPE]
  139.   end
  140. end

  141. class Game_Map
  142.   attr_reader :light_events

  143.   # 更新烛光事件列表
  144.   def refresh_lights
  145.     @light_events = []
  146.     @events.values.each do |event|
  147.       if (event.light_type > 0)
  148.         @light_events.push(event)
  149.       end
  150.     end
  151.   end

  152.   alias :_hn_light__setup_events :setup unless method_defined?(:_hn_light__setup_events)
  153.   def setup(map_id)
  154.     _hn_light__setup_events(map_id)
  155.     refresh_lights() if @map_id > 0
  156.   end

  157.   alias :_hn_light__refresh :refresh unless method_defined?(:_hn_light__refresh)
  158.   def refresh
  159.     _hn_light__refresh()
  160.     refresh_lights() if @map_id > 0
  161.   end
  162. end

  163. class Sprite_Dark < Sprite
  164.   @@base_color = Color.new(255,255,255,HN_Light::DARK_OPACITY)

  165.   def initialize(viewport = nil)
  166.     super(viewport)
  167.     @width = 640
  168.     @height = 480

  169.     case HN_Light::SIMPLIFY
  170.     when 1
  171.       @zoom = 2
  172.     when 2
  173.       @zoom = 4
  174.     else
  175.       @zoom = 1
  176.     end
  177.     @width /= @zoom
  178.     @height /= @zoom
  179.     self.zoom_x = @zoom.to_f
  180.     self.zoom_y = @zoom.to_f

  181.     self.bitmap = Bitmap.new(@width, @height)
  182.     self.bitmap.fill_rect(self.bitmap.rect, @@base_color)
  183.     self.blend_type = 2 # 混合型(减算)
  184.     self.z = 800
  185.     self.visible = false
  186.     @light_cache = {}
  187.   end

  188.   # 追加烛光
  189.   def add_light(charactor)
  190.     return if charactor.nil?
  191.     light_type = charactor.light_type
  192.     return if (light_type < 1 or light_type > HN_Light::LIGHTS.size)
  193.     unless @light_cache.key?(light_type)
  194.       @light_cache[light_type] = HN_Light::Light.new(light_type, @zoom)
  195.     end
  196.     light = @light_cache[light_type]

  197.     # 画面外什麽都不做
  198.     if @zoom == 1
  199.       return if (charactor.screen_x < 0  - light.width + light.ox)
  200.       return if (charactor.screen_x > @width + light.ox)
  201.       return if (charactor.screen_y < 0 - light.height + light.oy)
  202.       return if (charactor.screen_y > @height + light.oy)
  203.     else
  204.       return if (charactor.screen_x < 0  - (light.width + light.ox) * @zoom)
  205.       return if (charactor.screen_x > (@width + light.ox)  * @zoom)
  206.       return if (charactor.screen_y < 0 - (light.height + light.oy) * @zoom)
  207.       return if (charactor.screen_y > (@height + light.oy) * @zoom)
  208.     end

  209.     # 动画判定
  210.     if light.cells > 1
  211.       index = (Graphics.frame_count / 4) % light.cells
  212.       rect = Rect.new(index * light.width , 0, light.width, light.height)
  213.     else
  214.       rect = light.bitmap.rect
  215.     end
  216.     if @zoom != 1
  217.       p_x = charactor.screen_x / @zoom - light.ox
  218.       p_y = (charactor.screen_y - 16) / @zoom - light.oy
  219.     else
  220.       p_x = charactor.screen_x - light.ox
  221.       p_y = charactor.screen_y - 16 - light.oy
  222.     end

  223.     # 乗算合成(3)
  224.     self.bitmap.blend_blt(p_x, p_y, light.bitmap, rect, 3)
  225.   end


  226.   def refresh
  227.     self.bitmap.fill_rect(self.bitmap.rect, @@base_color)
  228.     $game_map.light_events.each do |event|
  229.       next if HN_Light::LIGHTS[event.light_type - 1].nil?
  230.       add_light(event)
  231.     end
  232.     add_light($game_player)
  233.   end

  234.   # 更新
  235.   def update
  236.     super
  237.     refresh()
  238.   end

  239.   #--------------------------------------------------------------------------
  240.   # ● 解放
  241.   #--------------------------------------------------------------------------
  242.   def dispose
  243.     self.bitmap.dispose
  244.     @light_cache.values.each do |light|
  245.       light.dispose
  246.     end
  247.     super
  248.   end
  249. end


  250. class Spriteset_Map  
  251.   # 动画判定
  252.   def create_dark
  253.     @dark_sprite = Sprite_Dark.new(@viewport1)
  254.   end

  255.   # 更新黑暗Sprite
  256.   def update_dark
  257.     if (@dark_sprite.visible = $game_switches[HN_Light::DARK_SWITCH])
  258.       @dark_sprite.update
  259.     end
  260.   end

  261.   # 破弃黑暗Sprite
  262.   def dispose_dark
  263.     @dark_sprite.dispose
  264.   end

  265.   # 初期化
  266.   alias :_dark__initialize :initialize unless private_method_defined?(:_dark__initialize)
  267.   def initialize
  268.     _dark__initialize()
  269.     create_dark()
  270.     update_dark()
  271.   end

  272.   # 更新
  273.   alias :_dark__update :update unless method_defined?(:_dark__update)
  274.   def update
  275.     _dark__update()
  276.     update_dark() if !@dark_sprite.nil? and !@dark_sprite.disposed?
  277.   end

  278.   # 结束处理
  279.   alias :_dark__dispose :dispose unless method_defined?(:_dark__dispose)
  280.   def dispose
  281.     dispose_dark()
  282.     _dark__dispose()
  283.   end
  284. end
复制代码

QQ截图20170225145625.png

点评

- -! 坏淫,砸了我就赔在网吧洗厕所了!  发表于 2017-2-27 09:38
怒砸电脑!  发表于 2017-2-26 20:53
学习使我疲劳,打工使我疲惫,恋爱使我伤身,吸烟伤我肺腑,饮酒损我形象,旅游使我破费,月底不见铜板,只有在论坛里面看看各种大佬才能使我进去
梦石
1
星屑
24088
在线时间
3339 小时
注册时间
2011-7-8
回帖
3862

开拓者

发表于 2017-2-25 15:37:24 | 显示全部楼层
这种多半是脚本10秒杀

如果 Graphics.update 10秒钟没有被调用,RGSS就会崩溃。

如果确实是这个问题:解决办法是调试找到死循环的地方。或者试试“真后台运行”?

不过我没仔细看脚本……仅凭报错得到这些结论……

点评

- - !无法用技术语言描述,我只知道是第一个脚本中添加技能显示导致的,删掉那些技能显示就不会了  发表于 2017-2-27 10:52
强,在主楼更新一下问题原因,造福后来者吧~  发表于 2017-2-27 10:47
已经找到问题所在了 !  发表于 2017-2-27 09:37
那就不知道了……把这几个脚本移到空的工程里看看会不会冲突?  发表于 2017-2-26 20:08
不是哦,我用了紫苏的防10秒插件 也没用啊  发表于 2017-2-26 18:51
熟悉rgss和ruby,xp区版主~
正在填坑:《膜拜组传奇》讲述膜拜组和学霸们的故事。
已上steam:与TXBD合作的Reformers《变革者》
* 战斗调用公共事件 *
* RGSOS 网络脚本 *
回复

使用道具 举报

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

本版积分规则

Powered by Discuz! X5.0 © 2001-2026 Discuz! Team.

在本版发帖返回顶部