查看: 1868|回复: 3

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

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

开拓者

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

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

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

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

如題

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

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

  1. #+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
  2. # ■ Full Screen Promt                                      
  3. # ■ Author: Bigace360  
  4. # ■ Version: 1.0
  5. # ■ Date: August 28, 2012
  6. # ■ Blog: [url]http://bigaceworld.wordpress.com/[/url]
  7. #+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
  8. #                               VERSION HISTORY                                #
  9. #+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
  10. # v 1.0 - 2.28.2012 > Started and Finished Script
  11. #+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
  12. #                                INTRODUCTION                                  #
  13. #+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
  14. # This script is for those who want to make the option of haveing the player
  15. # decide if they would want to play in full screen with out having to press
  16. # Alt + Enter
  17. #+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
  18. #                                INSTRUCTIONS                                  #
  19. #+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
  20. # This script is plug and play, just paste it ABOVE main, and BELLOW everything
  21. # else! There is small configurations in the module, which can be left alone,
  22. # if you like whats already there.
  23. #+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
  24. #                                  SECTIONS                                    #
  25. #+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
  26. #  ■ Game_Objects
  27. # ** ACE Module
  28. # ** SceneManager Module
  29. #
  30. #  ■ Windows
  31. # ** Window_ScreenCommand
  32. #
  33. #  ■ Scenes
  34. # ** Scene_FullPromp
  35. #
  36. #+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
  37. #
  38. # Credits/Thanks:
  39. #   - Bigace360, for the script.
  40. #
  41. #+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
  42. #                     Script Conflicts and Compatability                       #
  43. #=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
  44. # No Known issues
  45. #
  46. #   module SceneManager
  47. #     overwrites - def self.first_scene_class
  48. #+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
  49. #
  50. #:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
  51. # ■ Module ACE::Fullscreen
  52. #:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
  53. module ACE
  54.         module Fullscreen
  55.                 #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  56.                 # - Fullscreen Command Settings -
  57.                 #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  58.                 FULL_COMMANDS =[
  59.                         [:full,   'Full Screen'],
  60.                         [:normal, 'Small Screen'],
  61.                 ] # Do not remove this.
  62.                
  63.                 # Place the following images in the Graphics folder / System if you're
  64.                 # planing on have a background, else leave the field blank.
  65.                 BACKGROUND = ''
  66.         end
  67. end

  68. #:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
  69. # ■ module SceneManager
  70. #:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
  71. module SceneManager
  72.         def self.first_scene_class; $BTEST ? Scene_Battle : Scene_FullPromp; end
  73. end

  74. #:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
  75. # ■ Window_ScreenCommand
  76. #:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
  77. class Window_ScreenCommand < Window_Command
  78.         include ACE::Fullscreen
  79.         def initialize
  80.                 super(0, 0)
  81.                 update_placement
  82.                 self.openness = 0
  83.                 open
  84.         end
  85.         def window_width; return 160; end
  86.         def update_placement
  87.                 self.x = (Graphics.width - width) / 2
  88.                 self.y = (Graphics.height * 1.6 - height) / 2
  89.         end
  90.         def make_command_list
  91.                 FULL_COMMANDS.each do |command|
  92.                         case command[0]
  93.                         when :full, :normal then add_command(command[1], command[0])
  94.                         end
  95.                 end
  96.         end
  97. end

  98. #:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
  99. # ■ Scene_FullPromp
  100. #:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
  101. class Scene_FullPromp < Scene_Base
  102.         include ACE::Fullscreen
  103.         $data_system = load_data("Data/System.rvdata2")
  104.         $game_system = Game_System.new
  105.         def start
  106.                 super
  107.                 execute_dispose
  108.                 create_layout
  109.                 create_command_window
  110.         end
  111.         def create_layout
  112.                 @background = Plane.new  
  113.                 @background.bitmap = Cache.system(BACKGROUND)
  114.                 @background.z = 0              
  115.         end
  116.         def execute_dispose
  117.                 return if @background.nil?
  118.                 Graphics.freeze
  119.                 @background.bitmap.dispose
  120.                 @background.dispose
  121.                 @background = nil
  122.         end
  123.         def create_command_window
  124.                 @command_window = Window_ScreenCommand.new
  125.                 @command_window.set_handler(:full,   method(:full_mode))
  126.                 @command_window.set_handler(:normal, method(:normal_mode))            
  127.         end
  128.         def close_command_window
  129.                 @command_window.close
  130.                 update until @command_window.close?
  131.         end
  132.         def full_mode
  133.                 Sound.play_ok
  134.                 keybd = Win32API.new 'user32.dll', 'keybd_event', ['i', 'i', 'l', 'l'], 'v'
  135.                 keybd.call(0xA4, 0, 0, 0)
  136.                 keybd.call(13, 0, 0, 0)
  137.                 keybd.call(13, 0, 2, 0)
  138.                 keybd.call(0xA4, 0, 2, 0)
  139.                 SceneManager.goto(Scene_Title)
  140.         end
  141.         def normal_mode
  142.                 Sound.play_ok
  143.                 SceneManager.goto(Scene_Title)
  144.         end
  145.         def update; super; update_slide_window; end
  146.   def update_slide_window; @background.ox += 1; end
  147.         def terminate; super; execute_dispose; end
  148. end
复制代码
[神性领域扩张:扩张神性领域]
说了等于没说.
梦石
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.

在本版发帖返回顶部