질문과 답변

Extra Form

스크립트 만지작 거리다가 main이 삭제됬는데, 겜이 실행이 않되네요ㅠㅜ

이런경우는 어떻게 해결해야 될지;;;

혹시 main 스크립트 알려 주실 분 없나요?

Comment '2'
  • ?
    Alkaid 2011.09.13 11:19

    그냥 새로운 프로젝트를 하나 작성하고 거기서 main 파트를 복사해 오기 바랍니다.  아니면:


    #==============================================================================
    # ** Main
    #------------------------------------------------------------------------------
    #  After defining each class, actual processing begins here.
    #==============================================================================
    
    begin
    
    # Prepare for transition
      Graphics.freeze
      # Make scene object (title screen)
      $scene = Scene_Title.new
      # Call main method as long as $scene is effective
      while $scene != nil
        $scene.main
      end
      # Fade out
      Graphics.transition(20)
    rescue Errno::ENOENT
      # Supplement Errno::ENOENT exception
      # If unable to open file, display message and end
      filename = $!.message.sub("No such file or directory - ", "")
      print("Unable to find file #{filename}.")
      
    rescue Reset
      
    end
    

    Ruby로 짠 프로그램을 실행하는 것은 이 main 부분이므로 이 부분이 삭제되지 않도록 주의하기 바랍니다.

  • ?
    낙서금지1호 2011.09.13 14:31

    감사합니다^^


List of Articles
종류 분류 제목 글쓴이 날짜 조회 수
공지 묻고 답하기 가이드 습작 2014.06.14 12442
Board Pagination Prev 1 ... 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 Next
/ 83