浏览代码

Update make_for_win_.bat to match make.bat

- make_for_win_.bat now has the same comment as make.bat
- The instructions for editing those files will both use line 7 now.
/develop-generalizationTraining-TrainerController
rsfutch77 6 年前
当前提交
72042bf8
共有 2 个文件被更改,包括 2 次插入1 次删除
  1. 2
      protobuf-definitions/README.md
  2. 1
      protobuf-definitions/make_for_win.bat

2
protobuf-definitions/README.md


## Running
1. Open a terminal. **Note:** If you're using Anaconda, don't forget to activate the ml-agents environment first.
2. Un-comment line 6 in `make.bat` (for Windows, use `make_for_win.bat`), and set to correct Grpc.Tools sub-directory.
2. Un-comment line 7 in `make.bat` (for Windows, use `make_for_win.bat`), and set to correct Grpc.Tools sub-directory.
3. Run the `.bat` from the terminal by navigating to `$MLAGENTS_ROOT\protobuf-definitions` and entering `make.bat` (for Windows, use `make_for_win.bat`)
4. Note any errors generated that may result from setting the wrong directory in step 2.
5. In the generated `UnityToExternalGrpc.cs` file in the `$MLAGENTS_ROOT/UnitySDK/Assets/ML-Agents/Scripts/CommunicatorObjects` folder, you will need to add the following to the beginning of the file:

1
protobuf-definitions/make_for_win.bat


rem Then un-comment and replace [DIRECTORY] with location of files.
rem For example, on Windows, you might have something like:
rem set COMPILER=Grpc.Tools.1.14.1\tools\windows_x64
rem set COMPILER=[DIRECTORY]
set SRC_DIR=proto\mlagents\envs\communicator_objects
set DST_DIR_C=..\UnitySDK\Assets\ML-Agents\Scripts\CommunicatorObjects

正在加载...
取消
保存