赞 | 32 |
VIP | 146 |
好人卡 | 11 |
积分 | 38 |
经验 | 143619 |
最后登录 | 2024-6-29 |
在线时间 | 1966 小时 |
Lv3.寻梦者
- 梦石
- 0
- 星屑
- 3846
- 在线时间
- 1966 小时
- 注册时间
- 2013-1-3
- 帖子
- 9536
|
本帖最后由 紫英晓狼1130 于 2024-3-26 21:28 编辑
WASD要配合全键盘脚本的,因为XP本身不判定这四个键位
以下是修改FPS的方法,不是改F2显示的那个帧率,是真的改FPS
请酌情修改
- module Graphics
- module_function
- FPS_DLL = Win32API.new('kernel32','GetModuleHandleA','p','l').call('RGSS103J')
- FPS_WPMPL = Win32API.new('kernel32','WriteProcessMemory','lplll','l')
- FPS_WPMLP = Win32API.new('kernel32','WriteProcessMemory','llpll','l')
- temp = "\0" * 4
- FPS_WPMPL.call(-1, temp, FPS_DLL + 0x12B6C4, 4, 0)
- FPS_FPS = temp.unpack("l")[0] + 0x124
- def fps_unlimit(bool = true)
- if bool
- FPS_WPMLP.call(-1,FPS_DLL+0x1552B,"\xEB",1,0)
- else
- FPS_WPMLP.call(-1,FPS_DLL+0x1552B,"\x74",1,0)
- end
- end
- def fps_render_always(bool = true)
- if bool
- FPS_WPMLP.call(-1,FPS_DLL+0x2AE4,"\xEB",1,0)
- else
- FPS_WPMLP.call(-1,FPS_DLL+0x2AE4,"\x7D",1,0)
- end
- end
- def fps
- f = "\0" * 4
- FPS_WPMPL.call(-1, f, FPS_FPS, 4, 0)
- (f.unpack("l")[0] + 500) / 1000
- end
- end
- #FPS
- Graphics.frame_rate = 60
复制代码 |
|