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

Project1

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

[已经过期] 想请教一下各位大神,使用CG脚本后报错的问题

[复制链接]

Lv1.梦旅人

梦石
0
星屑
130
在线时间
14 小时
注册时间
2016-10-11
帖子
3
跳转到指定楼层
1
发表于 2017-11-4 23:23:52 | 只看该作者 |只看大图 回帖奖励 |倒序浏览 |阅读模式

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

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

x


我使用的是下面这个CG脚本,可是在执行$scene = Scene_Picture_Gallery.new之后就直接跳出上面窗口的错误,请问应该怎么解决啊?谢谢~
RUBY 代码复制
  1. #==============================================================================
  2. # +++ MOG XP - Picture Gallery (v1.0) +++
  3. #==============================================================================
  4. # By Moghunter
  5. # [url]http://www.atelier-rgss.com/[/url]
  6. #==============================================================================
  7. # Sistema de galeria de imagens.
  8. #==============================================================================
  9. # Para ativar o script use o comando abaixo através de um evento usando o
  10. # comando chamar script. (Call Script)
  11. #
  12. # $scene = Scene_Picture_Gallery.new
  13. #
  14. #==============================================================================
  15. # Para disponibilizar as imagens na galeria você deverá usar o seguinte
  16. # código através do comando chamar script.
  17. #
  18. # $game_system.gallery[ID] = true
  19. #
  20. # EX   $game_system.gallery[10] = true
  21. #
  22. #==============================================================================
  23. # Você deverá criar uma pasta com o nome "Gallery" onde as imagens deverão
  24. # ser gravadas.
  25. #
  26. # Graphics/Gallery/
  27. #
  28. # A nomeação das imagens devem ser numéricas. (ID da imagem)
  29. # 0.jpg    (Imagem não disponível.)
  30. # 1.jpg
  31. # 2.jpg
  32. # 3.jpg
  33. # ...
  34. #
  35. # Prefira usar imagens com resoluções igual ou maior a 640x480 pixels.
  36. #
  37. #==============================================================================
  38. module MOG_PICTURE_GALLERY
  39.        #Quantidade maxima de imagens na galeria.
  40.        MAX_PICTURES = 40
  41. end  
  42.  
  43. #==============================================================================
  44. # ■ Game_System
  45. #==============================================================================
  46. class Game_System
  47.  
  48. attr_accessor :gallery
  49.  
  50. #------------------------------------------------------------------------------
  51. # ● Initialize
  52. #------------------------------------------------------------------------------   
  53. alias art_picture_initialize initialize
  54. def initialize
  55.       art_picture_initialize
  56.       @gallery = []
  57. end  
  58. end
  59.  
  60. #==============================================================================
  61. # ■ RPG
  62. #==============================================================================
  63. module RPG
  64.   module Cache
  65.     def self.gallery(filename)
  66.         self.load_bitmap("Graphics/Gallery/", filename)
  67.     end
  68.   end
  69. end
  70.  
  71. #==============================================================================
  72. # ■ Window_Base
  73. #==============================================================================
  74. class Window_Base < Window
  75.   #--------------------------------------------------------------------------
  76.   # Draw_Thumbnail
  77.   #--------------------------------------------------------------------------  
  78.   def draw_thumbnail(x,y,id)
  79.       image = RPG::Cache.gallery(id.to_s) rescue nil
  80.       return if image == nil
  81.       cw = image.width
  82.       ch = image.height
  83.       src_rect = Rect.new(0, 0, cw , ch)
  84.       src_rect2 = Rect.new(x, y, 150, 80)  
  85.       self.contents.stretch_blt(src_rect2, image, src_rect)
  86.   end
  87. end  
  88.  
  89. #==============================================================================
  90. # ■ Window_Picture
  91. #==============================================================================
  92. class Window_Picture < Window_Selectable
  93.  
  94. #------------------------------------------------------------------------------
  95. # ● Initialize
  96. #------------------------------------------------------------------------------   
  97.   def initialize(page)
  98.       super(0, 64, 640, 365)
  99.       self.opacity = 0
  100.       @column_max = 3
  101.       @page = page
  102.       @pic_max = MOG_PICTURE_GALLERY::MAX_PICTURES
  103.       @pic_max = 1 if @pic_max <= 0
  104.       @pag_max = @pic_max / 9
  105.       if @pag_max == page
  106.          o = @pag_max * 9
  107.          o2 =  @pic_max - o
  108.          @item_max = o2
  109.       else
  110.          @item_max = 9
  111.       end  
  112.       refresh(page)
  113.       self.index = 0
  114.   end
  115.  
  116. #------------------------------------------------------------------------------
  117. # ● Refresh
  118. #------------------------------------------------------------------------------   
  119.   def refresh(page = 0)
  120.       if self.contents != nil
  121.          self.contents.dispose
  122.          self.contents = nil
  123.       end
  124.       if @item_max > 0
  125.          self.contents = Bitmap.new(width - 32, row_max * 110)
  126.          for i in 0...@item_max
  127.             draw_item(i,page)
  128.          end
  129.       end
  130.   end
  131.  
  132. #------------------------------------------------------------------------------
  133. # ● draw_item
  134. #------------------------------------------------------------------------------   
  135.   def draw_item(index,page)
  136.       np = 9 * page
  137.       picture_number = index + 1 + np
  138.       x = 15 + index % 3 * 215
  139.       y = 12 + index / 3 *110
  140.       s = picture_number
  141.       s = 0 if $game_system.gallery[picture_number] == nil
  142.       draw_thumbnail(x,y,s)
  143.       self.contents.draw_text(x + 45,y + 70, 64, 32, "N - " + picture_number.to_s,1)
  144.   end
  145.  
  146. #------------------------------------------------------------------------------
  147. # ● update_cursor_rect
  148. #------------------------------------------------------------------------------   
  149.   def update_cursor_rect
  150.       if @index < 0
  151.          self.cursor_rect.empty
  152.          return
  153.       end
  154.       row = @index / @column_max
  155.       if row < self.top_row
  156.          self.top_row = row
  157.       end
  158.       if row > self.top_row + (self.page_row_max - 1)
  159.          self.top_row = row - (self.page_row_max - 1)
  160.       end
  161.       cursor_width = self.width / @column_max - 32
  162.       x = index % 3 * 215
  163.       y = index / 3 *110
  164.       self.cursor_rect.set(x, y, cursor_width, 105)
  165.   end   
  166. end
  167.  
  168. #==============================================================================
  169. # ■ Scene_ArtPictures
  170. #==============================================================================
  171. class Scene_Picture_Gallery
  172. include MOG_PICTURE_GALLERY
  173.  
  174. #------------------------------------------------------------------------------
  175. # ● Main
  176. #------------------------------------------------------------------------------     
  177. def main
  178.      setup
  179.      create_background
  180.      create_window
  181.      create_image
  182.      create_cursor
  183.      create_button
  184.      execute_loop
  185.      execute_dispose
  186. end
  187.  
  188. #------------------------------------------------------------------------------
  189. # ● Setup
  190. #------------------------------------------------------------------------------      
  191. def setup
  192.      @max_pictures = MAX_PICTURES
  193.      @max_pictures = 1 if @max_pictures <= 0
  194.      v = (@max_pictures / 9)
  195.      v2 = (v - 1) * 9
  196.      v3 = (@max_pictures - v2) - 9
  197.      if v3 != 0
  198.         @max_pages = (@max_pictures / 9) + 1
  199.      else
  200.         @max_pages = (@max_pictures / 9)
  201.      end  
  202.      @max_pages = 1 if @max_pages == 0
  203.      @aw_center = 0
  204.      @aw_left = 0
  205.      @aw_right = 0
  206.      @slide_type = 0
  207.      @page_old = 0
  208.      @picture_id = 0
  209.      @image_active = false
  210.      @old_index = 0
  211.      @picures_enabled = 0
  212.      @comp = 0
  213.      @ex = 0
  214.      @ey = 0
  215.      @ex_max = 0
  216.      @ey_max = 0
  217.      @ex_max_zoom = 0
  218.      @ey_max_zoom = 0
  219.      for i in 0..MAX_PICTURES
  220.          @picures_enabled += 1 if $game_system.gallery[i]
  221.      end  
  222. end  
  223.  
  224. #------------------------------------------------------------------------------
  225. # ● create_background
  226. #------------------------------------------------------------------------------        
  227. def create_background
  228.      @background = Sprite.new
  229.      @background.bitmap = RPG::Cache.gallery("Background")  
  230.      @background.z = 0
  231.      @background2 = Plane.new
  232.      @background2.bitmap = RPG::Cache.gallery("Background2")      
  233.      @background2.z = -1
  234. end
  235.  
  236. #------------------------------------------------------------------------------
  237. # ● Create Window
  238. #------------------------------------------------------------------------------      
  239. def create_window
  240.      @info = Window_Help.new
  241.      @info.y = 416
  242.      @info.opacity = 0
  243.      @wp_page = 0
  244.      @wp_page_old = @wp_page
  245.      @wp_index = 0
  246.      @wp =[]
  247.      for i in 0...@max_pages
  248.          @wp[i] = Window_Picture.new(i)
  249.          @wp[i].x = 32 * i
  250.      end  
  251.      check_active_window(true)
  252.      refresh_info_window(true)
  253. end
  254.  
  255. #------------------------------------------------------------------------------
  256. # ● Create_image
  257. #------------------------------------------------------------------------------        
  258. def create_image
  259.      @picture = Sprite.new
  260.      @picture.bitmap = RPG::Cache.gallery("")
  261.      @picture.z = 100
  262.      @picture.opacity = 0
  263. end
  264.  
  265. #------------------------------------------------------------------------------
  266. # ● Check Active Window
  267. #------------------------------------------------------------------------------      
  268. def check_active_window(starting = false)
  269.      for i in 0...@max_pages
  270.         if i == @wp_page
  271.             @wp[@wp_page].active = true
  272.             @wp[@wp_page].visible = true
  273.             if @slide_type == 0   
  274.                @wp[@wp_page].x = 640
  275.             else
  276.                @wp[@wp_page].x = -640
  277.             end   
  278.          elsif i == @page_old  and starting == false
  279.             @wp[@page_old].active = false
  280.             @wp[@page_old].visible = true
  281.             @wp[@page_old].visible = false if starting
  282.             @wp[@page_old].x = 0     
  283.          else   
  284.             @wp[i].active = false
  285.             @wp[i].visible = false
  286.          end   
  287.      end  
  288. end
  289.  
  290. #------------------------------------------------------------------------------
  291. # ● Create Button
  292. #------------------------------------------------------------------------------      
  293. def create_button
  294.      @button_image = RPG::Cache.gallery("Button")
  295.      @button_bitmap =  Bitmap.new(@button_image.width, @button_image.height)
  296.      @cw = @button_image.width
  297.      @ch = @button_image.height / 2
  298.      src_rect = Rect.new(0, 0, @cw, @ch)
  299.      @button_bitmap .blt(0,0, @button_image, src_rect)           
  300.      @button = Sprite.new
  301.      @button.bitmap = @button_bitmap
  302.      @button.y = 443
  303.      @button.z = 250
  304.      @button.opacity = 0
  305.      @button_fade_time = 0
  306. end
  307.  
  308. #------------------------------------------------------------------------------
  309. # ● Create Cursor
  310. #------------------------------------------------------------------------------      
  311. def create_cursor
  312.      @cx1 = 0
  313.      @cx2 = 0
  314.      @cursor_speed = 0
  315.      image = RPG::Cache.gallery("Cursor")
  316.      @bitmap = Bitmap.new(image.width, image.height)
  317.      cw = image.width / 2
  318.      ch = image.height
  319.      src_rect = Rect.new(cw, 0, cw, ch)
  320.      @bitmap.blt(0,0, image, src_rect)     
  321.      @cursor1 = Sprite.new
  322.      @cursor1.bitmap = @bitmap
  323.      @cursor1.x = 0 + @cx1
  324.      @cursor1.y = 220
  325.      @cursor1.z = 200
  326.      @bitmap2 = Bitmap.new(image.width, image.height)
  327.      src_rect2 = Rect.new(0, 0, cw, ch)
  328.      @bitmap2.blt(0,0, image, src_rect2)         
  329.      @cursor2 = Sprite.new
  330.      @cursor2.bitmap = @bitmap2
  331.      @cursor2.x = 610 + @cx2
  332.      @cursor2.y = 220
  333.      @cursor2.z = 200
  334.      image.dispose
  335.      if @max_pages == 1
  336.         @cursor1.visible = false
  337.         @cursor2.visible = false
  338.      end   
  339. end
  340.  
  341. #------------------------------------------------------------------------------
  342. # ● Execute Loop
  343. #------------------------------------------------------------------------------     
  344. def execute_loop
  345.      Graphics.transition
  346.      loop do
  347.           Graphics.update
  348.           Input.update
  349.           update
  350.           if $scene != self
  351.               break
  352.           end
  353.      end
  354. end
  355.  
  356. #------------------------------------------------------------------------------
  357. # ● Execute Dispose
  358. #------------------------------------------------------------------------------      
  359. def execute_dispose
  360.      Graphics.freeze
  361.      for i in 0...@max_pages
  362.          @wp[i].dispose
  363.      end   
  364.      @info.dispose
  365.      if @picture.bitmap != nil
  366.         @picture.bitmap.dispose
  367.      end
  368.      @picture.dispose
  369.      @background.bitmap.dispose
  370.      @background.dispose
  371.      @background2.bitmap.dispose
  372.      @background2.dispose     
  373.      @bitmap.dispose
  374.      @bitmap2.dispose
  375.      @cursor1.bitmap.dispose
  376.      @cursor1.dispose     
  377.      @cursor2.bitmap.dispose
  378.      @cursor2.dispose
  379.      @button_bitmap.dispose
  380.      @button.bitmap.dispose
  381.      @button.dispose
  382.      @button_image.dispose
  383. end
  384.  
  385. #------------------------------------------------------------------------------
  386. # ● Update
  387. #------------------------------------------------------------------------------      
  388. def update
  389.      @wp[@wp_page].update
  390.      @info.update
  391.      if @image_active  
  392.         update_command_image
  393.      else   
  394.         update_command
  395.      end   
  396.      update_slide
  397.      update_image_effect
  398.      update_cursor_animation
  399.      refresh_info_window
  400. end  
  401.  
  402. #------------------------------------------------------------------------------
  403. # ● update_cursor_animation
  404. #------------------------------------------------------------------------------        
  405. def update_cursor_animation
  406.      @cursor_speed += 1
  407.      case @cursor_speed
  408.         when 1..20
  409.            @cx1 += 1
  410.            @cx2 -= 1
  411.         when 21..40
  412.            @cx1 -= 1
  413.            @cx2 += 1         
  414.         else  
  415.         @cursor_speed = 0
  416.         @cx1 = 0
  417.         @cx2 = 0
  418.      end
  419.      @cursor1.x = 0 + @cx1
  420.      @cursor2.x = 610 + @cx2
  421. end
  422.  
  423. #------------------------------------------------------------------------------
  424. # ● Update Image Effect
  425. #------------------------------------------------------------------------------      
  426. def update_image_effect
  427.      return if @wp[@wp_page].x != 0
  428.      @button_fade_time -= 1 if @button_fade_time > 0
  429.      if @image_active
  430.         @picture.opacity += 25
  431.         if @button_fade_time != 0
  432.            @button.opacity += 10
  433.         else   
  434.            if @button.y < 640   
  435.               @button.opacity -= 15
  436.               @button.y += 1
  437.            end   
  438.         end  
  439.         @wp[@wp_page].contents_opacity -= 25
  440.         @info.contents_opacity -= 25
  441.         @background.opacity -= 25
  442.         @cursor1.opacity -= 25
  443.         @cursor2.opacity -= 25
  444.      else  
  445.         @picture.opacity -= 10
  446.         @button.opacity -= 25
  447.         @wp[@wp_page].contents_opacity += 25
  448.         @info.contents_opacity += 25
  449.         @background.opacity += 25
  450.         @cursor1.opacity += 25
  451.         @cursor2.opacity += 25        
  452.      end  
  453. end
  454.  
  455. #------------------------------------------------------------------------------
  456. # ● Refresh Info Window
  457. #------------------------------------------------------------------------------      
  458. def refresh_info_window(starting = false)
  459.      return if @image_active
  460.      return if @wp_page_old == @wp_page and starting == false   
  461.      @wp_page_old = @wp_page
  462.      page = @wp_page + 1
  463.      @picture_id = (9 * @wp_page) + @wp[@wp_page].index  + 1
  464.      p_pages = "Page - " + page.to_s + " / " + @max_pages.to_s
  465.      comp  = "          Completed " + (@picures_enabled.to_f / @max_pictures.to_f * 100).truncate.to_s + "%"
  466.      p_number = "          Pictures " + @picures_enabled.to_s + " / " + @max_pictures.to_s
  467.      @info.set_text("            " + p_pages + comp + p_number)
  468. end   
  469.  
  470. #------------------------------------------------------------------------------
  471. # ● Update Slide
  472. #------------------------------------------------------------------------------      
  473. def update_slide
  474.      @background2.ox += 1
  475.      return if @wp[@wp_page].x == 0  
  476.      slide_speed = 35
  477.      @picture.opacity = 0
  478.      @background.opacity = 255
  479.      if @slide_type == 1     
  480.         if @wp[@wp_page].x < 0
  481.            @wp[@wp_page].x += slide_speed
  482.            if @wp[@wp_page].x >= 0
  483.               @wp[@wp_page].x = 0
  484.            end
  485.          end
  486.         if @wp[@page_old].x < 640
  487.            @wp[@page_old].x += slide_speed
  488.            if @wp[@page_old].x >= 640
  489.               @wp[@page_old].x = 640
  490.            end
  491.          end         
  492.        else     
  493.          if @wp[@wp_page].x > 0
  494.             @wp[@wp_page].x -= slide_speed
  495.             if @wp[@wp_page].x <= 0  
  496.                @wp[@wp_page].x = 0
  497.             end   
  498.          end
  499.          if @wp[@page_old].x > -640
  500.             @wp[@page_old].x -= slide_speed
  501.             if @wp[@page_old].x <= -640
  502.                @wp[@page_old].x = -640
  503.             end
  504.          end           
  505.        end
  506.        if @slide_type == 0   
  507.           @wp[@wp_page].x = 0 if @wp[@wp_page].x <= 0  
  508.        else
  509.            @wp[@wp_page].x = 0 if @wp[@wp_page].x >= 0
  510.        end  
  511. end
  512.  
  513. #------------------------------------------------------------------------------
  514. # ● Check_limite
  515. #------------------------------------------------------------------------------        
  516. def check_limit
  517.      if @wp_page < 0
  518.         @wp_page = @max_pages - 1
  519.      elsif @wp_page >= @max_pages   
  520.         @wp_page = 0   
  521.      end
  522.      check_active_window
  523. end  
  524.  
  525. #------------------------------------------------------------------------------
  526. # ● Update Command Image
  527. #------------------------------------------------------------------------------        
  528. def update_command_image
  529.      if Input.trigger?(Input::B) or Input.trigger?(Input::C)
  530.         $game_system.se_play($data_system.cursor_se)
  531.         @image_active = false
  532.         @wp[@wp_page].active = true
  533.         return
  534.      end   
  535.      if Input.trigger?(Input::R) or Input.trigger?(Input::L)
  536.         $game_system.se_play($data_system.cursor_se)
  537.         execute_zoom      
  538.      end  
  539.      if Input.press?(Input::RIGHT)
  540.         @ex += 6
  541.      elsif Input.press?(Input::LEFT)
  542.         @ex -= 6
  543.      elsif Input.press?(Input::DOWN)
  544.         @ey += 6
  545.      elsif Input.press?(Input::UP)   
  546.         @ey -= 6
  547.      end  
  548.      @ex = @ex_max + @ex_max_zoom if @ex > @ex_max + @ex_max_zoom
  549.      @ex = 0 if @ex < 0
  550.      @ey = @ey_max + @ey_max_zoom if @ey > @ey_max + @ey_max_zoom
  551.      @ey = 0 if @ey < 0        
  552.      @picture.x = -@ex
  553.      @picture.y = -@ey
  554. end  
  555.  
  556. #------------------------------------------------------------------------------
  557. # ● Execute Zoom
  558. #------------------------------------------------------------------------------         
  559. def execute_zoom
  560.      if @picture.zoom_x == 1.0
  561.         @picture.zoom_x = 1.5
  562.         @picture.zoom_y = 1.5
  563.         refresh_button(1)
  564.         @ex_max_zoom = (@picture.bitmap.width / 2)
  565.         if @ex != @ex_max
  566.            @ex += @ex_max_zoom / 2         
  567.         else   
  568.            if @ex_max != 0   
  569.               @ex += @ex_max_zoom
  570.            else   
  571.               @ex += @ex_max_zoom / 2
  572.            end  
  573.         end  
  574.         @ey_max_zoom = (@picture.bitmap.height / 2)
  575.         if @ey != @ey_max
  576.            @ey += @ey_max_zoom / 2         
  577.         else   
  578.            if @ey_max != 0   
  579.               @ey += @ey_max_zoom
  580.            else   
  581.               @ey += @ey_max_zoom / 2
  582.            end  
  583.          end  
  584.       else
  585.         if @picture.bitmap.width > 640 or
  586.            @picture.bitmap.height > 480
  587.            refresh_button(1)
  588.         else
  589.            refresh_button(0)
  590.         end           
  591.         @ex -= @ex_max_zoom / 2
  592.         @ey -= @ey_max_zoom / 2           
  593.         @picture.zoom_x = 1.0
  594.         @picture.zoom_y = 1.0   
  595.         @ex_max_zoom = 0
  596.         @ey_max_zoom = 0
  597.      end     
  598. end  
  599.  
  600. #------------------------------------------------------------------------------
  601. # ● check_avaliable_picture?
  602. #------------------------------------------------------------------------------        
  603. def check_avaliable_picture?
  604.      @picture_id = (9 * @wp_page) + @wp[@wp_page].index  + 1
  605.      return false if $game_system.gallery[@picture_id] == nil
  606.      return true
  607. end  
  608.  
  609. #------------------------------------------------------------------------------
  610. # ● create_bitmap
  611. #------------------------------------------------------------------------------        
  612. def create_bitmap
  613.      @picture.opacity = 0
  614.      @picture.bitmap.dispose
  615.      @picture.bitmap = RPG::Cache.gallery(@picture_id.to_s) rescue nil
  616.      @ex = 0
  617.      @ey = 0
  618.      @ex_max_zoom = 0
  619.      @ey_max_zoom = 0
  620.      @picture.zoom_x = 1.0
  621.      @picture.zoom_y = 1.0      
  622.      if @picture.bitmap == nil
  623.         @picture.bitmap = RPG::Cache.gallery("")
  624.         refresh_button(0)
  625.         return
  626.      end  
  627.      if @picture.bitmap.width > 640
  628.         @ex_max = @picture.bitmap.width - 640
  629.      else
  630.         @ex_max = 0
  631.      end
  632.      if @picture.bitmap.height > 480
  633.         @ey_max = @picture.bitmap.height - 480  
  634.      else
  635.         @ey_max = 0
  636.      end   
  637.      if @picture.bitmap.width > 640 or
  638.         @picture.bitmap.height > 480
  639.         refresh_button(1)
  640.      else
  641.         refresh_button(0)
  642.      end
  643. end  
  644.  
  645. #------------------------------------------------------------------------------
  646. # ● Refresh Button
  647. #------------------------------------------------------------------------------        
  648. def refresh_button(type = 0)
  649.      @button.bitmap.clear
  650.      if type == 0
  651.         src_rect = Rect.new(0, 0, @cw, @ch)
  652.      else
  653.         src_rect = Rect.new(0, @ch, @cw, @ch)
  654.      end  
  655.      @button_bitmap .blt(0,0, @button_image, src_rect)  
  656.      @button.y = 443
  657.      @button_fade_time = 120
  658.      @button.opacity = 0 unless @button.y == 443
  659. end   
  660.  
  661. #------------------------------------------------------------------------------
  662. # ● Update Command
  663. #------------------------------------------------------------------------------      
  664. def update_command
  665.      return if @wp[@wp_page].x != 0
  666.      if Input.trigger?(Input::B)
  667.         $game_system.se_play($data_system.cursor_se)
  668.         $scene = Scene_Map.new
  669.         return
  670.      end
  671.      if Input.trigger?(Input::C)
  672.         if check_avaliable_picture?
  673.            $game_system.se_play($data_system.decision_se)
  674.            @image_active = true
  675.            @wp[@wp_page].active = false
  676.            create_bitmap
  677.         else
  678.           $game_system.se_play($data_system.buzzer_se)
  679.         end
  680.         return
  681.      end  
  682.      if Input.trigger?(Input::L) and @max_pages != 1
  683.         $game_system.se_play($data_system.cursor_se)
  684.         @page_old = @wp_page
  685.         @wp_page -= 1
  686.         @slide_type = 1
  687.         check_limit
  688.         return
  689.      elsif Input.trigger?(Input::R) and @max_pages != 1   
  690.         $game_system.se_play($data_system.cursor_se)
  691.         @page_old = @wp_page
  692.         @wp_page += 1
  693.         @slide_type = 0
  694.         check_limit
  695.         return
  696.      end  
  697. end  
  698. end  
  699.  
  700. $mog_xp_picture_gallery = true


Lv5.捕梦者 (管理员)

老黄鸡

梦石
0
星屑
41081
在线时间
7566 小时
注册时间
2009-7-6
帖子
13498

开拓者贵宾

2
发表于 2017-11-5 00:22:01 | 只看该作者
看起来是有其他脚本覆盖了Game_System的初始化方法,导致这个CG列表没初始化。
RGDirect - DirectX驱动的RGSS,点我了解.
RM全系列成套系统定制请联系QQ1213237796
不接受对其他插件维护的委托
回复 支持 反对

使用道具 举报

Lv3.寻梦者

梦石
0
星屑
2724
在线时间
227 小时
注册时间
2016-3-27
帖子
576
3
发表于 2017-11-5 11:48:47 | 只看该作者
你新建一个游戏然后把这个脚本放进去,然后在放你之前那个工程的脚本,一个个放,每放一次点开测试一下,看看是哪个脚本冲突了
现在还能改名吗qwq
回复 支持 反对

使用道具 举报

Lv4.逐梦者

「Pemercyia」


Urhurrenna

梦石
0
星屑
9397
在线时间
2748 小时
注册时间
2008-9-5
帖子
3543

开拓者短篇八RM组冠军短篇九导演组亚军白银编剧

4
发表于 2017-11-5 13:19:02 | 只看该作者
全局搜索一下【class Game_System】,应该有其他脚本重写了初始化,
可以把这个cg脚本放在其他写过【Game_System】的脚本的下边。

点评

顺便就是可能加了CG脚本之后读档进入游戏了?  发表于 2017-11-5 13:19
回复 支持 反对

使用道具 举报

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

本版积分规则

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

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

GMT+8, 2024-9-21 16:16

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

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