glen and light update fix

This commit is contained in:
Issac332 2026-07-09 16:28:17 +03:00
parent 0b3ae5954e
commit 45d4f10828
9 changed files with 33 additions and 8 deletions

View file

@ -118,7 +118,7 @@ module RPG
end end
def self.clear def self.clear
@cache = {} @cache = {}
GC.start __send__(:gc) if respond_to?(:gc, true)
end end
end end

View file

@ -363,6 +363,12 @@ class Window_Settings
:parameter => :controls_debug, :parameter => :controls_debug,
:bind => Input::DEBUGACTION :bind => Input::DEBUGACTION
}, },
{ :type => :sep },
{
:type => :action,
:name => tr("Clear image cache"),
:action => Proc.new { RPG::Cache.clear }
}
], ],
} }
end end

View file

@ -760,6 +760,7 @@ class Window_Settings
@func.call(@arg1, @arg2, @arg3, @arg4) @func.call(@arg1, @arg2, @arg3, @arg4)
end end
@settings_content.redraw_all @settings_content.redraw_all
$game_system.se_play($data_system.buzzer_se)
end end
end end
end end

View file

@ -20,6 +20,9 @@ class Game_Picture
attr_reader :blend_type # blend method attr_reader :blend_type # blend method
attr_reader :tone # color tone attr_reader :tone # color tone
attr_reader :angle # rotation angle attr_reader :angle # rotation angle
attr_accessor :width
attr_accessor :height
#-------------------------------------------------------------------------- #--------------------------------------------------------------------------
# * Object Initialization # * Object Initialization
# number : picture number # number : picture number
@ -45,6 +48,9 @@ class Game_Picture
@tone_duration = 0 @tone_duration = 0
@angle = 0 @angle = 0
@rotate_speed = 0 @rotate_speed = 0
@width = 0
@height = 0
RPG::Mod.exec_hooks("hooks/Game_Picture/init", binding) RPG::Mod.exec_hooks("hooks/Game_Picture/init", binding)
end end
#-------------------------------------------------------------------------- #--------------------------------------------------------------------------

View file

@ -273,12 +273,16 @@ class Interpreter
formated_script << "%3d | %s\n" % [index, line.chomp] formated_script << "%3d | %s\n" % [index, line.chomp]
end end
end end
result = "[EVENT] Failed to execute event script | " + event_info result = "\n[EVENT] Failed to execute event script | " + event_info
result << "\n-----------------------------------------\n" result << "\n------------------------------------------\n"
result << formated_script result << formated_script
result << "-----------------------------------------\n" result << "------------------------------------------\n"
result << e.message result << e.message
result << "\n-----------------------------------------\n" result << "\n----------------Backtrace-----------------\n"
e.backtrace.each do |line|
result << "#{line}\n"
end
result << "------------------------------------------\n"
STDERR.puts result STDERR.puts result
end end
return true return true

View file

@ -9,10 +9,16 @@
# save unless $game_switches[99] || ($game_system.map_interpreter.running? || !$scene.is_a?(Scene_Map)) # save unless $game_switches[99] || ($game_system.map_interpreter.running? || !$scene.is_a?(Scene_Map))
#end #end
class Float
def to_f
return self
end
end
begin begin
RPG::Mod.exec_hooks("hooks/Main/start", binding) RPG::Mod.exec_hooks("hooks/Main/start", binding)
$console = Graphics.fullscreen $console = Graphics.fullscreen
Graphics.frame_rate = 60 Graphics.frame_rate = 60
Font.default_size = 20 Font.default_size = 20
#debug shit #debug shit
Input.set_led(255, 150, 30) Input.set_led(255, 150, 30)

View file

@ -79,7 +79,7 @@ class Particle_Firefly < Particle
@wavelength = rand(120..240) @wavelength = rand(120..240)
@vx = rand(0.2..1.5) * (rand(2) * 2 - 1) @vx = rand(0.2..1.5) * (rand(2) * 2 - 1)
@vy = rand(0.2..1.5) * (rand(2) * 2 - 1) @vy = rand(0.2..1.5) * (rand(2) * 2 - 1)
@light_power = 0.5 @light_power = 1.0
self.light_scale = 0.2 self.light_scale = 0.2
self.scale = rand(0.02..0.08) self.scale = rand(0.02..0.08)
@sprite.blend_type = 1 @sprite.blend_type = 1

View file

@ -259,7 +259,6 @@ class Scene_Map
$game_temp.transition_processing = false $game_temp.transition_processing = false
# Execute transition # Execute transition
if $game_temp.transition_name == "" if $game_temp.transition_name == ""
update
Graphics.transition(20) Graphics.transition(20)
elsif $game_temp.transition_name == "black" elsif $game_temp.transition_name == "black"
@blackfade.visible = true @blackfade.visible = true

View file

@ -80,5 +80,8 @@ class Sprite_Picture < Sprite
# Set rotation angle and color tone # Set rotation angle and color tone
self.angle = @picture.angle self.angle = @picture.angle
self.tone = @picture.tone self.tone = @picture.tone
@picture.width = self.width * self.zoom_x
@picture.height = self.height * self.zoom_y
end end
end end