Fixes and updated

This commit is contained in:
DepressedTWM 2026-07-28 23:54:51 +04:00
parent 98c153037c
commit b9b77d30f8
3 changed files with 10 additions and 76 deletions

View file

@ -5,7 +5,6 @@ Ling faces updated
Magpie faces updated Magpie faces updated
Added ITS TIME FOR FIGHT CRIME setting(enabled fight_crime.ogg when niko on roomba) Added ITS TIME FOR FIGHT CRIME setting(enabled fight_crime.ogg when niko on roomba)
Added x86, ARM64 and IA-64 specific optimizations Added x86, ARM64 and IA-64 specific optimizations
Game Optimized
Added help screen in Settings Added help screen in Settings
"Skip Text (R)" fixed "Skip Text (R)" fixed
Fixed language selection Fixed language selection
@ -18,3 +17,5 @@ Dynamic light configured in Tower
Added SANITIZERS build option Added SANITIZERS build option
"Watcher" time check function fixed "Watcher" time check function fixed
Ruby CTime.hour added Ruby CTime.hour added
LoadQASave Deleted
TPtL translation issue fixed

View file

@ -162,23 +162,14 @@ module Script
end end
def self.countdown_over def self.countdown_over
if Settings[:pre_solstice_update_content]
return false
end
return true return true
end end
def self.countdown_extend_over def self.countdown_extend_over
if Settings[:pre_solstice_update_content]
return false
end
return true return true
end end
def self.cdown_update(equinox) def self.cdown_update(equinox)
if Settings[:pre_solstice_update_content]
diff = 10000
else
diff = 0 diff = 0
end end
seconds = diff % 60 seconds = diff % 60
@ -627,68 +618,6 @@ def check_exit(min, max, x: -1, y: -1)
Script.tmp_s1 = $game_switches[11] ? false : result Script.tmp_s1 = $game_switches[11] ? false : result
end end
def loadQASave(fname)
filename = "testing_saves/" + fname + ".rxdata"
# If file doesn't exist
unless FileTest.exist?(filename)
filename = "testing_saves_postgame/" + fname + ".rxdata"
unless FileTest.exist?(filename)
# Play buzzer SE
$game_system.se_play($data_system.buzzer_se)
return
end
end
# Play load SE
$game_system.se_play($data_system.load_se)
# Read save data
file = File.open(filename, "rb")
# Read character data for drawing save file
characters = Marshal.load(file)
# Read frame count for measuring play time
Graphics.frame_count = Marshal.load(file)
# Read each type of game object
$game_system = Marshal.load(file)
$game_switches = Marshal.load(file)
$game_variables = Marshal.load(file)
$game_self_switches = Marshal.load(file)
$game_screen = Marshal.load(file)
$game_actors = Marshal.load(file)
$game_party = Marshal.load(file)
$game_troop = Marshal.load(file)
$game_map = Marshal.load(file)
$game_player = Marshal.load(file)
$game_followers = Marshal.load(file)
$game_oneshot = Marshal.load(file)
$game_fasttravel = Marshal.load(file)
$game_temp.footstep_sfx = Marshal.load(file)
# If magic number is different from when saving
# (if editing was added with editor)
if $game_system.magic_number != $data_system.magic_number
# Load map
$game_map.setup($game_map.map_id)
$game_player.center($game_player.x, $game_player.y)
end
# Refresh party members
$game_party.refresh
f_prev = $game_player
for f in $game_followers
f.leader = f_prev
f.moveto($game_player.x, $game_player.y)
f_prev = f
end
file.close
# Restore BGM and BGS
$game_system.bgm_play($game_system.playing_bgm)
$game_system.bgs_play($game_system.playing_bgs)
# Update map (run parallel process event)
$game_map.update
# Switch to map screen
$scene = Scene_Map.new
end
def kill_perma_flags def kill_perma_flags
for i in 151..175 for i in 151..175
$game_switches[i] = false $game_switches[i] = false
@ -767,7 +696,11 @@ end
# Misc # Misc
def watcher_tell_time def watcher_tell_time
hour = CTime.hour if Settings[:streamer_privacy]
hour = 0
else
hour = CTime.hour
end
if hour >= 6 && hour < 12 if hour >= 6 && hour < 12
Script.tmp_v1 = 0 Script.tmp_v1 = 0
elsif hour >= 12 && hour < 17 elsif hour >= 12 && hour < 17
@ -780,7 +713,8 @@ def watcher_tell_time
end end
def plight_start_timer def plight_start_timer
$game_oneshot.plight_timer = 0 #Time.now # TODO: test and fix this bullshit
$game_oneshot.plight_timer = CTime.at(0)
end end
def plight_update_timer def plight_update_timer

View file

@ -26,7 +26,6 @@ class Window_TPtL < Window_Selectable
end end
self.z = 9998 self.z = 9998
RPG::Mod.exec_hooks("hooks/Window_TPtL/init", binding)
end end
def sort def sort
@ -122,7 +121,7 @@ class Window_TPtL < Window_Selectable
self.contents.font.color = color self.contents.font.color = color
# Update item # Update item
self.contents.draw_text(Rect.new(indent * 64, 32 * draw_ix, self.width - indent * 64, 32), tr(map_info&.name || "UNKNOWN_MAP"), 0) self.contents.draw_text(Rect.new(indent * 64, 32 * draw_ix, self.width - indent * 64, 32), map_info&.name || "UNKNOWN_MAP", 0)
self.contents.draw_text(Rect.new(0, 32 * draw_ix, self.width - 38, 32), index.to_s, 2) self.contents.draw_text(Rect.new(0, 32 * draw_ix, self.width - 38, 32), index.to_s, 2)
end end