-Overview-
So basically this allows the creation of an extra file for modifying and saving custom data during runtime that is not linked to a save file so that you can share those data in-between saves and even in-between different games.
You can modify the path, file name and path of the custom data file via constants
-Usage-
You can get a data, modify a data and save the file via simple script calls (included in the header)
Loading of the file is automatically done upon starting the game
-Link-
Get it here:
http://lescripts.wordpress.com/rgss3/game-custom-data-v1-0/
-Add Ons-
Persistent Data (Switches and Variables)
- Changelog -
Version 1.10 - Added some wrappers
Version 1.11 - The data is now reloaded upon going to the title screen and loading data if autosave is not set to true
Version 1.12 - Native support for using ENV paths (AppData,ProgramFiles etc)
- Autocreates folder if it isn't yet created
Version 1.12b - Fixed a wrong variable setting that I saw
Version 1.20 - Realized that the older scripts have typos and such that caused it to not work
so I fixed it now, and fully tested to be working too
Version 1.21 - Made it save custom data when a game is saved
Version 1.22 - Just modified something
Version 1.23 - bug fixes
Version 1.24 – you can now save inside the game’s folder even if the player can move it around
Version 1.25 - fixed a bug where it won't allow loading of save files if autosave is true
Version 1.26 - fixed a missing end which caused the script to be unusable
-Notes-
Make sure you read the header of the script for more info
The script doesn't do much on it's own aside from making the file and loading it upon start-up
Everything else will be determined by how you use it.
The
CD keyword for DATA_PATH doesn't seem to be recognized
-Sample Ideas-
You can use it for example counting how many times a player finished a game so that you can make something happen when a player finishes it a couple of times
You can use it as a base for a shared stash (I'm trying to make one in another script)
Basically if you need data that is shared between playthroughs or even between games, this would be a useful script
- Ideas from others -
Shaz
Spoiler
Shaz said:
This would also be good as a preferences file (which I was going to write and share, but I won't now
) where you could save mouse enabled/disabled settings and other options that a player might want to set that affects all games (bgm on/off, window/fullscreen).
If you were to save it into the player's AppData folder instead of the System folder, you could also have several people sharing the same computer who could have their own settings/custom data, that wouldn't be interfered with by others.
Click to expand...
- Links to useful posts -
http://forums.rpgmakerweb.com/index.php?/topic/20304-game-custom-data/#entry194065
本贴来自国际rpgmaker官方论坛作者:Engr. Adiktuzmiko处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:
https://forums.rpgmakerweb.com/threads/game-custom-data-v1-26.20304/