设为首页收藏本站|繁體中文

Project1

 找回密码
 注册会员
搜索
查看: 1588|回复: 3
打印 上一主题 下一主题

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

[复制链接]

Lv3.寻梦者

梦石
0
星屑
2111
在线时间
950 小时
注册时间
2015-7-16
帖子
767

开拓者

跳转到指定楼层
1
发表于 2017-3-2 19:53:08 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式

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

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

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

如題

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

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

RUBY 代码复制
  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. #:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
  70. # ■ module SceneManager
  71. #:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
  72. module SceneManager
  73.         def self.first_scene_class; $BTEST ? Scene_Battle : Scene_FullPromp; end
  74. end
  75.  
  76. #:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
  77. # ■ Window_ScreenCommand
  78. #:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
  79. class Window_ScreenCommand < Window_Command
  80.         include ACE::Fullscreen
  81.         def initialize
  82.                 super(0, 0)
  83.                 update_placement
  84.                 self.openness = 0
  85.                 open
  86.         end
  87.         def window_width; return 160; end
  88.         def update_placement
  89.                 self.x = (Graphics.width - width) / 2
  90.                 self.y = (Graphics.height * 1.6 - height) / 2
  91.         end
  92.         def make_command_list
  93.                 FULL_COMMANDS.each do |command|
  94.                         case command[0]
  95.                         when :full, :normal then add_command(command[1], command[0])
  96.                         end
  97.                 end
  98.         end
  99. end
  100.  
  101. #:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
  102. # ■ Scene_FullPromp
  103. #:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
  104. class Scene_FullPromp < Scene_Base
  105.         include ACE::Fullscreen
  106.         $data_system = load_data("Data/System.rvdata2")
  107.         $game_system = Game_System.new
  108.         def start
  109.                 super
  110.                 execute_dispose
  111.                 create_layout
  112.                 create_command_window
  113.         end
  114.         def create_layout
  115.                 @background = Plane.new  
  116.                 @background.bitmap = Cache.system(BACKGROUND)
  117.                 @background.z = 0              
  118.         end
  119.         def execute_dispose
  120.                 return if @background.nil?
  121.                 Graphics.freeze
  122.                 @background.bitmap.dispose
  123.                 @background.dispose
  124.                 @background = nil
  125.         end
  126.         def create_command_window
  127.                 @command_window = Window_ScreenCommand.new
  128.                 @command_window.set_handler(:full,   method(:full_mode))
  129.                 @command_window.set_handler(:normal, method(:normal_mode))            
  130.         end
  131.         def close_command_window
  132.                 @command_window.close
  133.                 update until @command_window.close?
  134.         end
  135.         def full_mode
  136.                 Sound.play_ok
  137.                 keybd = Win32API.new 'user32.dll', 'keybd_event', ['i', 'i', 'l', 'l'], 'v'
  138.                 keybd.call(0xA4, 0, 0, 0)
  139.                 keybd.call(13, 0, 0, 0)
  140.                 keybd.call(13, 0, 2, 0)
  141.                 keybd.call(0xA4, 0, 2, 0)
  142.                 SceneManager.goto(Scene_Title)
  143.         end
  144.         def normal_mode
  145.                 Sound.play_ok
  146.                 SceneManager.goto(Scene_Title)
  147.         end
  148.         def update; super; update_slide_window; end
  149.   def update_slide_window; @background.ox += 1; end
  150.         def terminate; super; execute_dispose; end
  151. end
[神性领域扩张:扩张神性领域]
说了等于没说.

Lv3.寻梦者

梦石
0
星屑
3559
在线时间
2337 小时
注册时间
2015-8-25
帖子
960

开拓者

2
发表于 2017-3-2 20:30:57 | 只看该作者
本帖最后由 七重 于 2017-3-2 20:34 编辑

把GAME.ini删掉试试?

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

删掉应该是没有用的
回复 支持 反对

使用道具 举报

Lv3.寻梦者

梦石
0
星屑
2111
在线时间
950 小时
注册时间
2015-7-16
帖子
767

开拓者

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

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

使用道具 举报

Lv3.寻梦者

梦石
0
星屑
2111
在线时间
950 小时
注册时间
2015-7-16
帖子
767

开拓者

4
 楼主| 发表于 2017-3-2 21:30:10 | 只看该作者
修好了!!!

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

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

使用道具 举报

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

本版积分规则

拿上你的纸笔,建造一个属于你的梦想世界,加入吧。
 注册会员
找回密码

站长信箱:[email protected]|手机版|小黑屋|无图版|Project1游戏制作

GMT+8, 2025-7-21 03:24

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表