From 0f22a6a79c4310274ccd0a569a51c703e82f8cf4 Mon Sep 17 00:00:00 2001 From: DepressedTWM Date: Sun, 19 Jul 2026 23:54:32 +0400 Subject: [PATCH] g --- changelogs/0.1.2.txt | 3 +++ make-oneshot-linux.sh | 10 ++++------ scripts/Data_Settings.rb | 18 +++++++++++++----- scripts/Scene_Title.rb | 15 ++------------- scripts/Sprite_Character.rb | 3 ++- scripts/Sprite_Footprint.rb | 2 +- scripts/Sprite_Footsplash.rb | 1 - 7 files changed, 25 insertions(+), 27 deletions(-) create mode 100644 changelogs/0.1.2.txt diff --git a/changelogs/0.1.2.txt b/changelogs/0.1.2.txt new file mode 100644 index 0000000..a91db6b --- /dev/null +++ b/changelogs/0.1.2.txt @@ -0,0 +1,3 @@ +Freeware mode updated +Added _old niko and twm sprites +Implemented True Memory Mode diff --git a/make-oneshot-linux.sh b/make-oneshot-linux.sh index 67522b5..686c16d 100755 --- a/make-oneshot-linux.sh +++ b/make-oneshot-linux.sh @@ -1,7 +1,5 @@ #!/bin/bash set -euo pipefail -cd "dirname $0" - # User-configurable variables. oneshot_id=420530 STEAMWORKS_PATH=$(realpath ..)/steamworks @@ -11,9 +9,9 @@ cd build make -j$(nproc) cd .. -mkdir build/bandle -mkdir build/bandle -mkdir build/bandle/Data +mkdir -p build/bandle +mkdir -p build/bandle +mkdir -p build/bandle/Data # Compile steamshim. #echo -e "-> ${cyan}Compile steamshim...${color_reset}" @@ -34,7 +32,7 @@ cp build/oneshot build/bandle/ #echo "$oneshot_id" > "$ONESHOT_PATH/steam_appid.txt" # Copy libraries. -mkdir libs +mkdir -p libs ldd build/oneshot | ruby libraries.rb #ldd steamshim_parent/build/steamshim | ruby libraries.rb cp libs/* build/bandle diff --git a/scripts/Data_Settings.rb b/scripts/Data_Settings.rb index d1cb031..0e79314 100644 --- a/scripts/Data_Settings.rb +++ b/scripts/Data_Settings.rb @@ -27,7 +27,7 @@ module Settings :enforce_april_fools => false, :true_memory_mode => false, :oneshot_mode => false, - + :twm_shader_footprint => true, # Advanced #controls @@ -41,6 +41,10 @@ module Settings :debug_text_scene_title => true, :debug_picture_names => false, :debug_lightmap => false, + + + #Hidden + :is_dejavu => false, } reset_controls! end @@ -159,7 +163,6 @@ class Window_Settings :parameter => :scaling_mode, :values => [tr("Nearest Neighbor"), tr("Smooth(old)")] }, - { :type => :sep, :name => tr("World")}, { :type => :bool, :name => tr('Dynamic Light'), @@ -209,7 +212,7 @@ class Window_Settings }, { :type => :bool, - :name => tr('Purple message box for Entity(Not implemented)'), + :name => tr('Purple message box for Entity'), :parameter => :en_purple_messagebox }, { @@ -219,14 +222,19 @@ class Window_Settings }, { :type => :bool, - :name => tr('True Memory Mode(Not implemented)'), + :name => tr('True Memory Mode'), :parameter => :true_memory_mode }, { :type => :bool, - :name => tr('Freeware Mode(!, WIP)'), + :name => tr('Freeware Mode(!)'), :parameter => :oneshot_mode }, + { + :type => :bool, + :name => tr('World machine shader on Entity footprints'), + :parameter => :twm_shader_footprint + }, ], tr("Controls") => [ { diff --git a/scripts/Scene_Title.rb b/scripts/Scene_Title.rb index caea9ec..d5de7a4 100644 --- a/scripts/Scene_Title.rb +++ b/scripts/Scene_Title.rb @@ -9,7 +9,7 @@ class Scene_Title MENU_Y = 100 ENTRY_HEIGHT = 25 SDLVer = "#{Sunshine::SDLVersion_major}.#{Sunshine::SDLVersion_minor}.#{Sunshine::SDLVersion_micro}" - SunshineVer = "0.1.1-dev" + SunshineVer = "0.1.2" #-------------------------------------------------------------------------- # * Main Processing @@ -59,9 +59,7 @@ class Scene_Title py = (Graphics.height / 1080.0) @sprite.ox = @sprite.bitmap.width / 2 * (0.5 * (1.0 - px) + px) @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 if Settings[:debug] $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 * 2, 200, ENTRY_HEIGHT, tr("Sunshine #{SunshineVer}")) @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 @debug.bitmap.draw_text(0, ENTRY_HEIGHT * 5, 200, ENTRY_HEIGHT, tr("Mods loaded: #{ModLoader::COUNT}")) end diff --git a/scripts/Sprite_Character.rb b/scripts/Sprite_Character.rb index 2e71917..7e9988e 100644 --- a/scripts/Sprite_Character.rb +++ b/scripts/Sprite_Character.rb @@ -35,8 +35,9 @@ class Sprite_Character # Choose the appropriate light sprite @light_sprite.viewport = @character.light_ignore_transition ? @viewport : (($game_screen.tone.blank?) ? @viewport : @light_viewport) @light_sprite.shader = @sprite.shader = + #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 @light_sprite.mirror_x = @sprite.mirror_x = @character.mirror_x @light_sprite.mirror_y = @sprite.mirror_y = @character.mirror_y diff --git a/scripts/Sprite_Footprint.rb b/scripts/Sprite_Footprint.rb index 43727f2..3448a42 100644 --- a/scripts/Sprite_Footprint.rb +++ b/scripts/Sprite_Footprint.rb @@ -16,7 +16,7 @@ class Sprite_Footprint < Sprite def update return if disposed? - + self.x = (@real_x - $game_map.display_x + 3) / 4 + 16 self.y = (@real_y - $game_map.display_y + 3) / 4 + 32 diff --git a/scripts/Sprite_Footsplash.rb b/scripts/Sprite_Footsplash.rb index b637cbc..7e621cf 100644 --- a/scripts/Sprite_Footsplash.rb +++ b/scripts/Sprite_Footsplash.rb @@ -26,7 +26,6 @@ class Sprite_Footsplash < Sprite self.oy = 80 self.bitmap = RPG::Cache.misc('foot_splash') self.src_rect.set(0, 0, 80, 80) - RPG::Mod.exec_hooks("hooks/Sprite_Footsplash/init", binding) update end