질문과 답변

Extra Form

게임을 만들때 게임파일에 대해 걱정이 하나 있습니다.

 

게임폴더에는 Data폴더 말고도 Graphics, Audio... Graphics 폴더 안에도 Character, Animation 폴더 등 다양하게 있는데

 

나중에 게임을 완성해서 배포할때 편의를 위해

 

다른사람이 게임을 받을때 쓸데없이 파일, 폴더가 많아져서 불편해하지 않도록

 

게임파일 내의 Graphics, Audio, Data 폴더를 한 폴더에 뭉칠 필요를 느꼈습니다.

 

 

인위적으로 데이터폴더를 합쳐버리면 경로가 흐트러져 버리니까

 

폴더를 합친 후 RPG모듈 안에있는 Cache 모듈을 편집해서 임시저장되는 파일의 경로를 그에맞게 바꾸려고 합니다.

 

그런데 RPGVX나 RPGVXA는 따로 Cache를 수정할수 있도록 스크립트편집창에 구비해놨는데

 

RPGXP는 그게없어서 어떻게할지 모르겠습니다.

 

따로 스크립트를 하나 만들어서 Cache를 수정시키면 될까요?

Comment '4'
  • profile
    습작 2012.08.03 23:02

    0.


      RPG Maker XP에서의 Cache 모듈의 내용은 아래와 같습니다. 필요하신 부분이 있으시다면 아래 내용을 재정의하는 방식으로 추가하여주신다면 될 것 같습니다. 그럼 수고하세요.^^


    module RPG
      module Cache
        @cache = {}
        def self.load_bitmap(folder_name, filename, hue = 0)
          path = folder_name + filename
          if not @cache.include?(path) or @cache[path].disposed?
            if filename != ""
              @cache[path] = Bitmap.new(path)
            else
              @cache[path] = Bitmap.new(32, 32)
            end
          end
          if hue == 0
            @cache[path]
          else
            key = [path, hue]
            if not @cache.include?(key) or @cache[key].disposed?
              @cache[key] = @cache[path].clone
              @cache[key].hue_change(hue)
            end
            @cache[key]
          end
        end
        def self.animation(filename, hue)
          self.load_bitmap("Graphics/Animations/", filename, hue)
        end
        def self.autotile(filename)
          self.load_bitmap("Graphics/Autotiles/", filename)
        end
        def self.battleback(filename)
          self.load_bitmap("Graphics/Battlebacks/", filename)
        end
        def self.battler(filename, hue)
          self.load_bitmap("Graphics/Battlers/", filename, hue)
        end
        def self.character(filename, hue)
          self.load_bitmap("Graphics/Characters/", filename, hue)
        end
        def self.fog(filename, hue)
          self.load_bitmap("Graphics/Fogs/", filename, hue)
        end
        def self.gameover(filename)
          self.load_bitmap("Graphics/Gameovers/", filename)
        end
        def self.icon(filename)
          self.load_bitmap("Graphics/Icons/", filename)
        end
        def self.panorama(filename, hue)
          self.load_bitmap("Graphics/Panoramas/", filename, hue)
        end
        def self.picture(filename)
          self.load_bitmap("Graphics/Pictures/", filename)
        end
        def self.tileset(filename)
          self.load_bitmap("Graphics/Tilesets/", filename)
        end
        def self.title(filename)
          self.load_bitmap("Graphics/Titles/", filename)
        end
        def self.windowskin(filename)
          self.load_bitmap("Graphics/Windowskins/", filename)
        end
        def self.tile(filename, tile_id, hue)
          key = [filename, tile_id, hue]
          if not @cache.include?(key) or @cache[key].disposed?
            @cache[key] = Bitmap.new(32, 32)
            x = (tile_id - 384) % 8 * 32
            y = (tile_id - 384) / 8 * 32
            rect = Rect.new(x, y, 32, 32)
            @cache[key].blt(0, 0, self.tileset(filename), rect)
            @cache[key].hue_change(hue)
          end
          @cache[key]
        end
        def self.clear
          @cache = {}
          GC.start
        end
      end
    end
    

     


  • ?
    지누준호 2012.08.04 15:34

    잘 찾아보니까 툴 도움말에도 있었던 내용이었군요
    감사합니다! ^^

     

    그런데 왜 rmxp는 cache나 다른 편입모듈들이 스크립트에디터에 없는건지..

    게임을 실행하면 에디터에 없는 내용들은 라이브러리에서 자동으로 빼오는 식으로 진행되는건가요?

  • profile
    JACKY 2012.08.04 19:28
    편입모듈들은 라이브러리에 미리 저장되어있고
    게임의 제일 핵심적인 부분이기에 기본적으로
    편집을 막아뒀습니다. 하지만 스크립트를 좀
    안다면 재정의하는 방법으로 편집가능합니다.
  • ?
    지누준호 2012.08.08 12:24
    답글의 댓글의 답글 감사합니다 ㅎㅎ

List of Articles
종류 분류 제목 글쓴이 날짜 조회 수
공지 묻고 답하기 가이드 습작 2014.06.14 12442
RMVX rpgvx 소리오류 2 ddmc 2014.06.05 1187
RM2k 쯔꾸르 2000 설치를 했습니다만 툴 실행방법을 모르겠습니다 ㅠ 2 file 시아논 2014.12.07 1187
RMVX 적의 시야 설정에 관해서 질문드릴게요~ 장동거니 2011.07.20 1187
RMXP XP용 셀프 변수 스크립트의 사용법을 알 수 있을까요? 11 file 슈팅스타* 2012.08.15 1187
RMVX 알피지 vxace에 있는 자료를 vx로 옮기고 싶어요 8 빡새 2013.04.29 1187
RMVXA 타일셋을 바꿧는데 캐릭터가 안움직입니다(방향만움직임) 2 file PengBle 2013.05.06 1187
RMVX 파티원의 리더를 변경하는 스크립트 5 Lamancha 2013.12.01 1187
RMVX 전투 배경 다르게 하기. 1 정말귀인★ 2011.07.23 1188
RMXP RGSS Cache 모듈 수정법! 4 지누준호 2012.08.03 1188
RMVX 이 레버 실행시키고 좀 끄고싶네요. 6 file 카온 2012.08.11 1188
RMVXA RPG VXA 스크립트 게시판에 올라온 사이드 뷰 스크립트에 대해 질문 홍색의환상향 2013.05.05 1188
RMVXA 열쇠를사용하여여수있는문은어케만드나요? (RPG VX Ace) 2 qpalzm104 2014.01.11 1188
RMVX 랜덤으로 대화를 걸때 지정된 이벤트가 발생하는 것에 대해 물어보려 합니다. 2 file 다라 2012.07.07 1189
RMVXA 사용 중인 모듈 내 값을 디폴트 시키는 방법을 아시는 분? 7 77이알 2012.09.18 1189
RMVXA [수정해서 다시 올립니다.] 게임을 하다가 자꾸 팅기네요. 1 file 오버매냐 2013.09.29 1189
기타 캐릭터 일러스트 제작툴 있잖아요 2 모식스 2013.12.19 1190
RMVXA 스크립트 에러 질문입니다 3 file 오늘은훈이좋군 2013.10.01 1190
RMVX 타이틀 메뉴 사각 상자 없애기 2 file 비첼 2013.12.23 1190
RMMV MV에서 대화창 그래픽을 바꾸고싶어요 1 구슯 2018.06.09 1191
RMVXA 조건분기 적의상태이상 인식 버그?(수정) 로브남 2012.08.23 1191
Board Pagination Prev 1 ... 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 ... 516 Next
/ 516