add base game lua. fixed resource copying.