[DYNRPG] SYSTEM: DISPLAY OPTIONS
Control display settings & create ini settings from in-game!
- PepsiOtaku
- 09/18/2014 12:04 AM
- 13987 views
HALT
This is an old plugin! I've written a better one here:
https://rpgmaker.net/engines/rt2k3/utilities/195/
========================================================================
System: Display Options v1.1
For RPG Maker 2003 with DynRPG v0.20 or higher
By PepsiOtaku
========================================================================
This plugin enables RPG_RT.ini settings like starting in a window or fullscreen, and enables Cherry's "AnotherFullscreenMode" tool, with in-game controls for all.
With it, you can create a "Display Settings" menu in-game with several options, and the ability to add your own default ini settings of any kind that the user can change easily if they wish.
v1.1: Fixed a bug with the AfmFolder definition.
Installation
To install the plugin, make sure that you have patched your project with cherry's DynRPG patch which
can be found here:
http://share.cherrytree.at/showfile-12494/dynrpg.rar (Link for v0.20)
http://cherrytree.at/dynrpg
1. Copy the DynPlugins folder into your project. It contains "game_settings.dll" and "game_settings_afm.exe"
2. Add to DynRPG.ini:
3. Add to RPG_RT.ini:
To differentiate the two, Settings are "safe" changes that the end-user can have access to, while DynRPG.ini settings is internal stuff meant for the developer.
Comment Commands/Instructions
@toggle_fullscreen - Same as the F4 key, only it can be called in-game. Switches between fullscreen & windowed. If in "AnotherFullscreenMode," it is equivalent to F6.
- No parameters
@toggle_window_size - Same as the F5 key, only it can be called in game. If in the normal display mode, this will toggle between the two window sizes. In "AnotherFullscreenMode",
this does nothing.
- No parameters
@toggle_displaymode - If in "AnotherFullscreenMode", this will toggle between Normal rendering mode, Scale2x & Hq2x. This is equivalent to F8.
- No parameters
@force_restart - Restarts RPG_RT.exe. This is needed if you want to switch between Normal/AnotherFullscreenMode ingame, and should only be used in custom title screens, where data doesn't need to be saved.
- No parameters
@settings_ini - Performs read/write to the "Settings" section in RPG_RT.ini via comment command.
- Parameter 1 (text): Ini Key (StartWindowed, AnotherFullscreenMode, RenderMode, ResHorizontal, ResVertical)
- Parameter 2 (number): Read/Write mode. 0=read, 1=write
Read Mode (0):
- Parameter 3 (number): Variable ID to read the value to. You can then use that variable in-game to check for specific settings
Write Mode (1):
- Parameter 3 (text): value to save to the ini file. Numbers must be surrounded by quotation marks
Examples:
@settings_ini "AnotherFullscreenMode", 1, "1"
- Would set AnotherFullscreenMode to "1", if the value was previously 0, this would turn on AnotherFullscreenMode the next time the game is restarted (hence the need for @force_restart)
@settings_ini "AnotherFullscreenMode", 0, 4024
- Would read the ini value of AnotherFullscreenMode, and save it to variable 4024
This is an old plugin! I've written a better one here:
https://rpgmaker.net/engines/rt2k3/utilities/195/
========================================================================
System: Display Options v1.1
For RPG Maker 2003 with DynRPG v0.20 or higher
By PepsiOtaku
========================================================================
This plugin enables RPG_RT.ini settings like starting in a window or fullscreen, and enables Cherry's "AnotherFullscreenMode" tool, with in-game controls for all.
With it, you can create a "Display Settings" menu in-game with several options, and the ability to add your own default ini settings of any kind that the user can change easily if they wish.
v1.1: Fixed a bug with the AfmFolder definition.
Installation
To install the plugin, make sure that you have patched your project with cherry's DynRPG patch which
can be found here:
http://share.cherrytree.at/showfile-12494/dynrpg.rar (Link for v0.20)
http://cherrytree.at/dynrpg
1. Copy the DynPlugins folder into your project. It contains "game_settings.dll" and "game_settings_afm.exe"
2. Add to DynRPG.ini:
[game_settings]
; Sets a new FPS on startup. Leave blank to use default (80)
SetFPS=
; Alternate RPG_RT.exe name to check for during a restart (for Moleboxed games, etc.)
; Example: Game.exe
AlternateExeName=Game.exe
; Folder where game_settings_afm.exe resides (Default: DynPlugins)
AfmFolder=DynPlugins
; Game ini filename
; Default: Settings.ini
GameIniFilename=Settings.ini
3. Add to RPG_RT.ini:
[Settings]
; if AnotherFullscreenMode=1 & StarWindowed=1, it must boot into fullscreen mode briefly
; 0=No, 1=Yes
StartWindowed=0
; AnotherFullscreenMode: An experimental screen mode created by Cherry
; It allows for scale2x and hq2x filtering
; Unfortunately, it causes a drop in framerate
; 0=No, 1=Yes
AnotherFullscreenMode=0
; Render Mode: 0=No filtering (Not recommended), 1=scale2x, 2=hq2x
RenderMode=1
; Horizontal & Vertical screen resolutions ONLY in AnotherFullscreenMode
; This is necessary since it stretches to whatever the screen resolution is
; Should be 4:3 screen ratio
; Default: 640x480
ResHorizontal=640
ResVertical=480
To differentiate the two, Settings are "safe" changes that the end-user can have access to, while DynRPG.ini settings is internal stuff meant for the developer.
Comment Commands/Instructions
@toggle_fullscreen - Same as the F4 key, only it can be called in-game. Switches between fullscreen & windowed. If in "AnotherFullscreenMode," it is equivalent to F6.
- No parameters
@toggle_window_size - Same as the F5 key, only it can be called in game. If in the normal display mode, this will toggle between the two window sizes. In "AnotherFullscreenMode",
this does nothing.
- No parameters
@toggle_displaymode - If in "AnotherFullscreenMode", this will toggle between Normal rendering mode, Scale2x & Hq2x. This is equivalent to F8.
- No parameters
@force_restart - Restarts RPG_RT.exe. This is needed if you want to switch between Normal/AnotherFullscreenMode ingame, and should only be used in custom title screens, where data doesn't need to be saved.
- No parameters
@settings_ini - Performs read/write to the "Settings" section in RPG_RT.ini via comment command.
- Parameter 1 (text): Ini Key (StartWindowed, AnotherFullscreenMode, RenderMode, ResHorizontal, ResVertical)
- Parameter 2 (number): Read/Write mode. 0=read, 1=write
Read Mode (0):
- Parameter 3 (number): Variable ID to read the value to. You can then use that variable in-game to check for specific settings
Write Mode (1):
- Parameter 3 (text): value to save to the ini file. Numbers must be surrounded by quotation marks
Examples:
@settings_ini "AnotherFullscreenMode", 1, "1"
- Would set AnotherFullscreenMode to "1", if the value was previously 0, this would turn on AnotherFullscreenMode the next time the game is restarted (hence the need for @force_restart)
@settings_ini "AnotherFullscreenMode", 0, 4024
- Would read the ini value of AnotherFullscreenMode, and save it to variable 4024
Details
- 345.8 KB
- 334
- 01/01/2024 11:11 PM
Actions
Posts
Pages:
1
I have a problem when starting my game. The Patch does change the window size to fullscreen, if set so in the ini-file. But it doesn't call the anotherfullscreenmode.exe.
When I run my game, it opens the anotherfullscreenmode.exe but closes it again at the same time. I guess there has to be a wait function for the anotherfullscreenmode.
Before I used this patch, I opened my game by using a batch-file. There I had to enter a pause of 6 seconds after starting the RPG_RT.exe before running the anotherfullscreenmode.
Could this be the problem or does anyone know what else I can do to have it started?
When I run my game, it opens the anotherfullscreenmode.exe but closes it again at the same time. I guess there has to be a wait function for the anotherfullscreenmode.
Before I used this patch, I opened my game by using a batch-file. There I had to enter a pause of 6 seconds after starting the RPG_RT.exe before running the anotherfullscreenmode.
Could this be the problem or does anyone know what else I can do to have it started?
Hmmm, in your .ini, do you have "AnotherFullscreenMode=1?" That's what turns it on when it boots.
Also, I renamed anotherfullscreenmode.exe to "game_settings_afm.exe" (because I'm difficult like that). The plugin looks for it in the DynPlugins folder by default. Also, make sure you have the parameters in the right ini files, since this uses both RPG_RT.ini and DynRPG.ini.
Also, I renamed anotherfullscreenmode.exe to "game_settings_afm.exe" (because I'm difficult like that). The plugin looks for it in the DynPlugins folder by default. Also, make sure you have the parameters in the right ini files, since this uses both RPG_RT.ini and DynRPG.ini.
I also have named it "game_settings_afm.exe". I copied it from the plugin download here.
Well, and the rest of the settings are just like discribed into the readme. This is what is written in my DynRPG.ini:
SetFPS=
AfmFolder=DynPlugins
And this is what is written in my RPG_RT.ini:
StartWindowed=1
AnotherFullscreenMode=1
RenderMode=1
ResHorizontal=640
ResVertical=480
I guess there is nothing wrong about it. Or do you recognize a mistake?
Well, and the rest of the settings are just like discribed into the readme. This is what is written in my DynRPG.ini:
SetFPS=
AfmFolder=DynPlugins
And this is what is written in my RPG_RT.ini:
StartWindowed=1
AnotherFullscreenMode=1
RenderMode=1
ResHorizontal=640
ResVertical=480
I guess there is nothing wrong about it. Or do you recognize a mistake?
Oh, you know what? I think there's a typo in my code. For now, just add a slash after the AtmFolder. That should fix it.
AfmFolder=DynPlugins\
.....................................^
.....................................^
I changed the whole script now and it doesn't work anyway :(
When I start the game_settings_afm.exe manually after I started the game it is activated and I can change window size, rendering mode etc. by the F*-keys, but if I try to use the comment commands for changing something nothing happens.
When I start the game_settings_afm.exe manually after I started the game it is activated and I can change window size, rendering mode etc. by the F*-keys, but if I try to use the comment commands for changing something nothing happens.
Again, make sure game_settings_afm.exe is in your DynPlugins folder.
The event code should look something like this:
V0178:Options-RendMode is just what I use to determine what graphics are displayed in the menu. V4024 is what receives the ini value. It's basically reading the ini value first before writing the opposite value (toggling). Try adding the wait 0.5 command maybe? I really don't know what you're doing wrong.
The event code should look something like this:
V0178:Options-RendMode is just what I use to determine what graphics are displayed in the menu. V4024 is what receives the ini value. It's basically reading the ini value first before writing the opposite value (toggling). Try adding the wait 0.5 command maybe? I really don't know what you're doing wrong.
The game_settings_afm.exe is in my DynPlugins folder...
Believe me, I have everything just like you discribed. But I wonder what is with the game_settings.cpp in the src folder of your plugin? Do I have to copy it somewhere as well? Because I have not read anything about it.
Or maybe the plugin is not compatible with another DynPlugin?
Believe me, I have everything just like you discribed. But I wonder what is with the game_settings.cpp in the src folder of your plugin? Do I have to copy it somewhere as well? Because I have not read anything about it.
Or maybe the plugin is not compatible with another DynPlugin?
And you are using DynRPG v0.20, and not an earlier version? The plugin works fine for me.
http://share.cherrytree.at/showfile-12494/dynrpg.rar
http://share.cherrytree.at/showfile-12494/dynrpg.rar
Without more information, I don't know what to tell you. Did you check all the stuff above? Redownload the plugin after 9/17?
Oh, I guess I didn't give you any more useful info in my last post. But it looks like you really want to help me out and get this working, so I appreciate that!
I'll edit this post when I come back to try this out later on.
I'll edit this post when I come back to try this out later on.
Shoob,
So, I'm an idiot and somehow forgot this in the readme:
Place that beneath "AfmFolder=DynPlugins"
If you need a Settings.ini file, you can either create a blank text file, paste the contents into it from teh readme, and rename the extension from .txt to .ini, or download it from my github page:
https://github.com/rewrking/game_settings
So, I'm an idiot and somehow forgot this in the readme:
[game_settings]
...
; Game ini filename
; Default: Settings.ini
GameIniFilename=Settings.ini
Place that beneath "AfmFolder=DynPlugins"
If you need a Settings.ini file, you can either create a blank text file, paste the contents into it from teh readme, and rename the extension from .txt to .ini, or download it from my github page:
https://github.com/rewrking/game_settings
Hello,
Can you post an example on how the comment commands for choosing between windowed and fullscreen mode would look? (I have installed Dyn to my project and have the plugin files in the DynPlugins folder + set up both inis but I've never worked with comment commands before in the engine, so I'm assuming this is why nothing has changed on the title screen.)
Thank you!
Can you post an example on how the comment commands for choosing between windowed and fullscreen mode would look? (I have installed Dyn to my project and have the plugin files in the DynPlugins folder + set up both inis but I've never worked with comment commands before in the engine, so I'm assuming this is why nothing has changed on the title screen.)
Thank you!
Pages:
1