Add files via upload

This commit is contained in:
bakustarver 2024-12-03 06:56:29 +02:00 committed by GitHub
parent 934b6d5e4f
commit f1e9ca1fe7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -21,14 +21,20 @@ module Preload
Patch.new("Advanced Text System fix")
.include?('Advanced Text System')
.include?('modern algebra (rmrk.net)')
# .remove!,
.replace!("Advanced-Text-System.rb"),
# # .remove!,
.replace!("Advanced-Text-System-.rb"),
Patch.new("rpgmaker vx window crash")
.include?('class Window_Command < Window_Selectable')
.include?('def initialize(width, commands, column_max = 1, row_max = 0, spacing = 32)')
.sub!("if row_max == 0", " if commands.is_a?(Hash)\ncommands = commands.values\nend\nif row_max == 0"),
Patch.new("NWConst::Warp plugin fix")
.include?('module NWConst::Warp')
.include?('@popup_confirm_window.select(0)')
.sub!('@popup_confirm_window.select(0)', "items = @popup_confirm_window.instance_variable_get(:@list)\nif items.is_a?(Array) && !items.empty?\n@popup_confirm_window.select(0)\nend"),
# .if? {|script| script.source&.gsub!('@popup_confirm_window.select(0)', 'items = @popup_confirm_window.instance_variable_get(:@list)')&.gsub!('@popup_confirm_window.select(0)', "if items.is_a?(Array) && !items.empty?\n@popup_confirm_window.select(0)\nend") },
# .replace!("tempcheckwarp.rb"),
Patch.new("class Scene_MultiPartyEdit") ##パーティ分割_scene.rb
.include?('class Scene_MultiPartyEdit < Scene_MenuBase')
.include?('@popup_confirm_window.show.activate.select(0)')
.sub!('@popup_confirm_window.show.activate.select(0)', "if @popup_confirm_window.show.activate.is_a?(Array) && @popup_confirm_window.show.activate.empty?\n@popup_confirm_window.show.activate.select(0)\nend"),
Patch.new("NWRegexpBaseItemfix plugin fix")
.include?('module NWConst::Shop')
# .replace!("NWRegexpBaseItemfix.rb"),
@ -71,19 +77,19 @@ module Preload
Patch.new("WF-RGSS base patch") #【WF-RGSS】共通rev29 base
.include?("MultiByteToWideChar")
.include?("to_widechar(")
# .match?(/module WFRGSS\$/)
# .if? {|script| script.source.match? '/.*module WFRGSS\$/'}
# .remove!,
.replace!("testencode.rb"), #Window_Base
Patch.new("window check content height fix (mgq paradox)")
.replace!("testencode.rb"),
Patch.new("window check content height fix (mgq paradox)") #Window_Base
.if? {|script| script.name == "Window_Base"}
# .replace!("basewt.rb"),
.sub!("if contents_width > 0 && contents_height > 0", " if contents_height > 10000\nself.contents = Bitmap.new(1, 1)\nelsif contents_width > 0 && contents_height > 0"),
.sub!("if contents_width > 0 && contents_height > 0", "if contents_height > 10000\nself.contents = Bitmap.new(1, 1)\nelsif contents_width > 0 && contents_height > 0")
.sub!("result = text.to_s.clone","result = text.to_s.clone\nresult = result.dup if result.frozen?"),
Patch.new("temp bitmap load crash fix monster girl paradox disable preview") #ベース/Module
#maybe the memory buffer is filled up too much??
# .if? {|script| script.name == "Window_Base"}
.include?('thumnail_file = "Save/Save#{Regexp.last_match(1)}.png"')
.sub!("@thumbnails[Regexp.last_match(1).to_i - 1] = Bitmap.new(thumnail_file)", "@thumbnails[Regexp.last_match(1).to_i - 1] = @dummy_thumbnail #Bitmap.new(thumnail_file)"),
# #maybe the memory buffer is filled up too much??
# # .if? {|script| script.name == "Window_Base"}
.include?('thumnail_file = "Save/Save#{Regexp')
# .sub!("@thumbnails[Regexp.last_match(1).to_i - 1] = Bitmap.new(thumnail_file)", "@thumbnails[Regexp.last_match(1).to_i - 1] = @dummy_thumbnail #Bitmap.new(thumnail_file)")
.sub!("@thumbnails[Regexp.last_match(1).to_i - 1] = Bitmap.new(thumnail_file)", "@thumbnails[Regexp.last_match(1).to_i - 1] = @dummy_thumbnail #Bitmap.new(thumnail_file)"),
# .replace!("base_Module.rb"),
# .replace!("savebitmanwin32api.rb"),
Patch.new("WF-RGSS Exit-EX patch test") #▼ メイン【WF-RGSS】Exit-EX 終了処理
.include?("Win32API.new('System/WFExit','hookExit','v','l')")
@ -214,6 +220,10 @@ module Preload
.imported?(nil)
.include?('text.push(self.to_s.scan(/#<(\S+):/)[0][0].to_s)')
.remove!,
Patch.new("Diesel_ADV")
.imported?(nil)
.include?('Diesel_ADV')
.sub!("b.visible = now", "b.visible = !!now"),
# Patch.new("tktk_bitmap dll test debug")
# .imported?(nil)
# .include?("DLL_NAME = 'tktk_bitmap'")
@ -224,12 +234,26 @@ module Preload
.include?("HN_Light version")
.include?("tktkgame")
.sub!("@dark_sprite.update", "@dark_sprite.dispose"),
# .replace!("lamp.rb"),
Patch.new("message_npi fix")
.imported?(nil)
.include?("module MessageTextDataBase")
.include?("BlueRedZone")
# #.sub!("@dark_sprite.update", "@dark_sprite.dispose"),
.replace!("message_npi.rb"),
Patch.new("Flirt quest")
.imported?(nil)
.include?('class Spriteset_BattleUnit')
.include?('Spriteset_Kiseki')
.sub!(/\bsuper\b(?!\s*\()/, 'super()'),
Patch.new("test subscribe")
.imported?(nil)
.include?("exit if steam.is_subscribed != true")
.remove!,
Patch.new("module ScreenShot")
.imported?(nil)
.include?("module ScreenShot")
.include?("http://d.hatena.ne.jp/ku-ma-me/20091003/p1")
.remove!,
]
end