제가 볼때는 참조되고 있는 scene_file 나 불러올때 쓰이는 scene_load 부분을 모두 둘러보고
문제를 파악해야 될꺼라고 판단이 됩니다... ;;;
그리고 저장이 확실하게 되었는지도 확인이 필요할꺼 같네요...
세이브파일명 아시죠?? 세이브후 확인을 해서 있나 없나를 통해서 저장이 문제인지 불러오기가
문제인지를 파악하시고...
스크립트 문제가 확실하다면 잘 되는 다른 부분의 스크립트를 한번가져와서
붙여보시는 등의 일을 확실하게 해보시고. 정확히 어느부분이 문제인지와..
혹시 붙여넣어놓은 스크립트중에 scene_file 혹은 scene_save 혹은 scene_load 부분이 재정의
되어 있지는 않은가 등의 여러가지 정확한 조사가 필요할꺼 같네요...
딸랑 Scene_Save 부분만 가지고 뭔가 판단하기에는 힘들다는.....
>협객님 말대로 바꿨는데도 안되고.
>스크립트에 문제가 있나 했는데 다른분들도 이상 없다고 하고..;;
>여하튼 뭐가 문제일까요..?
>
>#==============================================================================
># ■ Scene_Save
>#------------------------------------------------------------------------------
># 세이브 화면의 처리를 실시하는 클래스입니다.
>#==============================================================================
>
>class Scene_Save < Scene_File
> #--------------------------------------------------------------------------
> # ● 오브젝트 초기화
> #--------------------------------------------------------------------------
> def initialize
> super("어떤 곳에 저장하시겠습니까?")
> end
> #--------------------------------------------------------------------------
> # ● 결정시의 처리
> #--------------------------------------------------------------------------
> def on_decision(filename)
> # 세이브 SE 를 연주
> $game_system.se_play($data_system.save_se)
> # 세이브 데이터의 기입
> file = File.open(filename, "wb")
> write_save_data(file)
> file.close
> # 이벤트로부터 불려 가고 있는 경우
> if $game_temp.save_calling
> # 세이브 호출 플래그를 클리어
> $game_temp.save_calling = false
> # 맵 화면으로 전환하고
> $scene = Scene_Map.new
> return
> end
> # 메뉴 화면으로 전환하고
> $scene = Scene_Menu.new(15)
> end
> #--------------------------------------------------------------------------
> # ● 캔슬시의 처리
> #--------------------------------------------------------------------------
> def on_cancel
> # 캔슬 SE 를 연주
> $game_system.se_play($data_system.cancel_se)
> # 이벤트로부터 불려 가고 있는 경우
> if $game_temp.save_calling
> # 세이브 호출 플래그를 클리어
> $game_temp.save_calling = false
> # 맵 화면으로 전환하고
> $scene = Scene_Map.new
> return
> end
> # 메뉴 화면으로 전환하고
> $scene = Scene_Menu.new(4)
> end
> #--------------------------------------------------------------------------
> # ● 세이브 데이터의 기입
> # file : 기입용 파일 오브젝트 (오픈이 끝난 상태)
> #--------------------------------------------------------------------------
> def write_save_data(file)
> # 세이브 파일 묘화용의 캐릭터 데이터를 작성
> characters = []
> for i in 0...$game_party.actors.size
> actor = $game_party.actors[i]
> characters.push([actor.character_name, actor.character_hue])
> end
> # 세이브 파일 묘화용의 캐릭터 데이터를 기입한다
> Marshal.dump(characters, file)
> # 플레이 시간 계측용의 프레임 카운트를 기입한다
> Marshal.dump(Graphics.frame_count, file)
> # 세이브 회수를 1 늘린다
> $game_system.save_count += 1
> # magic number-를 보존한다
> # (에디터로 보존할 때마다 랜덤인 값에 고쳐 쓸 수 있다)
> $game_system.magic_number = $data_system.magic_number
> # 각종 게임 오브젝트를 기입한다
> Marshal.dump($game_system, file)
> Marshal.dump($game_switches, file)
> Marshal.dump($game_variables, file)
> Marshal.dump($game_self_switches, file)
> Marshal.dump($game_screen, file)
> Marshal.dump($game_actors, file)
> Marshal.dump($game_party, file)
> Marshal.dump($game_troop, file)
> Marshal.dump($game_map, file)
> Marshal.dump($game_player, file)
> end
>end
>