查看: 2832|回复: 4

[已经过期] 破限数据库战斗图不完整显示 出乱

[复制链接]
梦石
0
星屑
704
在线时间
91 小时
注册时间
2018-9-30
回帖
43
发表于 2019-5-11 01:55:15 | 显示全部楼层 |阅读模式

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

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

×
是这样的,自从用了这个破除数据库1000敌人上限脚本后,我的战斗图出问题了,
一个是正常的,一个是不正常的,这是什么原因啊,是因为这个破限脚本吗。
难受(●'◡'●)
到底是怎么回事啊。。。萌新求教







  1. # 这个    [url]https://rpg.blue/thread-303914-1-1.html[/url]    3楼喵呜喵5的,可以用
  2. #不过脚本旁边的“复制”功能好像失效了,自己复制下来的话需要换行OTL
  3. #下面是我自己弄好换行了的,看看行不行吧... ...

  4. # 0. 备份工程
  5. # 1. 把脚本扔到Main以上
  6. # 2.把 DLB_USE_IT 设置成 true(已经帮你设置好了)
  7. # 3. 36行设置你要破除限制的数据
  8. #(格式为:《'要破除限制的数据库' => 要增加到的数目,》包括逗号,不包括书名号)
  9. #(详细的格式请自己参考脚本内部的说明)
  10. #( # 'switch' for Game Switches
  11.     # 'variable' for Game Variables
  12.     # 'actor' for Actors
  13.     # 'class' for Classes
  14.     # 'skill' for Skills
  15.     # 'item' for Items
  16.     # 'weapon' for Weapons
  17.     # 'armor' for Armors
  18.     # 'enemy' for Enemies
  19.     # 'troop' for Troops
  20.     # 'state' for States
  21.     # 'tileset' for Tilesets (RMXP/RMVXA only)
  22.     # 'animation' for Animations
  23.     # 'commonev' for Common Events)
  24. #(举例:《'commonev' => 5000,》数据库中的公共事件变成5000个)
  25. # 4. 运行游戏
  26. # 5. 游戏运行后会自动关闭
  27. # 6. 不要保存,直接关闭编辑器
  28. # 7. 再次打开工程
  29. # 8. 删除这个脚本,破除限制完成

  30. #===============================================================
  31. # ● [XP/VX/VXA] ? Database Limit Breaker III ? □
  32. # * Break limit of data number in database files *
  33. #--------------------------------------------------------------
  34. # ? by Woratana [[email]woratana@hotmail.com[/email]]
  35. # ? Thaiware RPG Maker Community
  36. # ? Originally released on: 22/02/2008
  37. # ? Ported to VXAce by Mr. Bubble on: 30/12/2011
  38. #--------------------------------------------------------------

  39. #==========================================
  40. # ** HOW TO USE
  41. #------------------------------------------
  42. # [English]
  43. # 0. Open your project (Recommend to backup your database files first~)
  44. # 1. Paste this script in above 'Main'.
  45. # 2. Set DLB_USE_IT = true
  46. # 3. Setup database files you want to change, in DLB_DATA
  47. # 4. Run your game...
  48. # 5. When it finished, game will close itself
  49. # 6. Close your project *without save*
  50. # 7. Open your project again. Done!
  51. # 8. Set DLB_USE_IT = false. Leave this script in your Script Editor (XP/VX).
  52. #    If you are using VX Ace, you do not need to leave this script in your
  53. #    Script Editor.
  54. #==========================================   

  55. #===========================================================================  
  56. # [ENG] Use limit breaker? (set this to false after you run this script,  
  57. # and haven't change anything in DLB_DATA after that)  
  58. # or REMOVE this script when finished~  
  59. #+==========================================================================  
  60. DLB_USE_IT = true   # (true / false)   

  61. if DLB_USE_IT  # Do NOT edit this line   
  62. DLB_DATA = {   
  63. #======================================================   
  64. # [ENG] Database file you want to change their number~   
  65. # * Limit of normal database files are 999   
  66. # * Limit of variables and switches are 5000   
  67. # This script will allow you to change their number over their limit~   
  68. #===============================   
  69. # ** How to setup **   
  70. #-------------------------------   
  71. # Add 1 line below per 1 database file you want to change.   
  72. # Structure: 'Database_File' => (number),   
  73. # e.g. 'switch' => 5500,   
  74. # (* Don't forget to put , behind the line!)     

  75. #==============================================   
  76. # ** [List] Database_File **   
  77. #----------------------------------------------   
  78. # 'switch' for Game Switches     
  79. # 'variable' for Game Variables   
  80. # 'actor' for Actors     
  81. # 'class' for Classes     
  82. # 'skill' for Skills     
  83. # 'item' for Items     
  84. # 'weapon' for Weapons     
  85. # 'armor' for Armors     
  86. # 'enemy' for Enemies     
  87. # 'troop' for Troops   
  88. # 'state' for States     
  89. # 'tileset' for Tilesets (RMXP/RMVXA only)   
  90. # 'animation' for Animations     
  91. # 'commonev' for Common Events   
  92. #======================================================   
  93. # * START to setup from here!     
  94. #======================================================     

  95. 'actor' => 1011,     

  96. #========================================================   
  97. # * [END] Database Limit Breaker Setup Part   
  98. #========================================================   
  99. 'end' => nil # Close hash   
  100. }     

  101. if defined?(Audio.setup_midi) # VXA      
  102. dformat = '.rvdata2'   
  103. elsif defined?(Graphics.wait) # VX      
  104. dformat = '.rvdata'   
  105. else # XP      
  106. dformat = '.rxdata'   
  107. end   

  108. start_time = Time.now   
  109. DLB_DATA.each do |k,v|      
  110. dvar = nil      
  111. case k      
  112. when 'switch'; dname = 'System'; dvar = 'switches'; dnewdata = ''      
  113. when 'variable'; dname = 'System'; dvar = 'variables'; dnewdata = ''      
  114. when 'actor'; dname = 'Actors'; dnewdata = 'RPG::Actor.new'      
  115. when 'class'; dname = 'Classes'; dnewdata = 'RPG::Class.new'      
  116. when 'skill'; dname = 'Skills'; dnewdata = 'RPG::Skill.new'      
  117. when 'item'; dname = 'Items'; dnewdata = 'RPG::Item.new'      
  118. when 'weapon'; dname = 'Weapons'; dnewdata = 'RPG::Weapon.new'      
  119. when 'armor'; dname = 'Armors'; dnewdata = 'RPG::Armor.new'      
  120. when 'enemy'; dname = 'Enemies'; dnewdata = 'RPG::Enemy.new'      
  121. when 'troop'; dname = 'Troops'; dnewdata = 'RPG::Troop.new'      
  122. when 'state'; dname = 'States'; dnewdata = 'RPG::State.new'      
  123. when 'animation'; dname = 'Animations'; dnewdata = 'RPG::Animation.new'      
  124. when 'tileset'; dname = 'Tilesets'; dnewdata = 'RPG::Tileset.new'      
  125. when 'commonev'; dname = 'CommonEvents'; dnewdata = 'RPG::CommonEvent.new'      
  126. when 'end'; next      
  127. else; p 'unknown DLB_DATA!', 'Check carefully what you typed in DLB_DATA'      
  128. end      
  129. base_data = load_data('Data/' + dname + dformat)      
  130. data = dvar.nil? ? base_data : eval('base_data.' + dvar.to_s)      
  131. unless data.size > v and v - (data.size - 1) <= 0        
  132. add_data = Array.new(v - (data.size - 1)) { eval(dnewdata) }        
  133. data.push *add_data        
  134. save_data(base_data, 'Data/' + dname + dformat)      
  135. end   
  136. end   
  137. p 'Finished in ' + (Time.now - start_time).to_s + ' sec'   
  138. exit  
  139. end  

  140. # checks for VXAce since these methods do not need to be overwritten
  141. # in RGSS3.
  142. unless defined?(Audio.setup_midi)

  143. class Game_Switches  
  144. #--------------------------------------------------------------------------  
  145. # * Set Switch  
  146. #     Make the system be able to set switch ID more than 5000  
  147. #--------------------------------------------------------------------------  
  148. def []=(switch_id, value)   
  149. @data[switch_id] = value  
  150. end
  151. end

  152. class Game_Variables  
  153. #--------------------------------------------------------------------------  
  154. # * Set Variable  
  155. #     Make the system be able to set switch ID more than 5000  
  156. #--------------------------------------------------------------------------  
  157. def []=(variable_id, value)   
  158. @data[variable_id] = value  
  159. end
  160. end

  161. end  # unless defined?(Audio.setup_midi)

复制代码

不正常的

不正常的

正常的

正常的
想做一款 吞食天地2重制版 游戏

老黄鸡

梦石
4
星屑
46133
在线时间
7978 小时
注册时间
2009-7-6
回帖
13342

MZ评测员RM创作大赛01组委会开拓者贵宾

发表于 2019-5-11 13:39:47 | 显示全部楼层
看起来并不会导致这样的问题,应该是其他脚本的问题,
RGDirect - DirectX驱动的RGSS,点我了解.
(排满,暂停)RM全系列成套系统定制请联系QQ1213237796
不接受对其他插件维护的委托
回复

使用道具 举报

梦石
0
星屑
704
在线时间
91 小时
注册时间
2018-9-30
回帖
43
 楼主| 发表于 2019-5-12 16:40:40 | 显示全部楼层
fux2 发表于 2019-5-11 13:39
看起来并不会导致这样的问题,应该是其他脚本的问题,

就是超过1000以上的敌人,放到敌群,然后测试战斗不显示战斗图。啊
想做一款 吞食天地2重制版 游戏
回复

使用道具 举报

梦石
0
星屑
704
在线时间
91 小时
注册时间
2018-9-30
回帖
43
 楼主| 发表于 2019-5-12 16:59:27 | 显示全部楼层
超过1000以上的敌人,放到敌群测试战斗的时候战斗图就是像上面那样,不知道怎么回事。1000以内的什么问题都没有。我还用了战斗立绘芙蕾雅的
  1. =begin
  2. ・立ち絵の設定
  3.  アクターに設定されているフェイスグラフィックと同名のファイルを
  4.  Picturesフォルダから参照するようになっています。

  5.  よくわかんない人は次の通りに設定して下さい。
  6.  ?@ Picturesのフォルダに表示したい立ち絵をインポート。
  7.  ?A Facesのフォルダに同じ名前のフェイスグラフィックをインポート。
  8.    (同じファイル名であれば何でもよい)
  9.  ?B データベース上でアクターの顔グラフィックを?Aでインポートした
  10.    フェイスグラフィックに指定。

  11. ・立ち絵の変更
  12.  イベントコマンドでアクターのフェイスグラフィックを変更すれば、
  13.  立ち絵もPicturesフォルダ内の同じ名前のグラフィックに変更されます。

  14. ・表示位置、透明度の設定
  15.  スクリプトの最初の方の初期設定場所を書き換えて下さい。
  16.  基本的には書き替えなくてもOKなはずですが、
  17.  立ち絵の大きさ等によっては設定が必要になります。
  18. =end



  19. #==============================================================================
  20. # ■ RGSS3 戦闘コマンド入力中 立ち絵表示 ver 1.00
  21. #------------------------------------------------------------------------------
  22. #  配布元:
  23. #     白の魔 http://izumiwhite.web.fc2.com/
  24. #
  25. #  利用規約:
  26. #     RPGツクールVX Aceの正規の登録者のみご利用になれます。
  27. #     利用報告・著作権表示とかは必要ありません。
  28. #     改造もご自由にどうぞ。
  29. #     何か問題が発生しても責任は持ちません。
  30. #==============================================================================

  31. #--------------------------------------------------------------------------
  32. # ★ 初期設定。
  33. #    立ち絵の透明度設定と表示位置をズラします。
  34. #    このままでも大抵は問題無いハズ…。
  35. #    ここをいじっても駄目な場合は画像グラフィックそのものを加工しましょう。
  36. #--------------------------------------------------------------------------
  37. module WD_battlepicture_ini
  38. Picture_opacity = 200   #立ち絵の不透明度です。0(透明)〜255(不透明)で指定
  39. Picture_x = 0 +120         #立ち絵のx座標の位置調整
  40. Picture_y = 0 -50         #立ち絵のy座標の位置調整

  41. Hidepicture = true     #スキル、アイテム、ターゲット選択時に
  42.                          #立ち絵を消す場合はtrue
  43. end
  44. #--------------------------------------------------------------------------
  45. # ★ 初期設定おわり
  46. #--------------------------------------------------------------------------


  47. class Window_BattlePicture < Window_Base
  48.   #--------------------------------------------------------------------------
  49.   # ● オブジェクト初期化
  50.   #--------------------------------------------------------------------------
  51.   def initialize
  52.     super(-16, -16, 800+32, 600+32)
  53.   end
  54.   #--------------------------------------------------------------------------
  55.   # ● 立ち絵のセット
  56.   #--------------------------------------------------------------------------
  57.   def set(face_name)
  58.     self.contents.clear
  59.     bitmap1 = Cache.picture(face_name)
  60.     rect1 = Rect.new(0, 0, bitmap1.width, bitmap1.height)
  61.     x = 416-bitmap1.width/2 + WD_battlepicture_ini::Picture_x
  62.     y = 432-bitmap1.height + WD_battlepicture_ini::Picture_y
  63.     self.contents.blt(x, y, bitmap1, rect1, WD_battlepicture_ini::Picture_opacity)
  64.   end
  65. end

  66. class Scene_Battle < Scene_Base
  67.   #--------------------------------------------------------------------------
  68.   # ● 情報表示ビューポートの作成
  69.   #--------------------------------------------------------------------------
  70.   alias wd_orig_create_info_viewport_009 create_info_viewport
  71.   def create_info_viewport
  72.     @battle_picture_window = Window_BattlePicture.new
  73.     @battle_picture_window.hide
  74.     @battle_picture_window.opacity = 0
  75.     wd_orig_create_info_viewport_009
  76.   end
  77.   #--------------------------------------------------------------------------
  78.   # ● 次のコマンド入力へ
  79.   #--------------------------------------------------------------------------
  80.   alias wd_orig_next_command_009 next_command
  81.   def next_command
  82.     @battle_picture_window.hide
  83.     wd_orig_next_command_009
  84.   end
  85.   #--------------------------------------------------------------------------
  86.   # ● 前のコマンド入力へ
  87.   #--------------------------------------------------------------------------
  88.   alias wd_orig_prior_command_009 prior_command
  89.   def prior_command
  90.     @battle_picture_window.hide
  91.     wd_orig_prior_command_009
  92.   end
  93.   #--------------------------------------------------------------------------
  94.   # ● アクターコマンド選択の開始
  95.   #--------------------------------------------------------------------------
  96.   alias wd_orig_start_actor_command_selection_009 start_actor_command_selection
  97.   def start_actor_command_selection
  98.     wd_orig_start_actor_command_selection_009
  99.     @battle_picture_window.show
  100.     @battle_picture_window.set(BattleManager.actor.face_name)
  101.   end
  102.   #--------------------------------------------------------------------------
  103.   # ● コマンド[スキル]
  104.   #--------------------------------------------------------------------------
  105.   alias wd_orig_command_skill_009 command_skill
  106.   def command_skill
  107.     @battle_picture_window.hide if WD_battlepicture_ini::Hidepicture
  108.     wd_orig_command_skill_009
  109.   end
  110.   #--------------------------------------------------------------------------
  111.   # ● コマンド[アイテム]
  112.   #--------------------------------------------------------------------------
  113.   alias wd_orig_command_item_009 command_item
  114.   def command_item
  115.     @battle_picture_window.hide if WD_battlepicture_ini::Hidepicture
  116.     wd_orig_command_item_009
  117.   end
  118.   #--------------------------------------------------------------------------
  119.   # ● スキル[キャンセル]
  120.   #--------------------------------------------------------------------------
  121.   alias wd_orig_on_skill_cancel_009 on_skill_cancel
  122.   def on_skill_cancel
  123.     @battle_picture_window.show if WD_battlepicture_ini::Hidepicture
  124.     wd_orig_on_skill_cancel_009
  125.   end
  126.   #--------------------------------------------------------------------------
  127.   # ● アイテム[キャンセル]
  128.   #--------------------------------------------------------------------------
  129.   alias wd_orig_on_item_cancel_009 on_item_cancel
  130.   def on_item_cancel
  131.     @battle_picture_window.show if WD_battlepicture_ini::Hidepicture
  132.     wd_orig_on_item_cancel_009
  133.   end
  134.   #--------------------------------------------------------------------------
  135.   # ● 敵キャラ選択の開始
  136.   #--------------------------------------------------------------------------
  137.   alias wd_orig_select_enemy_selection_cancel_009 select_enemy_selection
  138.   def select_enemy_selection
  139.     @battle_picture_window.hide if WD_battlepicture_ini::Hidepicture
  140.     wd_orig_select_enemy_selection_cancel_009
  141.   end
  142.   #--------------------------------------------------------------------------
  143.   # ● 敵キャラ[キャンセル]
  144.   #--------------------------------------------------------------------------
  145.   alias wd_orig_on_enemy_cancel_009 on_enemy_cancel
  146.   def on_enemy_cancel
  147.     case @actor_command_window.current_symbol
  148.     when :attack
  149.       @battle_picture_window.show if WD_battlepicture_ini::Hidepicture
  150.     end
  151.     wd_orig_on_enemy_cancel_009
  152.   end
  153. end












  154. # F03 - 战斗显示脸图 - By芙蕾娅
  155. #------------------------------------------------------------------------------
  156. #  ★ - 新增  ☆ - 修改  ■ - 删除 ● - 无变更
  157. #==============================================================================
  158. # ■ Window_BattleStatus
  159. #------------------------------------------------------------------------------
  160. #  战斗画面中,显示“队伍成员状态”的窗口。
  161. #==============================================================================
  162. class Window_BattleStatus < Window_Selectable
  163.   #--------------------------------------------------------------------------
  164.   # ☆ 绘制角色战斗用肖像图
  165.   #     enabled : 有效的标志。false 的时候使用半透明效果绘制
  166.   #--------------------------------------------------------------------------
  167.   def draw_face(face_name, face_index, x, y, enabled = true)
  168.     bitmap = Cache.face(face_name)
  169.     rect = Rect.new(face_index % 4 * 96, face_index / 4 * 96 + 32, 96, 22)
  170.     contents.blt(x, y, bitmap, rect, enabled ? 255 : translucent_alpha)
  171.     bitmap.dispose
  172.   end
  173.   #--------------------------------------------------------------------------
  174.   # ☆ 绘制基本区域
  175.   #--------------------------------------------------------------------------
  176.   def draw_basic_area(rect, actor)
  177.     draw_actor_face(actor, rect.x, rect.y + 1)
  178.     contents.font.size = 16
  179.     draw_actor_name(actor, rect.x, rect.y + 4, 100)
  180.     contents.font.size = Font.default_size
  181.     draw_actor_icons(actor, rect.x + 104, rect.y, rect.width - 104)
  182.   end
  183. end
复制代码
战斗显示脸图。
想做一款 吞食天地2重制版 游戏
回复

使用道具 举报

梦石
0
星屑
704
在线时间
91 小时
注册时间
2018-9-30
回帖
43
 楼主| 发表于 2019-5-29 21:48:32 | 显示全部楼层
fux2 发表于 2019-5-11 13:39
看起来并不会导致这样的问题,应该是其他脚本的问题,

大佬我还用了Sideview战斗脚本,搜索战斗图看到了一些代码,但是看不懂啊。。。。能不能请教下哪里出问题了吗。。。唔,没空就算了(⊙﹏⊙)
想做一款 吞食天地2重制版 游戏
回复

使用道具 举报

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

本版积分规则

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

在本版发帖返回顶部