This commit is contained in:
DepressedTWM 2026-07-19 23:54:32 +04:00
parent 2ea506b296
commit 0f22a6a79c
7 changed files with 25 additions and 27 deletions

3
changelogs/0.1.2.txt Normal file
View file

@ -0,0 +1,3 @@
Freeware mode updated
Added _old niko and twm sprites
Implemented True Memory Mode

View file

@ -1,7 +1,5 @@
#!/bin/bash #!/bin/bash
set -euo pipefail set -euo pipefail
cd "dirname $0"
# User-configurable variables. # User-configurable variables.
oneshot_id=420530 oneshot_id=420530
STEAMWORKS_PATH=$(realpath ..)/steamworks STEAMWORKS_PATH=$(realpath ..)/steamworks
@ -11,9 +9,9 @@ cd build
make -j$(nproc) make -j$(nproc)
cd .. cd ..
mkdir build/bandle mkdir -p build/bandle
mkdir build/bandle mkdir -p build/bandle
mkdir build/bandle/Data mkdir -p build/bandle/Data
# Compile steamshim. # Compile steamshim.
#echo -e "-> ${cyan}Compile steamshim...${color_reset}" #echo -e "-> ${cyan}Compile steamshim...${color_reset}"
@ -34,7 +32,7 @@ cp build/oneshot build/bandle/
#echo "$oneshot_id" > "$ONESHOT_PATH/steam_appid.txt" #echo "$oneshot_id" > "$ONESHOT_PATH/steam_appid.txt"
# Copy libraries. # Copy libraries.
mkdir libs mkdir -p libs
ldd build/oneshot | ruby libraries.rb ldd build/oneshot | ruby libraries.rb
#ldd steamshim_parent/build/steamshim | ruby libraries.rb #ldd steamshim_parent/build/steamshim | ruby libraries.rb
cp libs/* build/bandle cp libs/* build/bandle

View file

@ -27,7 +27,7 @@ module Settings
:enforce_april_fools => false, :enforce_april_fools => false,
:true_memory_mode => false, :true_memory_mode => false,
:oneshot_mode => false, :oneshot_mode => false,
:twm_shader_footprint => true,
# Advanced # Advanced
#controls #controls
@ -41,6 +41,10 @@ module Settings
:debug_text_scene_title => true, :debug_text_scene_title => true,
:debug_picture_names => false, :debug_picture_names => false,
:debug_lightmap => false, :debug_lightmap => false,
#Hidden
:is_dejavu => false,
} }
reset_controls! reset_controls!
end end
@ -159,7 +163,6 @@ class Window_Settings
:parameter => :scaling_mode, :parameter => :scaling_mode,
:values => [tr("Nearest Neighbor"), tr("Smooth(old)")] :values => [tr("Nearest Neighbor"), tr("Smooth(old)")]
}, },
{ :type => :sep, :name => tr("World")},
{ {
:type => :bool, :type => :bool,
:name => tr('Dynamic Light'), :name => tr('Dynamic Light'),
@ -209,7 +212,7 @@ class Window_Settings
}, },
{ {
:type => :bool, :type => :bool,
:name => tr('Purple message box for Entity(Not implemented)'), :name => tr('Purple message box for Entity'),
:parameter => :en_purple_messagebox :parameter => :en_purple_messagebox
}, },
{ {
@ -219,14 +222,19 @@ class Window_Settings
}, },
{ {
:type => :bool, :type => :bool,
:name => tr('True Memory Mode(Not implemented)'), :name => tr('True Memory Mode'),
:parameter => :true_memory_mode :parameter => :true_memory_mode
}, },
{ {
:type => :bool, :type => :bool,
:name => tr('Freeware Mode(!, WIP)'), :name => tr('Freeware Mode(!)'),
:parameter => :oneshot_mode :parameter => :oneshot_mode
}, },
{
:type => :bool,
:name => tr('World machine shader on Entity footprints'),
:parameter => :twm_shader_footprint
},
], ],
tr("Controls") => [ tr("Controls") => [
{ {

View file

@ -9,7 +9,7 @@ class Scene_Title
MENU_Y = 100 MENU_Y = 100
ENTRY_HEIGHT = 25 ENTRY_HEIGHT = 25
SDLVer = "#{Sunshine::SDLVersion_major}.#{Sunshine::SDLVersion_minor}.#{Sunshine::SDLVersion_micro}" SDLVer = "#{Sunshine::SDLVersion_major}.#{Sunshine::SDLVersion_minor}.#{Sunshine::SDLVersion_micro}"
SunshineVer = "0.1.1-dev" SunshineVer = "0.1.2"
#-------------------------------------------------------------------------- #--------------------------------------------------------------------------
# * Main Processing # * Main Processing
@ -60,8 +60,6 @@ class Scene_Title
@sprite.ox = @sprite.bitmap.width / 2 * (0.5 * (1.0 - px) + px) @sprite.ox = @sprite.bitmap.width / 2 * (0.5 * (1.0 - px) + px)
@sprite.oy = @sprite.bitmap.height / 2 * (1.3 * (1.0 - py) + py) @sprite.oy = @sprite.bitmap.height / 2 * (1.3 * (1.0 - py) + py)
RPG::Mod.exec_hooks("hooks/Scene_Title/init", binding)
# check for debug file to add debug items # check for debug file to add debug items
if Settings[:debug] if Settings[:debug]
$game_party.gain_item(54, 1) # debug save $game_party.gain_item(54, 1) # debug save
@ -94,15 +92,6 @@ class Scene_Title
@debug.bitmap.draw_text(0, ENTRY_HEIGHT, 200, ENTRY_HEIGHT, tr("SDL #{SDLVer}")) @debug.bitmap.draw_text(0, ENTRY_HEIGHT, 200, ENTRY_HEIGHT, tr("SDL #{SDLVer}"))
@debug.bitmap.draw_text(0, ENTRY_HEIGHT * 2, 200, ENTRY_HEIGHT, tr("Sunshine #{SunshineVer}")) @debug.bitmap.draw_text(0, ENTRY_HEIGHT * 2, 200, ENTRY_HEIGHT, tr("Sunshine #{SunshineVer}"))
@debug.bitmap.draw_text(0, ENTRY_HEIGHT * 3, 200, ENTRY_HEIGHT, tr("sec_#{Sunshine::SECURITYSTATE}")) @debug.bitmap.draw_text(0, ENTRY_HEIGHT * 3, 200, ENTRY_HEIGHT, tr("sec_#{Sunshine::SECURITYSTATE}"))
jit_text = "JIT: unsupported"
if defined?(RubyVM::YJIT) && RubyVM::YJIT.enabled?
jit_text = "JIT: YJIT"
elsif defined?(RubyVM::ZJIT) && RubyVM::ZJIT.enabled?
jit_text = "JIT: ZJIT"
elsif defined?(RubyVM::RJIT) && RubyVM::RJIT.enabled?
jit_text = "JIT: RJIT"
end
@debug.bitmap.draw_text(0, ENTRY_HEIGHT * 4, 200, ENTRY_HEIGHT, tr(jit_text))
if ModLoader::IS_ENABLED if ModLoader::IS_ENABLED
@debug.bitmap.draw_text(0, ENTRY_HEIGHT * 5, 200, ENTRY_HEIGHT, tr("Mods loaded: #{ModLoader::COUNT}")) @debug.bitmap.draw_text(0, ENTRY_HEIGHT * 5, 200, ENTRY_HEIGHT, tr("Mods loaded: #{ModLoader::COUNT}"))
end end

View file

@ -35,8 +35,9 @@ class Sprite_Character
# Choose the appropriate light sprite # Choose the appropriate light sprite
@light_sprite.viewport = @character.light_ignore_transition ? @viewport : (($game_screen.tone.blank?) ? @viewport : @light_viewport) @light_sprite.viewport = @character.light_ignore_transition ? @viewport : (($game_screen.tone.blank?) ? @viewport : @light_viewport)
@light_sprite.shader = @sprite.shader = @light_sprite.shader = @sprite.shader =
#idk what is this, maybe later i remake this #idk what is this, maybe later i remake this
@character.character_name.start_with?("en") || (Settings[:twm_shader] && @character.character_name.start_with?("niko") && $game_switches[160]) ? Shader::WorldMachine : @character.character_name.start_with?("en") || (Settings[:twm_shader] && @character.character_name.start_with?("niko") && ($game_switches[160] or Settings[:true_memory_mode])) ? Shader::WorldMachine :
@character.shader || Shader::Sprite @character.shader || Shader::Sprite
@light_sprite.mirror_x = @sprite.mirror_x = @character.mirror_x @light_sprite.mirror_x = @sprite.mirror_x = @character.mirror_x
@light_sprite.mirror_y = @sprite.mirror_y = @character.mirror_y @light_sprite.mirror_y = @sprite.mirror_y = @character.mirror_y

View file

@ -26,7 +26,6 @@ class Sprite_Footsplash < Sprite
self.oy = 80 self.oy = 80
self.bitmap = RPG::Cache.misc('foot_splash') self.bitmap = RPG::Cache.misc('foot_splash')
self.src_rect.set(0, 0, 80, 80) self.src_rect.set(0, 0, 80, 80)
RPG::Mod.exec_hooks("hooks/Sprite_Footsplash/init", binding)
update update
end end