본문 바로가기
RPG Maker VX Ace/DLL-Extensions

Keeping Focus - RPG Maker VX Ace

by biud436 2019. 9. 12.


Introduction


This script allows you to perform the game frame update even if the RGSS Player didn't have focus or there has an another operation is in progress. 


System Requirements


RPG Maker VX Ace v1.02a (Steam)

In case of the RPG Maker VX v1.03a(Steam),  You should have a file called 'RGSS202E.dll' to Root Game Directory.

RPG Maker XP v1.05a (Steam)


API


This function checks the status whether the RGSS Player has a focus.


RS.focus?


This function allows you to switch with the fullscreen manually. it is the same as Alt + Enter pressed.


RS.switch_fullscreen


This function allows you to toggle the visible of the FPS Meter in the caption of the window. it is the same as F2 pressed.


RS.toggle_fps


This function allows you to open the option window manually. it is the same as F1 pressed.


RS.open_option_window



Download


Place the file named RGSSFoucs.dll in the folder that there is a file named Game.exe


​Link : https://github.com/biud436/RGSS3/raw/master/Focus/bin/RGSSFocus.dll


Notice that the anti-virus program may misdiagnosis with malware so that the DLL file may be deleted.


Script

Insert the new script between Materials and Main.


링크 : https://github.com/biud436/RGSS3/raw/master/Focus/RS_RGSSFocus.rb


Sources


소스 코드 유실로 인해 처음부터 다시 작성을 하였습니다.


이번에는 유실을 방지하기 위해 소스 코드도 깃허브에 업로드합니다.


프로젝트 파일은 VS2015 버전입니다.


Link : https://github.com/biud436/RGSS3/tree/master/Focus/src


기존 버전은 옵션, 전체 화면 전환, FPS 표시 등을 직접 구현하면서 온갖 버그가 생겨났었습니다. 


새로 작성한 파일은 포커스 유지를 방해하는 일부 메시지를 제외한 메시지를 윈도우 프로시저에 그대로 전달하는 방식을 썼습니다. 


Reference


링크가 깨졌지만 그래도 참고 링크를 남깁니다.


RPG Maker VX Ace RGSS Player Source - http://hi.baidu.com/hanomirin/item/f101e587cf64665c26ebd9ce

Prevent games from stopping - http://www.aldeiarpg.com/t4612-game-exe-que-nao-para-enquanto-minimizado-atualizado


Version Log


2019.09.09 (v1.0.0) :

- 버그로 동작하지 않는 문제로 인해 DLL 파일을 처음부터 다시 만들었습니다.

- 전체 화면, 옵션, FPS 표시 등 모든 기능들이 이제 제대로 동작합니다.

2019.09.12 (v1.0.1) :

- Windows 7의 DEP가 BEF 문제로 실행을 차단하는 문제를 수정하였습니다.

- sprintf 함수로 인해 발생하는 Buffer Overflow Issue를 수정하였습니다(snprintf로 변경)