Avangs

  • 게임 정보
    • 게임 소개
    • 게임 리뷰
    • 게임 실황
    • 게임 공략
    • 모바일 테스트
  • 게임 작품new
    • 완성작 게임new
    • 체험판 게임
    • 한글판 게임
    • 온라인 게임
    • 추천작 제작자 저장소
  • 투표선정 작품
    • 아방스 추천작
    • 완성 기대작
    • 투표 신청
    • 투표소
    • 투표 결과
  • 강좌new
    • 아방스 칼럼
    • 비주얼노벨 강좌
    • 알만툴 강좌
      • MZ 강좌
      • MV 강좌
      • VX Ace 강좌
      • VX 강좌
      • XP 강좌
      • 2003 강좌
      • 2000 강좌
    • 게임메이커 강좌
    • 울프툴 강좌
    • 3D 게임제작 강좌
    • 2D 게임제작 강좌
    • 그래픽 제작 강좌
    • 기타 강좌
  • 질문과 답변new
    • 자주 묻는 질문new
    • 질문과 답변new
    • 제작의뢰
  • 커뮤니티new
    • 구인·구직·외주
    • 테스트 요청
    • 자유게시판new
    • 게임계 소식
    • 유머&정보
    • 사이트링크
    • 이벤트&대회
  • 창작
    • 게임 기획
    • 맵배치
    • 글쓰기
    • 그리기
    • 음악
  • 자료실
    • 게임제작툴
    • 예제 및 샘플
    • 그래픽 소재
      • 오리지널 소재
      • 이차창작 소재
      • 수정·개조 소재
      • 외부 소재
    • 사운드 소재
    • 확장·플러그인·스크립트
      • MZ 플러그인
      • MV 플러그인
      • Ace 스크립트
      • VX 스크립트
      • XP 스크립트
      • 2k3 플러그인
      • VN 플러그인·확장
    • 외부 소재사이트
    • 기타 자료
      • 한글화툴
      • 무료 폰트
      • 유틸리티
    • 디자인 참고자료
  • 고객센터new
    • 공지사항new
    • 건의 및 신고
    • 핫 이슈
로그인 회원가입
Avangs
  • 게임 정보
    • 게임 소개
    • 게임 리뷰
    • 게임 실황
    • 게임 공략
    • 모바일 테스트
  • 게임 작품new
    • 완성작 게임new
    • 체험판 게임
    • 한글판 게임
    • 온라인 게임
    • 추천작 제작자 저장소
  • 투표선정 작품
    • 아방스 추천작
    • 완성 기대작
    • 투표 신청
    • 투표소
    • 투표 결과
  • 강좌new
    • 아방스 칼럼
    • 비주얼노벨 강좌
    • 알만툴 강좌
      • MZ 강좌
      • MV 강좌
      • VX Ace 강좌
      • VX 강좌
      • XP 강좌
      • 2003 강좌
      • 2000 강좌
    • 게임메이커 강좌
    • 울프툴 강좌
    • 3D 게임제작 강좌
    • 2D 게임제작 강좌
    • 그래픽 제작 강좌
    • 기타 강좌
  • 질문과 답변new
    • 자주 묻는 질문new
    • 질문과 답변new
    • 제작의뢰
  • 커뮤니티new
    • 구인·구직·외주
    • 테스트 요청
    • 자유게시판new
    • 게임계 소식
    • 유머&정보
    • 사이트링크
    • 이벤트&대회
  • 창작
    • 게임 기획
    • 맵배치
    • 글쓰기
    • 그리기
    • 음악
  • 자료실
    • 게임제작툴
    • 예제 및 샘플
    • 그래픽 소재
      • 오리지널 소재
      • 이차창작 소재
      • 수정·개조 소재
      • 외부 소재
    • 사운드 소재
    • 확장·플러그인·스크립트
      • MZ 플러그인
      • MV 플러그인
      • Ace 스크립트
      • VX 스크립트
      • XP 스크립트
      • 2k3 플러그인
      • VN 플러그인·확장
    • 외부 소재사이트
    • 기타 자료
      • 한글화툴
      • 무료 폰트
      • 유틸리티
    • 디자인 참고자료
  • 고객센터new
    • 공지사항new
    • 건의 및 신고
    • 핫 이슈
로그인 회원가입

NOTICE

공지사항
더보기
  • 홈페이지 개편 및 시스템 정비 작업 안내 04.13

Recently Added Games

최근 등록 게임
  • 어드벤쳐 [1치킨 수상작] 로봇 관리자 newfile 04.13
  • 퍼즐/보드 알파벳 용사 2 file 04.08
  • 롤플레잉 스틱 파이터 섬 1 체험판 file 03.31
  • 어드벤쳐 9th Existence file 03.26
  • 어드벤쳐 악역스타 훈발이 file 03.13
2013.11.09 13:01

Global Save Data (Store a range of variables) by PepsiOtaku

profile
습작
조회 수 1780 추천 수 0 댓글 0
Atachment
첨부 '3'
  • 001.png,
  • 002.png,
  • 003.png,
크게 작게 위로 아래로 댓글로 가기 인쇄
크게 작게 위로 아래로 댓글로 가기 인쇄

001.png

002.png 003.png


http://rpgmaker.net/engines/rm2k3/utilities/32/


  SaveGlobal.dyn라는 별도의 파일에 각 세이브 파일에 대응하는 글로벌 변수를 저장하고 사용하는 기능을 통해 궁극적으로는 커스텀 세이브/로드 시스템을 구현하려는 시도에서 만들어진 플러그인입니다. DynRPG가 설치된 프로젝트에서만 구동 가능하며, DynPlugins 폴더 안에 해당 플러그인의 dll 파일이 들어 있습니다. 위 링크를 통해 배포페이지에서 해당 플러그인의 데모 파일을 다운로드 받을 수 있습니다. DynRPG에 대한 내용은 "습작의 스크립트 이야기 : 번외편 - 7편 : DynRPG(http://avangs.info/1031048)"를 참고해주세요. 해당 플러그인의 자세한 사용법에 대한 내용은 리드미를 참고하세요.


#. 리드미 내용

 

========================================================================

CMS Tools: Global Save Data (Store a range of variables) v1.0

For RPG Maker 2003 with DynRPG v0.13 or higher

By PepsiOtaku

========================================================================


This plugin was designed to work alongside the CustomSaveLoad patch. It saves variables from a particular 

save file into a binary "database" (SaveGlobal.dyn) and assigns them an identifier based on the save file

(Save13.lsd = an id of 13). Using this identifier, the plugin can import those variables from another save file.


This was built specifically for making a custom save/load menu. Imagine you are pressing up/down through save

files. Each time you do this, the menu needs to load specific pieces of data like HP & MP for each character,

gold, time played, etc. Each file has a separate set of data that has to be loaded on the spot. This simplifies

this process by using a variable called "ExportVar" as an export trigger (for saving) and a variable called

"ImportVar" as an import trigger (for loading). Set the ExportVar to the Save ID to index your variable range,

and set the ImportVar to the index you want to load. VarRangeStart and VarRangeEnd are used to define the 

variable range you wish to export/import.


Specifically, if you set your ExportVar to a number (9 for example), it takes what's currently stored in 

VarRangeStart-VarRangeEnd and places it into the SaveGlobal.dyn file under an index of "09." If you set the

ExportVar to 37, it will do the same thing in an index of "37." Indexes are stored in binary format in 

sequential order, so between save 9 and 37 would be a a ton of zeros if there was no data saved within 

indexes 10-36. 


For loading, set the ImportVar to the index number, and it will load the data for VarRangeStart-VarRangeEnd

and store them in those variables for the save file you have loaded. In my case, the index id's are the save

slots. This way, you could be in Save 37, and see what's those 100 variables were in Save 9. 


The one exception is that you can't use "0" for an index number. It has to be at least 1 due to how the 

binary file is structured.


With that in mind, if your range is 4101-4200, You could use the set variable command to set variable 4101

to a number representing a party member, v4102 to that member's max HP, v4103 to their max MP, etc. You can

kind of interpret that functionality in any way that would suit you, be it a save system, a high score 

system or anything else you can think up that uses variables. 


NOTE: Stick to small variable ranges. I wouldn't use more than 100 variables in your range, as you may get 

  unpredictable results, or crashes. 


NOTE 2: Do not set your variable range to 100 vars, save a bunch of games, and then set your range to 200 vars

  as this will corrupt the data in SaveGlobal.dyn. You must delete your old SaveGlobal.dyn, and then let

  the plugin create a new one.



Installation

-------------


To install the plugin, make sure that you have patched your project with cherry's AutoEnter patch, 

CustomSaveLoad patch, and DynRPG


1. Patch DynRPG onto your BetterAEP/CustomSaveLoad RPG_RT.exe.


2. Copy the "global_save_data.dll"into the DynPlugins folder of your own project.


3. Add the following (between the asterisks) to your DynRPG.ini 


**********************************************


[global_save_data]

VarRangeStart=4101

VarRangeEnd=4130

ExportVar=3346

ImportVar=3351


**********************************************


4. Change the numeric values to the variables of your choice. Again, it's super important that you stick to less

than 100 variables in your range. You probably don't need more than that anyway.



Note: If you want to use this for a custom save/load menu, make sure you install Cherry's CustomSaveLoad patch

  alongside BetterAEP. Using my default variable choices, you should have this setup:


(this is just my naming scheme, but you get the idea) 

3346: AEPSL-SaveSwitch --> ExportVar

3350: AEP-Selector --> Used by the AutoEnterPatch. 0 to launch the load menu, 2 to quit

3351: AEPSL-SaveID --> used to query 

3352: AEPSL-SaveExists --> 1 if save exits, 0 if it doesn't

3353: AEPSL-HeroLevel --> not used

3354: AEPSL-HeroHP --> not used

3355: DynRPG-LoadSaveInfo  --> ImportVar

4101-4130 (The "global" variables) - Hero ID, Level, HP, MP for all 4 party members (16 vars), saves, location,

  gold, playtime hours/mins/seconds (3 vars) was my setup


Instructions

-------------

The nature of how this plugin gets used is very complex, so I'd recommend getting comfortable with

Cherry's BetterAEP & CustomSaveLoad patch before trying to figure this out.



1. In your save file event call, set all of the vars you're using in your range to their respective values

   and then add the following:


   <>Variable Oper: [3346:AEPSL-SaveSwitch] Set, Var [FileSelected]'s Value (FileSelected is used as the index id)

   <>Wait: 0.1 Sec

   <>Variable Oper: [3351:AEPSL-SaveID] Set, Var [FileSelected]'s Value

   <>Open Save Menu (in The SaveLoad patch, this saves the file defined in the previous line)  



2. In your menu, when you select a file, you should have some kind of a "LoadFile" event call. In this event call,

   first set your var range to 0 (to reset all vars before loading them from SaveGlobal.dyn). At this point,

   you should also have a variable set to the selected file (I'll call "FileSelected"). Do the following:


   <>Variable Oper: [3351:AEPSL-SaveID] Set, Var [FileSelected]'s Value   

   <>Variable Oper: [3355:DynRPG-LoadSaveInfo] Set, Var [FileSelected]'s Value 

   <>Variable Oper: [3352:AEPSL-SaveExists] Set, Var [3351:AEPSL-SaveID]'s Value 

   <>Branch if Var [3342:AEPSL-SaveExists] is 1

   (At this point, all of your vars have been loaded, so you can refer to them and draw them on screen using DynText)


Who's 습작

profile

* 게임소재 자료실 관리자 (2012.04.17 ~ ) / 게임리뷰 게시판 관리자 (2012.08.23 ~ )
* 개인 블로그 : https://eternalworld.tistory.com
└ RPG Maker VX/Ace 메뉴 편집기 등 배포
* 리뷰 블로그 : https://etude87.tistory.com
└ RPG Maker 시리즈 한글패치 정리, 쯔꾸르 시리즈 이용 규약 등 소개
* 프리 게임 한글화 DB : https://freegame.tistory.com
└ 한글화된 해외 무료 게임 정리

0 추천 0 비추천
위로 아래로 댓글로 가기 인쇄
에디터 선택하기
✔ 텍스트 모드 ✔ 에디터 모드
?
댓글 쓰기 권한이 없습니다. 로그인 하시겠습니까?

List of Articles
제목 글쓴이 날짜 조회 수
TEXT PLUGIN by Kazesui 3 file 습작 2013.11.04 2338
SAVE DETECTOR & DELETE SAVE FUNCTION by PepsiOtaku file 습작 2013.11.07 1789
Save Cleanup by PepsiOtaku file 습작 2013.11.07 1171
Quit Switch by PepsiOtaku file 습작 2013.11.06 1625
POINTER PLUGIN by Kazesui 습작 2013.11.05 1662
PicPointerPatch by Cherry(그림 표시,이동,삭제 시 그림번호에 변수를 대입할 수 있다) 일단 2014.01.22 2084
ORDER SWITCH by PepsiOtaku file 습작 2013.11.06 1591
MINIMAP PLUGIN by Kazesui file 습작 2013.11.04 1923
MENU TRANSITION TWEAKS by PepsiOtaku file 습작 2013.11.06 1677
Kaze Line of Sight Plugin for RPG Maker 2003 by Kazesui file 습작 2013.11.09 2414
Global Save Data (Store a range of variables) by PepsiOtaku file 습작 2013.11.09 1780
EXTRA KEYS (FROM RAGNADYN) by PepsiOtaku & orochii (RagnaDyn author) file 습작 2013.11.06 1585
BLENDING MODES by Kazesui file 습작 2013.11.05 1917
Advanced Faster ATB Plugin by PepsiOtaku 4 file 습작 2013.11.05 1877
쓰기
Board Pagination Prev 1 Next
/ 1
AVANGS

게임 제작, 창작, 자료, 강좌를 연결하는 커뮤니티

  • 개인정보 취급방침

Copyright © 2026 Avangs