查看: 1824|回复: 3

[已经解决] 求救 一個全螢幕腳本好像讓我的MAKER壞了

[复制链接]
梦石
0
星屑
2116
在线时间
950 小时
注册时间
2015-7-16
回帖
692

开拓者

发表于 2017-3-2 19:53:08 | 显示全部楼层 |阅读模式

加入我们,或者,欢迎回来。

您需要 登录 才可以下载或查看,没有账号?注册会员

×
本帖最后由 duzine 于 2017-3-2 19:54 编辑

如題

有一個全螢幕腳本。自從用過一次之後
我所有的工程檔案,包括以前備份的,現在一打開就全都分辨率失調
估計也不是RGSS301.dll的問題
該怎麼修好它呢?

腳本如下 (慎用,用了有事

[pre lang="ruby"]#+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
# ■ Full Screen Promt                                      
# ■ Author: Bigace360  
# ■ Version: 1.0
# ■ Date: August 28, 2012
# ■ Blog: http://bigaceworld.wordpress.com/
#+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
#                               VERSION HISTORY                                #
#+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
# v 1.0 - 2.28.2012 > Started and Finished Script
#+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
#                                INTRODUCTION                                  #
#+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
# This script is for those who want to make the option of haveing the player
# decide if they would want to play in full screen with out having to press
# Alt + Enter
#+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
#                                INSTRUCTIONS                                  #
#+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
# This script is plug and play, just paste it ABOVE main, and BELLOW everything
# else! There is small configurations in the module, which can be left alone,
# if you like whats already there.
#+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
#                                  SECTIONS                                    #
#+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
#  ■ Game_Objects
# ** ACE Module
# ** SceneManager Module
#
#  ■ Windows
# ** Window_ScreenCommand
#
#  ■ Scenes
# ** Scene_FullPromp
#
#+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
#
# Credits/Thanks:
#   - Bigace360, for the script.
#
#+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
#                     Script Conflicts and Compatability                       #
#=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
# No Known issues
#
#   module SceneManager
#     overwrites - def self.first_scene_class
#+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
#
#:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
# ■ Module ACE::Fullscreen
#:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
module ACE
        module Fullscreen
                #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
                # - Fullscreen Command Settings -
                #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
                FULL_COMMANDS =[
                        [:full,   'Full Screen'],
                        [:normal, 'Small Screen'],
                ] # Do not remove this.
               
                # Place the following images in the Graphics folder / System if you're
                # planing on have a background, else leave the field blank.
                BACKGROUND = ''
        end
end

#:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
# ■ module SceneManager
#:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
module SceneManager
        def self.first_scene_class; $BTEST ? Scene_Battle : Scene_FullPromp; end
end

#:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
# ■ Window_ScreenCommand
#:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
class Window_ScreenCommand < Window_Command
        include ACE::Fullscreen
        def initialize
                super(0, 0)
                update_placement
                self.openness = 0
                open
        end
        def window_width; return 160; end
        def update_placement
                self.x = (Graphics.width - width) / 2
                self.y = (Graphics.height * 1.6 - height) / 2
        end
        def make_command_list
                FULL_COMMANDS.each do |command|
                        case command[0]
                        when :full, :normal then add_command(command[1], command[0])
                        end
                end
        end
end

#:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
# ■ Scene_FullPromp
#:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
class Scene_FullPromp < Scene_Base
        include ACE::Fullscreen
        $data_system = load_data("Data/System.rvdata2")
        $game_system = Game_System.new
        def start
                super
                execute_dispose
                create_layout
                create_command_window
        end
        def create_layout
                @background = Plane.new  
                @background.bitmap = Cache.system(BACKGROUND)
                @background.z = 0              
        end
        def execute_dispose
                return if @background.nil?
                Graphics.freeze
                @background.bitmap.dispose
                @background.dispose
                @background = nil
        end
        def create_command_window
                @command_window = Window_ScreenCommand.new
                @command_window.set_handler(:full,   method(:full_mode))
                @command_window.set_handler(:normal, method(:normal_mode))            
        end
        def close_command_window
                @command_window.close
                update until @command_window.close?
        end
        def full_mode
                Sound.play_ok
                keybd = Win32API.new 'user32.dll', 'keybd_event', ['i', 'i', 'l', 'l'], 'v'
                keybd.call(0xA4, 0, 0, 0)
                keybd.call(13, 0, 0, 0)
                keybd.call(13, 0, 2, 0)
                keybd.call(0xA4, 0, 2, 0)
                SceneManager.goto(Scene_Title)
        end
        def normal_mode
                Sound.play_ok
                SceneManager.goto(Scene_Title)
        end
        def update; super; update_slide_window; end
  def update_slide_window; @background.ox += 1; end
        def terminate; super; execute_dispose; end
end[/pre]
[神性领域扩张:扩张神性领域]
说了等于没说.
梦石
0
星屑
3557
在线时间
2337 小时
注册时间
2015-8-25
回帖
928

开拓者

发表于 2017-3-2 20:30:57 | 显示全部楼层
本帖最后由 七重 于 2017-3-2 20:34 编辑

把GAME.ini删掉试试?

--
抱歉。。刚才没有看仔细。。

删掉应该是没有用的
回复

使用道具 举报

梦石
0
星屑
2116
在线时间
950 小时
注册时间
2015-7-16
回帖
692

开拓者

 楼主| 发表于 2017-3-2 21:16:22 | 显示全部楼层
GAME.ini 有檢查過了
DLL也換過,以資料修改日期來看重安裝也是行不通的

剛剛做了系統還原,結果花了一小時說還原失敗....
然後重開測試發現變本加厲,整個變得更糟糕了...
我該怎麼辦呢
[神性领域扩张:扩张神性领域]
说了等于没说.
回复

使用道具 举报

梦石
0
星屑
2116
在线时间
950 小时
注册时间
2015-7-16
回帖
692

开拓者

 楼主| 发表于 2017-3-2 21:30:10 | 显示全部楼层
修好了!!!

我靈機一動,思考了user32.dll是否有問題後
回想一遍所有能改變視窗大小或分辨率的方法

然後想到試試 alt+enter 的全螢幕方法,果然是這個腳本把有關設定弄壞了
重新放大後再縮小,測試上沒問題了
[神性领域扩张:扩张神性领域]
说了等于没说.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册会员

本版积分规则

Powered by Discuz! X5.0 © 2001-2026 Discuz! Team.

在本版发帖返回顶部